-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stocks APIs - Multiple/Array Tickers in requests and responses #7
Comments
We may be able to do this in the future, however, we would likely just add pagination logic to the responses that would query the next individual ticker. |
Consolidating polygon-io/issues#130 into this ticket. Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered Additional context |
+1, would like to see this implemented ASAP |
Yes, I need this, is it implemented already? Are plans to add this in the future? |
It is frustrating when we need to make the same call repeatedly for different tickers. For example, if we want aggregates for the same period and options but for 1,000 tickers, it requires 1,000 API calls. It would be much nicer if an array of tickers could be passed in and an array of results returned. This applies to ALL stock endpoints.
Varying tickers are the biggest frustration but there are times when other fields could also be arrays, for example the timestamp of Quotes NBBO VX (I want last quote for a given ticker at an array of timestamps)
Example:
POST: /v2/aggs/tickers
BODY:
{
"tickers": ["MSFT","AAPL","TSLA"],
"multiplier": 2,
"from": "2021-01-02",
"to": "2021-01-03"
}
OR (this would have query length limitations but would still be an improvement)
GET: /v2/aggs/tickers/range/{multiplier}/{timespan}/{from}/{to}?tickers=AAPL,TSLA,MSFT,...
The text was updated successfully, but these errors were encountered: