Update a pinned gist to contain a crypto price
πβ¨ For more pinned-gist projects like this one, check out: matchai/awesome-pinned-gists
- Create a new public GitHub Gist gist.github.com
- Create an access token with the
gist
scope and copy it. github.com/settings/tokens/new
-
Fork this repo
-
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
)
Check out the demo.
Example Output:
1 BTC = 39262.98 USD
-47.45 (-0.12%)π today
β 3/11/2022, 9:20:43 AM EST