summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2026-07-01 11:04:29 +0800
committerXiao Pan <xyz@flylightning.xyz>2026-07-01 11:04:29 +0800
commitacaac6726d5ea02ff4b83dedf7e61abe68b55b63 (patch)
tree81d43414cf5745baf0b490c05057d77309fb046d
parent58173cabe852188505b133b1f7aacf3a876aba48 (diff)
New way of using `units` to get XMR to USD rateHEADmaster
-rwxr-xr-xsh/rate5
1 files changed, 4 insertions, 1 deletions
diff --git a/sh/rate b/sh/rate
index 464df26..16cab21 100755
--- a/sh/rate
+++ b/sh/rate
@@ -1,7 +1,10 @@
#!/bin/sh
+units -t XMR USD
+
+# old way:
# https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getTickerInformation
# click url/ result to see more return data descriptions
# last 24 hours volume weighted average price
# XXMRZUSD seems same as XMR/USD, but don't know how to query XMR/USD via jq
-curl -sS "https://api.kraken.com/0/public/Ticker?pair=XXMRZUSD" | jq -r .result.XXMRZUSD.p.[1]
+#curl -sS "https://api.kraken.com/0/public/Ticker?pair=XXMRZUSD" | jq -r .result.XXMRZUSD.p.[1]