zenbot
zenbot copied to clipboard
execution: Invalid date during buy/sell
System information
- Have I written custom code (as opposed to using zenbot vanilla):No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS
- Zenbot version (commit ref, or version): 4.1.0
- Zenbot branch: unstable
- NodeJS version:v9.5.0
- Python version (when using a python script):
- Exact command to reproduce (include everything): ./zenbot.sh trade --paper --conf=./conf_binance_EOS.js --strategy=rsi --period=5m --oversold_rsi=40 --overbought_rsi=75 --buy_pct=100 --sell_pct=100
- Did I make any changes to conf-sample.js?: change exchange to binance
Describe the problem
when bot did buy or sell, you can see "execution: Invalid date"
Source code / Error logs
2018-06-04 13:55:00 7636.27 BTC-USDT -0.54% 575 --- 25.31 25 sell 0.12912 BTC 0.54917336 USDT -0.92% +0.23% 2018-06-04 13:55:53 7636.20 BTC-USDT -0.01% 76 --- 25.29 25 selling 0.00000 BTC 984.40023542 USDT -0.88% +0.27% sell order completed at 2018-06-04 13:55:24:
0.12912500 BTC at 7630.43 USDT total 985.279 USDT 0.0686% slippage (orig. price 7635.67 USDT) execution: Invalid date
2018-06-04 14:00:00 7660.00 BTC-USDT +0.31% 174 -- 39.75 39 sold 0.00000 BTC 984.40023542 USDT -0.88% -0.04% 2018-06-04 14:05:00 7631.47 BTC-USDT -0.38% 174 --- 31.79 31 -0.02% 0.00000 BTC 984.40023542 USDT -0.88% +0.33% 2018-06-04 14:10:00 7637.26 BTC-USDT +0.07% 253 --- 34.65 34 -0.09% 0.00000 BTC 984.40023542 USDT -0.88% +0.26% 2018-06-04 14:15:00 7639.99 BTC-USDT +0.03% 151 -- 36.01 36 buy 0.00000 BTC 984.40023542 USDT -0.88% +0.22% 2018-06-04 14:15:53 7646.57 BTC-USDT +0.08% 28 -- 39.30 39 buying 0.12809 BTC 3.50181334 USDT -0.90% +0.12% buy order completed at 2018-06-04 14:15:24:
0.12875300 BTC at 7646.56 USDT total 984.517 USDT 0.1120% slippage (orig. price 7638.00 USDT) execution: Invalid date
Invalid date can possibly happen because your time does not correspond with the server time. Have you tried running NTP?
Hello,
Time is synchronized, but I have the same problem in the --paper mode with poloniex.
timedatectl status Local time: ორშ 2018-09-10 20:58:58 +04 Universal time: ორშ 2018-09-10 16:58:58 UTC RTC time: ორშ 2018-09-10 16:58:58 Time zone: Asia/Tbilisi (+04, +0400) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no
Zenbot work on the Ubuntu 18.04 on the Virtual Box
I have the same problem. Mac OS X.
Hello,
Time is synchronized, but I have the same problem in the --paper mode with poloniex.
timedatectl status Local time: ორშ 2018-09-10 20:58:58 +04 Universal time: ორშ 2018-09-10 16:58:58 UTC RTC time: ორშ 2018-09-10 16:58:58 Time zone: Asia/Tbilisi (+04, +0400) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no
Zenbot work on the Ubuntu 18.04 on the Virtual Box
Same issue if trying to simulate a manual trade and same results from timedatectl status command regarding synchronization service active and time not different from RTC time. Only difference for me is Ubuntu 18.04 directly installed and not a VM and running paper mode against gdax.