Skip to content

Commit

Permalink
[Feature] Add openbb-platform-api To Main pyproject.toml (#6818)
Browse files Browse the repository at this point in the history
* add openbb-platform-api to pyproject.toml

* static files

* fix test
  • Loading branch information
deeleeramone authored Oct 21, 2024
1 parent ca8dc8b commit 952af88
Show file tree
Hide file tree
Showing 5 changed files with 1,678 additions and 555 deletions.
125 changes: 87 additions & 38 deletions openbb_platform/openbb/assets/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -5523,24 +5523,28 @@
],
"fred": [
{
"name": "is_release",
"type": "bool",
"description": "Is release? If True, other search filter variables are ignored. If no query text or release_id is supplied, this defaults to True.",
"default": false,
"name": "search_type",
"type": "Literal['full_text', 'series_id', 'release']",
"description": "The type of search to perform. Automatically set to 'release' when a 'release_id' is provided.",
"default": "full_text",
"optional": true,
"choices": null
"choices": [
"full_text",
"series_id",
"release"
]
},
{
"name": "release_id",
"type": "Union[int, str]",
"type": "Annotated[int, Ge(ge=0)]",
"description": "A specific release ID to target.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "limit",
"type": "int",
"type": "Annotated[int, Ge(ge=0)]",
"description": "The number of data entries to return. (1-1000)",
"default": null,
"optional": true,
Expand All @@ -5549,11 +5553,41 @@
{
"name": "offset",
"type": "Annotated[int, Ge(ge=0)]",
"description": "Offset the results in conjunction with limit.",
"description": "Offset the results in conjunction with limit. This parameter is ignored When search_type is 'release'.",
"default": 0,
"optional": true,
"choices": null
},
{
"name": "order_by",
"type": "Literal['search_rank', 'series_id', 'title', 'units', 'frequency', 'seasonal_adjustment', 'realtime_start', 'realtime_end', 'last_updated', 'observation_start', 'observation_end', 'popularity', 'group_popularity']",
"description": "Order the results by a specific attribute. The default is 'observation_end'.",
"default": "observation_end",
"optional": true,
"choices": [
"search_rank",
"series_id",
"title",
"units",
"frequency",
"seasonal_adjustment",
"realtime_start",
"realtime_end",
"last_updated",
"observation_start",
"observation_end",
"popularity",
"group_popularity"
]
},
{
"name": "sort_order",
"type": "Literal['asc', 'desc']",
"description": "Sort the 'order_by' item in ascending or descending order. The default is 'desc'.",
"default": "desc",
"optional": true,
"choices": null
},
{
"name": "filter_variable",
"type": "Literal['frequency', 'units', 'seasonal_adjustment']",
Expand All @@ -5565,23 +5599,23 @@
{
"name": "filter_value",
"type": "str",
"description": "String value to filter the variable by. Used in conjunction with filter_variable.",
"description": "String value to filter the variable by. Used in conjunction with filter_variable. This parameter is ignored when search_type is 'release'.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "tag_names",
"type": "Union[str, List[str]]",
"description": "A semicolon delimited list of tag names that series match all of. Example: 'japan;imports' Multiple items allowed for provider(s): fred.",
"description": "A semicolon delimited list of tag names that series match all of. Example: 'japan;imports' This parameter is ignored when search_type is 'release'. Multiple items allowed for provider(s): fred.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "exclude_tag_names",
"type": "Union[str, List[str]]",
"description": "A semicolon delimited list of tag names that series match none of. Example: 'imports;services'. Requires that variable tag_names also be set to limit the number of matching series. Multiple items allowed for provider(s): fred.",
"description": "A semicolon delimited list of tag names that series match none of. Example: 'imports;services'. Requires that variable tag_names also be set to limit the number of matching series. This parameter is ignored when search_type is 'release'. Multiple items allowed for provider(s): fred.",
"default": null,
"optional": true,
"choices": null
Expand Down Expand Up @@ -5629,7 +5663,7 @@
"standard": [
{
"name": "release_id",
"type": "Union[int, str]",
"type": "str",
"description": "The release ID for queries.",
"default": null,
"optional": true,
Expand All @@ -5643,6 +5677,22 @@
"optional": true,
"choices": null
},
{
"name": "series_group",
"type": "str",
"description": "The series group ID of the series. This value is used to query for regional data.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "region_type",
"type": "str",
"description": "The region type of the series.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "name",
"type": "str",
Expand Down Expand Up @@ -5732,64 +5782,63 @@
"choices": null
},
{
"name": "notes",
"type": "str",
"description": "Description of the release.",
"name": "popularity",
"type": "int",
"description": "Popularity of the series",
"default": null,
"optional": true,
"choices": null
},
{
"name": "press_release",
"type": "bool",
"description": "If the release is a press release.",
"name": "group_popularity",
"type": "int",
"description": "Group popularity of the release",
"default": null,
"optional": true,
"choices": null
},
{
"name": "url",
"type": "str",
"description": "URL to the release.",
"name": "realtime_start",
"type": "date",
"description": "The realtime start date of the series.",
"default": null,
"optional": true,
"choices": null
}
],
"fred": [
},
{
"name": "popularity",
"type": "int",
"description": "Popularity of the series",
"name": "realtime_end",
"type": "date",
"description": "The realtime end date of the series.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "group_popularity",
"type": "int",
"description": "Group popularity of the release",
"name": "notes",
"type": "str",
"description": "Description of the release.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "region_type",
"type": "str",
"description": "The region type of the series.",
"name": "press_release",
"type": "bool",
"description": "If the release is a press release.",
"default": null,
"optional": true,
"choices": null
},
{
"name": "series_group",
"type": "Union[int, str]",
"description": "The series group ID of the series. This value is used to query for regional data.",
"name": "url",
"type": "str",
"description": "URL to the release.",
"default": null,
"optional": true,
"choices": null
}
]
],
"fred": []
},
"model": "FredSearch"
},
Expand Down Expand Up @@ -39292,4 +39341,4 @@
"description": "Financial market regulators data."
}
}
}
}
4 changes: 2 additions & 2 deletions openbb_platform/openbb/package/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2257,9 +2257,9 @@ def fred_search(
The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: fred.
search_type : Literal['full_text', 'series_id', 'release']
The type of search to perform. Automatically set to 'release' when a 'release_id' is provided. (provider: fred)
release_id : Optional[Union[int, str]]
release_id : Optional[Annotated[int, Ge(ge=0)]]
A specific release ID to target. (provider: fred)
limit : Optional[int]
limit : Optional[Annotated[int, Ge(ge=0)]]
The number of data entries to return. (1-1000) (provider: fred)
offset : Optional[Annotated[int, Ge(ge=0)]]
Offset the results in conjunction with limit. This parameter is ignored When search_type is 'release'. (provider: fred)
Expand Down
Loading

0 comments on commit 952af88

Please sign in to comment.