API
The volmex.finance API with real-time VIV index data (every 1 second) is available below. The following query can be used to pull the volatility index timeseries data, asset, price of underlying, and Unix timestamp. Change the asset to view respective indices.
Request:
query {
timeSeries (asset: "ETH", timeBucket: "1m", lookbackPeriod: "1d") {
open
close
low
high
date
}
}
Response:
{
"data": {
"timeSeries": [
{
"open": 97.21577864134893,
"close": 97.21538741806114,
"low": 97.21538741806114,
"high": 97.21746537862592,
"date": "2022-09-20T11:17:00.000Z"
},
{
"open": 97.2153678375982,
"close": 97.21526977324483,
"low": 97.21526977324483,
"high": 97.2153678375982,
"date": "2022-09-20T11:18:00.000Z"
}
]
}
}
Available timeseries resolutions:
{
timeBucket: '1m',
lookbackPeriod: '1d',
},
{
timeBucket: '1m',
lookbackPeriod: '1m',
},
{
timeBucket: '5m',
lookbackPeriod: '3d',
},
{
timeBucket: '15m',
lookbackPeriod: '1d',
},
{
timeBucket: '15m',
lookbackPeriod: '7d',
},
{
timeBucket: '15m',
lookbackPeriod: '7d',
},
{
timeBucket: '15m',
lookbackPeriod: '4d',
},
{
timeBucket: '60m',
lookbackPeriod: '30d',
},
{
timeBucket: '240m',
lookbackPeriod: '30d',
},
{
timeBucket: '1d',
lookbackPeriod: '365d',
},
{
timeBucket: '7d',
lookbackPeriod: '700d',
},
{
timeBucket: '1D',
lookbackPeriod: '60D',
},
{
timeBucket: '1D',
lookbackPeriod: '1D',
},
{
timeBucket: '30D',
lookbackPeriod: '365D',
},
{
timeBucket: '7D',
lookbackPeriod: '150D',
}
Realtime GraphQL subscription:
The following subscription GraphQL query can be used to receive real time volatility index data a 1-second timeframe intervals
subscription {
timeSeries (asset: "ETH", timeBucket: "5m", provider: "global") {
open
close
low
high
date
}
}
Copy link