API Endpoints

REST API for LiquidCore pool data and quotes. Base path: /liquidcore (e.g. https://api.liqd.ag/liquidcore/...).

List pools

GET /liquidcore/pools

Returns all LiquidCore pools from the router, with token pairs and metadata.

Response: data is an array of:

Field
Description

poolAddress

Pool contract address

token0

{ address, symbol, name }

token1

{ address, symbol, name }


Get quote

GET /liquidcore/quote

Query (required):

Parameter
Description

tokenIn

Input token address

tokenOut

Output token address

amountIn

Input amount: single value or comma-separated (e.g. 100 or 100,500,1000)

Response: Quotes for the pair:

  • executionAddress – router to call

  • poolAddress

  • protocol

  • pair

  • amounts – per amount: amountIn, amountOut, minAmountOut, calldata

executionAddress is the LiquidCore Router (0x625aC1D165c776121A52ff158e76e3544B4a0b8B). Execute the swap by calling it with the returned calldata and approving the router for tokenIn.


Get pool data

GET /liquidcore/pool/:address

Path:

Parameter
Description

address

Pool contract address

Response: Pool stats:

  • Reserves

  • 24h volume (token0, token1, USD)

  • 24h fees

  • Spot price

  • APR

  • Swap counts

  • lastUpdated

Last updated