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

Conversation

brndnmtthws
Copy link
Owner

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.

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 brndnmtthws merged commit 78867fc into main Feb 15, 2024
8 checks passed
@brndnmtthws brndnmtthws deleted the type-nan-to-int-fail branch February 15, 2024 21:48
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.

1 participant