/python-coingecko

Primary LanguagePythonMIT LicenseMIT

CoinGecko

Python programm which retrieves N coins sorted by market capitalization.

Installation

Script uses requests library to send HTTP requests.

$ pip install -r requirements.txt

Usage

To run main script simply type these commands:

$ cd src/
$ python3 main.py

To run tests type following commands:

$ cd test/
$ python3 test.py

Examples

Here is the example of script usage:

Enter amount of coins: 10
1: Bitcoin
2: Ethereum
3: Cardano
4: Tether
5: Binance Coin
6: XRP
7: Solana
8: Polkadot
9: USD Coin
10: Dogecoin