Real-time trading indicators (RSI, VWAP) streamed from Bitquery GraphQL
Project description
Streaming Crypto Trading Indicators in Real-time
Trading Indicators
Real-time RSI and VWAP streaming from Bitquery.
Installation
pip install -e .
Configuration
You need to generate an authorization token on your Bitquery account. Generate one here Provide your Bitquery token via one of:
- Environment variable:
BITQUERY_TOKEN(orBITQUERY_OAUTH_TOKEN) - Config file JSON with key
oauth_tokenortokenat one of:./config.json~/.config/trading-indicators/config.json~/.trading-indicators.json
- CLI flag:
--token(highest precedence)
Example config.json:
{ "oauth_token": "YOUR_TOKEN_HERE" }
Usage
Run via CLI:
bitquery-trading-indicators-stream --duration 120 --rsi-period 14 --vwap-period 20
Or import as a library:
from trading_indicators import load_token, run_stream
token = load_token()
run_stream(token, rsi_period=14, vwap_period=20, duration_seconds=120)
Source Price Feed is here
Tutorial is here
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bitquery_trading_indicators_stream-0.1.0.tar.gz.
File metadata
- Download URL: bitquery_trading_indicators_stream-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f326c47fee997875821897de3b7d583fbfc747f8a149277d217e2cd25aaf1db
|
|
| MD5 |
da0b5a4613a1ba78d96d8195e90891b0
|
|
| BLAKE2b-256 |
052a599bcf6baf0a3c4fd120656d5e38b292543bea957a620d70ea2f40d9e9c7
|
File details
Details for the file bitquery_trading_indicators_stream-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bitquery_trading_indicators_stream-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a81ec3d01278110840faf900a98c1fadc23ccada7f948370430f32c185ca1463
|
|
| MD5 |
058130d7b0bfc624c70fe55988aaa8e8
|
|
| BLAKE2b-256 |
fba934dacf822cd1b1a5d040d2ac73225fdea36ec1164814d92b7729f5225ec2
|