Interface CoinGeckoNodeParameters

Source
interface CoinGeckoNodeParameters {
    baseCurrencies?: unknown[];
    baseCurrency?: string;
    coinId?: string;
    contractAddress?: string;
    contractAddresses?: string;
    date?: string;
    days?:
        | "1"
        | "7"
        | "14"
        | "30"
        | "90"
        | "180"
        | "365"
        | "max";
    limit?: number;
    operation?: | "get"
    | "getAll"
    | "candlestick"
    | "history"
    | "market"
    | "marketChart"
    | "price"
    | "ticker";
    options?: | {
        category?: "decentralized_finance_defi";
        ids?: string;
        order?: | "gecko_asc"
        | "gecko_desc"
        | "id_asc"
        | "id_desc"
        | "market_cap_asc"
        | "market_cap_desc"
        | "volume_asc"
        | "volume_desc";
        price_change_percentage?: (
            | "1h"
            | "24h"
            | "7d"
            | "14d"
            | "30d"
            | "200d"
            | "1y"
        )[];
        sparkline?: boolean;
    }
    | {
        include_24hr_change?: boolean;
        include_24hr_vol?: boolean;
        include_last_updated_at?: boolean;
        include_market_cap?: boolean;
    }
    | {
        exchange_ids?: unknown[];
        include_exchange_logo?: boolean;
        order?: | "volume_desc"
        | "trust_score_desc"
        | "trust_score_asc";
    }
    | { localization?: boolean }
    | {
        community_data?: boolean;
        developer_data?: boolean;
        localization?: boolean;
        market_data?: boolean;
        sparkline?: boolean;
        tickers?: boolean;
    }
    | {
        country_code?: string;
        from_date?: string;
        to_date?: string;
        type?: string;
        upcoming_events_only?: boolean;
    };
    platformId?: "ethereum";
    quoteCurrencies?: unknown[];
    quoteCurrency?: string;
    resource?: "event"
    | "coin";
    returnAll?: boolean;
    searchBy?: "coinId" | "contractAddress";
}

Properties§

Source§

readonly baseCurrencies?: unknown[]

The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify IDs using an expression. Default: [] Type options: {"loadOptionsMethod":"getCoins"}

Source§

readonly baseCurrency?: string

The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getCoins"}

Source§

readonly coinId?: string

Choose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getCoins"}

Source§

readonly contractAddress?: string

Token's contract address

Source§

readonly contractAddresses?: string

The contract address of tokens, comma-separated

Source§

readonly date?: string

The date of data snapshot

Source§

readonly days?: "1" | "7" | "14" | "30" | "90" | "180" | "365" | "max"

Return data for this many days in the past from now

Source§

readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":500}

Source§

readonly operation?:
    | "get"
    | "getAll"
    | "candlestick"
    | "history"
    | "market"
    | "marketChart"
    | "price"
    | "ticker"

Default: "getAll"

Source§

readonly options?:
    | {
        category?: "decentralized_finance_defi";
        ids?: string;
        order?: | "gecko_asc"
        | "gecko_desc"
        | "id_asc"
        | "id_desc"
        | "market_cap_asc"
        | "market_cap_desc"
        | "volume_asc"
        | "volume_desc";
        price_change_percentage?: (
            | "1h"
            | "24h"
            | "7d"
            | "14d"
            | "30d"
            | "200d"
            | "1y"
        )[];
        sparkline?: boolean;
    }
    | {
        include_24hr_change?: boolean;
        include_24hr_vol?: boolean;
        include_last_updated_at?: boolean;
        include_market_cap?: boolean;
    }
    | {
        exchange_ids?: unknown[];
        include_exchange_logo?: boolean;
        order?: | "volume_desc"
        | "trust_score_desc"
        | "trust_score_asc";
    }
    | { localization?: boolean }
    | {
        community_data?: boolean;
        developer_data?: boolean;
        localization?: boolean;
        market_data?: boolean;
        sparkline?: boolean;
        tickers?: boolean;
    }
    | {
        country_code?: string;
        from_date?: string;
        to_date?: string;
        type?: string;
        upcoming_events_only?: boolean;
    }

Default: {}

Source§

readonly platformId?: "ethereum"

The ID of the platform issuing tokens Default: "ethereum"

Source§

readonly quoteCurrencies?: unknown[]

The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify IDs using an expression. Default: [] Type options: {"loadOptionsMethod":"getCurrencies"}

Source§

readonly quoteCurrency?: string

The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getCurrencies"}

Source§

readonly resource?: "event" | "coin"

Default: "coin"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly searchBy?: "coinId" | "contractAddress"

Search by coin ID or contract address Default: "coinId"