Skip to main content

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}`;
}