Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ostium.com/llms.txt

Use this file to discover all available pages before exploring further.

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