diff --git a/piker/brokers/kucoin.py b/piker/brokers/kucoin.py index 35d9ac22..f826856e 100755 --- a/piker/brokers/kucoin.py +++ b/piker/brokers/kucoin.py @@ -195,6 +195,10 @@ class Client: https://docs.kucoin.com/#authentication ''' + + if not self._config: + raise ValueError('No config found when trying to send authenticated request') + str_to_sign = ( str(int(time.time() * 1000)) + action + f'/api/{api_v}{endpoint}' )