POSTCancelAll🔐 Auth

Cancel all open orders, optionally filtered by market.

Request

ParameterTypeDescription
addressoptionalAddress
market_idoptionaluint320 = all markets
nonceoptionaluint64
signatureoptionalSignature
pubkeyoptionalPublicKey

Response

FieldTypeDescription
successbool
cancelled_countuint32
cancelled_idsHash[]

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
}