> ## 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.

# modifyOrder

> Update take profit, stop loss, or limit-order price on Ostium with the Builder SDK.

## Update TP

```ts theme={null}
await client.modifyOrder({ pairId, idx, takeProfit: '72000' });
```

## Update SL

```ts theme={null}
await client.modifyOrder({ pairId, idx, stopLoss: '62000' });
```

## Reprice a limit order

```ts theme={null}
await client.modifyOrder({ pairId, idx, price: '64500' });
```

## Response schema

```ts theme={null}
interface Response {
  txHash: `0x${string}`;
  smartAccountAddress?: `0x${string}`;
}
```
