summaryrefslogtreecommitdiff
path: root/bin/xchg.getdoublerate
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2018-12-19 19:33:37 +0000
committerepochqwert <epoch@hacking.allowed.org>2018-12-19 19:33:37 +0000
commit36f7747780ea5f459e17f34c42d646abff6e6dbc (patch)
treea72a0c3f6fa918323b37bff7da047c08a8bdb9a4 /bin/xchg.getdoublerate
parentff822dd2295faa2e3fce3fe2bde391c5a1ad53e7 (diff)
downloadsegfault_home-36f7747780ea5f459e17f34c42d646abff6e6dbc.tar.gz
segfault_home-36f7747780ea5f459e17f34c42d646abff6e6dbc.zip
updated scripts, and xchg stuff added
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'