> For the complete documentation index, see [llms.txt](https://docs.nocktrade.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nocktrade.xyz/the-terminal/chart.md).

# Chart

## Where the data comes from

Chart history is the venue's own candle feed: up to 500 bars of real OHLCV per timeframe, the same data Lighter's interface renders. On top of that history, two live streams animate the open bar only:

* the mark price stream, which moves the bar between trades, and
* the trade stream, which sets highs, lows and real volume as prints occur.

Historical bars never change; only the currently open bar breathes. Volume bars are actual traded quote volume, not a reconstruction.

## Timeframes

1m, 5m, 15m, 1h and 4h. Switching timeframes refetches history from the venue; the live streams keep whichever timeframe you are on current.

## The mark line

The dashed line labelled "mark" is the venue's live mark price — the price funding and liquidations are computed from. It updates continuously even when no trades print, which matters on quieter books.

## Interactions

* Scroll inside the chart: zoom the time axis.
* Drag inside the chart: pan.
* Scroll or drag on the price axis: stretch or compress candles vertically.
* Double-click either axis: reset that axis.
* Crosshair shows exact values as you move.

## Honest limits

The chart shows what the venue publishes. If a market is newly listed or rarely traded, its early history is genuinely thin — the chart will say "no candles on this book yet" rather than invent data.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.nocktrade.xyz/the-terminal/chart.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
