diff --git a/hummingbot_api_client/__init__.py b/hummingbot_api_client/__init__.py index 1bd8df4..8b1daca 100644 --- a/hummingbot_api_client/__init__.py +++ b/hummingbot_api_client/__init__.py @@ -2,5 +2,5 @@ from .sync_client import SyncHummingbotAPIClient from .ws import MarketDataWebSocket, ExecutorsWebSocket, WebSocketRouter -__version__ = "1.5.1" +__version__ = "1.5.2" __all__ = ["HummingbotAPIClient", "SyncHummingbotAPIClient", "MarketDataWebSocket", "ExecutorsWebSocket", "WebSocketRouter"] \ No newline at end of file diff --git a/hummingbot_api_client/routers/archived_bots.py b/hummingbot_api_client/routers/archived_bots.py index 32faa2d..e4e2004 100644 --- a/hummingbot_api_client/routers/archived_bots.py +++ b/hummingbot_api_client/routers/archived_bots.py @@ -96,4 +96,13 @@ async def get_database_controllers(self, db_path: str) -> Dict[str, Any]: print(f"Controller: {controller['controller_name']}") print(f"Config: {controller['controller_config']}") """ - return await self._get(f"/archived-bots/{db_path}/controllers") \ No newline at end of file + return await self._get(f"/archived-bots/{db_path}/controllers") + + async def delete_archived_bot(self, db_path: str) -> Dict[str, Any]: + """ + Delete an archived bot and its entire directory. + + Args: + db_path: Path to the database file as returned by list_databases + """ + return await self._delete(f"/archived-bots/{db_path}") \ No newline at end of file diff --git a/hummingbot_api_client/routers/bot_orchestration.py b/hummingbot_api_client/routers/bot_orchestration.py index 0880bc6..a1672d1 100644 --- a/hummingbot_api_client/routers/bot_orchestration.py +++ b/hummingbot_api_client/routers/bot_orchestration.py @@ -244,7 +244,7 @@ async def get_controller_performance_history( if end_time is not None: params["end_time"] = end_time - return await self._get("/bot-orchestration/controller-performance/history", params=params) + return await self._get("/bot-orchestration/controller-performance-history", params=params) async def get_latest_controller_performance( self, @@ -259,7 +259,7 @@ async def get_latest_controller_performance( params = {} if bot_name is not None: params["bot_name"] = bot_name - return await self._get("/bot-orchestration/controller-performance/latest", params=params) + return await self._get("/bot-orchestration/controller-performance-latest", params=params) # Bot Runs async def get_bot_runs( diff --git a/pyproject.toml b/pyproject.toml index 778ca0e..08b5311 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "hummingbot-api-client" -version = "1.5.1" +version = "1.5.2" description = "An async Python client for Hummingbot API" readme = "README.md" requires-python = ">=3.8"