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.

Update TP

await client.modifyOrder({ pairId, idx, takeProfit: '72000' });

Update SL

await client.modifyOrder({ pairId, idx, stopLoss: '62000' });

Reprice a limit order

await client.modifyOrder({ pairId, idx, price: '64500' });

Response schema

interface Response {
  txHash: `0x${string}`;
  smartAccountAddress?: `0x${string}`;
}