summaryrefslogtreecommitdiff
path: root/bin/xchg.getrate
diff options
context:
space:
mode:
Diffstat (limited to 'bin/xchg.getrate')
-rwxr-xr-xbin/xchg.getrate3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/xchg.getrate b/bin/xchg.getrate
new file mode 100755
index 0000000..b545667
--- /dev/null
+++ b/bin/xchg.getrate
@@ -0,0 +1,3 @@
+#!/bin/sh
+wget -qO- "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=$1" | jq '.["'"$1"'"]'
+#/home/segfault/bin/xchg.getrates | jq '.["'"$1"'"].last'