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

[Bug] Stocks/Load - Cannot load monthly/weekly interval with Polygon as source. #2044

Closed
Tracked by #2051
deeleeramone opened this issue Jul 4, 2022 · 0 comments · Fixed by #2051
Closed
Tracked by #2051
Assignees

Comments

@deeleeramone
Copy link
Contributor

deeleeramone commented Jul 4, 2022

The flags for Weekly and Monthly intervals is not working when Polygon is the source. Polygon allows any interval to be used, so this shouldn't be the result of the API limitations.

The sort fields for the --raw flag are not valid for Polygon as a source. There are different columns, and there is no column for LogRet and Returns.

Screen Shot 2022-07-04 at 10 24 50 AM

Screen Shot 2022-07-04 at 10 25 32 AM

Also, related to #2032 - sorting the raw data using candle --raw does not allow you to use the descending flag -d to show the tail of the data frame, i.e., the earliest date first.

Screen Shot 2022-07-04 at 10 30 42 AM

Chavithra added a commit that referenced this issue Jul 7, 2022
…lygon as source. (#2051)

* fixed polygon timespan, it wasn't using the montly/weekly flags

* validate if the column exists before proceeding with the sort

* if the stock dataframe is empty we'll keep the previous behaviour. also, added quotes to keep the formatting the same as the original message.

Co-authored-by: Chavithra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants