Overview
In this how to guide, we will show you how simple it is to use Intrinio to efficiently query our End of Day Historical Options data. In this example we will be using Python however, you can use any one of our client SDKs or query our REST API directly using your programming language of choice.
Prerequisites
- Create an account to get an API key
- Contact sales@intrinio.com to sign up for a free trial
- Choose which SDK you wish to use Python, Javascript/Node, C#, Java, Ruby, or R.
Procedure
Install the Intrinio Python SDK if you haven't already.
Using the Option Prices EOD we can get the daily open, high, low, close, closing ask, closing bid, open interest, greeks, implied volatility and more for a options contract. Create new python file and add the following code updating your api key.
Running the code above, you'll receive the daily end of day data for a single contact! That was easy... and like many of our endpoints that contain historical data, you can page through the history which is great for backfilling. The obvious problem is that are over a million contracts. That's a lot of api calls! The Option Chain EOD endpoint will enable you pull all the contracts for a specific expiration date and ticker.
Ok, that is a little more useful but how can I programmatically discover which expiration dates are available? I'm glad I asked myself because we have an endpoint for you (and myself).
Alright, I can see how that would be useful. Let's tie that together with the chain endpoint but let's do it for a specific date.
This is fine for testing small scale exploration as well as pulling down data one day at a time but I know what you are thinking. You're thinking "this is a massive dataset and I want all of it in a flat file". We've got you covered. We can do csv file delivery as well; in fact we encourage it for backfilling historical data. Request a consultation and we will start you with a trial or sample file.
Conclusion
We strive to make data ingestion as simple as possible so you can focus on building your market beating application.
Questions? Comments? Ready to buy? Contact sales@intrinio.com.