diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-03-31 14:40:49 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-03-31 14:40:49 +0000 |
commit | 911bda1b171a6a25cdb09b839b035e195e95ed41 (patch) | |
tree | 6c902d24fcc844e2d0b8907c5dbd09a8b7e66914 /test/endpoints.sh | |
parent | added new ticker endpoint that periodically sends crypto prices over telegram (diff) | |
download | hived-911bda1b171a6a25cdb09b839b035e195e95ed41.tar.gz hived-911bda1b171a6a25cdb09b839b035e195e95ed41.zip |
changed redis to keydbtmp
Diffstat (limited to 'test/endpoints.sh')
-rwxr-xr-x | test/endpoints.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/endpoints.sh b/test/endpoints.sh index 2b73614..7ffb5ab 100755 --- a/test/endpoints.sh +++ b/test/endpoints.sh @@ -3,6 +3,7 @@ set -e set -x curl -k -X GET "https://localhost:10008/crypto/v1/price?name=PEPE&unit=USD" +curl -k -X GET "https://localhost:10008/crypto/v1/price?name=BTC&unit=USD" curl -k -X GET "https://localhost:10008/crypto/v1/pair?one=ETH&two=CAKE&multiplier=4.0" curl -k -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' https://localhost:10008/crypto/v1/alert @@ -18,5 +19,6 @@ curl -k -X POST -H "Content-Type: application/json" -d '{"name":"XMR"}' https:// curl -k -X POST -H "Content-Type: application/json" -d '{"name":"STX"}' https://localhost:10008/crypto/v1/ticker curl -k -X POST -H "Content-Type: application/json" -d '{"name":"LINK"}' https://localhost:10008/crypto/v1/ticker curl -k -X POST -H "Content-Type: application/json" -d '{"name":"PEPE"}' https://localhost:10008/crypto/v1/ticker +curl -k -X POST -H "Content-Type: application/json" -d '{"name":"SOL"}' https://localhost:10008/crypto/v1/ticker curl -k -X GET -H "Content-Type: application/json" https://localhost:10008/crypto/v1/ticker?key=ETH curl -k -X DELETE -H "Content-Type: application/json" https://localhost:10008/crypto/v1/ticker?key=ETH |