In this picture, how can I detect the max amount to enter the position via python future binance code, if there is no code, how to calculate, it’s needed for the quantity here:
"
result = request_client.post_order(symbol=“ETHUSDT”, side=OrderSide.BUY, ordertype=OrderType.LIMIT, price=1500, quantity=0.5, timeInForce=TimeInForce.GTC)
"
We are in USD-M future, so there is leverage, mostly it’s:
USDT / Price * Leverage, but this will not give me the exact “MAX” that I see on trading platform for long position and short position, while MAX differ between long and short as you see in the picture. I hope that there is a code that will give me that directly.