Skip to navigation

open_interest

A family of the file contract, since version 2.1.0

Family open_interest · Since contract 2.1.0 · Rows per fact one

Key open_interest/{exchange}/{yyyy-MM-dd}/{encoded_symbol}.{sha12}.csv.gz

open_interest: open_interest, in the instrument’s own size unit: contracts for an instrument sized in contracts, base units otherwise. Converting it to base units or to notional takes the instrument’s contract multiplier, which the instruments file does not carry.

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
open_interestdecimalNo

A file’s first lines

open_interest: the header, and a row's shape
exchange,symbol,instrument,exchange_symbol,instrument_id,timestamp,exchange_timestamp,local_timestamp,global_sequence,open_interest
<string>,<string>,<string>,<string>,<int64>,<epoch_ns>,<epoch_ns>,<epoch_ns>,<int64>,<decimal>

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 OpenInterest fact on the stream, in stream order. Nothing is merged, sampled or carried forward.