Price oracles
A perpetual derivatives protocol needs reference prices to value positions and collateral.
A price oracle supplies external market observations to a contract. Quote freshness and the rules for handling outages matter for calculating positions and liquidation thresholds.
How to read a market price
The mark price used for margin accounting can differ from the displayed last trade. In an oracle-priced design, contract rules determine which feed is accepted and how stale or missing observations are handled. Check the relevant deployment's contract and feed before using a displayed price to estimate liquidation.