Skip to content

datawookie/CommitmentOfTraders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commitment of Traders for R

Commitment of Traders Report

The Commitments of Traders (COT) report is issued weekly by the Commodity Futures Trading Commission (CFTC). It reflects the level of activity in the futures markets. The report, which is issued every Friday, contains the data from the previous Tuesday.

The reports are available in either long or short format from the CFTC web site. Just select the date you are interested in and you will be taken through to a page where you can select from a range of reports. You can view the reports online of download the data as a CSV or xls file.

R Interface

This code was originally documented in a blog post entitled What Can We Learn from the Commitments of Traders Report?.

At present the code has not been set up as a library. It's just a series of scripts in the scripts and demo directories. Given time and motivation I will make this into a genuine library. Your feedback will be a good motivation!

Instructions

  1. Execute 0-get-cot-data.sh from project root folder. This will create a data/ folder containing the downloaded data files.
  2. Execute each of the files in demo/ in numerical sequence. You'll need to insert a Quandl API key to grab data in the second script.

About

R code for dealing with the Commitment of Traders report.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published