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 slippage = await client.getSimSlippage({
  pairIds: [0, 1],
  ntls: ['10000', '100000'],
});
Use this for pre-trade execution previews.

Response schema

type Response = Record<string, {
  long: Array<{ ntl: string; slippage: string }>;
  short: Array<{ ntl: string; slippage: string }>;
}>;