Description Usage Arguments Value References
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 \insertCitehong_what_2012factorem. The aggregate open interest factor \insertCitebasu_financiallization_2018factorem is concerned with liquidity over the whole futures term strucutre and sorts on open interest aggregated (summed up) over the futures term structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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 signature '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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.