IB native python API for dummies

Discussion in 'Automated Trading' started by globalarbtrader, Mar 24, 2017.

  1. Yes there is. If you define a futures instrument without specifying an expiry date then you will get a list of all contracts which fit your description.
    Example: if you specify a contract by only the symbol (ZN), the security type (FUT), the exchange (ECBOT) and the currency (USD) and then use reqContractDetails(contract) you will get all futures contracts which match this incomplete contract specification. This information is sent by IB to the method contractDetails() which you need to override for your purposes.
     
    #21     May 14, 2019
    tommcginnis and Cyrix like this.
  2. Cyrix

    Cyrix

    Thank you.
     
    #22     May 14, 2019
  3. Wow thanks for posting this! I have been learning Python and messing around with Alpaca's API but I want to keep all my future live trading with IB. I will definitely be looking into this.
     
    #23     Jul 9, 2019