- Install golang, require version >= 1.13.
- run
make build && nohup ./build/pancake-statas --config-path config/config.json &
or simple use service stat start
or service stat restart
All price is deduced from chain, the price info may not accurate when liquidity is bad.
Restart docker after reboo.
docker run -p 3307:3306 --name stat-mysql -v /opt/sql-datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123123 -d mysql
- 127.0.0.1:8080/api/v1/stat
- 127.0.0.1:8080/api/v1/price
- 127.0.0.1:8080/api/v1/syrup
/home/ubuntu/stats