Skip to main content

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

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f326c47fee997875821897de3b7d583fbfc747f8a149277d217e2cd25aaf1db
MD5 da0b5a4613a1ba78d96d8195e90891b0
BLAKE2b-256 052a599bcf6baf0a3c4fd120656d5e38b292543bea957a620d70ea2f40d9e9c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bitquery_trading_indicators_stream-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a81ec3d01278110840faf900a98c1fadc23ccada7f948370430f32c185ca1463
MD5 058130d7b0bfc624c70fe55988aaa8e8
BLAKE2b-256 fba934dacf822cd1b1a5d040d2ac73225fdea36ec1164814d92b7729f5225ec2

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