Aleno
  • Welcome
  • Supported Liquidity Sources
  • Asset Pricing Methodology
  • APIs
    • REST V1
      • Assets
        • Get Supported Assets
        • Add New Asset
        • Get Tickers
      • Pools
        • Get state
        • Search Pools by Symbol Pair
      • RWAs
        • Equities
        • FX and metals
        • Economic Indicators
    • Websocket V1
    • Data Reference
Powered by GitBook
On this page
  • 1. Asset
  • 2. Ticker
  • 3. PoolState

Was this helpful?

  1. APIs

Data Reference

This section documents the reusable data types returned by the Aleno Pricing API across all endpoints.


1. Asset

type Asset = {
  symbol: string;
  tokenMapping: {
    chainId: string;
    address: string;
  }[];
};
  • symbol: Canonical asset symbol (e.g., WETH, AAVE).

  • tokenMapping: Array of chain-specific token contracts.


2. Ticker

type Ticker = {
  id: string;
  aggregated: {
    price: number;
    h24UsdVolume: number;
  };
  cex: {
    price: number;
    h24UsdVolume: number;
  };
  dex: {
    price: number;
    h24UsdVolume: number;
    usdTvl: number;
  };
};
  • id: Asset pair symbol in BASE/QUOTE format.

  • aggregated: Aggregated price and volume across CEX + DEX.

  • cex: Centralized exchange pricing data.

  • dex: Decentralized exchange pricing and TVL data.


3. PoolState

type PoolState = {
  chainId: string;
  address: string;
  protocol: string;
  usdTvl: number;
  h24UsdVolume: number;
  tokens: {
    symbol: string;
    address: string;
    decimals: number;
    tvl: number;
    usdTvl: number;
    h24Volume: number;
    h24UsdVolume: number;
    priceUsd: number;
  }[];
  pairs: {
    base: string;
    quote: string;
    baseToQuotePrice: number;
    quoteToBasePrice: number;
    h24UsdVolume: number;
  }[];
};
  • chainId: Aleno chain ID (eth, solana, arb, etc.).

  • address: Pool contract address.

  • protocol: DEX protocol ID (e.g., uniswap_v2, raydium-clmm).

  • usdTvl: Total value locked in USD.

  • h24UsdVolume: 24-hour volume in USD for the pool.

  • tokens: Array of tokens in the pool, with liquidity and pricing details.

  • pairs: Derived price ratios between token pairs.

PreviousWebsocket V1

Last updated 1 month ago

Was this helpful?