This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore onTrade() bail-out in a way that works (#2345)
This fix undoes #2334 and fixes the problem it tried to fix, the right way, by restoring bailing out of onTrade when an old trade comes in, but this time with the callback that went missing in the changes in 17e9758#diff-a41b519e7979a713e894ef8d1b3fe568R347-R349 . Because of the missing call on the callback function, the async queue chain would break when an old trade came in. This PR restores resuming operations when a trade comes in that belongs to a previous period. The bug, and these changes, affected only those running paper trades in very short timeframes such as 1s or 5s.
- Loading branch information