Created
January 31, 2020 19:50
-
-
Save thecodingrobot/458d6a6895da8a5cf267d52840a773e9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 requests | |
| data = requests.get('https://api.binance.com/api/v1/exchangeInfo').json() | |
| data = filter(lambda x: x['isMarginTradingAllowed'], data['symbols']) | |
| symbols = map(lambda x: 'BINANCE:{}'.format(x['symbol']), data) | |
| symbols = filter(lambda x: 'BTC' in x, symbols) | |
| print(','.join(symbols)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment