An open API service indexing awesome lists of open source software.

https://github.com/simlay/fluvio-finance-demo


https://github.com/simlay/fluvio-finance-demo

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Fluvio Finance Demo

* Ingest realtime data from https://finnhub.io/docs/api/quote using a Fluvio Connector
* Ingest some local warrants we have
* Use a smartmodule to calculate realtime ROI
* View the data in a Tabular Form

References:
* https://stockmarketmba.com/whatisawarrant.php

# How to run

## Start the connector:
* `make gme-input` - will compile and start the connector
* `fluvio connector create --config ./quote-data-input.yaml`

## View the table
* `make sm-consume-table` will compile the smartstream, create the table and run:
`fluvio consume --aggregate ./target/wasm32-unknown-unknown/release/finnhub_data_smartmodule.wasm gme-stocks -B 0 --output full_table --table-format profitviews`

## View the raw data
* `make sm-consume` will compile the smartstream and view the raw data via `fluvio consume --aggregate ./target/wasm32-unknown-unknown/release/finnhub_data_smartmodule.wasm gme-stocks -B 0`