POST
GetOrderHistory🔐 AuthGet historical orders with pagination.
Request
| Parameter | Type | Description |
|---|---|---|
addressoptional | Address | |
market_idoptional | uint32 | 0 = all markets |
limitoptional | uint32 | Max orders (default 100) |
before_timeoptional | uint64 | For pagination (nanos) |
Response
| Field | Type | Description |
|---|---|---|
orders | Order[] | |
has_more | bool |
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}