Price Metrics

    Definition

    The following metrics are provided:

    • price_usd - Price in USD, sourced from a 3rd party provider
    • price_usd_5m - The same as price_usd, but the data points are aligned at 5 minute intervals and any gaps are filled with the last known value
    • price_btc - Price in BTC
    • price_usdt - Price in USDT
    • Open-High-Close-Low Price in USD

    Access

    Free Access


    Measuring Unit

    Amount in dollars/usdt/bitcoins


    Data Type

    Timeseries Data


    Change Metrics

    Change Metrics


    Frequency

    Five-Minute Intervals


    Latency

    Price Latency


    Available Assets


    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
        }
      }
    }

    Run in Explorer

    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
        }
      }
    }

    Run in Explorer

    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
        }
      }
    }

    Run in Explorer

    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
        }
      }
    }

    Run in Explorer

    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
            }
        }
      }
    }

    Run in Explorer

    Full list of metrics

    The full list of Price metrics is:

    Open Metrics List

    • price_btc
    • price_eth
    • price_usd
    • price_usd_5m
    • price_usdt

    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