# MARKET DATA & CHARTS

This section describes how PaperMarket works with Polymarket data under the hood.

Here the focus is on the data layer

* how the app reads order books and prices from Polymarket
* how it builds price history for charts
* how real time updates are streamed into the interface
* how these data sources are used to value positions and calculate PnL

The goal is to make clear which parts of the information come directly from Polymarket APIs and which parts are derived inside PaperMarket before they appear in the UI.


---

# 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://papermarket.gitbook.io/papermarket/market-data-and-charts.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.
