Get newest cryptocurrency coin price notifications from Indodax market on your desktop!
It's fairly simple, just clone it:
$ git clone https://github.com/dwisiswant0/indodax-notify.git
- curl
- jq
- notify-send (custom), download:
$ (sudo) wget -q "https://github.com/vlevit/notify-send.sh/raw/master/notify-send.sh" -O /usr/local/bin/notify-send
$ (sudo) wget -q "https://github.com/vlevit/notify-send.sh/raw/master/notify-action.sh" -O /usr/local/bin/notify-action
# (sudo) chmod +x /usr/local/bin/notify-*
First, initialize by passing functions with built-in source
shell command.
source "src/functions.sh" .
To get latest price, simply just call getPrice
function with required arguments, such as symbol, pair, and order (buy/sell).
getPrice "btc" "idr" "buy"
Formatting price? Call format "price"
function instead.
To send notification to your desktop, call sendNotif
with pair, price and coin arguments (must be sequence).
sendNotif "idr" "699.000.000" "btc"
Cron every N minutes/hours/days or whatever you want!
For examples, cron for every hours:
0 */1 * * * /opt/indodax-notify/main.sh
See examples at main.sh and edit according to your needs for test.
$ ./main.sh
This tool can be freely copied, modified, altered, distributed without any attribution whatsoever. However, if you feel like this tool deserves an attribution, mention it. It won't hurt anybody :)
Please, read the license terms. Don't worry, it can be read in less than 30 seconds, unless you have some sort of reading disability - in that case, I'm wondering why you're still reading this text. Really. Stop. Please. I mean, seriously. Why are you still reading?
Since this tool includes some contributions, and I'm not an asshole, I'll publically thank the following users for their help:
- @vlevit for his drop-in replacement for
notify-send
with more features.