Pool interface representing a DEX trading pool

interface Pool {
    attributes: {
        address: string;
        base_token_price_native: string;
        base_token_price_native_currency: string;
        base_token_price_usd: string;
        name: string;
        pool_created_at: string;
        price_change_percentage: { h24: string; h6: string; m5: string };
        quote_token_price_native: string;
        quote_token_price_usd: string;
        reserve_in_usd: string;
        transactions: {
            h24: { buys: number; sells: number };
            h6: { buys: number; sells: number };
            m5: { buys: number; sells: number };
        };
        volume_usd: { h24: string; h6: string; m5: string };
    };
    id: string;
    relationships: {
        base_token: { data: BaseAttributes };
        dex: { data: BaseAttributes };
        quote_token: { data: BaseAttributes };
    };
    type: string;
}

Hierarchy (View Summary)

Properties

attributes: {
    address: string;
    base_token_price_native: string;
    base_token_price_native_currency: string;
    base_token_price_usd: string;
    name: string;
    pool_created_at: string;
    price_change_percentage: { h24: string; h6: string; m5: string };
    quote_token_price_native: string;
    quote_token_price_usd: string;
    reserve_in_usd: string;
    transactions: {
        h24: { buys: number; sells: number };
        h6: { buys: number; sells: number };
        m5: { buys: number; sells: number };
    };
    volume_usd: { h24: string; h6: string; m5: string };
}

Type declaration

  • address: string

    Pool contract address

  • base_token_price_native: string

    Base token price in native currency

  • base_token_price_native_currency: string

    Native currency for base token price

  • base_token_price_usd: string

    Base token price in USD

  • name: string

    Pool name (typically BASE/QUOTE)

  • pool_created_at: string

    Pool creation timestamp

  • price_change_percentage: { h24: string; h6: string; m5: string }

    Price change percentages for different time periods

  • quote_token_price_native: string

    Quote token price in native currency

  • quote_token_price_usd: string

    Quote token price in USD

  • reserve_in_usd: string

    Total reserve value in USD

  • transactions: {
        h24: { buys: number; sells: number };
        h6: { buys: number; sells: number };
        m5: { buys: number; sells: number };
    }

    Transaction counts for different time periods

  • volume_usd: { h24: string; h6: string; m5: string }

    Volume data for different time periods

id: string

Unique identifier for the entity

relationships: {
    base_token: { data: BaseAttributes };
    dex: { data: BaseAttributes };
    quote_token: { data: BaseAttributes };
}
type: string

Type of the entity