Mac Touch Bar script to track the STEEM/SBD price

in steemdev •  5 days ago 


Early this morning, I read that @emrebeyler wrote a MacOS Status bar app to track the STEEM price. I thought it was a neat idea given that we are seeing some positive prices in the last couple of weeks. I have a MacBook Pro, so I whipped up a quick shell script to display this on the Touch Bar. It uses the 3rd party BetterTouchTool, jq (for json parsing) and the CoinGecko API (thanks @coingecko!):


It updates every 15 minutes and you can force an update by tapping on the prices itself. @themarkymark suggested in @emrebeyler's app that he also include the SBD price—so I have added this in my Touch Bar version. Hope you find this useful!

#! /bin/bash

output=$(curl -s ",STEEM-DOLLARS&vs_currencies=USD");
steem=$(echo $output | /usr/local/bin/jq ".steem.usd");
steem=$(printf "%0.2f" $steem)
sbd=$(echo $output | /usr/local/bin/jq ".\"steem-dollars\".usd");
sbd=$(printf "%0.2f" $sbd)
echo "STEEM \$$steem, SBD \$$sbd"

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks for posting this, I hope a lot of people find it useful.

You're welcome! !ENGAGE 20

Thank you very much!

@shaidon you have received 20 ENGAGE from @contrabourdon!
View and trade the tokens on Steem Engine.

This tip bot is powered by witness untersatz!


Congratulations @contrabot, you successfuly trended the post shared by @contrabourdon!
@contrabourdon will receive 0.98934413 TRDO & @contrabot will get 0.65956275 TRDO curation in 3 Days from Post Created Date!

"Call TRDO, Your Comment Worth Something!"

To view or trade TRDO go to
Join TRDO Discord Channel or Join TRDO Web Site

@tipu curate 2

Upvoted 👌 (Mana: 0/15 - need recharge?)

That's pretty dope.

!giphy dope

giphy is supported by witness untersatz!

Thank you for supporting @CatsMakeKittens by being a part of our community @contrabourdon.

Each CATS you purchase gets you daily upvotes from me @CatScientist as our community grows so do your rewards for being a member!

Thanks for sharing this. I hope a lot of people enjoy it.

I don't use macos, but this looks really nice. Congratulations on the project.

This post has received a 3.13 % upvote from @drotto thanks to: @sbi-booster.

Congratulations @contrabourdon, your post successfully recieved 0.98934413 TRDO from below listed TRENDO callers:

@contrabot earned : 0.65956275 TRDO curation

To view or trade TRDO go to
Join TRDO Discord Channel or Join TRDO Web Site

coffeea Lucky you @contrabourdon here is your COFFEEA, view all your tokens at Vote for c0ff33a as Witness