Skip to content

Commit

Permalink
added api_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfMissingNo committed Sep 23, 2021
1 parent 5216ed1 commit 803a961
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dydx3/dydx_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def __init__(

self._public = Public(host)
self._public._session = self._session
self._public.api_timeout = self.api_timeout
self._private = None
self._api_keys = None
self._eth = None
Expand Down Expand Up @@ -146,6 +147,7 @@ def private(self):
api_key_credentials=self.api_key_credentials,
)
self._private._session = self._session
self._private.api_timeout = self.api_timeout
else:
raise Exception(
'Private endpoints not supported ' +
Expand All @@ -168,6 +170,7 @@ def api_keys(self):
default_address=self.default_address,
)
self._api_keys._session = self._session
self._api_keys.api_timeout = self.api_timeout
else:
raise Exception(
'API keys module is not supported since no Ethereum ' +
Expand Down Expand Up @@ -195,6 +198,7 @@ def onboarding(self):
),
)
self._onboarding._session = self._session
self._onboarding.api_timeout = self.api_timeout
else:
raise Exception(
'Onboarding is not supported since no Ethereum ' +
Expand Down

0 comments on commit 803a961

Please sign in to comment.