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

Mark price

Parcl V4 uses different price references for displayed values, funding, liquidations, and TP/SL triggers. An integration must use the reference assigned to each action.

Price references

NameDefinitionAvailability
Oracle priceLatest price from the external oracle feedWhile oracleStatus is Active
Impact midDepth-weighted VWAP midpoint of the order bookWhen the book has sufficient depth

Impact mid

The impact mid uses a volume-weighted average price (VWAP) from each side of the order book. It accumulates notional up to the market's configured depth and takes the midpoint of both results.

If either side has insufficient depth, the impact mid falls back to the oracle price. Read the current depth configuration from GET /v1/markets.

Price use

PurposePrice reference
Displayed mark priceImpact mid
Unrealized PnLImpact mid
Initial and maintenance marginImpact mid
Liquidation checkOracle price
TP/SL trigger evaluationOracle price
Funding rateImpact mid

The displayed mark can move between daily oracle updates. Liquidations and TP/SL triggers run only when the oracle update crosses their threshold.

See Liquidations for the margin inequality.

Funding rate premium

The funding rate uses the impact mid:

premium = (impact_mid - oracle_price) / oracle_price

See Funding for the full calculation.