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 Top Export Destinations By Country From UN Comtrade Int…
…ernational Trade Statistics Database (EconDB) (OpenBB-finance#6644) * add economy.export_destinations * mypy * elif * unused argument --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
- Loading branch information
1 parent
4311c68
commit de8b73e
Showing
11 changed files
with
571 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
openbb_platform/core/openbb_core/provider/standard_models/export_destinations.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,30 @@ | ||
"""Export Destinations Standard Model.""" | ||
|
||
from typing import Union | ||
|
||
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 QUERY_DESCRIPTIONS | ||
|
||
|
||
class ExportDestinationsQueryParams(QueryParams): | ||
"""Export Destinations Query.""" | ||
|
||
country: str = Field(description=QUERY_DESCRIPTIONS.get("country", "")) | ||
|
||
|
||
class ExportDestinationsData(Data): | ||
"""Export Destinations Data.""" | ||
|
||
origin_country: str = Field( | ||
description="The country of origin.", | ||
) | ||
destination_country: str = Field( | ||
description="The destination country.", | ||
) | ||
value: Union[float, int] = Field( | ||
description="The value of the export.", | ||
json_schema_extra={"x-unit_measurement": "currency"}, | ||
) |
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
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.