Skip to content

Latest commit

 

History

History
 
 

indexes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Documentation resources for CoinGecko's 'indexes' API functions.


Class

namespace gecko {
  // Purpose: class interface to all CoinGecko 'indexes' functions found below
  // Refer: https://www.coingecko.com/api/documentations/v3#/indexes_(beta)
  // Status: beta, likely unstable - untested: confusing documentation
  class indexesFunctions : private web {
    ...
  };
}

Declarations

Below you can find documentation for 'indexes' functions.

indexes/listIndexes

  // Action: fetches all market indexes
  // Returns: gecko::web::response
  // Refer: https://www.coingecko.com/api/documentations/v3
  // Example(s):
  //    listIndexes()
  //    listIndexes(20, 1)
  // Notes: none
  gecko::web::response listIndexes(
    OPTIONAL unsigned short per_page = 100,
    OPTIONAL unsigned short page = 1
  );

indexes/getMarketIndexByMarketIdAndIndexId

  // Action: fetches market index by market id and index id
  // Returns: gecko::web::response
  // Refer: https://www.coingecko.com/api/documentations/v3
  // Example(s):
  //    getMarketIndexByMarketIdAndIndexId(market_id: get at /exchanges/list, id: get at /indexes/list)
  // Notes: none
  gecko::web::response getMarketIndexByMarketIdAndIndexId(
    REQUIRED std::string market_id,
    REQUIRED std::string id
  );

indexes/listIndexInfo

  // Action: fetches market indexes id and name
  // Returns: gecko::web::response
  // Refer: https://www.coingecko.com/api/documentations/v3
  // Example(s):
  //    listIndexInfo()
  // Notes: none
  gecko::web::response listIndexInfo();

indexes/getMarketIndexByMarketIdAndMarketIndexId

  // Action: fetches market index by market id and market index id
  // Returns: gecko::web::response
  // Refer: https://www.coingecko.com/api/documentations/v3
  // Example(s):
  //    getMarketIndexByMarketIdAndMarketIndexId(market_id: refer /exchanges/list, id: refer /indexes/list)
  // Notes: none
  gecko::web::response getMarketIndexByMarketIdAndMarketIndexId(
    REQUIRED std::string market_id,
    REQUIRED std::string id
  );