POST
CancelOrder🔐 AuthCancel a specific order.
Request
| Parameter | Type | Description |
|---|---|---|
addressoptional | Address | |
order_idoptional | Hash | |
market_idoptional | uint32 | Required: which market the order is on |
nonceoptional | uint64 | |
signatureoptional | Signature | |
pubkeyoptional | PublicKey |
Response
| Field | Type | Description |
|---|---|---|
success | bool | |
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.cancelOrder({ /* params */ });console.log(response);
Response
{// Response fields}