Skip to content

A simple Python based CLI script to compare various currency prices against BTC using the Forex-Python module.

Notifications You must be signed in to change notification settings

dennisgyor/BTCconverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

BTCconverter

Working on a bigger project to build my own online crypto trading system, I wrote a simple Python based CLI script to compare various currency prices against BTC using the Forex-Python module. This utility had minimal value but it will be used in the larger overarching project.

Usage

Clone the project and run the convertBTC.py script and pass the Currency Type and the currency amount.

Examples

If you want to convert 50 united Kingdom Pound to bitcoin, you would run:

python convertBTC.py -c GBP -a 50

If you want to convert 5000 USD to BTC, you run:

python convertBTC.py -c USD -a 5000

Valid input for currencies follow the ISO4217 specification (USD, JPY, GBP, etc.). You can get more detailed information here.

BTC Price calculation

Per the forex-python documentation:

Bitcoin prices calculated every minute. For more information visit CoinDesk API.

About

A simple Python based CLI script to compare various currency prices against BTC using the Forex-Python module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages