-
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.
[Feature] Add Port Volume Data From EconDB (#6668)
* add port volume data from econdb * linter --------- Co-authored-by: Igor Radovanovic <[email protected]>
- Loading branch information
1 parent
d1d67bf
commit 57dd66c
Showing
11 changed files
with
2,323 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
openbb_platform/core/openbb_core/provider/standard_models/port_volume.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,35 @@ | ||
"""Port Volume Standard Model.""" | ||
|
||
from datetime import date as dateType | ||
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, | ||
QUERY_DESCRIPTIONS, | ||
) | ||
|
||
|
||
class PortVolumeQueryParams(QueryParams): | ||
"""Port Volume Query.""" | ||
|
||
start_date: Optional[dateType] = Field( | ||
default=None, description=QUERY_DESCRIPTIONS.get("start_date", "") | ||
) | ||
end_date: Optional[dateType] = Field( | ||
default=None, description=QUERY_DESCRIPTIONS.get("end_date", "") | ||
) | ||
|
||
|
||
class PortVolumeData(Data): | ||
"""Port Volume Data.""" | ||
|
||
date: dateType = Field(description=DATA_DESCRIPTIONS.get("date", "")) | ||
port_code: Optional[str] = Field(default=None, description="Port code.") | ||
port_name: Optional[str] = Field(default=None, description="Port name.") | ||
country: Optional[str] = Field( | ||
default=None, description="Country where the port is located." | ||
) |
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.