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.1.tar.gz (5.4 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.1.tar.gz.

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1f346232450a7d0175dfddeed29d4c621019435b1873103f5a61ee487378c78d
MD5 270e822e33dab1e80cf953e8bc59ce4e
BLAKE2b-256 6ed83a764e6d17cca8c20186812261b83bc0238759b13b0252f8bec4ee0484fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 157c01d966e96c7beb5599694b05d77abb6bef782268d6afcfcb16a976e42b4d
MD5 647b4cf46222d43cdd60c8fb6214fee9
BLAKE2b-256 fc5cf235930924d77e1e3eaa040fb32a90b96742298d8369f6b7c0edb3baa2b5

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