Comments (4)
@zachherbert This snippet of AppleScript will get any price from https://coinmarketcap.com/ . It depends on having jq
installed for grabbing stuff out of the JSON. See https://stedolan.github.io/jq/
set value to do shell script "curl -s https://api.coinmarketcap.com/v1/ticker/bitcoin/ | /usr/local/bin/jq '.[0].price_usd | tonumber'"
return "$" & value
from bettertouchtool-crypto.
@dylandamsma Sorry for the delayed response. The answer it to use "grep" or "sed" or any other unix based tool. BetterTouchTool uses Apple script but can run Unix commands so that's how we do it. When I have time, I can add features to use the coinmarketcap.com API. Probably two weeks from now.
from bettertouchtool-crypto.
Would be amazing if it was easy to access any coin from Coinmarketcap.
If I could easily use the URL for Coinmarketcap API and a URL for the coin icon, I could easily customize this for myself with my favorite coins.
from bettertouchtool-crypto.
PR created here for CoinMarketCap: #8
from bettertouchtool-crypto.
Related Issues (11)
- Can't make "#" into type real
- Change prices to remove decimal places?
- Tag posible stable releases
- Is it possible to get images of the tokens from the coinmarketcap api? HOT 1
- Nice Project! Could you add BitYep Price? HOT 2
- Warnings in api call, process hangs up HOT 1
- Sparklines would be great HOT 3
- Feature Request: Flash button background on update HOT 1
- Displaying BTC prices
- Add any coin with the following. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bettertouchtool-crypto.