Closed muyang93 closed 5 years ago
I've solved this. Take a look at how I did it here: https://github.com/testnet-exchange/viabtc_exchange_server
首先配置assets, prec_save 配大点, 比如20
首先配置资产,prec_save配大点,比如20
确实是这样
@muyang93 config 文件能共享么 :)
看看默认的样例就知道了
@lealife 加了个market,docker跑起来直接取不到东西了 --
@muyang93 config 文件能共享么 :)
{ "debug": true, "process": { "file_limit": 1000000, "core_limit": 1000000000 }, "log": { "path": "/var/log/trade/matchengine", "flag": "fatal,error,warn,info,debug,trace", "num": 10 }, "alert": { "host": "matchengine", "addr": "127.0.0.1:4444" }, "svr": { "bind": [ "tcp@0.0.0.0:7316", "udp@0.0.0.0:7316" ], "buf_limit": 100, "max_pkg_size": 10240, "heartbeat_check": false }, "cli": "tcp@127.0.0.1:7317", "db_log": { "host": "localhost", "user": "root_trade", "pass": "123456", "name": "trade_log" }, "db_history": { "host": "localhost", "user": "root_trade", "pass": "123456", "name": "trade_history" }, "assets": [{ "name": "USDT", "prec_save": 20, "prec_show": 8 }, { "name": "ETH", "prec_save": 20, "prec_show": 8 }, { "name": "BTC", "prec_save": 12, "prec_show": 8 }, { "name": "OGC", "prec_save": 12, "prec_show": 8 }], "markets": [{ "name": "BTCUSDT", "stock": { "name": "BTC", "prec": 8 }, "money": { "name": "USDT", "prec": 8 }, "min_amount": "0.001" }, { "name": "OGCUSDT", "stock": { "name": "OGC", "prec": 8 }, "money": { "name": "USDT", "prec": 8 }, "min_amount": "0.001" }, { "name": "BTCETH", "stock": { "name": "BTC", "prec": 8 }, "money": { "name": "ETH", "prec": 8 }, "min_amount": "0.001" }, { "name": "OGCETH", "stock": { "name": "OGC", "prec": 8 }, "money": { "name": "ETH", "prec": 8 }, "min_amount": "0.001" }], "brokers": "127.0.0.1:9092", "slice_interval": 3600, "slice_keeptime": 259200 }
@muyang93 :) 可以了,谢谢
我这样配置发现启动会报错 "markets": [{ "name": "BTCUSDT", "stock": { "name": "BTC", "prec": 8 }, "money": { "name": "USDT", "prec": 8 }, "min_amount": "0.001" }, { "name": "OGCUSDT", "stock": { "name": "OGC", "prec": 8 }, "money": { "name": "USDT", "prec": 8 }, "min_amount": "0.001" },{ "name": "OGCETH", "stock": { "name": "OGC", "prec": 8 }, "money": { "name": "ETH", "prec": 8 }, "min_amount": "0.001" }, { "name": "BTCETH", "stock": { "name": "BTC", "prec": 8 }, "money": { "name": "ETH", "prec": 8 }, "min_amount": "0.001" }