Skip to content

yfquotes@thegli - weekly and monthly change - #1857

Open
v-radev wants to merge 5 commits into
linuxmint:masterfrom
v-radev:yfquotes-weekly-and-monthly-change
Open

yfquotes@thegli - weekly and monthly change#1857
v-radev wants to merge 5 commits into
linuxmint:masterfrom
v-radev:yfquotes-weekly-and-monthly-change

Conversation

@v-radev

@v-radev v-radev commented Jun 18, 2026

Copy link
Copy Markdown

This PR adds options to enable extra columns for weekly change and monthly change of each stock. The display value can be configured to be 1 of 3 options: percent change, absolute change (difference) or just display the market price from a week/month ago.

The data required for this is fetched with a single request if the tickers are up to 20, if they are more than 20, the requests are chunked to 20 tickers each, which is the limit forced by YF.

If one of the weekly or monthly options are enabled, the data is merged to the existing quotes data argument and then used when the labels are getting created. I think merging the data introduces the least amount of changes to existing methods and doesn't require any new arguments being passed around.

image image image

@v-radev

v-radev commented Jun 18, 2026

Copy link
Copy Markdown
Author

@thegli please review whenever possible. Thanks

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 this pull request may close these issues.

2 participants