Last active
October 16, 2018 17:28
-
-
Save racinger/bf20bc2192dc3da8da2ba6d7f8ec8727 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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