Skip to content

Simple script for tracking daily changes in crypto assets

Notifications You must be signed in to change notification settings

Boidkan/Crypto-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto-Tracker

Simple script for tracking daily changes in crypto assets.

This script will continuously run and will generate and updated a csv file with prices for your crypto assets over time.

How to run

This used python 3 so you might need to use the command python3 CryptoTracker.py. You will also need to create a config json file and add it to the directory. Or you can specify the config file path when running the script like so python3 CryptoTracker ~/YOUR_DIR/SOME_CONFIG_FILE.json

Config.json

If you don't specify a config file this script expect to have a Config.json file in the same directory. This is what data it expects:

  "key": "YOUR_API_KEY",
  "crypto": {
    "ETH": 4.123,
    "BTC": 20.88,
    "LINK": 13.82,
    "LTC": 213
  },
  "frequency_seconds": 246060
}

The API key is for pro-api.coinmarketcap.com. You can get one for free.

'crypto` is a dictionary with crypto abbreviation and your holding amount for that asset as the key value pairs. The script expects the crypto asset abbreviations to be capitalized.

The frequency_seconds is how often you want it to check prices and write to the csv file.

About

Simple script for tracking daily changes in crypto assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages