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 inside the price band

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.

Only resting orders inside the market's price band count. The band is the oracle price ± priceBandBps (1000 is ±10%). An order outside the band can rest on the book, but it does not move the impact mid. Every order that counts can be filled by the other side.

The depth is $2,000 of notional on each side for real estate markets on mainnet. Devnet values vary by market. If either side has less in-band resting notional than the depth, the impact mid falls back to the oracle price. Read the depth from depthThresholdLamports in GET /v1/markets. The value is in USDC base units with six decimals, so 2000000000 is $2,000.

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

For real estate markets, the displayed mark can move between daily oracle updates, but the mark does not trigger liquidations or TP/SL orders. A TP/SL trigger fires only when an oracle update crosses its threshold. The liquidation check runs in every block and values positions at the oracle price. Three things can start a liquidation: an oracle update, an hourly funding payment, and a fill away from the oracle price. The last two can happen between oracle updates.

See Liquidations for the margin inequality.

Funding rate premium

The funding rate uses the impact mid:

premium = (impact_mid - oracle_price) / oracle_price

The funding calculation scales this premium by the market's premium multiplier. See Funding for the full calculation.