Last active
January 11, 2021 20:33
-
-
Save lvthillo/9f3fa70c7ba18f289f63750e0c29d09a 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 | |
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