From 803a96110d3e1e59a5ff10b8ec9b8c685d33da9c Mon Sep 17 00:00:00 2001 From: 0xfMissingNo <0xfmissingno@protonmail.com> Date: Thu, 23 Sep 2021 00:57:55 -0700 Subject: [PATCH] added api_timeout --- dydx3/dydx_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dydx3/dydx_client.py b/dydx3/dydx_client.py index 766bc9a..45b580b 100644 --- a/dydx3/dydx_client.py +++ b/dydx3/dydx_client.py @@ -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 @@ -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 ' + @@ -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 ' + @@ -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 ' +