|
|
@@ -396,6 +396,7 @@ class MexcClient:
|
|
|
return self.client.sign_request('DELETE', url, params=params).json()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
+ from pprint import pprint
|
|
|
# --- 重要提示 ---
|
|
|
# 运行前,请确保已设置以下环境变量:
|
|
|
# MEXC_API_HOST (例如:"https://api.mexc.com")
|
|
|
@@ -544,6 +545,32 @@ if __name__ == '__main__':
|
|
|
'''
|
|
|
|
|
|
|
|
|
+ # '''
|
|
|
+ # 幣種信息獲取
|
|
|
+ # [{'coin': 'STPT',
|
|
|
+ # 'name': 'STP',
|
|
|
+ # 'networkList': [{'coin': 'STPT',
|
|
|
+ # 'contract': '0xDe7D85157d9714EADf595045CC12Ca4A5f3E2aDb',
|
|
|
+ # 'depositDesc': 'Deposit suspended as project upgrade is in '
|
|
|
+ # 'progress',
|
|
|
+ # 'depositEnable': False,
|
|
|
+ # 'depositTips': None,
|
|
|
+ # 'minConfirm': 96,
|
|
|
+ # 'name': 'STP',
|
|
|
+ # 'netWork': 'NONE',
|
|
|
+ # 'network': 'NONE',
|
|
|
+ # 'sameAddress': False,
|
|
|
+ # 'withdrawEnable': False,
|
|
|
+ # 'withdrawFee': '0',
|
|
|
+ # 'withdrawIntegerMultiple': None,
|
|
|
+ # 'withdrawMax': '800000000',
|
|
|
+ # 'withdrawMin': '800000000',
|
|
|
+ # 'withdrawTips': None}]}]
|
|
|
+ # '''
|
|
|
+ # all_coin_list = client.wallet.get_coinlist()
|
|
|
+ # pprint(all_coin_list[:2])
|
|
|
+
|
|
|
+
|
|
|
# print("\n测试下单 (POST /order/test)...")
|
|
|
# test_order_params = {
|
|
|
# "symbol": "RATOUSDT", # 使用常见的交易对,如 MXUSDT 或 BTCUSDT
|