Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wickenico/btc-usd-course.js
A Scriptable widget that shows the current bitcoin course in US-Dollar based on coinbase
https://github.com/wickenico/btc-usd-course.js
cryptocurrency ios14-widget javascript scriptable scriptable-app widget
Last synced: about 2 months ago
JSON representation
A Scriptable widget that shows the current bitcoin course in US-Dollar based on coinbase
- Host: GitHub
- URL: https://github.com/wickenico/btc-usd-course.js
- Owner: wickenico
- Created: 2020-12-31T01:09:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-15T21:02:17.000Z (almost 3 years ago)
- Last Synced: 2024-05-08T03:33:35.333Z (4 months ago)
- Topics: cryptocurrency, ios14-widget, javascript, scriptable, scriptable-app, widget
- Language: JavaScript
- Homepage:
- Size: 3.21 MB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-scriptable - btc-usd-course.js - Shows the current bitcoin course in USD. (Finance)
README
# btc-usd-course.js
A Scriptable widget that shows the current bitcoin course in US-Dollar based on coinbase![Visits Badge](https://badges.pufler.dev/visits/wickenico/btc-usd-course.js)
![bitcoin-usd-course-widget-small](img/bitcoin-usd-course-widget-small.png)
Setup •
Usage •
Links •
Contribution •
## Setup
1. (if not done yet) Download the scriptable app form [AppStore](https://apps.apple.com/de/app/scriptable/id1405459188)
2. In Scriptable create a new script
3. Copy the code from script file [btc-usd-course.js](https://github.com/wickenico/btc-usd-course.js/blob/main/btc-usd-course.js)
4. Create a new widget on homescreen and select this script in scriptable## Usage
### Change displayed currencyYou can change the currency directly in the api url on line 14.
For example show bitcoin price in €/EUR:```javascript
const url = 'https://api.coinbase.com/v2/prices/spot?currency=EUR'
```## Links
- Coinbase API Price Data: https://developers.coinbase.com/docs/wallet/guides/price-data
- Currency codes overview: https://www2.1010data.com/documentationcenter/beta/1010dataReferenceManual/DataTypesAndFormats/currencyUnitCodes.html## Contribution
If you have any ideas for extensions or changes just let me know.
## TODO
- Change currceny name in headline
- Add rounding for numbers
- Add up and down tracker
- Add parameter for currency and coin