blob: 11282bb3c1031f5e0e8f90e663b5cb1f9df20d6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env sh
set -e
set -x
sleep 5
curl -X GET http://localhost:8008/price?name=CAKE&unit=USD
curl -X GET http://localhost:8008/pair?one=ETH&two=CAKE&multiplier=4.0
curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://localhost:8008/alert
# curl -X GET http://127.0.0.1:8008/price?name=CAKE&unit=USD
# curl -X GET http://127.0.0.1:8008/pair?one=ETH&two=CAKE&multiplier=4.0
# curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://127.0.0.1:8008/alert
|