automatic borrow in margin order

It’s possible set de automatic borrow when call margin order the same way to automatic repay in order margin side sell?

Hello, parameter sideEffectType=MARGIN_BUY allows auto borrow when creating a margin order.

I try the set this parameters/value but the borrow no executed.

can i help me? the automatic borrow not executed.

Please share more details so that we can have more context to understand better:

  • Full request URL in query string (including parameters);
  • The expected respective response;
  • The received response instead;

I understood what I was doing wrong. In the amount field, I now add how much I have in USDT + the maximum loan I can get for the pair (via maxborrow API). Thanks for listening