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.

Fills

const fills = await client.getFills({ limit: 100 });

Time-range history

const weeklyFills = await client.getFillsByTime({
  startTime: Date.now() - 7 * 24 * 60 * 60 * 1000,
});

Order execution polling

const orders = await client.getOrders({
  initiatedTxHashes: [txHash],
});
Use getOrders() to determine whether a submission is still pending, cancelled, or executed.