import { APIResource } from "../../../core/resource.mjs"; import { APIPromise } from "../../../core/api-promise.mjs"; import { RequestOptions } from "../../../internal/request-options.mjs"; export declare class Pools extends APIResource { /** * To search for pools across all networks by pool address, token name, token * symbol, or token contract address */ get(query?: PoolGetParams | null | undefined, options?: RequestOptions): APIPromise; } export interface PoolGetResponse { data: Array; /** * Included related resources, present when include parameter is specified */ included?: Array; } export declare namespace PoolGetResponse { interface Data { /** * Pool identifier */ id: string; attributes: Data.Attributes; /** * Related resources */ relationships: Data.Relationships; /** * Resource type */ type: string; } namespace Data { interface Attributes { /** * Pool contract address */ address: string; /** * Base token price in native currency */ base_token_price_native_currency: string | null; /** * Base token price in quote token */ base_token_price_quote_token: string | null; /** * Base token price in USD */ base_token_price_usd: string; /** * Fully diluted valuation in USD */ fdv_usd: string | null; /** * Market cap in USD */ market_cap_usd: string | null; /** * Pool name */ name: string; /** * Pool creation timestamp */ pool_created_at: string; /** * Price change percentage over various timeframes */ price_change_percentage: Attributes.PriceChangePercentage; /** * Quote token price in base token */ quote_token_price_base_token: string | null; /** * Quote token price in native currency */ quote_token_price_native_currency: string | null; /** * Quote token price in USD */ quote_token_price_usd: string; /** * Total reserve in USD */ reserve_in_usd: string | null; /** * Transaction counts over various timeframes */ transactions: Attributes.Transactions; /** * Volume in USD over various timeframes */ volume_usd: Attributes.VolumeUsd; } namespace Attributes { /** * Price change percentage over various timeframes */ interface PriceChangePercentage { h1?: string; h24?: string; h6?: string; m15?: string; m30?: string; m5?: string; } /** * Transaction counts over various timeframes */ interface Transactions { h1?: Transactions.H1; h24?: Transactions.H24; h6?: Transactions.H6; m15?: Transactions.M15; m30?: Transactions.M30; m5?: Transactions.M5; } namespace Transactions { interface H1 { buyers?: number; buys?: number; sellers?: number; sells?: number; } interface H24 { buyers?: number; buys?: number; sellers?: number; sells?: number; } interface H6 { buyers?: number; buys?: number; sellers?: number; sells?: number; } interface M15 { buyers?: number; buys?: number; sellers?: number; sells?: number; } interface M30 { buyers?: number; buys?: number; sellers?: number; sells?: number; } interface M5 { buyers?: number; buys?: number; sellers?: number; sells?: number; } } /** * Volume in USD over various timeframes */ interface VolumeUsd { h1?: string; h24?: string; h6?: string; m15?: string; m30?: string; m5?: string; } } /** * Related resources */ interface Relationships { base_token?: Relationships.BaseToken; dex?: Relationships.Dex; network?: Relationships.Network; quote_token?: Relationships.QuoteToken; } namespace Relationships { interface BaseToken { data?: BaseToken.Data; } namespace BaseToken { interface Data { id?: string; type?: string; } } interface Dex { data?: Dex.Data; } namespace Dex { interface Data { id?: string; type?: string; } } interface Network { data?: Network.Data; } namespace Network { interface Data { id?: string; type?: string; } } interface QuoteToken { data?: QuoteToken.Data; } namespace QuoteToken { interface Data { id?: string; type?: string; } } } } interface Included { id?: string; attributes?: Included.Attributes; type?: string; } namespace Included { interface Attributes { address?: string; coingecko_asset_platform_id?: string; coingecko_coin_id?: string | null; decimals?: number; image_url?: string | null; name?: string; symbol?: string; } } } export interface PoolGetParams { /** * Attributes to include, comma-separated if more than one. Available values: * `base_token`, `quote_token`, `dex` */ include?: string; /** * Network ID. \*refers to [`/onchain/networks`](/reference/networks-list). */ network?: string; /** * Page through results. Default value: 1 */ page?: number; /** * Search query: pool contract address, token name, token symbol, or token contract * address. */ query?: string; } export declare namespace Pools { export { type PoolGetResponse as PoolGetResponse, type PoolGetParams as PoolGetParams }; } //# sourceMappingURL=pools.d.mts.map