mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2026-01-08 16:34:19 +01:00
Rename RestAuthenticatedEndpoints to RestAuthEndpoints (and bfxapi.rest.endpoints.rest_authenticated_endpoints to rest_auth_endpoints).
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
from .endpoints import BfxRestInterface, RestPublicEndpoints, RestAuthenticatedEndpoints, \
|
||||
from .endpoints import BfxRestInterface, RestPublicEndpoints, RestAuthEndpoints, \
|
||||
RestMerchantEndpoints
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"))
|
||||
Reference in New Issue
Block a user