COT Positioning
positioning.getReturn the latest CFTC Commitments of Traders managed-money positioning for an instrument code. Includes long, short, net, and week-over-week net change with source URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Instrument code from catalog.list. Example: CL, NG, GC, ZC. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | COT row id | |
| mm_net | Yes | Managed-money net contracts | |
| mm_long | Yes | Managed-money long contracts | |
| mm_short | Yes | Managed-money short contracts | |
| instrument | Yes | Instrument code | |
| source_url | Yes | CFTC source URL | |
| observed_at | Yes | ISO timestamp when observed | |
| report_date | Yes | CFTC report date | |
| mm_net_change | Yes | Week-over-week change in managed-money net | |
| commodity_name | Yes | CFTC commodity name |