p123api 2.4.0__tar.gz → 2.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {p123api-2.4.0 → p123api-2.4.1}/PKG-INFO +1 -1
- {p123api-2.4.0 → p123api-2.4.1}/p123api/client.py +8 -3
- {p123api-2.4.0 → p123api-2.4.1}/p123api/types.py +1 -1
- {p123api-2.4.0 → p123api-2.4.1}/p123api.egg-info/PKG-INFO +1 -1
- {p123api-2.4.0 → p123api-2.4.1}/setup.py +1 -1
- {p123api-2.4.0 → p123api-2.4.1}/LICENSE +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/README.md +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/p123api/__init__.py +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/p123api.egg-info/SOURCES.txt +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/p123api.egg-info/dependency_links.txt +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/p123api.egg-info/requires.txt +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/p123api.egg-info/top_level.txt +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/pyproject.toml +0 -0
- {p123api-2.4.0 → p123api-2.4.1}/setup.cfg +0 -0
|
@@ -873,7 +873,7 @@ class Client:
|
|
|
873
873
|
self, *, id: Optional[int] = None, factor_id: Optional[int] = None, name: Optional[str] = None
|
|
874
874
|
) -> StockFactorInfoResult:
|
|
875
875
|
"""
|
|
876
|
-
|
|
876
|
+
Retrieves stock factor info, only accepts id or name.
|
|
877
877
|
"""
|
|
878
878
|
if id is not None:
|
|
879
879
|
params = {"id": id}
|
|
@@ -889,7 +889,7 @@ class Client:
|
|
|
889
889
|
def data_series_info(self, *, name: str) -> DataSeriesInfoResult: ...
|
|
890
890
|
def data_series_info(self, *, id: Optional[int] = None, name: Optional[str] = None) -> DataSeriesInfoResult:
|
|
891
891
|
"""
|
|
892
|
-
|
|
892
|
+
Retrieves data series info, only accepts id or name.
|
|
893
893
|
"""
|
|
894
894
|
return self._req_with_auth_fallback(
|
|
895
895
|
method="GET", url=self._endpoint + DATA_SERIES_INFO_PATH, params={"name": name} if id is None else {"id": id}
|
|
@@ -901,7 +901,12 @@ class Client:
|
|
|
901
901
|
def strategy_info(self, *, name: str) -> StrategyInfoResult: ...
|
|
902
902
|
def strategy_info(self, *, id: Optional[int] = None, name: Optional[str] = None) -> StrategyInfoResult:
|
|
903
903
|
"""
|
|
904
|
-
|
|
904
|
+
Retrieves strategy info, only accepts id or name.
|
|
905
|
+
|
|
906
|
+
:param id: id of the strategy
|
|
907
|
+
:param name: name of the strategy
|
|
908
|
+
:return:
|
|
909
|
+
:rtype: :class:`StrategyInfoResult`
|
|
905
910
|
"""
|
|
906
911
|
return self._req_with_auth_fallback(
|
|
907
912
|
method="GET", url=self._endpoint + STRATEGY_INFO_PATH, params={"name": name} if id is None else {"id": id}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|