CommodityFuture
Description
Create and price a CommodityFuture instrument object for
one or more Commodity Future instruments using this workflow:
Use
fininstrumentto create aCommodityFutureinstrument object for one or more Commodity Future instruments.Use
ratecurveto specify a curve model for theCommodityFutureinstrument object.Use
finpricerto specify aFuturepricing method for one or moreCommodityFutureinstruments.Use
cashsettleto compute the cash settlement for theCommodityFutureinstrument andfairdeliveryto compute the fair delivery price for the underlying asset for theCommodityFutureinstrument.
For more detailed information on this workflow, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.
For more information on the available models and pricing methods for a
CommodityFuture instrument, see Choose Instruments, Models, and Pricers.
Creation
Syntax
Description
creates a CommodityFutureObj = fininstrument(InstrumentType,Maturity=maturity_value,QuotedPrice=quoted_price)CommodityFuture object for one of more
Commodity Future instruments by specifying
InstrumentType and sets the properties for
the required name-value arguments Maturity and
QuotedPrice.
You can use commodity futures for commodity futures and forwards. The main difference between forward and futures contracts:
Forward contracts are private contracts between two parties, while futures contracts are more standardized and are traded on an exchange.
Futures contracts are marked-to-market with corresponding settlement cash flows occurring on every trading day, while forward contract cash flows and deliveries do not occur until the maturity of the forward contract.
The CommodityFuture instrument supports oil, natural
gas, gold, silver, and wheat, and other commodities. For more information,
see Commodity Future.
sets optional properties
using additional name-value arguments in addition to the required arguments
in the previous syntax. For example, CommodityFutureObj = fininstrument(___,Name=Value)CommodityFutureObj =
fininstrument("CommodityFuture",Maturity=datetime(2022,9,1),QuotedPrice=68,StorageCost=1000,Income=500,PercentStorageCost=0.03,Name="commodity_future_instrument")
creates a CommodityFuture. You can specify multiple
name-value arguments.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
cashsettle | Compute cash settlement for BondFuture,
CommodityFuture, EquityIndexFuture, or
FXFuture instrument |
fairdelivery | Compute fair delivery price of underlying asset for BondFuture,
CommodityFuture, EquityIndexFuture, or
FXFuture instrument |