import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Trending extends APIResource { /** * To query trending search coins, NFTs and categories on CoinGecko in the last 24 * hours */ get(query?: TrendingGetParams | null | undefined, options?: RequestOptions): APIPromise; } export interface TrendingGetResponse { categories: Array; coins: Array; nfts: Array; } export declare namespace TrendingGetResponse { interface Category { /** * Category ID */ id: number; /** * Number of coins in the category */ coins_count: string; data: Category.Data; /** * Category market cap 1 hour change */ market_cap_1h_change: number; /** * Category name */ name: string; /** * Category web slug */ slug: string; /** * Top 3 coins image URLs in the category */ top_3_coins_images: Array; } namespace Category { interface Data { /** * Category market cap */ market_cap: number; /** * Category market cap in BTC */ market_cap_btc: number; /** * Category market cap change percentage in 24 hours by currency */ market_cap_change_percentage_24h: { [key: string]: number; }; /** * Category sparkline image URL */ sparkline: string; /** * Category total volume */ total_volume: number; /** * Category total volume in BTC */ total_volume_btc: number; } } interface Coin { item: Coin.Item; } namespace Coin { interface Item { /** * Coin ID */ id: string; /** * Coin internal ID */ coin_id: number; data: Item.Data; /** * Coin large image URL */ large: string; /** * Coin market cap rank */ market_cap_rank: number; /** * Coin name */ name: string; /** * Coin price in BTC */ price_btc: number; /** * Coin trending rank (0-based) */ score: number; /** * Coin web slug */ slug: string; /** * Coin small image URL */ small: string; /** * Coin symbol */ symbol: string; /** * Coin thumb image URL */ thumb: string; } namespace Item { interface Data { content: Data.Content | null; /** * Coin market cap in USD */ market_cap: string; /** * Coin market cap in BTC */ market_cap_btc: string; /** * Coin price in USD */ price: number; /** * Coin price in BTC */ price_btc: string; /** * Coin price change percentage in 24 hours by currency */ price_change_percentage_24h: { [key: string]: number; }; /** * Coin sparkline image URL */ sparkline: string; /** * Coin total volume in USD */ total_volume: string; /** * Coin total volume in BTC */ total_volume_btc: string; } namespace Data { interface Content { description?: string; title?: string; } } } } interface NFT { /** * NFT collection ID */ id: string; data: NFT.Data; /** * NFT collection floor price 24 hours percentage change */ floor_price_24h_percentage_change: number; /** * NFT collection floor price in native currency */ floor_price_in_native_currency: number; /** * NFT collection name */ name: string; /** * NFT collection native currency symbol */ native_currency_symbol: string; /** * NFT contract internal ID */ nft_contract_id: number; /** * NFT collection symbol */ symbol: string; /** * NFT collection thumb image URL */ thumb: string; } namespace NFT { interface Data { content: Data.Content | null; /** * NFT collection floor price */ floor_price: string; /** * NFT collection floor price in USD 24 hours percentage change */ floor_price_in_usd_24h_percentage_change: string; /** * NFT collection 24 hours average sale price */ h24_average_sale_price: string; /** * NFT collection volume in 24 hours */ h24_volume: string; /** * NFT collection sparkline image URL */ sparkline: string; } namespace Data { interface Content { description?: string; title?: string; } } } } export interface TrendingGetParams { /** * Show max number of results available for the given type. Available values: * `coins`, `nfts`, `categories` e.g. `coins` or `coins,nfts,categories` */ show_max?: string; } export declare namespace Trending { export { type TrendingGetResponse as TrendingGetResponse, type TrendingGetParams as TrendingGetParams }; } //# sourceMappingURL=trending.d.mts.map