# Trades

> Every trade of every TAIFEX futures and options contract, and every fill of CME, COMEX and NYMEX futures contracts, with 1-second bars built from them.

Source: https://getmarkethistory.com/docs/trades

`futures/tw` and `options/tw` hold every trade on the Taiwan Futures Exchange (TAIFEX), from
2026-09-30 on: every futures contract month and weekly, every calendar spread, and every option
series, day and night sessions. The trades are the `trades` feed of each dataset. Each night adds
the newest trading day; published days are kept.

`futures/us` holds every fill of the E-mini S&P 500 (`ES`) and E-mini Nasdaq-100 (`NQ`) futures on
CME, gold (`GC`) on COMEX and light sweet crude oil (`CL`) on NYMEX, every contract from 2010 to
June 2026, with the bid and ask at the trade and the aggressor's side (see
[CME futures](#cme-futures) below). Its trades are the `trades` feed of `futures/us`.

## Query

```
GET /v1/trades/futures/tw/TX-202611?start=2026-11-12T00:45:00Z&end=2026-11-12T00:46:00Z
```

One contract per request. Symbols are those of the daily bars: `TX-202611`, a weekly
`MTX-202611W1`, an option in OSI form (`TXO261118C43000000`), and a calendar spread
`TX-202611-202612` (near month, far month).

| Parameter      | Meaning                                                                                 |
| -------------- | --------------------------------------------------------------------------------------- |
| `start`, `end` | Trade-time range (RFC 3339 or a bare date). Without them, the whole contract.           |
| `limit`        | Trades per page: default and maximum by format ([Limits](https://getmarkethistory.com/docs/limits#request-limits)). |
| `cursor`       | `X-Next-Cursor` from the previous page.                                                 |
| `format`       | `jsonl` (default), `csv`, `json`, `parquet` or `arrow`.                                 |

Pages run oldest first. Follow `X-Next-Cursor` (or the `Link` header) until it is absent. Billed per
row, like L3 events.

## Columns

| Column        | Meaning                                                                                    |
| ------------- | ------------------------------------------------------------------------------------------ |
| `timestamp`   | Time of the trade, UTC, to the second (TAIFEX publishes seconds).                          |
| `seq`         | The trade's place among the contract's trades in that second, in TAIFEX's order (0, 1, …). |
| `side`        | The aggressor: `buy`, `sell`, or null when not stated (always null on TAIFEX).             |
| `price`       | Trade price. A spread's is the far leg minus the near leg, and can be negative.            |
| `size`        | Futures: contracts (a spread: spreads, one contract of each leg). Options: see below.      |
| `near_price`  | A calendar spread traded as a spread: the near leg's price. Otherwise null.                |
| `far_price`   | The far leg's price, likewise.                                                             |
| `auction`     | The trade is the opening call auction's.                                                   |
| `after_hours` | Night session. TAIFEX counts it toward the next trading day.                               |
| `one_side`    | The row is one side's fill (every options row).                                            |
| `more_fills`  | Always false on TAIFEX (see CME below).                                                    |

**Options rows are per side.** TAIFEX publishes each options trade once for the buying order and
once for each selling order it filled (or the reverse), so a trade of 10 contracts can be three rows
of 10, 5 and 5. `size` is that side's quantity exactly as published; the contracts traded are half
the sum of `size` over `one_side` rows. Futures rows are one execution each and count the contracts
once.

Block trades are not in TAIFEX's trade files, so they are not here; the daily bars' volume includes
them.

## Recorded crypto trades

`/v1/trades/crypto/spot/{ticker}?feed=binancebook` and `/v1/trades/crypto/perps/{ticker}?feed=binancebook`
serve the prints recorded with Binance's live books (see [Venue depth](https://getmarkethistory.com/docs/depth)), with the
same parameters and columns: `timestamp` is the venue's trade time, `seq` its trade id, `side` the
aggressor, `price` and `size` in the base asset, the flags false. One more column, `recv_ts`, is when
the recorder received the print, UTC, to the microsecond, on the **recorder's clock, which is not
synced to the venue's**. These rows are billed like the others.

## Bars from trades

`/v1/bars` serves `1s` bars built from the trades, and coarser intraday bars (`1m`, `1h`, ...)
resampled from those, for every contract above. Open, high, low and close are trade prices; volume
is contracts traded (options rows counted at half); `trade_count` is the executions (0 on options,
which publish no execution count); `vwap` is volume-weighted. A UTC day of these bars holds one
trading day's day session and the night session counted toward the next one, so `1d` bars keep
coming from TAIFEX's daily reports (day session only, with settlement and open interest).

## CME futures

```
GET /v1/trades/futures/us/ES-2025-12-19?start=2025-11-03T15:00:00Z&end=2025-11-03T15:01:00Z
```

One ticker per contract, the root and its last trading day: `ES-2012-03-16`, `NQ-2026-06-18`,
`GC-2011-02-24`, `CL-2020-04-21`. Every contract of each root from 2010 through the June 2026
contracts (`GC` without its October contracts; `CL` every month), its whole life, back months
included. Each row is one fill, as the exchange reports a trade's fills.

| Column                               | Meaning                                                                                      |
| ------------------------------------ | -------------------------------------------------------------------------------------------- |
| `timestamp`                          | Time of the fill, UTC, in microseconds as recorded. See the resolution note below.           |
| `seq`                                | The fill's place among the contract's fills of that timestamp (0, 1, …).                     |
| `side`                               | The aggressor: `buy` (the fill was at the ask), `sell` (at the bid), null when not recorded. |
| `price`, `size`                      | Trade price and contracts.                                                                   |
| `bid`, `ask`                         | The best bid and ask at the trade, from 2014 on; null before, or when no quote was recorded. |
| `more_fills`                         | The next fill is another fill of the same aggressing order (one order filling several).      |
| `auction`, `after_hours`, `one_side` | Always false here.                                                                           |

**Resolution.** The timestamp's true resolution is one second for 2010 to 2012, one second or one
millisecond (day by day) from 2015 to mid-2020, and one millisecond since; the digits below it
only order the fills recorded in that second or millisecond. Fills that were recorded slightly out
of time order (2011-2012, up to 7 seconds) are sorted by time.

**Bars.** `/v1/bars` serves `1s` bars built from the fills. `1m` and coarser bars come from those
fills and, before the tick history begins (December 2010; earlier for back months), from the
1-minute bars recorded then (no `vwap`, `trade_count` 0). Days are UTC days, not CME's 17:00
Chicago trading day.

## Attribution (TAIFEX)

Taiwan Futures Exchange (TAIFEX), 2026, daily futures and options trade data. The Open Data is made
available to the public under the Open Government Data License, User can make use of it when
complying to the condition and obligation of its terms. Open Government Data License:
https://data.gov.tw/license
