Update pool exchange rate
POST /v2/liquidity/pool/rate
Update the exchange rate for a specific liquidity pool.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”API Key
API Secret
Request Body required
Section titled “Request Body required ”object
UUID of the pool to update
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)
1850750000000000000000000
Admin wallet ID that will update the pool
Responses
Section titled “ Responses ”Updated pool details
object
UUID of the liquidity pool
Current pool state and pricing information
object
Token symbol for token0 (e.g., “USDC”)
Token symbol for token1 (e.g., “ETH”)
Current amount of token0 in the pool
Current amount of token1 in the pool
Exchange rate: How much token1 you get for 1 token0
Exchange rate: How much token0 you get for 1 token1
Total value of LP tokens in circulation
Total value locked in USD
Trading volume in the last 24 hours in USD
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error