Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aggregate_trade_iter(): fixed empty resulting set problem #350

Merged

Conversation

sapph1re
Copy link
Contributor

Fixes #341.

When starting from startStr, if the first hour doesn't contain any trades, it will now not crash, but move forward hour by hour until it at least one trade is found or present moment is reached.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 38.301% when pulling 8761faf on sapph1re:master into 78a64a6 on sammchardy:master.

Copy link
Contributor

@anson-vandoren anson-vandoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sapph1re, thanks for finding this and submitting your solution. Just ran into the same issue and this saved me from writing some code.

@sammchardy, can you take a look and merge this? Thanks!

@sammchardy sammchardy changed the base branch from master to bugfix/aggregate_trade_iter_empty_set January 23, 2019 08:57
@sammchardy sammchardy merged commit b012e31 into sammchardy:bugfix/aggregate_trade_iter_empty_set Jan 23, 2019
@sammchardy
Copy link
Owner

Thanks @sapph1re

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants