Binance API. Duplicate values for parameter 'symbols'

Can’t get prices for multiple symbols, gives error {‘code’: -1101, ‘msg’: "Duplicate values for parameter ‘symbols’."}. I do as indicated in the documentation GitHub This is a my code import requests symbols = ["KEYUSDT","BNBUSDT","ADAUSDT"] url = ‘https://api.binance.com/api/v3/ticker/price’ params = {‘symbols’: symbols} ticker = requests.get(url, params=params).json() print(ticker) What am I doing wrong? >Solution : You have… Read More Binance API. Duplicate values for parameter 'symbols'

Find all coins available for Futures trading from binance

I want to get a list of all the coins available for futures trading for Binance. Originally I found a website and just put the coins in an array, but then I came accross this function: exchange_info = client.get_exchange_info() So one element in this array looks like this: { ‘symbol’: ‘ETHBTC’, ‘status’: ‘TRADING’, ‘baseAsset’: ‘ETH’,… Read More Find all coins available for Futures trading from binance

Python: get crypto pair prices from Binance API, loop pairs from file

I’m trying to get prices of crypto pairs that are on text file. The pairs are written only one pair by line, so every new line has one pair. my code is: from binance.client import Client api_key="…" api_secret="…" client = Client(api_key, api_secret) name = open("file.txt", "r") def price(): print(coin_name) cry_coin_price = client.get_symbol_ticker(symbol=coin_name) cur_price = crycoin_price["price"]… Read More Python: get crypto pair prices from Binance API, loop pairs from file