Skip to content

How do I account for the fill price must be greater than 0 error? #123

Answered by SW4T400
EuclideanWild asked this question in Q&A
Discussion options

You must be logged in to vote

I think pyb rounds to nearest cent. To disable this set the round_fill_price = False and try again.
For me it was rounding very small crypto prices to 0 and hence the error.

config = StrategyConfig(bootstrap_sample_size=10,
                        bars_per_year=bars_per_year(freq),
                        return_signals=True,
                        enable_fractional_shares=True,
                        round_test_result=False,
                        round_fill_price=False
                        ) ```

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EuclideanWild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants