Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/exchange api base #225

Draft
wants to merge 4 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions hummingbot/connector/exchange/gate_io/gate_io_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ class GateIoAuth(AuthBase):
Auth Gate.io API
https://www.gate.io/docs/apiv4/en/#authentication
"""
def __init__(self, api_key: str, secret_key: str, time_provider: TimeSynchronizer):
def __init__(self,
gate_io_api_key: str = "",
gate_io_secret_key: str = "",
time_provider: TimeSynchronizer = None):
self.nonce = None
self.api_key = api_key
self.secret_key = secret_key
self.api_key = gate_io_api_key
self.secret_key = gate_io_secret_key
self.time_provider = time_provider

async def rest_authenticate(self, request: RESTRequest) -> RESTRequest:
Expand Down
Loading