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.

What it does

Returns the current pair list with market metadata and live price fields.

Example

const { pairs } = await client.getPairs();
Filter by pair:
const { pairs } = await client.getPairs({ pairIds: [0, 1] });

Use it for

  • pair pickers
  • market tables
  • leverage validation
  • pairId discovery before openTrade()

Response schema

interface Response {
  pairs: Array<{
    pairId: string;
    pairTo: string;
    pairFrom: string;
    minSz: string;
    maxBSz: string;
    maxSSz: string;
    minNtl: string;
    maxLeverage: number;
    overnightMaxLeverage: number;
    rolloverFeePerBlock: string;
    openInterest: string;
    buyOpenInterest: string;
    sellOpenInterest: string;
    maxOpenInterest: string;
    category: string;
    rolloverRate: { long: string; short: string };
    midPx: string;
    askPx: string;
    bidPx: string;
    isMarketOpen: boolean;
    isDayTradingClosed: boolean;
    secondsToToggleIsDayTradingClosed: number;
  }>;
}