Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

PairState

Per-pair runtime state: open interest, funding accumulator, current funding rate.

Definition

class PairState(TypedDict):
    long_oi: Quantity
    short_oi: Quantity
    funding_per_unit: FundingPerUnit
    funding_rate: FundingRate

Fields

long_oiQuantity. Long-side open interest.

short_oiQuantity. Short-side open interest.

funding_per_unitFundingPerUnit. Funding accumulator (per-unit funding accrual since pair creation).

funding_rateFundingRate. Current funding rate (per Param.funding_period).

See also