# Historical Data

- [Get Comparison Chart Data](https://api-documentation.autoshares.dev/rest-api/trading-api/historical-data/get-chart-data.md): Fetch trading data for comparing multiple securities
- [Syntax](https://api-documentation.autoshares.dev/rest-api/trading-api/historical-data/get-chart-data/historicaltradedata_getchartcomparedata.md)
- [Get Candles and Indicators for a Security](https://api-documentation.autoshares.dev/rest-api/trading-api/historical-data/get-candles-and-indicators-for-charts.md): Fetch candles and indicators for a particular security
- [Syntax](https://api-documentation.autoshares.dev/rest-api/trading-api/historical-data/get-candles-and-indicators-for-charts/historicaltradedata_getchartbasicdata.md)
- [Get Chart Data in the Excel Format](https://api-documentation.autoshares.dev/rest-api/trading-api/historical-data/get-chart-data-in-the-excel-format.md): Retrieve trading data for charts in the Microsoft Excel format
- [Syntax](https://api-documentation.autoshares.dev/rest-api/trading-api/historical-data/get-chart-data-in-the-excel-format/historicaltradedata_exporttoexcel.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://api-documentation.autoshares.dev/rest-api/trading-api/historical-data.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.
