POST
AmendOrder🔐 Auth RequiredModify an existing order (price, size, etc.).
Request
| Parameter | Type |
|---|---|
addressoptional | Address |
order_idoptional | Hash |
new_priceoptional | Price |
new_quantityoptional | Quantity |
nonceoptional | uint64 |
signatureoptional | Signature |
pubkeyoptional | PublicKey |
Response
| Field | Type |
|---|---|
success | bool |
order_id | Hash |
status | OrderStatus |
message | string |
Example
Requesttypescript
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);
Responsejson
{// Response fields}