forked from onryo/siona
D
4 months ago
3 changed files with 10 additions and 4 deletions
@ -1,4 +1,10 @@ |
|||
#!/usr/bin/env bash |
|||
# Copyright 2016-2022 The Hush Developers |
|||
|
|||
redis-cli set price $(curl -s "https://api.coinpaprika.com/v1/coins/drgx-dragonx/ohlcv/latest" | jq -r '.[].open') |
|||
PRICE=$(curl -s "https://api.coinpaprika.com/v1/coins/drgx-dragonx/ohlcv/latest" | jq -r '.[].open') |
|||
|
|||
PRICEROUNDED=`printf "%.2f" $PRICE` |
|||
redis-cli set price $PRICEROUNDED |
|||
|
|||
|
|||
|
|||
|
Loading…
Reference in new issue