Margin Sell - APIError(code=-2010): Account has insufficient balance

Hello guys,

Could you please help me explain how to place a margin short order?

My code:

client.create_margin_loan(asset='BTC', amount='0.001', isIsolated='TRUE', symbol=ticker)


I also read the following topic but still can’t get why I am wrong:

Thank you a lot in advance for the help :slight_smile:

Do you have enough funds in this isolated margin account?

1 Like

Hi dino :slight_smile:
Thanks for your reply!
I borrow money so I guess yes.
Please check the pictures bellow

More pictures.
Just to clarify ticker variable as follows:
ticker = ‘BTCUSDT’ :slight_smile:

My goal is to create Margin Sell BTC order

Hi dino, I am stupid :slight_smile:
I didn’t take into account that I need to instruct my program that this is isolated margin trade: