fix: client parameter exception
This commit is contained in:
parent
12e983d1a6
commit
cc2d1f74fc
|
|
@ -7,7 +7,7 @@ from . import consts as c, utils, exceptions
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
|
|
||||||
def __init__(self, api_key = '-1', api_secret_key = '-1', passphrase = '-1', use_server_time=False, flag='1', base_api = c.API_URL,debug = 'True', proxies = None):
|
def __init__(self, api_key = '-1', api_secret_key = '-1', passphrase = '-1', use_server_time=False, flag='1', base_api = c.API_URL,debug = 'True'):
|
||||||
self.API_KEY = api_key
|
self.API_KEY = api_key
|
||||||
self.API_SECRET_KEY = api_secret_key
|
self.API_SECRET_KEY = api_secret_key
|
||||||
self.PASSPHRASE = passphrase
|
self.PASSPHRASE = passphrase
|
||||||
|
|
@ -15,7 +15,7 @@ class Client(object):
|
||||||
self.flag = flag
|
self.flag = flag
|
||||||
self.domain = base_api
|
self.domain = base_api
|
||||||
self.debug = debug
|
self.debug = debug
|
||||||
self.client = httpx.Client(base_url=base_api, http2=True, proxies=proxies)
|
self.client = httpx.Client(base_url=base_api, http2=True)
|
||||||
|
|
||||||
def _request(self, method, request_path, params):
|
def _request(self, method, request_path, params):
|
||||||
if method == c.GET:
|
if method == c.GET:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue