This is an on-going project to create a useful bot to track your personal cryptocurrency portfolios.
Exchanges supported: Coinbase
Info needed: API key
- List all transactions by coin
- Calculate profit/loss for each coin (value in USD, % change)
- Calculate profit/loss for entire portfolio
- Supports multiple accounts within Coinbase and allows manual input of external balances
- Support other exchanges (Bittrex, Kraken)
- Automate external balance import from other exchanges/Coinigy
- These steps assume python3 and pip3 are already installed
- Install the official Coinbase Python SDK
sudo pip3 install coinbase
- In Coinbase, navigate to Settings -> API Access -> New API Key to generate a new set of API credentials
- Select the accounts you wish the bot to be able to operate on
- Select all API read permissions
- Note: This bot does not require buy, sell, or transfer permissions
- Enter API information from step 3 into
config.json
- Remember to keep the API key safe as the key will no longer be visible on Coinbase
- Run Cryptobot via
python3 cryptobot.py -u user -e 300 -v
(see run configurations below)
Cryptobot takes the following command line arguments
-u, --user
: Specifies the credential set inconfig.json
to use-e, --ethereum
: Sets the current ethereum price for profit calculations (Coinbase SDK does not return this value correctly)-v, --verbose
: Extra printout on transaction details