Type Alias OhlcvLatestV2Data

OhlcvLatestV2Data: {
    headers?: {
        x-cmc_pro_api_key?: string;
    };
    query?: {
        convert?: string;
        convert_id?: string;
        id?: string;
        skip_invalid?: string;
        symbol?: string;
    };
}

Type declaration

  • Optionalheaders?: {
        x-cmc_pro_api_key?: string;
    }
    • Optionalx-cmc_pro_api_key?: string

      Provide your API Key here

  • Optionalquery?: {
        convert?: string;
        convert_id?: string;
        id?: string;
        skip_invalid?: string;
        symbol?: string;
    }
    • Optionalconvert?: string

      Optionally calculate market quotes in up to 120 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found here. Each conversion is returned in its own "quote" object.

    • Optionalconvert_id?: string

      Optionally calculate market quotes by CoinMarketCap ID instead of symbol. This option is identical to convert outside of ID format. Ex: convert_id=1,2781 would replace convert=BTC,USD in your query. This parameter cannot be used when convert is used.

    • Optionalid?: string

      One or more comma-separated cryptocurrency CoinMarketCap IDs. Example: 1,2

    • Optionalskip_invalid?: string

      Pass true to relax request validation rules. When requesting records on multiple cryptocurrencies an error is returned if any invalid cryptocurrencies are requested or a cryptocurrency does not have matching records in the requested timeframe. If set to true, invalid lookups will be skipped allowing valid cryptocurrencies to still be returned.

    • Optionalsymbol?: string

      Alternatively pass one or more comma-separated cryptocurrency symbols. Example: "BTC,ETH". At least one "id" or "symbol" is required.