Skip to navigation

funding_rate

A family of the file contract, since version 2.1.0

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.

ColumnTypeMay be emptyNotes
exchangestringNoExchange code from refdata, for example OKX
symbolstringNoCanonical symbol, for example BTC/USDT
instrumentstringNoGateway spelling, EXCHANGE@SYMBOL
exchange_symbolstringNoVenue spelling, for example BTC-USDT
instrument_idint64NoSigned 64-bit refdata identifier
timestampepoch_nsNoSequencer consensus time, epoch ns
exchange_timestampepoch_nsYesExchange time, epoch ns; empty when absent
local_timestampepoch_nsYesConnector socket-read time, epoch ns; empty when absent
global_sequenceint64NoThe 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
ratedecimalNo8 fractional digits.
funding_timestampepoch_nsNo
interval_minutesint64Yes
predicted_ratedecimalYes8 fractional digits.
next_funding_timestampepoch_nsYes
settled_ratedecimalYes8 fractional digits.
settled_timestampepoch_nsYes
min_ratedecimalYes8 fractional digits.
max_ratedecimalYes8 fractional digits.
premiumdecimalYes8 fractional digits.
interest_ratedecimalYes8 fractional digits.
methodenumNoOne of current_period, next_period, unknown.
settlement_stateenumNoOne of processing, settled, unknown.

A file’s first lines

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.