v1

latestOpenAPI 3.0.42026-07-26432241.7 KB
Pools

Get the latest candlestick data for V1 pool by id

get/pools/conversionRates/latest/{poolId}

Path parameters

poolIdinteger required
Example:1

SaucerSwap pool id

Query parameters

interval'FIVEMIN' | 'HOUR' | 'DAY' | 'WEEK' required
Example:HOUR

Data interval

invertedboolean

Invert the data?

Headers

x-api-keystring required

API key for authentication. The demo api key provided is globally rate limited. Do not use in production.

Response

Successful response

poolIdinteger required

Saucerswap pool id

opennumber required

The open price of the token in tinybars (i.e. first minutely observation over the INTERVAL)

highnumber required

The high price of the token over the INTERVAL, in tinybars

lownumber required

The low price of the token over the INTERVAL, in tinybars

closenumber required

The close price of the token over the INTERVAL, in tinybars

avgnumber required

The (minutely) avg price of the token over the INTERVAL, in tinybars

volumestring required

The sum of total volume traded of the token over the INTERVAL, in tinybars

liquiditystring required

The point in time liquidity of the token, as of timestampSeconds (the end timestamp of the INTERVAL), in tinybars

volumeUsdstring required

The sum of total volume traded of the token over the INTERVAL, in USD

liquidityUsdstring required

The point in time liquidity of the token, as of timestampSeconds (the end timestamp of the INTERVAL), in USD

timestampSecondsinteger required

The end unix timestamp of the INTERVAL, in seconds

startTimestampSecondsinteger required

The start unix timestamp of the INTERVAL, in seconds

Example response

{
  "poolId": 1,
  "open": 0.0482115316666979,
  "high": 0.0482115316666979,
  "low": 0.04819650172584323,
  "close": 0.04819650172584323,
  "avg": 118.56339424557434,
  "volume": "0",
  "liquidity": "9668737245792",
  "volumeUsd": "0",
  "liquidityUsd": "4653.53",
  "timestampSeconds": 1697618460,
  "startTimestampSeconds": 1697616000
}