Skip to content
/ btc Public

cli tool for quickly checking BTC rates in any currency

License

Notifications You must be signed in to change notification settings

praffn/btc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

> ₿TC

btc is a cli tool for fetching the latest bitcoin (BTC) rate from CoinDesk

GIF of btc

Installation

No binaries yet, but you can easily fetch btc if you have Go installed:

go get github.com/praffn/btc

Flags

  • -c <CODE>
    Where CODE is a valid ISO 4217 currency code and is in CoinDesk's list of supported currencies.

    Set the currency to show the BTC rate. Defaults to USD. Automatically uppercases value so "dkk" is equivalent to "DKK"

  • -x <AMOUNT>
    Where amount is a float

    If set, the price for AMOUNT of Bitcoin will be shown (in chosen currency)

    For example btc -c dkk -x 0.3 will show the price for 0.3 BTC in DKK

  • -d
    Shows the difference since yesterday in percentages. On by default. To disable: -d=0 or -d=false

  • -s
    If toggled ONLY the float value of a single Bitcoin will be printed to stdout. All flags are ignored expect -c and -l. Useful for piping the result.

  • -l
    If set, will print log information. Only useful for debuggin purposes

  • -v
    If set, will print version information and terminate

  • -h
    Show help


btc is Powered by CoinDesk

btc and the author is not affiliated, associated, authorized, endorsed by, or in any way officially connected with CoinDesk

About

cli tool for quickly checking BTC rates in any currency

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published