Closed overstartup closed 1 year ago
Me too, api.PlaceAlgoOrder( "XRP-USDT-SWAP", OkexTradeMode.Isolated, OkexOrderSide.Buy, OkexAlgoOrderType.OCO, 200, null, false, OkexPositionSide.Long, null, OkexAlgoPriceType.Last, 0.24m, 0.25m, OkexAlgoPriceType.Last, 0.10m, 0.10m, 0.18m, 0.18m );
I want to set a stop lost and take profit by PlaceAlgoOrder, but it returns -1 error without any message.
my code:
StopProfitResult1.RequestBody:
{"instId":"SOL-USDT-SWAP","ordType":"oco","posSide":"long","side":"sell","slOrdPx":"-1","slTriggerPx":"14.3506904678614","sz":"10","tdMode":"cross","tpOrdPx":"-1","tpTriggerPx":"14.8679285964158"}