0

With Binance-API (https://binance-docs.github.io/apidocs/futures/en/#exchange-information ) one can get this information

symbols > filters > { "filterType": "LOT_SIZE", "maxQty": "10000000", "minQty": "1", "stepSize": "1" }, { "filterType": "MARKET_LOT_SIZE", "maxQty": "590119", "minQty": "1", "stepSize": "1" }`

this way (Python)

client = Client(api_key, api_secret, tld="com", testnet=TESTNET) 
futures_info_dict = client.futures_exchange_info()
result = {} 
for symbol_info in futures_info_dict\['symbols'\]:
    symbol = symbol_info\['symbol'\]
    filter_dict = symbol_info\['filters'\]\[2\]
    result\[symbol\] = {
        'minQty': float(filter_dict\['minQty'\]),
        'maxQty': float(filter_dict\['maxQty'\]),
        'precision': symbol_info\['quantityPrecision'\] 
    }\`

Can 'minQty', 'maxQty' be extracted in a straightforward way with CoinGecko-API? If true, how? If not, do the above items have equivalents in CoinGecko-API ? Thank you.

All I could do with CoinGecko-API was

    cg = CoinGeckoAPI()
    bitcoin_price = cg.get_price(ids='bitcoin', vs_currencies='usd')
    futures_info_dict = cg.get_exchanges_by_id('binance')

, getting a totally different output from 'exchange-information' ...

0 Answers0