开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Is there generic method to format contract for reqContractDetails


 

The ConId by itself uniquely identifies the Contract. If you already have a ConId (as you said from orders, positions, or similar objects), SecType and LocalSymbol are not required to retrieve the corresponding ContractDetails object.

闯ü谤驳别苍

?

?

On Mon, Dec 2, 2024 at 12:38 AM, Andy Sanders wrote:

Thank you for the explanation.?
After mentioning that contract can be "overspecified", I tried? to simplify definition instead of complicating it.?
Appeared to be that specifying only 3 fields is enough to specify the contract.?
?
  • ConId
  • SecType
  • LocalSymbol
This information is returned for all open orders and positions. Technically, ConId is not required, but without ConId, reqContractDetails can't find some contracts within 5 seconds, specifically those with options expiring daily, which is not acceptable. Final version cut down to 3 fields only, works fine for stocks, options, forex, futures, futures options.?

Join [email protected] to automatically receive all group messages.