Update pool exchange rate
POST /v2/liquidity/pool/rate
POST
/v2/liquidity/pool/rate
Request Body required
Section titled “Request Body required ”object
poolId
required
UUID of the pool to update
string
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
Responses
Section titled “ Responses ”string