我在ubuntu16.04上运行zenbot,并且已经按照readme.md安装了zenbot,zenbot基本上是可以工作的;我可以在不指定--conf的情况下进行回填和模拟。但是,每当我指定--conf文件(可以是conf.js、conf-sample.js或任何修改后的版本)时,我都会收到错误消息
$ ./zenbot.sh sim --days 2 --conf ./conf.js gdax.BTC-EUR
/home/xx/GitHub/zenbot/node_modules/codemap/index.js:233
throw err;
^
Error: path `zenbot:exchanges.undefined` is undefined
at Object.get (/home/xx/GitHub/zenbot/node_modules/codemap/index.js:231:19)
at get (/home/xx/GitHub/zenbot/node_modules/codemap/index.js我不能追溯到真正的问题是什么,但我很乐意解决这个问题。任何帮助和提示都是非常感谢的!
发布于 2018-02-04 07:50:11
今天更新了zenbot之后,我也面临着同样的问题。从2018年1月22日开始,Zenbot使用代码库运行得很好。我建议试着检查一个较旧的版本,并尝试它
你可以运行下面的命令,这将带你去this旧版本的zenbot。
# git checkout d600b3cd8ae53434646d479fdfef8a718e8bf756
# npm install当我在参数中提供参数时,这里指向的这个旧版本对我有效,但当我提供一个配置文件进行读取时,它会抛出您提到的错误,例如
# ./zenbot.sh sim --conf gdaxbtc.js 最新版本的zenbot (2018年2月3日),在其不稳定的分支中,在交易所表现不同。我对其中的一些进行了测试。
GDAX现在的行为是这样的
root@kalihost:/opt/zenbot# ./zenbot.sh trade --paper --days 2 gdax.BTC-USD
fetching pre-roll data:
*************************
Hitting up the exchange 'gdax' for trades within the past 1 day.
*************************
Backfilling...
^C对于BITTREX,似乎zenbot在尝试回填时被卡住了。
# ./zenbot.sh trade --paper --days 2 bittrex.BTC-USDT
fetching pre-roll data:
*************************
Hitting up the exchange 'bittrex' for trades within the past 1 day.
*************************
Backfilling...
please note: the bittrex api does not support backfilling (trade/paper only).
please note: make sure to set the --period_length=1m to make sure data for trade/paper is fetched.
^CPoloniex似乎运行得很好。
# ./zenbot.sh trade --paper
fetching pre-roll data:
*************************
Hitting up the exchange 'poloniex' for trades within the past 1 day.
*************************
Backfilling...
final trade id ==> [undefined]
DATE PRICE DIFF VOL RSI ACTIONS BAL PROFIT
2018-02-03 14:06:00 9412.00 BTC-USDT 9
2018-02-03 14:08:00 9401.00 BTC-USDT -0.12% 16
2018-02-03 14:10:00 9380.00 BTC-USDT -0.23% 6
2018-02-03 14:12:00 9389.12 BTC-USDT +0.09% 1 https://stackoverflow.com/questions/48600949
复制相似问题