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)
client.create_margin_order(
symbol=ticker,
side=SIDE_SELL,
type=ORDER_TYPE_MARKET,
quantity=0.001
)
I also read the following topic but still can’t get why I am wrong:
Thank you a lot in advance for the help
dino
2
Do you have enough funds in this isolated margin account?
1 Like
Hi dino
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’
My goal is to create Margin Sell BTC order
Hi dino, I am stupid
I didn’t take into account that I need to instruct my program that this is isolated margin trade: