> ## 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.

# getSimOrderbook

> Fetch a synthetic bid/ask orderbook for an Ostium pair.

```ts theme={null}
const book = await client.getSimOrderbook({
  pairId: 0,
  levels: 20,
});
```

Use this for depth views and execution visualizations.

## Response schema

```ts theme={null}
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;
}
```
