Giter Site home page Giter Site logo

Comments (4)

johnthethird avatar johnthethird commented on July 2, 2024 1

@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.

krunkosaurus avatar krunkosaurus commented on July 2, 2024

@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.

zachherbert avatar zachherbert commented on July 2, 2024

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.

ajc308 avatar ajc308 commented on July 2, 2024

PR created here for CoinMarketCap: #8

from bettertouchtool-crypto.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.