Skip to content
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

Open
papadeus opened this issue Dec 21, 2021 · 4 comments
Open

Stocks APIs - Multiple/Array Tickers in requests and responses #7

papadeus opened this issue Dec 21, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@papadeus
Copy link

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,...

@papadeus papadeus added the enhancement New feature or request label Dec 21, 2021
@jrbell19
Copy link
Collaborator

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.

@matichenor matichenor changed the title STOCK - Accept arrays in requests and return arrays in responses Stocks APIs - Accept arrays in requests and return arrays in responses Feb 9, 2022
@matichenor matichenor changed the title Stocks APIs - Accept arrays in requests and return arrays in responses Stocks APIs - Multiple/Array Tickers in requests and responses Feb 9, 2022
@matichenor
Copy link

Consolidating polygon-io/issues#130 into this ticket.

Is your feature request related to a problem? Please describe.
Getting all stocks to consume a lot of time and I'm sure a lot of resources

Describe the solution you'd like
Ticker details API should allow multiple tickers in one API

Describe alternatives you've considered
Ticker details API should allow multiple tickers in one API

Additional context
example
/v1/meta/symbols/AAPL,MSFT/company

@matichenor matichenor self-assigned this Feb 9, 2022
@jrbell19 jrbell19 transferred this issue from polygon-io/issues Mar 9, 2023
@RaccoonWang
Copy link

+1, would like to see this implemented ASAP

@Diogomartf
Copy link

Yes, I need this, is it implemented already? Are plans to add this in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants