Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.
/ crypto-prices Public archive

Crypto prices for the Ledger Command Line Interface. Powered by CoinGecko API.

License

Notifications You must be signed in to change notification settings

piero-vic/crypto-prices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

crypto-prices.py

A script that requests crypto prices from CoinGecko and writes them to a file in the format required by the Ledger CLI price history.

In order to know which crypto assets you hold, the script runs a ledger command that outputs a list of commodities. It also excludes fiat currencies (At the moment, this feature is hard-coded and only filters the ones that I use). Then it will search for matches among the top 500 cryptocurrencies (this is also hard-coded), get the prices, format the information, and write it to the output file.

Installation

Clone the repository

git clone https://github.com/piero-vic/crypto-prices

Usage

Run script

python crypto-prices.py LEDGER_FILE OUTPUT_FILE

The script will prompt you for an account

Name of the account:
Assets:Crypto

Confirmation

Prices written to OUTPUT_FILE

About

Crypto prices for the Ledger Command Line Interface. Powered by CoinGecko API.

Topics

Resources

License

Stars

Watchers

Forks

Languages