Pools
Liquidity Pool information and listing.
Returns information about all available liquidity pools.
List of liquidity pools
Bad request
GET /v1/pools HTTP/1.1
Host: api.tradecraft.fi
Accept: */*
{
"pools": [
{
"token1": "CC",
"token2": "USDCx",
"lp_token_name": "TC CC/USDCx LP",
"token1_holdings": 5000,
"token2_holdings": 10000,
"total_lp_tokens": 1000,
"lp_fee_percent": 0.3,
"operator_fee_percent": 0.1,
"yield24h": 0.052
}
]
}Returns the liquidity pool identifier for a token pair.
The name/symbol of the first token (URL encoded).
CCPossible values: The name/symbol of the second token (URL encoded).
USDCxPossible values: Liquidity pool ID
The AMM pool identifier
TC CC/USDCx LPLiquidity pool not found or invalid token names given
GET /v1/ammid/{tokenA}/{tokenB} HTTP/1.1
Host: api.tradecraft.fi
Accept: */*
{
"amm_id": "TC CC/USDCx LP"
}Returns detailed information about the liquidity pool state including holdings, supply, and the constant product K.
The name/symbol of the first token (URL encoded).
CCPossible values: The name/symbol of the second token (URL encoded).
USDCxPossible values: Pool state
Detailed AMM pool state (V4 contract format).
Total supply of LP tokens.
1000Identifier for token A.
CCAmount of token A in the pool.
5000Identifier for token B.
USDCxAmount of token B in the pool.
10000The constant product (token_a_holdings * token_b_holdings).
50000000Accumulated operator fees awaiting claim (V4).
0.5Timestamp of the last pool operation (V4).
2026-01-20T14:35:00ZPool not found or token unknown
GET /v1/inspect/{tokenA}/{tokenB} HTTP/1.1
Host: api.tradecraft.fi
Accept: */*
{
"total_lp_token_supply": 1000,
"token_a_id": "CC",
"token_a_holdings": 5000,
"token_b_id": "USDCx",
"token_b_holdings": 10000,
"k": 50000000,
"unclaimed_operator_fees": 0.5,
"updated_at": "2026-01-20T14:35:00Z"
}Returns disclosed contract blobs for the pool's AMM, AMMFees, AMMRules, LP instrument config, allocation factory, and featured app right contracts. These disclosures are required by clients to submit transactions (swaps, deposits, withdrawals) against the pool.
The name/symbol of the first token (URL encoded).
CCPossible values: The name/symbol of the second token (URL encoded).
USDCxPossible values: Pool disclosures
Disclosed contracts needed to submit transactions against this pool. Includes the AMM, fees, rules, LP instrument config, allocation factory, and optionally the featured app right contract.
Parsed V4 AMM contract data
Parsed V4 AMMFees contract data
Parsed AMMRules contract data (if present)
Contract ID of the FeaturedAppRight (if present)
Pool not found
GET /v1/disclosures/{tokenA}/{tokenB} HTTP/1.1
Host: api.tradecraft.fi
Accept: */*
{
"amm": {
"templateId": "text",
"contractId": "text",
"createdEventBlob": "Ynl0ZXM=",
"synchronizerId": "text"
},
"amm_fees": {
"templateId": "text",
"contractId": "text",
"createdEventBlob": "Ynl0ZXM=",
"synchronizerId": "text"
},
"amm_rules": {
"templateId": "text",
"contractId": "text",
"createdEventBlob": "Ynl0ZXM=",
"synchronizerId": "text"
},
"instrument_config": {
"templateId": "text",
"contractId": "text",
"createdEventBlob": "Ynl0ZXM=",
"synchronizerId": "text"
},
"allocation_factory": {
"templateId": "text",
"contractId": "text",
"createdEventBlob": "Ynl0ZXM=",
"synchronizerId": "text"
},
"featured_app_right": {
"templateId": "text",
"contractId": "text",
"createdEventBlob": "Ynl0ZXM=",
"synchronizerId": "text"
},
"amm_data": {},
"amm_fees_data": {},
"amm_rules_data": {},
"featured_app_right_id": "text"
}Last updated
Was this helpful?
