Browse Source
#66 #75. Harcode 1 ETOMIC for ETH/ERC20 trades. Do not request balances for disabled ETH/ERC20.pass-iguana-arg
Artem Pikulin
7 years ago
committed by
GitHub
7 changed files with 41 additions and 30 deletions
@ -1,4 +1,4 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"$1\",\"rel\":\"BEER\",\"price\":1}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"sell\",\"base\":\"$1\",\"rel\":\"BEER\",\"basevolume\":0.1,\"price\":1}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"$1\",\"rel\":\"BEER\",\"price\":2}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"buy\",\"base\":\"BEER\",\"rel\":\"$1\",\"relvolume\":3,\"price\":2}" |
|||
|
@ -1,4 +1,4 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"BEER\",\"rel\":\"$1\",\"price\":0.9}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"sell\",\"base\":\"BEER\",\"rel\":\"$1\",\"basevolume\":0.1,\"price\":0.9}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"BEER\",\"rel\":\"$1\",\"price\":1.9}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"sell\",\"base\":\"BEER\",\"rel\":\"$1\",\"basevolume\":3,\"price\":1.9}" |
|||
|
@ -1,12 +1,8 @@ |
|||
#!/bin/bash |
|||
docker-compose exec -T clientnode ./setpassphrase |
|||
sleep 5 |
|||
docker-compose exec -T clientnode ./enable |
|||
sleep 5 |
|||
docker-compose exec -T seednode ./setpassphrase |
|||
sleep 5 |
|||
sleep 3 |
|||
docker-compose exec -T seednode ./enable |
|||
sleep 5 |
|||
sleep 3 |
|||
docker-compose exec -T seednode ./sell_BEER_OTHER $1 |
|||
sleep 5 |
|||
sleep 3 |
|||
docker-compose exec -T clientnode ./buy_BEER_OTHER $1 |
@ -1,12 +1,8 @@ |
|||
#!/bin/bash |
|||
docker-compose exec -T clientnode ./setpassphrase |
|||
sleep 5 |
|||
docker-compose exec -T clientnode ./enable |
|||
sleep 5 |
|||
docker-compose exec -T seednode ./setpassphrase |
|||
sleep 5 |
|||
sleep 3 |
|||
docker-compose exec -T seednode ./enable |
|||
sleep 5 |
|||
sleep 3 |
|||
docker-compose exec -T clientnode ./buy_BEER_OTHER $1 |
|||
sleep 5 |
|||
sleep 3 |
|||
docker-compose exec -T seednode ./sell_BEER_OTHER $1 |
Loading…
Reference in new issue