Documentation Index
Fetch the complete documentation index at: https://docs.qfex.com/llms.txt
Use this file to discover all available pages before exploring further.
Market Data Price
The price of the underlying asset, derived from the relevant external oracle source.
Denoted as Ptmarket.
Index Price
When the current market price stays within the allowed band, the index price is:
Ptindex=Ptmarket
when
Ptmarket∈[0.5Pt−1market,1.5Pt−1market]
Otherwise, the index price is held at the prior market price:
Ptindex=Pt−1market
That is, the Index Price equals the current Market Data Price if it lies within ±50% of the previous value, otherwise the prior price is used.
Oracle Price
Defined in Contract Specifications:
Mark Price
The Mark Price Ptmark is computed as:
Ptmark=Median(Ptoracle,Ptoracle+EMA150s(Mt−Ptoracle),Median(Bt,At,Tt))
where Mt is the mid price, Bt the best bid, At the best ask, and Tt the last traded price.
Unrealized PnL
PnLunrealized=i∑qi⋅(Ptmark−Pi,entry)
for all open positions i with quantity qi.
Realized PnL
PnLrealized=j∑(Pj,exit−Pj,entry)⋅qj
for all closed positions j.
Cash
Cash=D−W+Fnet+RR−Fees
where D = deposits, W = withdrawals, Fnet = net funding, RR = referral rewards.
Margin
Margin=Position Margin+Order Margin
Account Equity
Equity=Cash+PnLrealized+PnLunrealized
Available Balance
Available Balance=Account Equity−Margin
Withdrawable Balance
Withdrawable Balance=Cash+PnLrealized+min(PnLunrealized,0)−1.05×Margin
Position Value
V=Ptmark×Q
where Q is the position quantity in the symbol.
Funding Rate
The rate rtfunding paid between long and short positions when the futures price deviates from the underlying index.
Funding Fee
Funding Fee=Ptmark×Q×rtfunding
Liquidation Spread
The maximum spread Δliq from Ptmark at which an orderly Immediate-or-Cancel (IOC) liquidation order is executed.
DLP Fee
A fee fDLP paid to Designated Liquidity Providers (DLPs) who absorb liquidated positions.
Mark-to-Market (MTM)
All portfolios are re-evaluated every 200 ms using the Mark Price Ptmark to:
- Recalculate Unrealized PnL,
- Detect margin requirement breaches,
- Trigger liquidation procedures.