/api/market/volume
Description: Calculate the total trading volume in SOL across all transactions over a specified time period on the Solana blockchain. This endpoint is ideal for market analysis, helping you track trading activity. Use the `time` parameter to define the timeframe (e.g., `?time=1h` for the last hour, `?time=24h` for the last day, or `?time=3h` for the last 3 hours). The default is 24 hours, and each request costs 10 usage points.
- • Required Parameter: `api_key` – Your unique API Key (e.g., `?api_key=YOUR_API_KEY`).
- Optional Parameters:
?time=Nh
– Sets the time period in hours (e.g., `?time=1h`, `?time=24h`). Default is 24 hours.
- Usage Cost: Each request deducts 10 usage points, regardless of the `limit` parameter.
- Response Format: Returns a JSON object with a single field, `total_volume`, representing the sum of `sol_value` for transactions in the specified period.
Example Request:
curl "http://82.29.177.109:8080/api/market/volume?api_key=YOUR_API_KEY&time=1h"
Example Response:
{
"total_volume": 123.45
}