In this post we will take a task of optimizing a portfolio of cryptocurrency and apply treasury risk optimization algorithms there. Let's start with basics. What is a typical task of a treasury manager (if we focus on risk optimization). Well, you've got a portfolio of positions (things you buy or sell) and currencies. You would like to protect your company from volatility and optimize financial performance. One of the algorithms successfully used there is a Stochastic Discount Factor calculation
TBD: add link, that allows us, etc.
This approach has been successfully applied to stock options trading and, presumably, can be applied to FICC trading also - pursuing the risk optimization. Now, for it to work we need prices for future contracts of different durations for number of years, per instrument. it is not easy for a common person to get such data for free (because holders of such data are rather greedy). Also, a casual reader won't related to oil future contracts. So we have created an imaginary enterprise - someone is mining ethereum and bitcoin (those are your goods) and paying electricity for mining stations in US Dollars (costs in functional currency).
This guy wants to optimize his enterprise performance by selling future contracts so that his risk exposure is fixed (e.g. 1 BTC)