Created
April 21, 2022 11:39
-
-
Save florinel-chis/4421894555260514c6c05905ea18e497 to your computer and use it in GitHub Desktop.
get usdt trading pairs from binance
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
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