Skip to content

Instantly share code, notes, and snippets.

@florinel-chis
Created April 21, 2022 11:39
Show Gist options
  • Save florinel-chis/4421894555260514c6c05905ea18e497 to your computer and use it in GitHub Desktop.
Save florinel-chis/4421894555260514c6c05905ea18e497 to your computer and use it in GitHub Desktop.
get usdt trading pairs from binance
from binance.client import Client
def get_binance_exchange_info():
client = Client()
info = client.get_exchange_info()
for c in info['symbols']:
if c['quoteAsset']=='USDT' and c['status']=="TRADING":
print(c['symbol'])
if __name__ == "__main__":
get_binance_exchange_info()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment