Setting alerts for options chain

Discussion in 'Options' started by tonyf, Mar 15, 2021.

  1. tonyf

    tonyf

    Is there any way of setting up a web alert of some sort (or API with IB) that triggers when new expiry dates open up for a particular option chain?
     
  2. traider

    traider

    if u know programming u can write something that queries for a stock's option expiries, then check the diff everyday
     
  3. tonyf

    tonyf

    I only know VLookups unfortunately :)
    Where can I find a source file to query? or how could I retrieve that with the IB DDE api?
     
  4. traider

    traider

    i used ib insync (python)

    def chains(self, symbol):
    stock = Stock(symbol, 'SMART', 'USD')
    ib.qualifyContracts(stock) # need this for conId
    chains = self.ib.reqSecDefOptParams(symbol, '', stock.secType, stock.conId)
    filtered_chains = next(c for c in chains if c.exchange == 'SMART')
    return filtered_chains
     
  5. newwurldmn

    newwurldmn

    Option maturities are algorithmic. You can find the algorithm on the cboe website or occ website I think.
     
    guru likes this.