Here is a quick BASH script that allows you to do something like this:
./ticker
e.g. ././ticker steem usd
./ticker steem usd
"1 steem = 0.21412699896499998 usd"
./ticker 2 steem gbp
"2 steem = 0.3794 gbp"
./ticker eth 2 btc
"26.331085755738364 eth = 2 btc"
#!/bin/bash
check_json=$(echo "{ }" | jq)
if [ "$check_json" != "{}" ]; then
echo "jq not installed"
exit 1
fi
if [ "$1" == "" ]; then
echo "e.g. ./$0 steem usd"
fi
API="https://price.justyy.workers.dev/query/"
curl -s -X POST -d "$*" $API | jq .result[0]
This requires the jq to parse the JSON output from the Crypto API made by @justyy (myself) on cloudflare workers serverless technology.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Thank you for reading ^^^^^^^^^^^^^^^
NEW! Following my Trail (Upvote or/and Downvote)
Follow me for topics of Algorithms, Blockchain and Cloud.
I am @justyy - a Steem Witness
https://steemyy.com
My contributions
- Video Downloader
- Steem Blockchain Tools
- Free Cryptos API
- VPS Database
- Computing Technology Blog
- A few useless tools
- And some other online software/tools
- Merge Files/Videos
- LOGO Turtle Programming Chrome Extension
- Teaching Kids Programming - Youtube Channel and All Contents
Steem/Swap to USDT Swap
I also made this Super Easy/Handy Service to Convert your STEEM or SBD to USDT (TRC-20)
Delegation Service
Voting Power Considered in Voting Schema and Important Update of Delegation Service!
Support me
If you like my work, please:
- Buy Me a Coffee, Thanks!
- Become my Sponsor, Thanks!
- Voting for me:
https://steemit.com/~witnesses type in justyy and click VOTE
- Delegate SP: https://steemyy.com/sp-delegate-form/?delegatee=justyy
- Vote @justyy as Witness: https://steemyy.com/witness-voting/?witness=justyy&action=approve
- Set @justyy as Proxy: https://steemyy.com/witness-voting/?witness=justyy&action=proxy
Alternatively, you can vote witness or set proxy here: https://steemit.com/~witnesses