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

1
2
3
4
5
6
7
8
9
{
  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

1
2
3
4
5
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

Was this article helpful?