POST
CancelAll🔐 Auth RequiredCancel all open orders, optionally filtered by market.
Request
| Parameter | Type |
|---|---|
addressoptional | Address |
market_idoptional | uint32 |
nonceoptional | uint64 |
signatureoptional | Signature |
pubkeyoptional | PublicKey |
Response
| Field | Type |
|---|---|
success | bool |
cancelled_count | uint32 |
cancelled_ids | Hash[] |
Example
Requesttypescript
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);
Responsejson
{// Response fields}