code":-3006,"msg":"Your borrow amount has exceed maximum borrow amount

I have 2.9 USDT in my margin account. I want to buy 0.001 BTC at a price of 19200. I get the code ":-3006. I can buy manually but not through the API. Tell me how to solve that problem. Thank you

request that I send

https://api.binance.com/api/v1/margin/order?symbol=BTCUSDT&side=BUY&type=LIMIT&timeInForce=GTC&quantity=0.001&sideEffectType=MARGIN_BUY&price=19200&timestamp=1666453290003&signature=

request source code

In the UI, you are testing on Isolated margin; To place the order via API , you will need to set isIsolated=True in the parameter.

Pls check the documdnt, Binance API Documentation

1 Like