Created
July 22, 2017 05:31
-
-
Save amirulabu/0e931b79dd039878f91800837f103226 to your computer and use it in GitHub Desktop.
a simple bitcoin to MYR ticker using bash, curl, jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install curl and jq | |
while [ true ] | |
do | |
curl -s https://api.mybitx.com/api/1/ticker?pair=XBTMYR | jq -r '.bid' | |
sleep 10 | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment