Skip to main content
Use modifyOrder() with the pairId and idx from getOpenPositions().
await client.modifyOrder({ pairId, idx, takeProfit: '72000' });
await client.modifyOrder({ pairId, idx, stopLoss: '62000' });

Important behavior

  • takeProfit only updates TP
  • stopLoss only updates SL
  • do not send both together without price; use two calls