This commit is contained in:
Diogo Sousa
2023-07-27 14:32:40 +01:00
parent 027bab20c4
commit 74b73fa8db
6 changed files with 8 additions and 36 deletions

View File

@@ -1,5 +1,6 @@
from typing import Dict, List, Optional, Tuple
from pydantic import create_model, Extra
from pydantic import create_model
from openbb_core.app.provider_interface import get_provider_interface

View File

@@ -4,8 +4,6 @@ import warnings
from dataclasses import asdict
from typing import Any, Dict
from pydantic import BaseModel
from openbb_core.app.model.abstract.warning import OpenBBWarning
from openbb_core.app.model.command_context import CommandContext
from openbb_core.app.provider_interface import (

View File

@@ -20,38 +20,10 @@ class CLASS_news(Container):
self,
page: pydantic.types.NonNegativeInt = 0,
chart: bool = False,
provider: Optional[Literal["benzinga", "fmp"]] = None,
provider: Optional[Literal["benzinga"]] = None,
**kwargs
) -> CommandOutput[typing.List]:
"""Global News.
Available providers: benzinga, fmp
Standard
========
benzinga
========
Source: https://docs.benzinga.io/benzinga/newsfeed-v2.html
Returns
-------
Documentation not available.
fmp
===
Source: https://site.financialmodelingprep.com/developer/docs/general-news-api/
Returns
-------
Documentation not available.
"""
"""Global News."""
inputs = filter_inputs(
provider_choices={
"provider": provider,

View File

@@ -1,6 +1,6 @@
"""Abstract class for providers."""
from typing import Any, Dict, List, Optional
from typing import Dict, List, Optional
from openbb_provider.abstract.fetcher import Fetcher

View File

@@ -1,6 +1,7 @@
from openbb_provider.abstract.provider import Provider
import pkg_resources
from openbb_provider.abstract.provider import Provider
class Registry:
"""Class to maintain registry of providers"""

View File

@@ -1,6 +1,6 @@
from typing import Dict, List, Literal, Optional
from openbb_provider.abstract.fetcher import Fetcher
from openbb_provider.abstract.fetcher import Fetcher
from openbb_provider.registry import Registry, RegistryLoader