Forums  > Software  > TD Ameritrade API - Iterator Operator for Option Strike Chains  
     
Page 1 of 1
Display using:  

jlakes85


Total Posts: 13
Joined: Oct 2020
 
Posted: 2020-12-31 21:29
I'm in the process of automating and upgrading some volatility pricing models, working with the TD Ameritrade API Get Option Chain endpoint. The API documentation isn't the best. I was wondering if anyone is aware of a built-in function that allows iteration between strikes of a given expiry date? The ideal interface would be to provide the API the usual input: underlying symbol, expiry date, (maybe a strike value to start with) e.t.c. Once this has been deemed a good request, I would then be able to provide a simple increment or decrement operator to the API member function to return the next highest or lowest strike value option symbol, without having to know the strike spacing beforehand. Any insight would be greatly appreciated.

-jlakes85

contango_and_cash


Total Posts: 133
Joined: Sep 2015
 
Posted: 2021-01-10 21:17
I use the endpoint. iirc, why not just request the full chain and then filter?
Previous Thread :: Next Thread 
Page 1 of 1