Read Methods
getSimOrderbook
Fetch a synthetic bid/ask orderbook for an Ostium pair.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch a synthetic bid/ask orderbook for an Ostium pair.
const book = await client.getSimOrderbook({
pairId: 0,
levels: 20,
});
interface Response {
pairId: string;
pairFrom: string;
pairTo: string;
levels: [
Array<{ px: string; sz: string; n: number }>,
Array<{ px: string; sz: string; n: number }>
];
time: number;
}