Get Historical Option Price Data In Python From Polygon.io API
Here's a fast and free way to get historical option price data; it's easy to get all the option data you might need in Python from the Polygon.io API. Check them out here! https://polygon.io/?utm_source=affiliate&utm_campaign=getbags Here's all the code from the video https://github.com/AdamGetbags/polygonData/blob/main/historicalOptionDataPolygon.py https://github.com/AdamGetbags/polygonData/blob/main/polygonAPIkey.py 0:32 open the docs 0:50 create a Polygon.io account and subscribe to free basic plan 1:25 pip install polygon-api-client 1:34 import modules 1:46 get API key from Polygon.io into python 2:19 authenticate your client with API key 2:34 request contract data for every available option by underlying 3:35 BEWARE of the rate limit 3:49 extract the individual contract data 4:17 assign option ticker to variable using individual contract data 4:30 create a request for OHLC option data 5:07 define frequency and periodicity of bars 5:30 get historical option price data 5:37 format to dataframe, reformat timestamp, and set index 6:24 plot a candlestick chart The Polygon.io API features a ton of useful methods for getting stock, option, cryptocurrency, and forex data in a bunch of different programming languages. Subscribe to join our community and receive value on all things finance and technology! - - - If you love the content, buy me a coffee! https://www.buymeacoffee.com/adamgetbags Keep up with me! https://www.instagram.com/damgetbags - - - Need some ideas for your project portfolio? Check out how to get stock price data in Python with TD Ameritrade API. https://youtu.be/ZeA8aE-sfIY Here's how to stream real time option data in Python with TD Ameritrade API. https://youtu.be/wQk0hT9xpiE Here's how to build a web scraping robot that gets crypto price data in Python https://youtu.be/jUS64V2jDiY - - - DISCLAIMER: The Information on Adam Getbags on Youtube.com is provided for education and informational purposes only, without any express or implied warranty of any kind, including warranties of accuracy, completeness, or fitness for any particular purpose. The Information contained in or provided from or through Adam Getbags on Youtube.com is not intended to be and does not constitute financial advice, investment recommendations, investment advice, trading advice, or any other advice. The Information on Adam Getbags on Youtube.com is general in nature and is not specific to you the User or anyone else. You should not make any decision, financial, investment, trading, or otherwise, based on any of The Information presented on Adam Getbags on Youtube.com without undertaking independent due diligence and consultation with a professional broker or financial advisory.
Download
0 formatsNo download links available.