https://github.com/simlay/fluvio-finance-demo
https://github.com/simlay/fluvio-finance-demo
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simlay/fluvio-finance-demo
- Owner: simlay
- Created: 2022-04-12T16:19:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T17:01:54.000Z (about 4 years ago)
- Last Synced: 2025-03-13T17:27:16.025Z (over 1 year ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`