Project outline
The primary objective of this project is to provide an open-source reference for quantitative functions related to commodities. It includes a commodity pricing library CommodQuant written in F# ( which can be used in any dotnet developments ), as well as some guides to some related learning materials around technology and quantitative finance. Also with its Azure DevOps pipeline project
Programming setup
-
CheatSheet for some usage reference cmds.
-
Learn FSharp basics with free online resources.
-
F# for fun and profit: a very good site to learn F#.
-
-
Get your dev environment
- Install .net core SDK and an IDE or editor
-
Use codespace from GitHub is probably the easiest
-
VS Community for ease of use and Windows environment
-
or Install VSCode for cross-platform
-
Vim + VimSharp plugin for cross-platform use minimal resources
-
- Install .net core SDK and an IDE or editor
-
Contribute to open source project
-
Here is the documentation to azure devops pipeline
-
here is the azure pipeline yaml source code
-
Understand the markets
-
CME
-
ICE
-
Brent future is a benchmark price for global oil.
-
Brent Futures Option is the option on the brent future.
-
-
LME
-
Fed
- The Fed publishes selected rates, including the fed funds rate here
Understand the Quantitative Finance
-
Notes for Intro to Derivative Pricing and source
-
Notes to Practical Guide, slides for Master of Quantitative Finance lectures.
-
Pricing and market instruments
-
Conversion Factors
Commodity prices are quoted in currency per unit. There are often a few different commonly used units and there is a need to convert between them. The convertion factors are typical based on the physical nature, but the for pricing and quoting purpose, actual market convention is used instead of actual physical conversion. For example, when converting crude oil from barrel to metric ton, 7.33 bbl/mt is used regardless of the actual grade density.
There is a CME conversion calculator here.
For gas and LNG, million british thermal unit (mmbtu) is the most common unit. Billion cubic meter (bcm) or billion cubic feet (bcf) is often used to measure global supply demand. Annual contract amount is often measured in million tons per annum (mtpa). Shipping of cargo is measured in cubic meters.
1 mt = 48.7 bcf = 1.379 bcm = 55.57 tbtu
1 bcf (Gas) = 45000 $m^3$ (LNG)
600 $m^3$ (Gas ) = 1 $m^3$ (LNG)
1 mmbtu = 10 therms
1 $m^3$ = 35.315 cf
1 mmbtu = 0.293071 mwh