CommodityFuture
Description
Create and price a CommodityFuture
instrument object for
one or more Commodity Future instruments using this workflow:
Use
fininstrument
to create aCommodityFuture
instrument object for one or more Commodity Future instruments.Use
ratecurve
to specify a curve model for theCommodityFuture
instrument object.Use
finpricer
to specify aFuture
pricing method for one or moreCommodityFuture
instruments.Use
cashsettle
to compute the cash settlement for theCommodityFuture
instrument andfairdelivery
to compute the fair delivery price for the underlying asset for theCommodityFuture
instrument.
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
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 |