summaryrefslogtreecommitdiff
path: root/bin/xchg.getdoublerate
blob: 2a29c8ca86516deb86b53259ea5e4b42b1a75ec3 (plain) (blame)
1
2
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'