requires field to be hashable. When qualifyContracts is first called, a new contract object is passed in as field, and it is not yet hashable since the contract is not yet qualified.
The old ib_insync library did not have this issue as it used a tuple instead of a set.
Fix: Guard the membership test by first testing whether field is hashable.
Closes #4
ps. Thank you for continuing the work of ib_insync. It means a lot to me.
The set membership test in https://github.com/ib-api-reloaded/ib_async/blob/0ae43453b05345e3d21be518dcedb4dda6cb019f/ib_async/client.py#L255-L256
requires
field
to be hashable. WhenqualifyContracts
is first called, a new contract object is passed in asfield
, and it is not yet hashable since the contract is not yet qualified.The old
ib_insync
library did not have this issue as it used a tuple instead of a set.Fix: Guard the membership test by first testing whether
field
is hashable.Closes #4
ps. Thank you for continuing the work of
ib_insync
. It means a lot to me.