BlockPo/BlockPo-to-Tradelayer

Mark Price Calculation Component 2: Volatility Metric

Closed this issue · 1 comments

We're going to look at a series of volatility samples for the mark price of some spot pair. We'll take a contract id, which if native, will reference the historical VWAP of the pair, and return the % change between high and low prices on a period of 1000 blocks, 500 blocks, 100 blocks, 50 blocks and 10 blocks. Make this transparent with an RPC and return some JSON of these values with the labels of the intervals.

These will be used in a formula to adjust the coefficients of weightings for different kinds of spot price data.