API of Metric ‘Transaction Volume’ | Santiment Knowledge Base

Santiment Team

Fetch total amount of tokens for a project that were transacted on the blockchain, grouped by interval. Projects are referred to by a unique identifier (slug).

This metric includes only on-chain volume, not volume in exchanges.

Grouping by interval works by summing all transaction volume records in the interval.

Run in explorer

{
  transactionVolume(from: "2019-05-12T09:45:27.283Z", interval: "1d", slug: "dragonchain", to: "2019-06-26T09:45:27.283Z") {
    datetime
    transactionVolume
  }
}

Run in terminal

curl \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{ "query": "query{transactionVolume(from:\"2019-05-12T09:45:27.283Z\",interval:\"1d\",slug:\"dragonchain\",to:\"2019-06-26T09:45:27.283Z\"){datetime,transactionVolume}}" }' \
  https://api.santiment.net/graphql