1
This commit is contained in:
@@ -800,7 +800,8 @@ class mt5(Exchange, ImplicitAPI):
|
||||
|
||||
async def fetch_private(self, path, method='GET', params={}, headers=None, body=None):
|
||||
"""发送私有 API 请求"""
|
||||
url = self.urls['api']['private'] + '/' + path
|
||||
base_url = self.implode_hostname(self.urls['api']['private'])
|
||||
url = base_url + '/' + path
|
||||
query = self.omit(params, self.extract_params(path))
|
||||
|
||||
if method == 'GET' and query:
|
||||
@@ -853,7 +854,7 @@ class mt5(Exchange, ImplicitAPI):
|
||||
|
||||
def sign(self, path, api='public', method='GET', params={}, headers=None, body=None):
|
||||
"""签名请求"""
|
||||
base_url = self.urls['api'][api]
|
||||
base_url = self.implode_hostname(self.urls['api'][api])
|
||||
url = base_url + '/' + path
|
||||
query = self.omit(params, self.extract_params(path))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user