forked from onryo/siona
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
246 B
12 lines
246 B
#!/usr/bin/env bash
|
|
# Copyright 2016-2022 The Hush Developers
|
|
|
|
set -e
|
|
|
|
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
|
|
|
|
|
|
|
|
|