question

clairemp avatar image
0 Likes"
clairemp asked ·

Extract prices for a list of tickers

Hi,


I'm interested in getting historical prices of a list of stocks through Python.


I've only found ways to get single stock's price with

security_api.get_security_stock_prices(identifier, start_date=start_date, end_date=end_date, frequency=frequency, page_size=page_size, next_page=next_page)

Is there some way to extract multiple stocks at the same time other than calling the line one stock at a time?


Thanks!

historical datamultiple stocks download
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
mkelly avatar image
0 Likes"
mkelly answered ·

Hi! There are three ways of going about retrieving this data.

1. One ticker at a time as you have shown. This has the advantage of providing the user with direct control and gives pinpoint data availability. However, it requires multiple calls for multiple tickers.

2. Securities screening. (https://docs.intrinio.com/documentation/python/screen_securities_v2) This will allow users to retrieve securities data about a number of tickers that all match the user-defined criteria. This requires the use of intricate logic and/or similarities between the securities that are being requested.

3. bulk download. (https://docs.intrinio.com/documentation/download/prices?values=eyJpZGVudGlmaWVyIjoiQUFQTCJ9) This will allow users a large set of data including all available tickers to be retrieved. This will, however, include tickers that the user is not looking for and maybe far more data than needed.

· Share
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.