Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch pending, executed, or cancelled Ostium orders by hash, id, or recent trader activity.
const orders = await client.getOrders({ initiatedTxHashes: [txHash], });
const orders = await client.getOrders({ orderIds: [123] });
type Response = Array<{ pairTo: string; pairFrom: string; pairId: string; oid: string; pid: string; side: 'B' | 'S'; action: 'Open' | 'Close' | 'Liquidation' | 'StopLoss' | 'TakeProfit' | 'RemoveCollateral' | 'CloseDayTrade'; type: 'Market' | 'Limit' | 'REMOVE_COLLATERAL'; px: string; szi: string; collateralUsed: string; fees: { opening: string; rollover: string; liquidation: string; builder: string; priceImpact: string; }; closedPnl: string; hash: string; time: number; initiatedTx: string; initiatedTime: number; isPending: boolean; isCancelled: boolean; cancelReason?: string; }>;