COT index for one market
get_cot_indexThe COT index (0–100: where the current net position sits between its lowest and highest of the lookback window) for large speculators and commercials, from the Legacy report. Without an account: the 26- and 52-week windows; a free account, COT Premium and a Data API key: every window. 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 |
|---|---|---|---|
| market | Yes | A CFTC code (e.g. 099741), a ticker (e.g. 6E, GC) or a market name. | |
| 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). | |
| lookback_weeks | No | Lookback window in weeks: 26, 52, 156 or 260. Default: 156 (3 years) — 52 without an account. |