modifyOrder() with the pairId and idx from getOpenPositions().
Important behavior
takeProfitonly updates TPstopLossonly updates SL- do not send both together without
price; use two calls
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Update take profit and stop loss values on an Ostium position with the Builder SDK.
modifyOrder() with the pairId and idx from getOpenPositions().
await client.modifyOrder({ pairId, idx, takeProfit: '72000' });
await client.modifyOrder({ pairId, idx, stopLoss: '62000' });
takeProfit only updates TPstopLoss only updates SLprice; use two calls