POST
CancelOrder🔐 Auth RequiredCancel a specific order.
Request
| Parameter | Type |
|---|---|
addressoptional | Address |
order_idoptional | Hash |
market_idoptional | uint32 |
nonceoptional | uint64 |
signatureoptional | Signature |
pubkeyoptional | PublicKey |
Response
| Field | Type |
|---|---|
success | bool |
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.cancelOrder({ /* params */ });console.log(response);
Responsejson
{// Response fields}