POSTGetOrderHistory🔐 Auth

Get historical orders with pagination.

Request

ParameterTypeDescription
addressoptionalAddress
market_idoptionaluint320 = all markets
limitoptionaluint32Max orders (default 100)
before_timeoptionaluint64For pagination (nanos)

Response

FieldTypeDescription
ordersOrder[]
has_morebool

Example

Request

import { RealmClient } from '@realm/sdk';
const client = new RealmClient('https://api.realm.com');
await client.connect(wallet);
const response = await client.getOrderHistory({ /* params */ });
console.log(response);

Response

{
// Response fields
}