Skip to main content

Real-time trading indicators (RSI, VWAP) streamed from Bitquery GraphQL

Project description

Streaming Crypto Trading Indicators in Real-time

Real-time Token Volume,SMA,RSI and VWAP streaming from Bitquery.

Installation

pip install bitquery-trading-indicators-stream

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 (or BITQUERY_OAUTH_TOKEN)
  • Config file JSON with key oauth_token or token at 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

bitquery_trading_indicators_stream-0.1.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file bitquery_trading_indicators_stream-0.1.3.tar.gz.

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.3.tar.gz
Algorithm Hash digest
SHA256 09d6946a515f7882e4ee2739b329220aac8a7149245e29946655b6a977861934
MD5 27134d34bca1cf8bff38de040af479f6
BLAKE2b-256 268061005442dfa6d43a200a13e8c582c49cf85b2b0b64c6ad9281c12f478587

See more details on using hashes here.

File details

Details for the file bitquery_trading_indicators_stream-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b563915023b18dd6fb45b6e014226d43629ddee0c1bb60c1050e97b8e576277
MD5 46a58509ff2dab7bb410947200051749
BLAKE2b-256 423af2fc2507cda5c1404f366ca0ebd427130c18c2388f72124be9c23cc40bae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page