> This page is for Datasets.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.immix.xyz/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server.

# funding_rate

**Family** `funding_rate` · **Since** contract `2.1.0` · **Rows per fact** one

**Key** `funding_rate/{exchange}/{yyyy-MM-dd}/{encoded_symbol}.{sha12}.csv.gz`

`funding_rate`:
`rate,funding_timestamp,interval_minutes,predicted_rate,next_funding_timestamp,settled_rate,settled_timestamp,min_rate,max_rate,premium,interest_rate,method,settlement_state`.
`rate` is the rate that settles at `funding_timestamp`, the upcoming funding boundary, epoch
ns. A positive rate means longs pay shorts. `interval_minutes` is the funding interval.
`predicted_rate` is the venue's forecast for the period that follows, and
`next_funding_timestamp` that period's boundary. `settled_rate` is the rate realized at the
most recent past boundary, `settled_timestamp`. `min_rate` and `max_rate` are the venue's
bounds on the rate; `premium` and `interest_rate` are the premium and the interest rate the
venue publishes beside it. `method` is the venue's collection mode: the rate is collected at
the current period's boundary, `current_period`, or at the next one's, `next_period`.
`settlement_state` says whether `settled_rate` is final, `settled`, or still `processing`.
Both are `unknown` when the venue does not say, and for a value this publisher does not
recognise. A venue states only some of these: every column after `funding_timestamp` except
the two enums is empty when the fact does not carry it.

## Columns

Every family begins with the same 9 columns, in this order; the family's own follow them.

| Column                   | Type       | May be empty | Notes                                                                                                                                                             |
| ------------------------ | ---------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `exchange`               | `string`   | No           | Exchange code from refdata, for example `OKX`                                                                                                                     |
| `symbol`                 | `string`   | No           | Canonical symbol, for example `BTC/USDT`                                                                                                                          |
| `instrument`             | `string`   | No           | Gateway spelling, `EXCHANGE@SYMBOL`                                                                                                                               |
| `exchange_symbol`        | `string`   | No           | Venue spelling, for example `BTC-USDT`                                                                                                                            |
| `instrument_id`          | `int64`    | No           | Signed 64-bit refdata identifier                                                                                                                                  |
| `timestamp`              | `epoch_ns` | No           | Sequencer consensus time, epoch ns                                                                                                                                |
| `exchange_timestamp`     | `epoch_ns` | Yes          | Exchange time, epoch ns; empty when absent                                                                                                                        |
| `local_timestamp`        | `epoch_ns` | Yes          | Connector socket-read time, epoch ns; empty when absent                                                                                                           |
| `global_sequence`        | `int64`    | No           | The fact's envelope ordinal in the source stream. It identifies a row where a fact writes at most one; the rows one fact writes to `incremental_book_L2` share it |
| `rate`                   | `decimal`  | No           | 8 fractional digits.                                                                                                                                              |
| `funding_timestamp`      | `epoch_ns` | No           |                                                                                                                                                                   |
| `interval_minutes`       | `int64`    | Yes          |                                                                                                                                                                   |
| `predicted_rate`         | `decimal`  | Yes          | 8 fractional digits.                                                                                                                                              |
| `next_funding_timestamp` | `epoch_ns` | Yes          |                                                                                                                                                                   |
| `settled_rate`           | `decimal`  | Yes          | 8 fractional digits.                                                                                                                                              |
| `settled_timestamp`      | `epoch_ns` | Yes          |                                                                                                                                                                   |
| `min_rate`               | `decimal`  | Yes          | 8 fractional digits.                                                                                                                                              |
| `max_rate`               | `decimal`  | Yes          | 8 fractional digits.                                                                                                                                              |
| `premium`                | `decimal`  | Yes          | 8 fractional digits.                                                                                                                                              |
| `interest_rate`          | `decimal`  | Yes          | 8 fractional digits.                                                                                                                                              |
| `method`                 | `enum`     | No           | One of `current_period`, `next_period`, `unknown`.                                                                                                                |
| `settlement_state`       | `enum`     | No           | One of `processing`, `settled`, `unknown`.                                                                                                                        |

## A file's first lines

**`funding_rate: the header, and a row's shape`**

```csv title="funding_rate: the header, and a row's shape"
exchange,symbol,instrument,exchange_symbol,instrument_id,timestamp,exchange_timestamp,local_timestamp,global_sequence,rate,funding_timestamp,interval_minutes,predicted_rate,next_funding_timestamp,settled_rate,settled_timestamp,min_rate,max_rate,premium,interest_rate,method,settlement_state
<string>,<string>,<string>,<string>,<int64>,<epoch_ns>,<epoch_ns>,<epoch_ns>,<int64>,<decimal>,<epoch_ns>,<int64>,<decimal>,<epoch_ns>,<decimal>,<epoch_ns>,<decimal>,<decimal>,<decimal>,<decimal>,<current_period|next_period|unknown>,<processing|settled|unknown>
```

The second line is a row's shape, read off the contract: `<decimal>` stands for a value of that type, an enum shows its values, and a cell that may be empty is marked in the table above.

## Emission

One row per FundingRate fact on the stream, in stream order. Nothing is merged, sampled or carried forward.