POST
CancelAll🔐 AuthCancel all open orders, optionally filtered by market.
Request
| Parameter | Type | Description |
|---|---|---|
addressoptional | Address | |
market_idoptional | uint32 | 0 = all markets |
nonceoptional | uint64 | |
signatureoptional | Signature | |
pubkeyoptional | PublicKey |
Response
| Field | Type | Description |
|---|---|---|
success | bool | |
cancelled_count | uint32 | |
cancelled_ids | Hash[] |
Example
Request
import { RealmClient } from '@realm/sdk';const client = new RealmClient('https://api.realm.com');await client.connect(wallet);const response = await client.cancelAll({ /* params */ });console.log(response);
Response
{// Response fields}