-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Fix Currency Search (#6380)
* fix currency search * test artifact * static files
- Loading branch information
1 parent
1a49dfd
commit 4d6074d
Showing
11 changed files
with
562 additions
and
631 deletions.
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
openbb_platform/core/openbb_core/provider/standard_models/currency_pairs.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 |
---|---|---|
@@ -1,16 +1,24 @@ | ||
"""Currency Available Pairs Standard Model.""" | ||
|
||
from typing import Optional | ||
|
||
from pydantic import Field | ||
|
||
from openbb_core.provider.abstract.data import Data | ||
from openbb_core.provider.abstract.query_params import QueryParams | ||
from openbb_core.provider.utils.descriptions import DATA_DESCRIPTIONS | ||
|
||
|
||
class CurrencyPairsQueryParams(QueryParams): | ||
"""Currency Available Pairs Query.""" | ||
|
||
query: Optional[str] = Field( | ||
default=None, description="Query to search for currency pairs." | ||
) | ||
|
||
|
||
class CurrencyPairsData(Data): | ||
"""Currency Available Pairs Data.""" | ||
|
||
name: str = Field(description="Name of the currency pair.") | ||
symbol: str = Field(description=DATA_DESCRIPTIONS.get("symbol", "")) | ||
name: Optional[str] = Field(default=None, description="Name of the currency pair.") |
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
Oops, something went wrong.