Giter Site home page Giter Site logo

bettertouchtool-crypto's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bettertouchtool-crypto's Issues

Add any coin with the following.

set coin to do shell script "curl -s 'https://min-api.cryptocompare.com/data/price?fsym=(TickerChar)&tsyms=USD' | sed 's/[^0-9\\.]*//g'"
return "$" & coin

This is a little cleaner and quicker to return. As well it aggregates data. Good for coins with low volume, or that are not on bittrex. Also would allow quick exchange to localized currency as well (GBP, EUR, etc...)

Examples
HUSH
ENJ

set coin to do shell script "curl -s 'https://min-api.cryptocompare.com/data/price?fsym=HUSH&tsyms=USD' | sed 's/[^0-9\\.]*//g'"
return "$" & coin

set coin to do shell script "curl -s 'https://min-api.cryptocompare.com/data/price?fsym=ENJ&tsyms=USD' | sed 's/[^0-9\\.]*//g'"
return "$" & coin

Tag posible stable releases

Hey to help us to keep a possible stable version, and downloaded in others places would be nice to have a tag release.

That also could help you to keep track of what could be wrong with that version, correct it and release a new one with fixes.

You could follow this version system to help you out.

https://semver.org/

Change prices to remove decimal places?

Hi,

Love your work! The only suggestion that I hope is possible, is to remove the decimal places from the price, in order to save space on the Touchbar. I don't need to know that Bitcoin is "$16176.29" just "$16,176" will be perfect.

Also adding a "," after the thousands place would make it easier to read at higher prices.

Thank you very much, you're doing great work.

Feature Request: Flash button background on update

Not quite sure how apple scripting & BTT work, but based on the update interval, BTTTouchBarButtonColor should flash green/red depending on the price change (up/down) before returning back to the set BTTTouchBarButtonColor.

Warnings in api call, process hangs up

Hello @krunkosaurus ! I love this project. Thanks for it. But I noticed, "coinbase" now ask you to also provide api version in the headers (otherwise it throws an error). Even after it adding it, it sometimes throws warnings in the response, due to which results are not as per required. I am suggesting the following changes, that I made to get it working.

set json to do shell script "curl -H 'CB-VERSION: 2015-04-08' https://api.coinbase.com/v2/prices/BTC-USD/spot"
set json to do shell script "sed s/warnings.*//g <<< " & json
set value to do shell script "sed s/[a-zA-Z:{},]//g <<< " & json
return "$" & value

Have a look at the regex to remove everything after "warnings", and added header in the curl request. Please update your jsons as per. Thanks for this project!

Displaying BTC prices

How about displaying BTC-prices optional?
I made that work on a modified version of btt-crypto, it was very easy, but I'm not sure if there's the possibility to offer an option to the user to choose the currency the want to see their chosen crypto-currencies in.

Request: Is it possible to get an example to fetch from the coinmarketcap API?

I.e. if I want to fetch the price from the coinmarketcap API for the ticker Monero, I can use this link to get the price in EUR: https://api.coinmarketcap.com/v1/ticker/monero/?convert=EUR

It returns a JSON body which includes the price. The only thing I don't understand is how to parse that from the JSON using the apple scripting language. Would it be possible to receive an example? I can write the documentation for people how to add any ticker this way using coinmarketcap.

Thank you for making this! Will feature it on Cryptominded.com as Resource of the day next week.

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.