Does anyone know of a good way to find the atm strike for a given expiration? Currently I download the option chain from yahoo finance for a given expiration and figure out which strike is the closest to the stock price. However Yahoo option data is really unreliable for weeklys.
Even if you could point me to a good website to scrape off of. I wrote a scraper for NASDAQ but they index the option chain expirations with numbers 1:x rather than expiration date. So I am ify on the reliability of my scraper for this going forward.
https://www.nasdaq.com/symbol/aapl/option-chain?dateindex=1 This is feb expirations
https://www.nasdaq.com/symbol/aapl/option-chain?dateindex=2 This is March expirations etc...
A rest API would be ideal!
Ps. Does anyone have some hacks to scrape off of Barchart, it looks like they will not allow users to scrape data
Even if you could point me to a good website to scrape off of. I wrote a scraper for NASDAQ but they index the option chain expirations with numbers 1:x rather than expiration date. So I am ify on the reliability of my scraper for this going forward.
https://www.nasdaq.com/symbol/aapl/option-chain?dateindex=1 This is feb expirations
https://www.nasdaq.com/symbol/aapl/option-chain?dateindex=2 This is March expirations etc...
A rest API would be ideal!
Ps. Does anyone have some hacks to scrape off of Barchart, it looks like they will not allow users to scrape data
