Skip to content

Instantly share code, notes, and snippets.

@uneasyguy
Created September 27, 2018 14:29
Show Gist options
  • Save uneasyguy/1939ed4b0cc29e8b6bcac36b9545760c to your computer and use it in GitHub Desktop.
Save uneasyguy/1939ed4b0cc29e8b6bcac36b9545760c to your computer and use it in GitHub Desktop.
import requests
url = 'https://api.binance.com/api/v1/exchangeInfo'
r = requests.get(url)
data = r.json()
symbols_info = data['symbols']
market_list = list()
for x in range(0,len(symbols_info)):
symbol = symbols_info[x]['symbol']
market_list.append(symbol)
print ('{}'.format(str(market_list)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment