summaryrefslogtreecommitdiff
path: root/bitcoin-bal
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-12-24 14:28:59 -0500
committerBen Sima <ben@bsima.me>2020-12-24 14:29:24 -0500
commitdb4b47b550df840ab5d655f5573bc78135daae95 (patch)
tree491ce32c2dbaf518e7a1d7ec2fbfc1290bc023e8 /bitcoin-bal
parent82e4054abe0443f735bf585e0165bb539f58034d (diff)
.
Diffstat (limited to 'bitcoin-bal')
-rwxr-xr-xbitcoin-bal2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitcoin-bal b/bitcoin-bal
index 1fd7fb3..11331a6 100755
--- a/bitcoin-bal
+++ b/bitcoin-bal
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
btc=$(hledger bal cur:BTC ^as | tail -n1 | tr -d ' BTC')
-usd=$(echo "$1 * $btc" | bc)
+usd=$(hledger bal cur:BTC ^as -V | tail -n1 | tr -d ' USD')
echo "$btc BTC"
echo "$usd USD"