https://github.com/proprietary/cftc-cot-viewer
web visualizer for CFTC Commitment of Traders (COT) data
https://github.com/proprietary/cftc-cot-viewer
cftc-data finance quantitative-finance reactjs
Last synced: about 1 year ago
JSON representation
web visualizer for CFTC Commitment of Traders (COT) data
- Host: GitHub
- URL: https://github.com/proprietary/cftc-cot-viewer
- Owner: proprietary
- License: apache-2.0
- Created: 2023-09-05T01:29:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-06T17:23:26.000Z (over 2 years ago)
- Last Synced: 2025-05-12T21:08:22.066Z (about 1 year ago)
- Topics: cftc-data, finance, quantitative-finance, reactjs
- Language: TypeScript
- Homepage: https://cot.libhack.so
- Size: 291 KB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=================================
CTFC Commitment of Traders Viewer
=================================
A viewer for the public domain `Commitment of Traders reports from the CFTC `_. The Commitment of Traders report is a weekly summary of positioning in the futures market partitioned by various groups of traders.
All alternatives were either paid or lacking features. This is a data analysis and charting suite for the Commitment of Traders reports, completely free and open source.
The CFTC's data is free and public domain. This software just tries to make it useful.
Try it out!
-----------
👉 Live at `cot.libhack.so `_ 👈
Features
--------
- Multiple charts dissecting the data in multiple ways:
- Net positions: Long Positions minus Short Positions
- Net positioning charts divided by percentage of total open interest
- Net positioning charts z-scored with a lookback period you can tune with a slider
- All three types of reports by the CFTC: Traders in Financial Futures (for e.g., bond and stock index futures), Disaggregated (for agricultural and natural resource commodities), Legacy (all of the above but in a different format)
- Visualize changes in positioning over time. You can check how, for example, Leveraged Funds changed positioning on 10Y Treasury futures in the past 2 weeks, 26 weeks, ...
- Emphasis on net position (longs minus shorts)
- Charts with oscillators showing the degree to which one group of traders is positioned
- Normalizing lookback periods with Z-scores, Min-Max Scaling, Robust Scaling, Percentile Scaling
- Some price charts integrated into charts where available (public domain sources)
- Entirely client-side. Caches COT data to your browser storage to limit requests to the CFTC's API.
- There is no server-side software required to run, which is great for maintainability and longevity of this project.
- Free and open source software!
Alternatives
------------
- `Tradingster `_
- `Barchart `_
- `Nasdaq Data Link `_
- `Cotpricecharts.com `_
Installation (Advanced)
-----------------------
This builds as a fully static site, fully client-side.
Requires Node.js and a Node package manager such as `npm`, `yarn` or `pnpm`:
.. code-block:: bash
git clone https://github.com/proprietary/cftc-cot-viewer.git && \
cd cftc-cot-viewer && \
npm install && \
npm run build
The static site files will be generated in `out/`. You can serve that directory on a web server directly (I recommend `Caddy `_ or `nginx `_), or locally, for example, via:
.. code-block:: bash
python3 -m http.server -d out
++++++++++++
Contributing
++++++++++++
Built with:
- TypeScript
- Next.js / React
- Apache eCharts
+++++++++++++
Documentation
+++++++++++++
- `COT Primer `_
License
-------
Apache-2.0