COT history for one market
get_historyWeekly COT history for one market, newest first: open interest and the net position of every trader group (up to 260 reports per call; page back with "until"). Without an account: Legacy, the last 26 reports (6 months). Free account: Legacy, the last 520 reports (10 years). COT Premium and Data API keys: every report family and the full history; COT Premium also adds close prices. A new COT Premium subscription that can still be withdrawn from reads the last year of what Premium adds, until the date in its confirmation e-mail. Both CFTC variants (Futures Only and Futures & Options Combined) with COT Premium and Data API keys; without an account and with a free account, each report's default variant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Oldest report date to include, YYYY-MM-DD. | |
| until | No | Newest report date to include, YYYY-MM-DD (for paging back). | |
| market | Yes | A CFTC code (e.g. 099741), a ticker (e.g. 6E, GC) or a market name. | |
| report | No | Report family: legacy (default), disaggregated, tff or supplemental. | |
| reports | No | How many weekly reports (default 12). | |
| variant | No | CFTC variant: futonly = Futures Only, combined = Futures & Options Combined. Default: the report's own (Legacy: futonly; Disaggregated, TFF: combined; Supplemental is published combined only). |