Skip to content

Instantly share code, notes, and snippets.

@lvthillo
Last active January 11, 2021 20:33
Show Gist options
  • Save lvthillo/9f3fa70c7ba18f289f63750e0c29d09a to your computer and use it in GitHub Desktop.
Save lvthillo/9f3fa70c7ba18f289f63750e0c29d09a to your computer and use it in GitHub Desktop.
import ccxt
import os
# configure exchange
exchange = getattr(ccxt, 'binance')({
'apiKey': os.environ['APIKEY'],
'secret': os.environ['SECRET'],
'timeout': 10000,
'enableRateLimit': True
})
# load markets and all coin_pairs
exchange.load_markets()
coin_pairs = exchange.symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment