POST
AmendOrder🔐 AuthModify an existing order (price, size, etc.).
Request
| Parameter | Type | Description |
|---|---|---|
addressoptional | Address | |
order_idoptional | Hash | Order to amend |
new_priceoptional | Price | New price (0 = keep current) |
new_quantityoptional | Quantity | New quantity (0 = keep current) |
nonceoptional | uint64 | |
signatureoptional | Signature | |
pubkeyoptional | PublicKey |
Response
| Field | Type | Description |
|---|---|---|
success | bool | |
order_id | Hash | Same order ID (or new if exchange regenerates) |
status | OrderStatus | |
message | string |
Example
Request
import { RealmClient } from '@realm/sdk';const client = new RealmClient('https://api.realm.com');await client.connect(wallet);const response = await client.amendOrder({ /* params */ });console.log(response);
Response
{// Response fields}