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

Feature/mstarpy #4068

Merged
merged 62 commits into from
Feb 3, 2023
Merged

Feature/mstarpy #4068

merged 62 commits into from
Feb 3, 2023

Conversation

Mael-J
Copy link
Contributor

@Mael-J Mael-J commented Jan 29, 2023

Description

  • Summary of the change / bug fix.
  • Link # issue, if applicable.
  • Screenshot of the feature or the bug before/after fix, if applicable.
  • Relevant motivation and context.
  • List any dependencies that are required for this change.

How has this been tested?

  • Please describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • Please also list any relevant details for your test configuration.
  • Make sure affected commands still run in terminal
  • Ensure the SDK still works
  • Check any related reports

Checklist:

Others

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.

Fix #3975

Copy link
Contributor

@hjoaquim hjoaquim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mael-J this was great work, thanks for caring enough to the point of almost rebuilding the whole functionality for the funds menu!

The menu is now usable after some months.
There are a couple of improvements that can be done, but those are out of the scope of this PR - I'll be adding it on the issues tab, so we can work on it later on.

I don't have any big comments to do, as the code was clean and understandable.
I've done some minor changes that I want to know if you agree with. If yes, for me, it's approved.

Once again, great work 🚀

@hjoaquim hjoaquim mentioned this pull request Feb 2, 2023
@jmaslek
Copy link
Collaborator

jmaslek commented Feb 2, 2023

I have a small comment:

The functions

│     alswe              display fund allocation (sector, country, holdings)             [Avanza]                                                                                   │
│     infoswe            get fund information       

Should only show when country selected is sweden

@jmaslek
Copy link
Collaborator

jmaslek commented Feb 2, 2023

Im also curious about this. If I look at vfiax, which is trading at around $380, this says 35,000. Is there a factor of 100 off?

Screenshot 2023-02-02 at 10 54 21 AM

@hjoaquim
Copy link
Contributor

hjoaquim commented Feb 2, 2023

changed the swe functions here: 31292d7 to address @jmaslek good point
also, changed a bit of the behavior, so it's now getting the data using the ISIN instead of the name, which works perfectly fine with the new load data source

@jmaslek
Copy link
Collaborator

jmaslek commented Feb 2, 2023

changed the swe functions here: 31292d7 to address @jmaslek good point also, changed a bit of the behavior, so it's now getting the data using the ISIN instead of the name, which works perfectly fine with the new load data source

So now this doesnt work

                                                                                                                                                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── OpenBB Terminal v2.3.1 (https://openbb.co) ─╯
2023 Feb 02, 12:19 (🦋) /funds/ $ load vfiax

0 funds found whith the term vfiax
Error: 0 funds found with the term vfiax

No funds were loaded.

@hjoaquim
Copy link
Contributor

hjoaquim commented Feb 2, 2023

2023 Feb 02, 18:06 (🦋) /funds/ $ country united_states

United_States selected.

2023 Feb 02, 18:06 (🦋) /funds/ $ load vfiax

The fund Vanguard 500 Index Fund Admiral Shares - 52.8.VFIAX (FOUSA00L8W) was successfully loaded.

2023 Feb 02, 18:06 (🦋) /funds/ $

Did you select the country @jmaslek ?
Looks like it's not a mandatory arg for the load but if it's empty the results are not as good / inexistant.
Maybe @Mael-J can add some input on this? Can be as simple as force to always select country before using load - if that makes sense.

@jmaslek
Copy link
Collaborator

jmaslek commented Feb 2, 2023

2023 Feb 02, 18:06 (🦋) /funds/ $ country united_states

United_States selected.

2023 Feb 02, 18:06 (🦋) /funds/ $ load vfiax

The fund Vanguard 500 Index Fund Admiral Shares - 52.8.VFIAX (FOUSA00L8W) was successfully loaded.

2023 Feb 02, 18:06 (🦋) /funds/ $

Did you select the country @jmaslek ? Looks like it's not a mandatory arg for the load but if it's empty the results are not as good / inexistant. Maybe @Mael-J can add some input on this? Can be as simple as force to always select country before using load - if that makes sense.

yup. totally forgot the country. We can either make that required ('no country selected please do so'), or default to united_states and add 'no funds found for {country}' on the load if it fails

@Mael-J
Copy link
Contributor Author

Mael-J commented Feb 2, 2023

@jmaslek historical data come from the API performance (https://www.morningstar.com/funds/xnas/vfiax/performance). It is the total performance of the funds.

I created a version 0.0.4 of mstarpy with a method nav which get the actual nav of the funds (https://www.morningstar.com/funds/xnas/vfiax/chart)

I can change the plot and display the actual nav. What do you think ?

@Mael-J
Copy link
Contributor Author

Mael-J commented Feb 2, 2023

@jmaslek @hjoaquim I don't know why for some funds the country is mandatory. Selecting a country before load method is good idea.

@jmaslek
Copy link
Collaborator

jmaslek commented Feb 2, 2023

@jmaslek historical data come from the API performance (https://www.morningstar.com/funds/xnas/vfiax/performance). It is the total performance of the funds.

I created a version 0.0.4 of mstarpy with a method nav which get the actual nav of the funds (https://www.morningstar.com/funds/xnas/vfiax/chart)

I can change the plot and display the actual nav. What do you think ?

I think the NAV makes more sense. (As someone invested in vfiax, I wish it were that high!)

@hjoaquim
Copy link
Contributor

hjoaquim commented Feb 3, 2023

@luqmanbello should we worry with these actions?: license/snyk and security/snyk
When I try to see details, I get: "Unable to display this organization"

@jmaslek
Copy link
Collaborator

jmaslek commented Feb 3, 2023

@luqmanbello should we worry with these actions?: license/snyk and security/snyk

When I try to see details, I get: "Unable to display this organization"

You can ignore them for now.

@hjoaquim hjoaquim merged commit 7175d0f into OpenBB-finance:develop Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat XL Extra Large feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Docs - Mutual Fund in the Terminal Reference Section Shouldn't Exist
3 participants