Skip to content

austenstone/crypto-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

crypto-box

Update a pinned gist to contain a crypto price


πŸ“Œβœ¨ For more pinned-gist projects like this one, check out: matchai/awesome-pinned-gists

Setup

Prep work

  1. Create a new public GitHub Gist gist.github.com
  2. Create an access token with the gist scope and copy it. github.com/settings/tokens/new

Project setup

  1. Fork this repo

  2. Edit the environment variables in .github/workflows/schedule.yml: account.

    • GITHUB_TOKEN: The GitHub access token generated above.
    • GIST_ID: The ID portion from your gist url: https://gist.github.com/austenstone/40b6a7b4e19c1526619df8f99fbd522a.
    • PRODUCT_ID: The ID portion from Coinbase: https://pro.coinbase.com/trade/BTC-USD. (default: BTC-USD)
    • TIME_ZONE: Timezone to show last updated date/time. (default: America/New_York)

Output

Check out the demo.

Example Output:

1 BTC = 39262.98 USD
-47.45 (-0.12%)πŸ‘Ž today
⌚ 3/11/2022, 9:20:43 AM EST