erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.8k stars 743 forks source link

What is the meaning of conId=-1? #571

Closed Shellcat-Zero closed 1 year ago

Shellcat-Zero commented 1 year ago

Discussed in https://github.com/erdewit/ib_insync/discussions/570

Originally posted by **Shellcat-Zero** April 5, 2023 When running `ib.reqMatchingSymbols('pattern')` I will often get back many contracts where the conId=-1. Can anyone explain what the meaning is for these? They don't appear to be usable as far as I can see. Many of them appear to be bonds. I have yet to be able to access bond data with the api as well (with delayed or frozen market data types), if anyone can provide some working example with bond contracts. Thanks!
erdewit commented 1 year ago

This question is better suited for the TWSAPI group.