8000 GitHub - abarmat/moon: Check crypto prices from the command line
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

abarmat/moon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Moon

Moon is a Python script for querying current and historical cryptocurrency prices using the CoinGecko API.

Installation

To install the required dependencies, run:

pip install -r requirements.txt

Usage

To run the moon.py script, use the following command:

python moon.py [OPTIONS]

Options

  • -i, --crypto_ids: Cryptocurrency IDs (default: bitcoin). Examples: bitcoin ethereum litecoin.
  • -c, --currency: Currency code (default: usd). Examples: usd, eur, gbp, jpy.
  • -d, --historical: Number of days for historical data (default: 0).

Examples

Get the current price of Bitcoin in USD:

python moon.py -i bitcoin -c usd

Get the historical prices of Bitcoin for the past 7 days in USD:

python moon.py -i bitcoin -c usd -d 7

Running Tests

To run the tests in tests/test_moon.py, use the following command:

python -m unittest discover

About

Check crypto prices from the command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0