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

yf_plotter using the wrong spot price #8

Open
jeffgoot opened this issue Jun 25, 2022 · 2 comments · May be fixed by #9
Open

yf_plotter using the wrong spot price #8

jeffgoot opened this issue Jun 25, 2022 · 2 comments · May be fixed by #9

Comments

@jeffgoot
Copy link

The yf_plotter(...) function appears to always use the MSFT spot price regardless of the ticker passed. Thus, the displayed payoff chart always has the wrong spot price which makes the chart way off when prices are either significantly lower or higher than MSFT's.

Example: AMD vertical call spread. Notice that even though AMD's spot price on 6/24/2022 EOD was $87.08, the displayed spot price was $267.70, MSFT's spot price.
image

@jeffgoot
Copy link
Author

Once the change in PR #9 was introduced, the payoff chart now shows both the correct spot price and the visible window. Here's a screenshot of the updated output of the original test code.

image

@5amfung
Copy link

5amfung commented Sep 23, 2023

Please merge this fix.

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