API
Это содержимое пока не доступно на вашем языке.
Tegro Finance exposes read endpoints used by the app and available to integrators.
- Base URL:
https://api.tegro.finance - Format: JSON, CORS-enabled.
- OpenAPI: interactive docs at
/docs(Swagger) and/redoc. Machine-readable spec at/openapi.json.
Endpoints
Section titled “Endpoints”GET /api/v1/pools
Section titled “GET /api/v1/pools”Returns all liquidity pools with reserves, fees and token addresses.
curl https://api.tegro.finance/api/v1/poolsKey fields per pool: address, router_address, token0_address, token1_address, reserve0, reserve1, lp_fee, protocol_fee, ref_fee, lp_total_supply, apy_1d, apy_7d.
GET /api/v1/assets
Section titled “GET /api/v1/assets”Returns the token (asset) registry: symbol, display_name, decimals, contract_address, image_url.
GET /api/v1/tokens/logo/{address}
Section titled “GET /api/v1/tokens/logo/{address}”Returns the cached logo image for a token.
POST /api/v1/swap/simulate
Section titled “POST /api/v1/swap/simulate”Simulates a swap and returns the expected output and price impact.
- Fee values are returned in hundredths of a percent (e.g.
20=0.20%). - Amounts are in the token’s smallest unit; divide by
10 ** decimalsfor display.