forked from OpenBB-finance/OpenBB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] - Add derivates historical chart (OpenBB-finance#6520)
* Add derivates historical chart * Try to debug test * Try to debug test * Try to debug test * Revert and lint * Revert * Add tests --------- Co-authored-by: Henrique Joaquim <[email protected]> Co-authored-by: Danglewood <[email protected]>
- Loading branch information
1 parent
83e7314
commit befdcfc
Showing
7 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
openbb_platform/extensions/derivatives/openbb_derivatives/derivatives_views.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Views for the Derivatives Extension.""" | ||
|
||
from typing import Any, Dict, Tuple | ||
|
||
from openbb_charting.charts.price_historical import price_historical | ||
from openbb_charting.core.openbb_figure import OpenBBFigure | ||
|
||
|
||
class DerivativesViews: | ||
"""Derivatives Views.""" | ||
|
||
@staticmethod | ||
def derivatives_futures_historical( # noqa: PLR0912 | ||
**kwargs, | ||
) -> Tuple[OpenBBFigure, Dict[str, Any]]: | ||
"""Get Derivatives Price Historical Chart.""" | ||
return price_historical(**kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters