> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kuru.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Market and Account Data

> Use the data APIs alongside the contract and Relay SDK.

A trading application needs both submission and observation. The contract SDK and Relay handle actions; the data services provide market lists, books, histories, balances, and order updates.

## Choose the source

| UI or strategy input | Starting point | Live updates |
| - | - | - |
| Market selector | Data Source markets and tokens | Refresh catalog as needed |
| Chart | Data Source candles | Refresh candles; market trades for new executions |
| Order book | Gateway `l2Delta` subscription supplies its own snapshot | Continue deltas on that subscription |
| Recent trades | Data Source market trades | Gateway market trades with the response's replay cursor |
| Balances | Data Source user balances | Gateway user balances |
| Open orders | Data Source user orders | Gateway user orders |
| Execution history | Data Source user trades | Gateway user trades |

Follow [Reading Market Data](/api/market-data) and [Following Account Activity](/api/account-activity) for the sequence and recovery rules.

## SDK compatibility

See [Installation](/sdk/installation#exchange-websocket-decoder-compatibility) for decoder support and [Exchange WebSocket](/api/exchange/websocket) for binary frame layouts.

REST can be consumed with your application's HTTP client. Preserve integer strings and use `bigint` for arithmetic rather than binary floating point.

## Convert at the display boundary

Divide order prices by market `pricePrecision`, order quantities by `sizePrecision`, and token balances by the token's decimal scale. Some summary fields use x18 units; follow each endpoint's field description. These domains are not interchangeable.

For WETH/USDC in the documented deployment, price `25000000` at precision `10000` is 2,500 USDC/WETH; quantity `1000000000` at size precision `10000000000` is 0.1 WETH; USDC balance `250000000` at six decimals is 250 USDC. Read current metadata rather than hardcoding these scales.

The balances API's `total` is available plus order-reserved balance. Passive inventory must be added from position data when displaying a portfolio-wide total.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.