Price of a token at a given timestamp.
staleness_tolerance
to specify the max lookback time for a price.
time_granularity
is the size of the aggregation window. It can be one of the following values: 15s
, 1m
, 5m
, 1h
, 1d
.
staleness_tolerance
is an optional string contain the number of seconds, minutes, hours or days. For example: 60s
, 5m
, 2h
, 2d
for example. The default values are as follow:
Time Granularity | Default Staleness Tolerance |
---|---|
15s | 60s |
1m | 5m |
5m | 10m |
1h | 2h |
1d | 2d |
input_timestamp
: The requested timestamp in the payloadprice_timestamp
: The timestamp of the latest price found for the tokenSuccessful Response
The response is of type object
.