diff --git a/bfxapi/rest/__init__.py b/bfxapi/rest/__init__.py index e18526e..aeff248 100644 --- a/bfxapi/rest/__init__.py +++ b/bfxapi/rest/__init__.py @@ -1,2 +1,2 @@ -from .endpoints import BfxRestInterface, RestPublicEndpoints, RestAuthenticatedEndpoints, \ +from .endpoints import BfxRestInterface, RestPublicEndpoints, RestAuthEndpoints, \ RestMerchantEndpoints diff --git a/bfxapi/rest/endpoints/__init__.py b/bfxapi/rest/endpoints/__init__.py index 2775e2e..96822c9 100644 --- a/bfxapi/rest/endpoints/__init__.py +++ b/bfxapi/rest/endpoints/__init__.py @@ -1,5 +1,5 @@ from .bfx_rest_interface import BfxRestInterface from .rest_public_endpoints import RestPublicEndpoints -from .rest_authenticated_endpoints import RestAuthenticatedEndpoints +from .rest_auth_endpoints import RestAuthEndpoints from .rest_merchant_endpoints import RestMerchantEndpoints diff --git a/bfxapi/rest/endpoints/bfx_rest_interface.py b/bfxapi/rest/endpoints/bfx_rest_interface.py index 12a06f4..73ec603 100644 --- a/bfxapi/rest/endpoints/bfx_rest_interface.py +++ b/bfxapi/rest/endpoints/bfx_rest_interface.py @@ -1,5 +1,5 @@ from .rest_public_endpoints import RestPublicEndpoints -from .rest_authenticated_endpoints import RestAuthenticatedEndpoints +from .rest_auth_endpoints import RestAuthEndpoints from .rest_merchant_endpoints import RestMerchantEndpoints class BfxRestInterface: @@ -9,5 +9,5 @@ class BfxRestInterface: api_key, api_secret = (credentials['api_key'], credentials['api_secret']) if credentials else (None, None) self.public = RestPublicEndpoints(host=host) - self.auth = RestAuthenticatedEndpoints(host=host, api_key=api_key, api_secret=api_secret) + self.auth = RestAuthEndpoints(host=host, api_key=api_key, api_secret=api_secret) self.merchant = RestMerchantEndpoints(host=host, api_key=api_key, api_secret=api_secret) diff --git a/bfxapi/rest/endpoints/rest_authenticated_endpoints.py b/bfxapi/rest/endpoints/rest_auth_endpoints.py similarity index 99% rename from bfxapi/rest/endpoints/rest_authenticated_endpoints.py rename to bfxapi/rest/endpoints/rest_auth_endpoints.py index acb4757..e1b9fab 100644 --- a/bfxapi/rest/endpoints/rest_authenticated_endpoints.py +++ b/bfxapi/rest/endpoints/rest_auth_endpoints.py @@ -24,7 +24,7 @@ from ...types.serializers import _Notification from ...utils.json_encoder import JSON -class RestAuthenticatedEndpoints(Middleware): +class RestAuthEndpoints(Middleware): def get_user_info(self) -> UserInfo: return serializers.UserInfo \ .parse(*self._post("auth/r/info/user")) diff --git a/bfxapi/websocket/client/bfx_websocket_inputs.py b/bfxapi/websocket/client/bfx_websocket_inputs.py index 87d730b..71bf8a8 100644 --- a/bfxapi/websocket/client/bfx_websocket_inputs.py +++ b/bfxapi/websocket/client/bfx_websocket_inputs.py @@ -95,4 +95,5 @@ class BfxWebSocketInputs: await self.__handle_websocket_input("foc", { "id": id }) async def calc(self, *args: str) -> None: - await self.__handle_websocket_input("calc", list(map(lambda arg: [arg], args))) + await self.__handle_websocket_input("calc", + list(map(lambda arg: [arg], args)))