Type Alias MarketPairsLatestData

MarketPairsLatestData: {
    headers?: {
        x-cmc_pro_api_key?: string;
    };
    query?: {
        aux?: string;
        category?: string;
        convert?: string;
        convert_id?: string;
        fee_type?: string;
        id?: string;
        limit?: string;
        matched_id?: string;
        matched_symbol?: string;
        slug?: string;
        start?: string;
    };
}

Type declaration

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

      Provide your API Key here

  • Optionalquery?: {
        aux?: string;
        category?: string;
        convert?: string;
        convert_id?: string;
        fee_type?: string;
        id?: string;
        limit?: string;
        matched_id?: string;
        matched_symbol?: string;
        slug?: string;
        start?: string;
    }
    • Optionalaux?: string

      Optionally specify a comma-separated list of supplemental data fields to return. Pass num_market_pairs,category,fee_type,market_url,currency_name,currency_slug,price_quote,effective_liquidity,market_score,market_reputation to include all auxiliary fields.

    • Optionalcategory?: string

      The category of trading this market falls under. Spot markets are the most common but options include derivatives and OTC.

    • 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.

    • Optionalfee_type?: string

      The fee type the exchange enforces for this market.

    • Optionalid?: string

      A CoinMarketCap exchange ID. Example: "1"

    • Optionallimit?: string

      Optionally specify the number of results to return. Use this parameter and the "start" parameter to determine your own pagination size.

    • Optionalmatched_id?: string

      Optionally include one or more comma-delimited fiat or cryptocurrency IDs to filter market pairs by. For example ?matched_id=2781 would only return BTC markets that matched: "BTC/USD" or "USD/BTC" for the requested exchange. This parameter cannot be used when matched_symbol is used.

    • Optionalmatched_symbol?: string

      Optionally include one or more comma-delimited fiat or cryptocurrency symbols to filter market pairs by. For example ?matched_symbol=USD would only return BTC markets that matched: "BTC/USD" or "USD/BTC" for the requested exchange. This parameter cannot be used when matched_id is used.

    • Optionalslug?: string

      Alternatively pass an exchange "slug" (URL friendly all lowercase shorthand version of name with spaces replaced with hyphens). Example: "binance". One "id" or "slug" is required.

    • Optionalstart?: string

      Optionally offset the start (1-based index) of the paginated list of items to return.