qyvlik / viabtc_exchange_server_docker

easy run viabtc_exchange_server use docker compose. I fix it, then it work in centos , mac and ubuntu
37 stars 22 forks source link

How to update matchengine config? #6

Closed alberthitanaya closed 6 years ago

alberthitanaya commented 6 years ago

I've followed these instructions:

1. enter the running container which run the viabtc programs `docker exec -it THE_CONTAINER /bin/bash`(Not need stop the container)

2. cd /btc/matchengine, and you can see config.json and restart.sh 

3. replace you own config.json in to it.

4. exec the restart.sh(restart the match engine.exe)

5. enter the `/var/log/trade` and watch the matchengine.log.

6. exit the terminal of the running container, and use the curl to get the `market.list` 

    code as follow:

    `curl -H "Content-Type:application/json" -X POST --data '{"method": "market.list", "params": [], "id": 1516681174}' http://localhost:18080`

However matchengine.exe fails to run with error: ./matchengine.exe: init trade fail: -47

Is there somewhere else that needs to be changed as well? I've also tried pulling other people's repos and running them but they also fail.

Thanks

alberthitanaya commented 6 years ago

problem described was fixed by doing what was in this issue: i.e. pair needs precision >20

https://github.com/viabtc/viabtc_exchange_server/issues/75