REST API: V2 pool price history (candlesticks)
Query historical candlestick conversion rates for a SaucerSwap V2 pool between two unix-second timestamps, with optional inversion of the pair.
Authorizations
API key provisioned by the SaucerSwap team. Request one from [email protected] and send it in the x-api-key header with every request.
Headers
API key for authentication. Request a key from [email protected].
"YOUR_API_KEY"
Path Parameters
Saucerswap pool id
1
Query Parameters
From unix seconds
1697600000
To unix seconds
1697610000
Data interval
FIVEMIN, HOUR, DAY, WEEK "HOUR"
Response
Successful response
Saucerswap pool id
1
The open price of the token in tinybars (i.e. first minutely observation over the INTERVAL)
0.0482115316666979
The high price of the token over the INTERVAL, in tinybars
0.0482115316666979
The low price of the token over the INTERVAL, in tinybars
0.04819650172584323
The close price of the token over the INTERVAL, in tinybars
0.04819650172584323
The (minutely) avg price of the token over the INTERVAL, in tinybars
118.56339424557434
The sum of total volume traded of the token over the INTERVAL, in tinybars
"0"
The point in time liquidity of the token, as of timestampSeconds (the end timestamp of the INTERVAL), in tinybars
"9668737245792"
The sum of total volume traded of the token over the INTERVAL, in USD
"0"
The point in time liquidity of the token, as of timestampSeconds (the end timestamp of the INTERVAL), in USD
"4653.53"
The end unix timestamp of the INTERVAL, in seconds
1697618460
The start unix timestamp of the INTERVAL, in seconds
1697616000