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

Return 0.0 if market price is NaN. #369

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Commits on Feb 15, 2024

  1. Return 0.0 if market price is NaN.

    On the odd chance `ticker.marketPrice()` returns NaN, return 0.0
    instead. This is very rare, and shouldn't happen, but it might when you
    have contracts that are way OTM and near expiration.
    
    This may hopefully address #368.
    brndnmtthws committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    ca24ac9 View commit details
    Browse the repository at this point in the history