Price Metrics
Definition
The following metrics are provided:
price_usd
- Price in USD, sourced from a 3rd party providerprice_usd_5m
- The same asprice_usd
, but the data points are aligned at 5 minute intervals and any gaps are filled with the last known valueprice_btc
- Price in BTCprice_usdt
- Price in USDT- Open-High-Close-Low Price in USD
Access
Measuring Unit
Amount in dollars/usdt/bitcoins
Data Type
Change Metrics
Frequency
Latency
Available Assets
- Available assets for price_usd
- Available assets for price_usd_5m
- Available assets for price_btc
- Available assets for price_usdt
- Available assets for price_eth
SanAPI
Price USD
1 2 3 4 5 6 7 8 9 10 11 12 13
{ getMetric(metric: "price_usd") { timeseriesData( slug: "ethereum" from: "2020-04-01T00:00:00Z" to: "2020-04-07T00:00:00Z" interval: "1d" ) { datetime value } } }
Average price in USD over five-minute intervals
1 2 3 4 5 6 7 8 9 10 11 12 13
{ getMetric(metric: "price_usd_5m") { timeseriesData( slug: "ethereum" from: "2020-04-01T00:00:00Z" to: "2020-04-07T00:00:00Z" interval: "5m" ) { datetime value } } }
Price BTC
1 2 3 4 5 6 7 8 9 10 11 12 13
{ getMetric(metric: "price_btc") { timeseriesData( slug: "ethereum" from: "2020-04-01T00:00:00Z" to: "2020-04-07T00:00:00Z" interval: "1d" ) { datetime value } } }
Price USDT
1 2 3 4 5 6 7 8 9 10 11 12 13
{ getMetric(metric: "price_usdt") { timeseriesData( slug: "ethereum" from: "2020-04-01T00:00:00Z" to: "2020-04-07T00:00:00Z" interval: "1d" ) { datetime value } } }
OHLC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ getMetric(metric: "price_usd") { timeseriesData( slug: "ethereum" from: "2020-04-01T00:00:00Z" to: "2020-04-07T00:00:00Z" interval: "1d" aggregation: OHLC) { datetime valueOhlc { open high close low } } } }
Full list of metrics
The full list of Price metrics is:
Open Metrics List
Open Metrics List
- price_btc
- price_eth
- price_usd
- price_usd_5m
- price_usdt
Open Change Metrics List
Open Change Metrics List
- price_btc_change_1d
- price_btc_change_30d
- price_btc_change_7d
- price_eth_change_1d
- price_eth_change_30d
- price_eth_change_7d
- price_usd_change_1d
- price_usd_change_1h
- price_usd_change_30d
- price_usd_change_7d