R/generics.R
, R/methods.r
OI_aggregate_factor-methods.Rd
Provided with futures contract front price and aggregate open interest data from Bloomberg retrieved with pullit, construct aggregate open interest growth (OI) factor. The open interest factor relates to futures market liquidity and is popular in the literature, in particular in the context of commodity markets research (Hong and Yogo 2012) . The aggregate open interest factor (Basu and Bauthéac 2018) is concerned with liquidity over the whole futures term strucutre and sorts on open interest aggregated (summed up) over the futures term structure.
OI_aggregate_factor( price_data, aggregate_data, update_frequency = "month", return_frequency = "day", ranking_period = 1L, long_threshold = 0.5, short_threshold = 0.5, weighted = F ) # S4 method for FuturesTS,FuturesAggregate OI_aggregate_factor( price_data, aggregate_data, update_frequency = "month", return_frequency = "day", ranking_period = 1L, long_threshold = 0.5, short_threshold = 0.5, weighted = F )
price_data | an S4 object of class |
---|---|
aggregate_data | an S4 object of class |
update_frequency | a scalar |
return_frequency | a scalar |
ranking_period | a scalar |
long_threshold | a scalar |
short_threshold | a scalar |
weighted | a scalar |
An S4 object of class OIFactor
.
Basu D, Bauthéac O (2018).
“Financialization of commodities: an asset pricing perspective.”
Working paper.
Hong H, Yogo M (2012).
“What does futures market interest tell Us about the macroeconomy and asset prices?”
Journal of Financial Economics, 105(3), 473--490.
doi: 10.1016/j.jfineco.2012.04.005
, https://doi.org/10.1016/j.jfineco.2012.04.005.