Перейти к содержимому

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.

Returns all liquidity pools with reserves, fees and token addresses.

Terminal window
curl https://api.tegro.finance/api/v1/pools

Key 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.

Returns the token (asset) registry: symbol, display_name, decimals, contract_address, image_url.

Returns the cached logo image for a token.

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 ** decimals for display.