> ## Documentation Index
> Fetch the complete documentation index at: https://public-perps-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Modifying Orders

> Modify existing orders in-place without cancelling and re-placing

Modify existing orders in-place without cancelling and re-placing them. The registered provider plugin authorizes each modification with its SDK-managed credential; the user's wallet is not prompted.

<Info>
  The examples on this page use **Hyperliquid** (`provider: 'hyperliquid'`). Replace the `provider` value with any supported DEX from `getProviders()`.
</Info>

## modifyOrders

```typescript theme={null}
const result = await perps.modifyOrders({
  provider: 'hyperliquid',
  address: userAddress,
  modifications: [
    { id: '12345678', price: '94500.00', size: '0.2' },
  ],
});

console.log(result.results);
// [{ action: 'modifyOrder', success: true }]
```

Pass multiple `ModifyOrderInput` entries to modify several orders in one call.

## ModifyOrderInput fields

| Field          | Type     | Required | Description                            |
| -------------- | -------- | -------- | -------------------------------------- |
| `id`           | `string` | Yes      | Order ID to modify                     |
| `price`        | `string` | No       | New limit price                        |
| `size`         | `string` | No       | New order size                         |
| `triggerPrice` | `string` | No       | New trigger price (for trigger orders) |
| `limitPrice`   | `string` | No       | New limit price for trigger execution  |

**API Reference:** [POST /createAction · /executeAction](/api-reference/actions)
