This commit is contained in:
7LZL
2025-11-22 21:56:38 +08:00
parent 54b46b8252
commit 826c5ac97d
4 changed files with 33 additions and 23 deletions

View File

@@ -35,7 +35,7 @@ class mt5(Exchange, ImplicitAPI):
'countries': ['US'],
'version': 'v2025.02.05-05.23',
'rateLimit': 1000,
'hostname': '43.167.188.220:5000',
'hostname': '10.203.0.6:5000',
'pro': True,
'options': {
'host': '18.163.85.196',
@@ -76,11 +76,11 @@ class mt5(Exchange, ImplicitAPI):
'urls': {
'logo': '',
'api': {
'public': 'http://43.167.188.220:5000',
'private': 'http://43.167.188.220:5000',
'public': 'http://{hostname}',
'private': 'http://{hostname}',
},
'www': 'http://43.167.188.220:5000',
'doc': ['http://43.167.188.220:5000/index.html'],
'www': 'http://{hostname}',
'doc': ['http://{hostname}/index.html'],
},
'api': {
'public': {
@@ -775,7 +775,8 @@ class mt5(Exchange, ImplicitAPI):
def sign(self, path, api='public', method='GET', params={}, headers=None, body=None):
"""签名请求"""
url = self.urls['api'][api] + '/' + path
base_url = self.implode_hostname(self.urls['api'][api])
url = base_url + '/' + path
query = self.omit(params, self.extract_params(path))
if method == 'GET' and query: