v1
latestOpenAPI 3.1.02026-07-243035381.4 MBGet Price Change by Symbol
/v4/data/rate/price-change
200 credits per API call
Get price change data for a symbol over a specified time range or interval.
This endpoint calculates the price change (both absolute and percentage) for a given symbol between two points in time. You can either specify an explicit time range using timeFrom and timeTo, or use a predefined interval that computes the change from the last fully closed candle.
Supported symbols: We support 439+ trading pairs. The symbol parameter accepts the base currency (e.g., "BTC", "ETH").
Base pair: By default, the base pair is "USDT". You can specify a different quote asset (e.g., "ETH", "USDC") using the basePair parameter.
Time range options:
- Explicit time range: Provide both timeFrom and timeTo to calculate price change over a specific period. Both parameters must be in ISO 8601 date-time format.
- Interval-based: Provide an interval parameter (e.g., "1h", "1d", "1w", "1M") to calculate price change from the last fully closed candle of that interval. Supported intervals: 1m, 5m, 15m, 30m, 45m, 1h, 2h, 4h, 1d, 1w, 1M, 1y.
Important: You must provide either (timeFrom + timeTo) OR interval, but not both.
Query parameters
Enum for trading pair symbols used in historical prices. These are the base symbols that are supported for historical price queries.
The base symbol of the trading pair (e.g., "BTC", "ETH").
Enum for trading pair symbols used in historical prices. These are the base symbols that are supported for historical price queries.
Quote asset (e.g., "USDT", "ETH"). Defaults to "USDT" when not provided.
Range start (ISO 8601 date-time). Must be provided together with <code>timeTo</code> if not using <code>interval</code>.
Range end (ISO 8601 date-time). Must be provided together with <code>timeFrom</code> if not using <code>interval</code>. Must be greater than <code>timeFrom</code>.
Interval computed from the last fully closed candle (e.g. "1h", "1d", "1w", "1M"). Must be provided if not using <code>timeFrom</code> and <code>timeTo</code>.
Response
OK - Returns price change data for the requested symbol and time range/interval.
Example response
{
"symbol": "BTC",
"basePair": "USDT",
"open": "45000.50",
"close": "46500.75",
"openTime": 1704067200000,
"closeTime": 1704153600000,
"absoluteChange": "1500.25",
"percentageChange": 3.33,
"batchId": "one"
}