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

# PredictionMarketPrice

> Price data for a prediction market. Reference for the PredictionMarketPrice type in the Codex API: every field, its type, and the operations that return it.

## GraphQL

```
type PredictionMarketPrice {
  marketId: String!
  timestamp: Int!
  outcomes: [PredictionMarketOutcomePrice!]!
}

type PredictionMarketOutcomePrice {
  outcomeId: String!
  lastTradePriceUsd: String
  lastTradePriceCT: String
  bestBidUsd: String
  bestBidCT: String
  bestAskUsd: String
  bestAskCT: String
  spreadUsd: String
  spreadCT: String
  bestBookBidUsd: String
  bestBookBidCT: String
  bestBookAskUsd: String
  bestBookAskCT: String
  bookLiquidityUsd: String
  bookLiquidityCT: String
  timestamp: Int!
}
```

### Used By

**Returned by**

* [predictionMarketPrice](https://docs.codex.io/api-reference/queries/predictionmarketprice.md): Returns price data for a prediction market at a specific timestamp or latest.


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