Historical Data

Access historical price data with configurable time ranges and intervals.

Get Historical Prices

GET/historical/price/:symbol

Returns historical VWAP prices for a symbol over a specified time range.

Query Parameters

ParameterTypeDefaultDescription
startTimestringrequiredStart time (ISO 8601)
endTimestringrequiredEnd time (ISO 8601)
intervalstring1hData interval: 1m, 5m, 15m, 1h, 4h, 1d

Request

cURL
curl -X GET "https://api.predikt.fun/api/v1/historical/price/SOL?startTime=2026-01-16T00:00:00Z&endTime=2026-01-17T00:00:00Z&interval=1h" \
-H "Authorization: Bearer pk_live_your_api_key"

Response

FieldTypeDescription
requestIdstringUnique request identifier
symbolstringThe requested symbol
intervalstringData interval used
startTimestringQuery start time (ISO 8601)
endTimestringQuery end time (ISO 8601)
dataPointsarrayArray of price points
dataPoints[].timestampstringISO 8601 timestamp
dataPoints[].pricenumberPrice at timestamp
dataPoints[].sourcestringPrice source name
costUsdstringCost of request
remainingBalanceUsdstringRemaining account balance
Response (200)
{
"requestId": "req_abc123",
"symbol": "SOL",
"interval": "1h",
"startTime": "2026-01-16T00:00:00.000Z",
"endTime": "2026-01-17T00:00:00.000Z",
"dataPoints": [
{ "timestamp": "2026-01-16T00:00:00.000Z", "price": 182.45, "source": "birdeye,coingecko" },
{ "timestamp": "2026-01-16T01:00:00.000Z", "price": 183.12, "source": "birdeye" },
{ "timestamp": "2026-01-16T02:00:00.000Z", "price": 184.56, "source": "coingecko" }
],
"costUsd": "0.05",
"remainingBalanceUsd": "45.95"
}

Available Intervals

IntervalDescriptionMax Range
1m1 minute24 hours
5m5 minutes7 days
15m15 minutes14 days
1h1 hour (default)30 days
4h4 hours90 days
1d1 day365 days

Pricing

Historical price data requests are charged at a flat rate:

$0.05 per request (max 1000 data points)

Related