austenstone / crypto-box

πŸͺ™πŸ’¬ Update a gist to contain a crypto price

Home Page:https://gist.github.com/austenstone/40b6a7b4e19c1526619df8f99fbd522a

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

πŸͺ™πŸ’¬ Update a gist to contain a crypto price

https://gist.github.com/austenstone/40b6a7b4e19c1526619df8f99fbd522a


Languages

Language:JavaScript 100.0%