A C++20 library for the cryptocurrency data provider, CoinGecko.
CoinGecko is a service that provides a fundamental analysis of the crypto market. As one of the largest and earliest crypto data aggregators--operating since early 2014--it currently tracks nearly 6283 tokens from more than 428 cryptocurrency exchanges. In addition to tracking price, volume and market capitalization, it tracks community growth, open-source code development, major events, and on-chain metrics. Its objective is to elevate crypto participants’ understanding of fundamental factors that drive the market.
With this C++ library--being one of many open-source API libraries--you can retrieve useful cryptocurrency and market-related information on the fly within any respective application using a simple syntax.
To use in your project(s), simply download the latest CoinGecko release and link to the appropriate set of included libraries. Keep in mind that if the release you choose--or the latest available--is a pre-release, expect untested functionality.
You can find a starting point, sample code, and all other documentation within /documentation.
CoinGecko depends on the following packages:
- cURL : C library for HTTP(S) things
- CPR : cURL wrapper to make it less monotonous*
- OpenSSL : to be able to make HTTPS requests
- All dependencies used to compile CoinGecko were implemented via vcpkg.
- *CPR version in use is v1.5.2 as vcpkg has that as its most recent indexed version.
This repository abides by the following structure:
CoinGecko/ : root src/ : source files directory include/ : header files directory documentation/ : base documentation folder coins/ : API 'coins' functions contract/ : API 'contract' functions derivatives/ : API 'derivatives' functions events/ : API 'events' functions exchange_rates/ : API 'exchange_rates' functions exchanges/ : API 'exchanges' functions finance/ : API 'finance' functions global/ : API 'global' functions indexes/ : API 'indexes' functions simple/ : API 'simple' functions status_updates/ : API 'status_updates' functions trending/ : API 'trending' functions vs/ : Visual Studio solution folder images/ : image folder for repository