Hello! I am trying to retrieve my balance which is free(money that is not used yet), from my Coin M Futures account using Python assisted by the CCXT module. But, whenever I try to retrieve them, I always receive the free balance of my USDT M Futures account. Could anybody please give me a source code to retrieve my Coin M Futures balance in Python using the CCXT module? Thank you!
My code:
import ccxt
binance_access = "My Access Key"
binance_secret = "My Secret Key"
binanceX = ccxt.binance(config={
'apiKey': binance_access,
'secret': binance_secret,
'enableRateLimit': True,
'options': {
'defaultType': 'future'
}
})
balance = binanceX.fetch_balance()
usdt_free_balance = balance['free']
print(usdt_free_balance)