Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ostium.com/llms.txt

Use this file to discover all available pages before exploring further.

const orders = await client.getOpenOrders();
In read-only mode:
await client.getOpenOrders({ user: '0xTraderAddress' });
Use pairId and idx from this response with modifyOrder() and cancelOrder().

Response schema

type Response = Array<{
  pairTo: string;
  pairFrom: string;
  pairId: string;
  idx: number;
  side: 'B' | 'S';
  limitPx: string;
  szi: string;
  orderType: string;
  tpPx?: string;
  slPx?: string;
  timestamp: number;
}>;