# Oracle Price & Mark Price

Pacifica’s perpetual contracts use a decentralized Oracle Price to accurately value positions and determine funding rate and is a component of Mark Price. This Oracle Price protects traders by reducing manipulation risks and ensuring market stability. Mark Price is used for liquidations, margin requirements and Unrealized PnL.

### Oracle Price Calculation

The oracle price is updated every 3 seconds and calculated as a weighted average of USDT denominated prices from major exchanges.

<table><thead><tr><th width="158">CEX</th><th>Weights</th></tr></thead><tbody><tr><td>Binance</td><td>2</td></tr><tr><td>OKX</td><td>1</td></tr><tr><td>Bybit</td><td>1</td></tr><tr><td>Hyperliquid</td><td>1</td></tr></tbody></table>

### Uses of Oracle Price on Pacifica

The Oracle Price is crucial for several Pacifica exchange operations:

* Funding Rates: Calculations rely on the Oracle Price to maintain alignment with spot markets.
* Mark Price Calculation: Oracle price serves as a component of Mark Price to prevent market manipulation and ensure the accuracy of settlements.

### Uses of Mark Price on Pacifica

The Mark Price is the median value of:\
1\. Oracle (spot) price\
2\. The median of best bid, best ask, and last trade on Pacifica\
3\. Perpetual price from major exchanges

The Mark Price is used for:

* Liquidation Calculations: By using the median value of the 3 Mark Price components, Pacifica ensures fair and accurate liquidations.
* Margin Requirements: Both initial and maintenance margins are determined using the Mark Price.
* Unrealized PnL: Open positions are marked-to-market using the Mark Price.

### Transparency & Reliability

Pacifica provides transparent and verifiable Oracle Prices available directly through our trading interface or via API endpoints, ensuring trust and accountability.

***

For further details or technical questions, refer to our [API documentation](/docs/api-documentation/api.md) or contact our support via [Contact Us](/docs/other/contact-us.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pacifica.gitbook.io/docs/trading-on-pacifica/contract-specifications/oracle-price-and-mark-price.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
