Skip to content

Instantly share code, notes, and snippets.

@amirulabu
Created July 22, 2017 05:31
Show Gist options
  • Save amirulabu/0e931b79dd039878f91800837f103226 to your computer and use it in GitHub Desktop.
Save amirulabu/0e931b79dd039878f91800837f103226 to your computer and use it in GitHub Desktop.
a simple bitcoin to MYR ticker using bash, curl, jq
#!/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