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

Add options greeks to the SDK #4334

Merged
merged 2 commits into from
Feb 26, 2023

Conversation

northern-64bit
Copy link
Contributor

Description

Closes #3491

Adds the option greeks calculations to the SDK.

How has this been tested?

Running the following SDK code:

from openbb_terminal.sdk import openbb
a = openbb.stocks.options.chains("AAPL", source="YahooFinance")
aapl_last_price = openbb.stocks.options.last_price("AAPL")
print(openbb.stocks.options.greeks(aapl_last_price, a, a.iloc[0, 2]))
from openbb_terminal.sdk import openbb
a = openbb.stocks.options.chains("AAPL", source="Tradier")
aapl_last_price = openbb.stocks.options.last_price("AAPL")
print(openbb.stocks.options.greeks(aapl_last_price, a, a.iloc[0, 2]))
  • 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.

@northern-64bit northern-64bit added bug Fix bug platform OpenBB Platform labels Feb 25, 2023
@reviewpad reviewpad bot added the feat S Small T-Shirt size Feature label Feb 25, 2023
@reviewpad reviewpad bot added feat XS Extra small feature and removed feat S Small T-Shirt size Feature labels Feb 25, 2023
@jmaslek jmaslek added this pull request to the merge queue Feb 26, 2023
Merged via the queue into OpenBB-finance:develop with commit 5b05c9c Feb 26, 2023
@northern-64bit northern-64bit deleted the hotfix/bug-#3491 branch February 27, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug feat XS Extra small feature platform OpenBB Platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] SDK stocks.options - where's the greeks?
2 participants