zenbot
zenbot copied to clipboard
Sim exchange, times not set during order creation
System information
- Have I written custom code (as opposed to using zenbot vanilla): No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu LTS latest
- Zenbot version (commit ref, or version): latest unstable
- Zenbot branch: unstable
- NodeJS version: latest
- Python version (when using a python script):
- Exact command to reproduce (include everything): ./zenbot.sh sim binance.bnb-usdt
- Did I make any changes to conf-sample.js?: no
Strategy Sim:
When an order is placed the values for orig_time, time, created_at is set to now.
now is not set to a value. So when an order completes during a sim and it tries to calculate completion time it ends up as undefined.
@glennfu I think you implemented the sim exchange. Am I missing something, it looks like now was supposed to be the time at creation of the order, but now is never set to a value in the code. I'm not assuming its the current time, because it occurred to me that now may be the time in context to the sim data time.