powered by
Divides the notional spread price by the spread multiplier and rounds prices to the nearest tick_size.
tick_size
formatSpreadPrice(x, multiplier = 1, tick_size = 0.01)
price series of same length as x
x
xts price series
numeric multiplier (e.g. 1000 for crack spread to get from $ to $/bbl)
minimum price change of the spread
Garrett See
buildSpread, fn_SpreadBuilder
buildSpread
fn_SpreadBuilder