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.2.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.2.tar.gz.

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7d0aeb64c3630f919905713ee0e24fdc3fbbc03a6e6f2981f789a8a826f180ac
MD5 4c74f72ec29f8d80901454b3c4198877
BLAKE2b-256 4b035decdc460bf31634b5612304ee4af727cd79137b231d7f3a5448b8872e9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28455d9fb3042f1165b72416864c226cca14c2a949bb2383d3e6efde981fde0c
MD5 5f6a829c1e04aa3d95cc3bfca08c1142
BLAKE2b-256 7ff17774a88e1d95aeed3bb9bb364ee1fcbba67a221fd8ad21b928bb1e2aec5d

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