Skip to main content
GET
/
pools
/
{address}
/
volume
/
history
Volume History
curl --request GET \
  --url https://api.hadron.fi/pools/{address}/volume/history
{
  "start_time": 1772646065,
  "end_time": 1773250865,
  "timeframe": "24h",
  "data": [
    {
      "timestamp": 1772582400,
      "volume": 115.41,
      "fees": 0
    },
    {
      "timestamp": 1772668800,
      "volume": 1058.62,
      "fees": 0
    },
    {
      "timestamp": 1772755200,
      "volume": 267.98,
      "fees": 0
    }
  ]
}

Path Parameters

address
string
required
The pool config PDA address.

Query Parameters

timeframe
string
default:"24h"
Bucket size. Currently only 24h is supported.
start_time
integer
Start of the time range as a Unix timestamp in seconds. Defaults to 7 days ago.
end_time
integer
End of the time range as a Unix timestamp in seconds. Defaults to current time.
cluster
string
default:"mainnet-beta"
Solana cluster — mainnet-beta or devnet.

Response

start_time
integer
Start of the requested range (Unix seconds).
end_time
integer
End of the requested range (Unix seconds).
timeframe
string
The bucket size used.
data
array
Array of volume buckets aligned to UTC days.
{
  "start_time": 1772646065,
  "end_time": 1773250865,
  "timeframe": "24h",
  "data": [
    {
      "timestamp": 1772582400,
      "volume": 115.41,
      "fees": 0
    },
    {
      "timestamp": 1772668800,
      "volume": 1058.62,
      "fees": 0
    },
    {
      "timestamp": 1772755200,
      "volume": 267.98,
      "fees": 0
    }
  ]
}
Sub-day timeframes (1h, 4h, 12h) are planned for a future release.

Errors

StatusMessage
400Only 24h timeframe is supported for volume history in v1