Open pandglobal opened 1 year ago
I have also used reduceOnly = 'true' for both take_profit and stoploss but the results is that once my order didn't get filled and the takeprofit or Stoploss is triggered it closes itself automatically without closing limit or stoploss orders.
Sorry I didn't come across such a problem. The UI and API parameters are consistent, and the problem you mentioned will not occur. You should look at the API documentation more.
Sorry I didn't come across such a problem. The UI and API parameters are consistent, and the problem you mentioned will not occur. You should look at the API documentation more.
Take a look at it again, the issue occurs with binance testnet but the live server is perfect. I was testing it alongside a binance support team who said the issue is from their own end .
You may retest retest
I have been having issues with adding takeprofit and stoploss in my binance futures api. I have been using the UI to trade futures and i can easily set Limit order and takeprofit and stoploss order at once.
Now with this API i have difficulty doing that. These are things i have tried and their results:
if limit order triggers first and then takeprofit orders gets triggered then only limit order and the takeprofit gets closed leaving the stoploss still opened.
but in the UI all orders are closed immediately takeprofit or Stoploss are closed.
Another thing is my amount for placing such orders are still counted individually, for example if it cost me $400 to place the limit order of 0.01 quantity of BTC, the order takeprofit and stoploss order i send will also be asking for a $400 each to have the orders placed, and if I only have $500 i get insufficient balance kind of error.
What am i not doing write and how can i effectively archive the takeprofit and stoploss workflow as it is in the UI of binance using this API