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

# Modify TP / SL

> Update take profit and stop loss values on an Ostium position with the Builder SDK.

Use `modifyOrder()` with the `pairId` and `idx` from `getOpenPositions()`.

```ts theme={null}
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
