Advertisement
xmd79

template to get all trading assets symbols from binance spot usdt real time data

May 27th, 2022
723
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from binance.client import Client
  2.  
  3. api_key = 'your fkin api key'
  4. api_secret = 'your fkin secret'
  5.  
  6.  
  7. client = Client(api_key, api_secret)
  8. info = client.get_exchange_info()
  9. for c in info['symbols']:
  10.     if c['quoteAsset']=='USDT' and c['status']=="TRADING":
  11.         print(c['symbol'])
Advertisement
RAW Paste Data Copied
Advertisement