Raise ValueError if no config is found when sending authenticated headers

kucoin_backend
jaredgoldman 2023-04-19 14:58:28 -04:00
parent d772fe45c0
commit efad49ec5b
1 changed files with 4 additions and 0 deletions

View File

@ -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}'
)