Added dollar signs to logs
parent
4b0f37165b
commit
c2e849599d
|
@ -48,11 +48,11 @@ for asset in ${!assets[@]}; do
|
|||
|
||||
# Looks good; add it
|
||||
else
|
||||
price=$(echo $res | jq '.results[0].vw')
|
||||
price="\$$(echo $res | jq '.results[0].vw')"
|
||||
echo " Price: $price"
|
||||
line="P $(date -I --date=yesterday) $asset"
|
||||
grep "$line" "$PRICES_FILE" >/dev/null \
|
||||
|| echo "$line \$$price" >> "$PRICES_FILE"
|
||||
|| echo "$line $price" >> "$PRICES_FILE"
|
||||
sleep 10 # Optional, check API limits
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue