Skip to content

fix: handle None contracts from ib_async v2.0.1 qualifyContractsAsync#578

Merged
brndnmtthws merged 1 commit into
mainfrom
fix-contracts-none
Jun 26, 2025
Merged

fix: handle None contracts from ib_async v2.0.1 qualifyContractsAsync#578
brndnmtthws merged 1 commit into
mainfrom
fix-contracts-none

Conversation

@brndnmtthws

Copy link
Copy Markdown
Owner

In ib_async v2.0.1, qualifyContractsAsync now returns None for contracts that fail to qualify (unknown or ambiguous), preserving positional correspondence with input contracts. This caused AttributeError when accessing contract properties on None values.

Added filtering to remove None values after qualify_contracts call, ensuring only valid contracts are processed.

In ib_async v2.0.1, qualifyContractsAsync now returns None for contracts
that fail to qualify (unknown or ambiguous), preserving positional
correspondence with input contracts. This caused AttributeError when
accessing contract properties on None values.

Added filtering to remove None values after qualify_contracts call,
ensuring only valid contracts are processed.
@brndnmtthws brndnmtthws merged commit 323b3df into main Jun 26, 2025
7 checks passed
@brndnmtthws brndnmtthws deleted the fix-contracts-none branch June 26, 2025 02:04
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