> For the complete documentation index, see [llms.txt](https://developer.barchart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.barchart.com/market-replay-docs/reference/query-parameter-cheat-sheet.md).

# Query parameter cheat sheet

Use this page as a fast lookup when building requests.

All endpoints authenticate with:

* `username`
* `password`

## Base URLs

Most historical endpoints use:

```
https://historical.aws.barchart.com/historical/
```

Futures options EOD uses:

```
https://marketreplay.barchart.com/historical/
```

## Common date rules

* `start` is inclusive
* `end` is exclusive for ticks, minutes, and EOD ranges
* Use `yyyymmdd[hhmm[ss]]` for date and time inputs
* Equities use Eastern Time
* Futures and most other markets use Central Time

## Tick queries

Endpoint:

```
queryticks.ashx
```

Required:

* `symbol`

Common optional:

* `start`
* `end`
* `maxrecords`
* `order=asc|desc`
* `sessionfilter`
* `type=T|Q|B`
* `sale4Condition=true`
* `participantID=true`
* `exchId=true`

Notes:

* Tick queries stay within one day
* `start` and `end` support seconds
* Timestamps in results include milliseconds

## Minute queries

Primary endpoint:

```
queryminutes.ashx
```

Related endpoints:

* `querynearbyminutes.ashx`
* `queryformtminutes.ashx`
* `queryminutedaterange.ashx`

Required:

* `symbol`

Common optional:

* `start`
* `end`
* `maxrecords`
* `interval`
* `order=asc|desc`
* `splits=true|false`
* `dividends=true|false`

Notes:

* `interval=1` means no aggregation
* `querynearbyminutes.ashx` applies to futures
* `queryformtminutes.ashx` applies to stocks and includes Form T trades

## EOD queries

Primary endpoint:

```
queryeod.ashx
```

Related endpoint:

```
queryeoddaterange.ashx
```

Required:

* `symbol`

Common optional:

* `start`
* `end`
* `maxrecords`
* `order=asc|desc`
* `data=daily|weekly|monthly|quarterly|yearly`
* `volume=contract|total|sumcontract|sumtotal|sum`
* `splits=true|false`
* `dividends=true|false`

Futures series options:

* `nearby`
* `contractroll=expiration|combined`
* `daystoexpiration`
* `backadjust=true|false`

Notes:

* `data` also supports `nearest` and `continue` variants
* Open interest is returned for futures when available

## Events queries

Endpoint:

```
queryevents.ashx
```

Required:

* `symbols`

Common optional:

* `start`
* `end`
* `splits=true`
* `dividends=true`
* `earnings=true`

Notes:

* If no event flags are set, all event types are returned
* `symbols` accepts a comma-delimited list

## Date range queries

Minute date range:

```
queryminutedaterange.ashx
```

EOD date range:

```
queryeoddaterange.ashx
```

Required:

* `symbols`

Notes:

* Returns the oldest and most recent record for each symbol
* Unknown symbols are ignored

## Futures options EOD

CSV endpoint:

```
futuresoptions
```

JSON endpoint:

```
futuresoptions/json
```

Required:

* `root`
* `date`

Notes:

* `date` uses `YYYY-MM-DD`
* Returns one root for one date
* JSON may include aggregate stats when enabled

## Common request patterns

Last `1000` records:

```
maxrecords=1000&order=desc
```

Range query:

```
start=200902030900&end=200902031200
```

Adjusted equities minutes:

```
splits=true&dividends=false
```

Raw equities EOD:

```
splits=false&dividends=false
```

## Related

* [Authentication](/market-replay-docs/reference/authentication.md)
* [Quickstart](/market-replay-docs/getting-started/quickstart.md)
* [Python example](/market-replay-docs/getting-started/python-example.md)


---

# 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://developer.barchart.com/market-replay-docs/reference/query-parameter-cheat-sheet.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.
