Skip to content

Instantly share code, notes, and snippets.

@racinger
Last active October 16, 2018 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save racinger/bf20bc2192dc3da8da2ba6d7f8ec8727 to your computer and use it in GitHub Desktop.
Save racinger/bf20bc2192dc3da8da2ba6d7f8ec8727 to your computer and use it in GitHub Desktop.
import ccxt
# Create instance for your exchange, here binance
binance = ccxt.binance()
# Quick test to verify data access
# Get the last 2 hours candelsticks from the pair 'BTC/USDT'
pair = 'BTC/USDT'
binance.fetch_ohlcv(pair, limit=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment