Pools

Liquidity Pool information and listing.

List all liquidity pools

get

Returns information about all available liquidity pools.

Responses
chevron-right
200

List of liquidity pools

application/json
get
/pools

Get a liquidity pool's ID

get

Returns the liquidity pool identifier for a token pair.

Path parameters
tokenAstring · enumRequired

The name/symbol of the first token (URL encoded).

Example: CCPossible values:
tokenBstring · enumRequired

The name/symbol of the second token (URL encoded).

Example: USDCxPossible values:
Responses
chevron-right
200

Liquidity pool ID

application/json
amm_idstringRequired

The AMM pool identifier

Example: TC CC/USDCx LP
get
/ammid/{tokenA}/{tokenB}

Get liquidity pool state

get

Returns detailed information about the liquidity pool state including holdings, supply, and the constant product K.

Path parameters
tokenAstring · enumRequired

The name/symbol of the first token (URL encoded).

Example: CCPossible values:
tokenBstring · enumRequired

The name/symbol of the second token (URL encoded).

Example: USDCxPossible values:
Responses
chevron-right
200

Pool state

application/json

Detailed AMM pool state.

total_lp_token_supplynumber · doubleRequired

Total supply of LP tokens.

Example: 1000
token_a_idstringRequired

Identifier for token A.

Example: CC
token_a_holdingsnumber · doubleRequired

Amount of token A in the pool.

Example: 5000
token_b_idstringRequired

Identifier for token B.

Example: USDCx
token_b_holdingsnumber · doubleRequired

Amount of token B in the pool.

Example: 10000
knumber · doubleRequired

The constant product (token_a_holdings * token_b_holdings).

Example: 50000000
get
/inspect/{tokenA}/{tokenB}

Last updated

Was this helpful?