Skip to content

Update pool exchange rate

POST
/v2/liquidity/pool/rate

Update the exchange rate for a specific liquidity pool.

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
poolId
required

UUID of the pool to update

string format: uuid
rate
required

The exchange rate as: how many units of token1 you get for 1 unit of token0. For example, in an ETH/USDC pool where:

  • token0 is ETH (18 decimals)
  • token1 is USDC (6 decimals) Setting rate=“1850750000000000000000000” means:
  • 1 ETH will get you 1,850.75 USDC
  • Conversely, you need 1,850.75 USDC to get 1 ETH Note: Rate must account for both tokens’ decimal places (token1_decimals * 10^token0_decimals)
string
1850750000000000000000000
walletId
required

Admin wallet ID that will update the pool

string format: uuid

Updated pool details

object
poolId
required

UUID of the liquidity pool

string
poolInfo
required

Current pool state and pricing information

object
token0Symbol
required

Token symbol for token0 (e.g., “USDC”)

string
token1Symbol
required

Token symbol for token1 (e.g., “ETH”)

string
token0Reserve
required

Current amount of token0 in the pool

string
token1Reserve
required

Current amount of token1 in the pool

string
token0Price
required

Exchange rate: How much token1 you get for 1 token0

string
token1Price
required

Exchange rate: How much token0 you get for 1 token1

string
totalLiquidity
required

Total value of LP tokens in circulation

string
tvlUsd
required

Total value locked in USD

string
volume24h
required

Trading volume in the last 24 hours in USD

string

Bad Request

Unauthorized

Forbidden

Not Found

Internal Server Error