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