Gets the historical price of an asset in BTC or USD for a given time period, as well as market cap and volume. Projects are referred to by a unique identifier (slug).

Run in explorer

{
  historyPrice(from: "2019-05-10T00:00:00.000Z", interval: "1d", slug: "bitcoin", to: "2019-06-23T00:00:00.000Z") {
    datetime
    marketcap
    priceBtc
    priceUsd
    volume
  }
}

Run in terminal

curl \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{ "query": "query{historyPrice(from:\"2019-05-10T00:00:00.000Z\",interval:\"1d\",slug:\"ethereum\",to:\"2019-06-23T00:00:00.000Z\"){datetime, marketcap, priceBtc, priceUsd, volume}}" }' \
  https://api.santiment.net/graphql
Did this answer your question?