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 candles = await client.getCandles({
  pairId: 0,
  from: Date.now() - 30 * 24 * 60 * 60 * 1000,
  resolution: '1D',
});
Supported resolutions:
  • "1"
  • "5"
  • "15"
  • "60"
  • "240"
  • "1D"

Response schema

type Response = Array<{
  pairFrom: string;
  pairTo: string;
  time: number;
  open: number;
  high: number;
  low: number;
  close: number;
}>;