fix some typos
This commit is contained in:
parent
176006da29
commit
63e1cba597
@ -77,7 +77,7 @@ class IResolver:
|
|||||||
return valid_objects_gen
|
return valid_objects_gen
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _search_object(cls, directory: Path, object_name: str, add_source: bool = False
|
def _search_object(cls, directory: Path, *, object_name: str, add_source: bool = False
|
||||||
) -> Union[Tuple[Any, Path], Tuple[None, None]]:
|
) -> Union[Tuple[Any, Path], Tuple[None, None]]:
|
||||||
"""
|
"""
|
||||||
Search for the objectname in the given directory
|
Search for the objectname in the given directory
|
||||||
@ -103,7 +103,7 @@ class IResolver:
|
|||||||
return (None, None)
|
return (None, None)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _load_object(cls, paths: List[Path], object_name: str, add_source: bool = False,
|
def _load_object(cls, paths: List[Path], *, object_name: str, add_source: bool = False,
|
||||||
kwargs: dict = {}) -> Optional[Any]:
|
kwargs: dict = {}) -> Optional[Any]:
|
||||||
"""
|
"""
|
||||||
Try to load object from path list.
|
Try to load object from path list.
|
||||||
@ -125,7 +125,7 @@ class IResolver:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def load_object(cls, object_name: str, config: dict, kwargs: dict,
|
def load_object(cls, object_name: str, config: dict, *, kwargs: dict,
|
||||||
extra_dir: Optional[str] = None) -> Any:
|
extra_dir: Optional[str] = None) -> Any:
|
||||||
"""
|
"""
|
||||||
Search and loads the specified object as configured in hte child class.
|
Search and loads the specified object as configured in hte child class.
|
||||||
|
@ -172,7 +172,7 @@ class ApiServer(RPC):
|
|||||||
|
|
||||||
def register_rest_rpc_urls(self):
|
def register_rest_rpc_urls(self):
|
||||||
"""
|
"""
|
||||||
Registers flask app URLs that are calls to functonality in rpc.rpc.
|
Registers flask app URLs that are calls to functionality in rpc.rpc.
|
||||||
|
|
||||||
First two arguments passed are /URL and 'Label'
|
First two arguments passed are /URL and 'Label'
|
||||||
Label can be used as a shortcut when refactoring
|
Label can be used as a shortcut when refactoring
|
||||||
@ -314,7 +314,7 @@ class ApiServer(RPC):
|
|||||||
@rpc_catch_errors
|
@rpc_catch_errors
|
||||||
def _ping(self):
|
def _ping(self):
|
||||||
"""
|
"""
|
||||||
simple poing version
|
simple ping version
|
||||||
"""
|
"""
|
||||||
return self.rest_dump({"status": "pong"})
|
return self.rest_dump({"status": "pong"})
|
||||||
|
|
||||||
@ -537,7 +537,7 @@ class ApiServer(RPC):
|
|||||||
if not pair or not timeframe:
|
if not pair or not timeframe:
|
||||||
return self.rest_error("Mandatory parameter missing.", 400)
|
return self.rest_error("Mandatory parameter missing.", 400)
|
||||||
|
|
||||||
results = self._analysed_dataframe(pair, timeframe, limit)
|
results = self._rpc_analysed_dataframe(pair, timeframe, limit)
|
||||||
return self.rest_dump(results)
|
return self.rest_dump(results)
|
||||||
|
|
||||||
@require_login
|
@require_login
|
||||||
|
@ -701,7 +701,7 @@ class RPC:
|
|||||||
})
|
})
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def _analysed_dataframe(self, pair: str, timeframe: str, limit: int) -> Dict[str, Any]:
|
def _rpc_analysed_dataframe(self, pair: str, timeframe: str, limit: int) -> Dict[str, Any]:
|
||||||
|
|
||||||
_data, last_analyzed = self._freqtrade.dataprovider.get_analyzed_dataframe(
|
_data, last_analyzed = self._freqtrade.dataprovider.get_analyzed_dataframe(
|
||||||
pair, timeframe)
|
pair, timeframe)
|
||||||
|
Loading…
Reference in New Issue
Block a user