> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decibel.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Where Prices Come From

> The prices Decibel uses for perps and spot, and what each one is for

A perp market has three prices: the order book price, the oracle price and the mark price. A spot market only has the order book price.

## Order Book Price

The price at which traders are buying and selling on Decibel right now. Your trades fill at order book prices. Positions closed when a market is delisted settle at the mark price instead.

## Oracle Price

The price of the asset outside Decibel. It comes from external price feeds, mostly Chainlink. Some markets combine it with, or only use, an internal price built from other exchanges. The perp market header shows it as **Oracle**.

The oracle price is used for funding. See [Funding Rates](https://docs.decibel.trade/for-traders/funding-rates.md).

## Mark Price

The price Decibel uses to value your positions. It combines the oracle price, the order book price and a smoothed difference between them. The perp market header shows it as **Mark Price**. For the formula, see [Concepts](https://docs.decibel.trade/quickstart/concepts.md#perpetuals-and-risk-controls).

The mark price is used for:

* **Unrealized PnL** on your positions.
* **Margin** and your withdrawable balance. See [Margin](https://docs.decibel.trade/for-traders/margin.md).
* **Liquidations.** See [Liquidations](https://docs.decibel.trade/for-traders/liquidations.md).
* **Take-profit and stop-loss** triggers. See [Order Types](https://docs.decibel.trade/for-traders/order-types.md#take-profit-and-stop-loss).

## Spot Prices

Spot markets only use the order book price. There is no oracle price, mark price or funding on spot.

## Per-Market Details

Tick size, minimum order size and other per-market settings are listed in [Market Parameters](https://docs.decibel.trade/developer-hub/on-chain/overview/market-parameters.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.