Market volatility
Path parameters
market_idstringRequired
Query parameters
trade_history_options.trade_grouping_secstring Ā· uint64Optional
TradeGroupingSec of 0 means use the chain's default grouping.
trade_history_options.max_agestring Ā· uint64Optional
MaxAge restricts the trade records oldest age in seconds from the current block time to consider. A value of 0 means use all the records present on the chain.
trade_history_options.include_raw_historybooleanOptional
If IncludeRawHistory is true, the raw underlying data used for the computation is included in the response.
trade_history_options.include_metadatabooleanOptional
If IncludeMetadata is true, metadata on the computation is included in the response.
Responses
200
A successful response.
application/json
default
An unexpected error response.
application/json
get
GET /injective/exchange/v1beta1/market_volatility/{market_id} HTTP/1.1
Host: inj.nownodes.io
Accept: */*
{
"volatility": "text",
"history_metadata": {
"group_count": 1,
"records_sample_size": 1,
"mean": "text",
"twap": "text",
"first_timestamp": "text",
"last_timestamp": "text",
"min_price": "text",
"max_price": "text",
"median_price": "text"
},
"raw_history": [
{
"timestamp": "text",
"price": "text",
"quantity": "text"
}
]
}