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