Kaiko Fair Market Value (high liquidity pairs)
What is this endpoint for?
This endpoint returns a 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 Kaiko Fair Market Value (low liquidity pairs) instead.
Endpoint
Parameters
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
Less than or equal to
1m
Default:10
, Max:100
1m
to1h
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.
Fields
timestamp
Timestamp at which the interval begins.
price
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.
Request exampleS
Response example
Last updated
Was this helpful?