Skip to main content

Poll by transaction hash

Query by order id

orderIds are on-chain keeper order ids. In the response, oid is the same id formatted as a base-10 numeric string, so it can be compared directly with the value returned by extractOrderIdFromReceipt().

Filter order history

Without filters, OstiumClient.getOrders() returns recent orders for the connected trader. Pass user: 'ALL' to remove the trader filter and fetch global orders. When builder is provided without user, the SDK does not add the connected-trader default.
orderIds and initiatedTxHashes are mutually exclusive. The other filters can be combined. start and end filter by execution time (executedAt) as Unix seconds UTC with inclusive bounds. Pending orders do not have execution time, so combining start or end with isPending: true returns no executed-time matches. For builder analytics that should include sibling close, TP, and SL orders on the same positions, use getBuilderOrders.

Parameters

Response schema