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
| Name | Definition | Availability |
|---|---|---|
| Oracle price | Latest price from the external oracle feed | While oracleStatus is Active |
| Impact mid | Depth-weighted VWAP midpoint of the order book | When 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
| Purpose | Price reference |
|---|---|
| Displayed mark price | Impact mid |
| Unrealized PnL | Impact mid |
| Initial and maintenance margin | Impact mid |
| Liquidation check | Oracle price |
| TP/SL trigger evaluation | Oracle price |
| Funding rate | Impact 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_priceThe funding calculation scales this premium by the market's premium multiplier. See Funding for the full calculation.