mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
add forex load
This commit is contained in:
@@ -5,9 +5,9 @@ from openbb_sdk_core.app.model.command_context import CommandContext
|
||||
from openbb_sdk_core.app.model.command_output import CommandOutput
|
||||
from openbb_sdk_core.app.model.results.empty import Empty
|
||||
from openbb_sdk_core.app.provider_interface import (
|
||||
ExtraParams,
|
||||
ProviderChoices,
|
||||
StandardParams,
|
||||
ExtraParams,
|
||||
)
|
||||
from openbb_sdk_core.app.query import Query
|
||||
from openbb_sdk_core.app.router import Router
|
||||
|
||||
@@ -1,11 +1,23 @@
|
||||
from openbb_sdk_core.app.model.command_context import CommandContext
|
||||
from openbb_sdk_core.app.model.command_output import CommandOutput
|
||||
from openbb_sdk_core.app.model.results.empty import Empty
|
||||
from openbb_sdk_core.app.provider_interface import (
|
||||
ExtraParams,
|
||||
ProviderChoices,
|
||||
StandardParams,
|
||||
)
|
||||
from openbb_sdk_core.app.query import Query
|
||||
from openbb_sdk_core.app.router import Router
|
||||
|
||||
router = Router(prefix="")
|
||||
|
||||
|
||||
@router.command
|
||||
def load() -> CommandOutput[Empty]: # type: ignore
|
||||
@router.command(query="ForexPrice")
|
||||
def load(
|
||||
cc: CommandContext,
|
||||
provider_choices: ProviderChoices,
|
||||
standard_params: StandardParams,
|
||||
extra_params: ExtraParams,
|
||||
) -> CommandOutput[Empty]: # type: ignore
|
||||
"""Forex Intraday Price."""
|
||||
return CommandOutput(results=Empty())
|
||||
return CommandOutput(results=Query(**locals()).execute())
|
||||
|
||||
Reference in New Issue
Block a user