Robust Pair Prices
Last updated
Last updated
This endpoint returns a robust price calculation for a specific pair by aggregating prices from our Trade Data. Read the methodology to learn about the calculation process.
If a null value is returned, it means there are not enough trades to calculate a direct price. In this case, use Cross Prices instead.
Parameter | Required | Description |
---|---|---|
Field | Description |
---|---|
timestamp
Timestamp at which the interval begins.
price
RWM Robust Weighted Median.
null
when no trades reported, except if extrapolate_missing_values
is true
volume
Total volume in base asset traded in the interval.
0
when no trades are reported, except if extrapolate_missing_values
is true
.
count
Total amount of trades reported during the interval.
0
when no trades are reported, except if extrapolate_missing_values
is true
.
extrapolate_missing_values
true
if the value has been extrapolated from the last computed value available, false
if not.
base_asset
Yes
quote_asset
Yes
interval
Yes
The interval parameter is suffixed with s
, m
, h
or d
to specify seconds, minutes, hours or days, respectively.
Any arbitrary value between one second and one day can be used, as long as it sums up to a maximum of 1 day. The suffixes are s
(second), m
(minute), h
(hour) and d
(day).
Default 24h
.
start_time
No
Starting time in ISO 8601 (inclusive). Automatically included in continuation tokens.
end_time
No
Ending time in ISO 8601 (exclusive) Automatically included in continuation tokens.
page_size
No
See Pagination
Page size limits differ by the interval
selected:
Less than or equal to 1m
Default: 10
, Max: 100
1m
to 1h
Default: 4
, Max: 10
More than 1h
Default: 1
, Max: 4
Automatically included in continuation tokens.
sort
No
Return the data in ascending (asc
) or descending (desc
) order. Default is desc
.
include_exchanges
No
exclude_exchanges
No
extrapolate_missing_values
No
When true
, if there are any null
(missing) prices for the calculation, they will be filled in using the last available price from the window requested. This is useful for assets that don't have a lot of trades or for data that is collected very frequently.
However, if the parameter is set to true
and no prices were available in that window, a null
value will still be returned.
The desired base asset code
.
See
The desired quote asset code
.
See
List of exchanges' code
to include in the calculation.
Default is all exchanges.
Automatically included in continuation tokens.
List of exchanges' code
to exclude in the calculation.
Automatically included in continuation tokens.