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

# Data conventions

> How the Sharpe API encodes units, time, missing values, venues and assets: fractions instead of percent, UTC timestamps, one-sided open interest, and null for anything missing.

The rules every `/v1` answer follows, so a number read from one endpoint compares with the same number from another. Each endpoint's guide describes its own fields; this page states what holds across them.

## Rates, returns and shares are fractions

A rate, a return, a share or any ratio of two amounts is a fraction: `0.054` means 5.4%. No field is served in percent, and no field name carries `pct` or `percent`. Multiply by 100 to display.

| Kind | Reads as | Example |
| - | - | - |
| Fraction | `0.054` = 5.4% | `return24h`, `btcMarketShare` |
| Fraction per funding interval | `0.0001` = 0.01% charged once per `interval_hours` | `rate` |
| Fraction per 8 hours | `rate × 8 / interval_hours` | `rate_8h` |
| Fraction per year | `0.30` = 30% a year | `apr` |
| US dollars | `61200000000` = \$61.2B | `open_interest_usd` |

A field's description in the [API reference](https://docs.sharpe.ai/api-reference.md) states its unit. Fields that were percent before 2026-11-14 are listed with their new names in the [fractions migration table](https://docs.sharpe.ai/versioning.md#fractions).

## Funding rates

* **`rate` is charged once per `interval_hours`.** Intervals differ by venue and by contract: the live book holds 1, 2, 4, 8 and 24-hour contracts. Read `interval_hours` on each row and never assume 8.
* **Compare contracts on `rate_8h` or `apr`**, which put every contract on one basis. To annualize a `rate` yourself: `rate × (24 / interval_hours) × 365`.
* **A positive rate means longs pay shorts.** A negative rate means shorts pay longs.
* **`rate_kind` says what the venue's rate measures.** On most venues it is the in-progress estimate for the next settlement; a few publish the last settled rate or a trailing realised rate instead. [Funding Rates](https://docs.sharpe.ai/funding-rates.md) names them.

## Open interest

Open interest is one-sided, in US dollars: each contract is counted once. Venues that publish both sides are read through their one-sided field or halved, so figures compare across venues. MEXC and BingX are left out of every total; [Open Interest](https://docs.sharpe.ai/open-interest.md) explains why and lists what each answer leaves out.

## Time

* **Every time is UTC.** Timestamps are ISO 8601 strings (`2026-03-27T08:00:00Z`); a date without a time (`2026-03-27`) is a UTC day.
* **A bucket is stamped at its start.** An hourly point covers the hour that begins at its timestamp, a daily point the UTC day that begins at 00:00, and a candle is stamped at its open.
* **A funding settlement is stamped when it settled** (`settled_at`), and the rate beside it was charged over the `interval_hours` before that instant.

Two endpoints still serve integer Unix time in chart series:

| Endpoint | Field | Unit |
| - | - | - |
| `/v1/stablecoins/data` | `t` in the history series | Unix seconds |
| `/v1/memecoins/data` | `coinPriceHistory[].time` | Unix milliseconds |

## Missing is `null`, never zero

A value Sharpe does not have is `null`. A `0` is a real zero. This holds for single fields (`open_interest` is `null` on a contract whose venue Sharpe reads no open interest for) and inside series (an hour with no reading is `null`, not `0`). Skip nulls in averages, minimums and chart scales instead of treating them as zero.

## Venues, contracts and assets

* **`exchange` is the venue's display name in its exact casing:** `Binance`, `OKX`, `Gate.io`, `Crypto.com`, `edgeX`. Match on these values, not on lowercase slugs.
* **`symbol` is the contract as its venue names it** (`BTCUSDT`). One coin can trade as several contracts on one venue, such as a USDT and a USDC perp, so a series is per `(exchange, symbol)`.
* **`base_coin` keeps the venue's spelling**, lot contracts included (`1000PEPE`, `KPEPE`).
* **`asset_id` identifies the underlying asset** across every spelling. It is served on `/v1/funding/rates`, `/v1/funding/settlement` and `/v1/open-interest`; group contracts by it instead of parsing symbols. It is `null` for a contract Sharpe has not resolved yet.
* **Two assets that share a ticker stay two.** Tickers are never merged because they look alike.

`/v1/funding/coins` and `/v1/futures/coins` list the coins each product covers.

## Field names

Field names are set per endpoint and their casing is not uniform: funding and open interest use `snake_case`, while arbitrage, stablecoins and several market-data endpoints use `camelCase`. One quantity can also carry a different name on two endpoints (a venue is `exchange` on most and `venue` on some). Read names from each endpoint's reference, not from another endpoint.

## Freshness

Besides `request_id`, `timestamp` and `elapsed_ms`, an answer's `meta` says how current its data is. These fields are present on the endpoints that report freshness:

| Field | Meaning |
| - | - |
| `as_of` | When the data was current: the dataset's own time, not the response time. `null` when unknown |
| `stale_after` | `as_of` plus the freshness allowance. After this instant the data is stale, whenever you read the body |
| `freshness_status` | `fresh`, `stale` or `unknown` |
| `runtime_status` | `degraded` when the read was incomplete: a source timed out, or a fallback answered |
| `served_from` | Where the rows came from: `snapshot`, `table`, `matview`, `live` or `last-good` |
| `source` | The upstream sources behind the rows |
| `warnings` | What the read could not do, in words |
| `truncated` | `true` when a row limit cut the answer short |

`/v1/meta/coverage` needs no key and lists each product's datasets with how often they refresh.


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