Skip to content

A short Python script fetching cryptocurrency rates from Coinbase meant to be used with Polybar

Notifications You must be signed in to change notification settings

tonyd33/cryptofetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cryptofetch

A short Python script fetching cryptocurrency rates from Coinbase meant to be used with Polybar

Setup

Get your API key and secret from Coinbase and place the coins.svg file in ~/.config/polybar/ or specify the path with --coin-unicode-map <path/to/coins.svg> and place the coins.otf file in ~/.fonts.

Usage

cryptofetch.py --coin ETH --base USD --api-key <API_KEY> --api-secret 
<API_SECRET>

Polybar

If you want to use this with Polybar, add a module

[module/crypto]
type = custom/script
format = <label>
exec = path/to/cryptofetch.py --coin <COIN> --base USD ...
; Keep in mind the cache expiry is set to 60 seconds by default anyway
interval = 30

Screenshots

image

Credit

Credit to polybar-cryptocurrency for the coin icons

About

A short Python script fetching cryptocurrency rates from Coinbase meant to be used with Polybar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages