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

Endpoint for historical market holidays / status #14

Open
SebRollen opened this issue May 18, 2021 · 7 comments
Open

Endpoint for historical market holidays / status #14

SebRollen opened this issue May 18, 2021 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@SebRollen
Copy link

Is your feature request related to a problem? Please describe.
I sometimes want to find what was the last trading day before the current day. Normally, one can just look-up the previous business-day, but market holidays can complicate things.

Describe the solution you'd like
I would love to see another endpoint similar to v1/marketstatus/now and v1/marketstatus/upcoming that allows for querying past dates. Perhaps v1/marketstatus/history. The parameters for this endpoint would most likely be start (date) and end (date), similar to the aggs endpoint.

Describe alternatives you've considered
The best alternative currently seems to be to call the previous-close endpoint and parse the date from the t field, but that requires specifying a specific ticker even though we want a market-wide value

@SebRollen SebRollen added the enhancement New feature or request label May 18, 2021
@spazmodius
Copy link

I currently use Alpaca's calendar endpoint for this data.

@SebRollen
Copy link
Author

@spazmodius, that's a good suggestion for users who also have an Alpaca account, thank you. Would love to still see an endpoint from polygon though as it'd be nice to not have to rely on one specific broker for this data

@bensie
Copy link

bensie commented May 20, 2021

Looking for this as well. Ideally whether you're querying history or the current market status, it returns the timestamp of market close as well. This is particularly important for short market days, where intra-day positions need to be closed before market close. Thanks!

@upuxaa
Copy link

upuxaa commented Oct 14, 2021

I'm going to use Tradier for now to query the historical market holidays/status

https://documentation.tradier.com/brokerage-api/markets/get-calendar

@sergproua
Copy link

Is there an ETA for the feature? Thanks!

@sergproua
Copy link

A good alternative would be to introduce new Aggregates (Bars) API accepting from and number of aggregate bars instead of 'from' and 'to'

@jrbell19 jrbell19 transferred this issue from polygon-io/issues Mar 9, 2023
@vjamwec13579
Copy link

Still no updates to this RFP?

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

7 participants