Ekliptor / WolfBot

Crypto currency trading bot written in TypeScript for NodeJS
https://wolfbot.org
GNU Affero General Public License v3.0
710 stars 215 forks source link

Bot is completely broken in timezone other than GMT (UTC+0) #86

Closed legkodymov closed 4 years ago

legkodymov commented 4 years ago

Bot just refuses to work and write following: In my case, GMT+3:

lastCandleTick: 3 h ago
2020-10-21 09:34:18 - error: Last candle tick was longer than 120 minutes ago. Scheduling restart
2020-10-21 09:34:18 - info: NoNotificationService: WolfBot RSIScalper BTC_ETH: Restarting bot - Last candle tick was longer than 120 minutes ago. Scheduling restart
2020-10-21 09:34:18 - verbose: Saved strategy state to: /home/tolik/git/WolfBot/temp/state-bittrex1.json
2020-10-21 09:34:22 - info: Main process exited with code 0
2020-10-21 09:34:22 - info: Exiting main process. Please wait...

image

How to reproduce: Set computer time to GMT+3 and over. I didn't check how it work +1, +2 and negative time shifts.

Ekliptor commented 4 years ago

most likely because you CHANGED timezones while running the bot. Will continue this Telegram with you