Jelajahi Sumber

字段捋清楚了

skyfffire 3 bulan lalu
induk
melakukan
5765d4d0ab
1 mengubah file dengan 36 tambahan dan 0 penghapusan
  1. 36 0
      mexc_client.py

+ 36 - 0
mexc_client.py

@@ -623,6 +623,42 @@ if __name__ == '__main__':
             # deposit_list = client.wallet.get_deposit_list(params)
             # for deposit in deposit_list[0:5]:
             #     print(f"  {deposit}")
+
+            '''
+            {'exchangeFilters': [],
+            'rateLimits': [],
+            'serverTime': 1752648491330,
+            'symbols': [{'baseAsset': 'RATO',
+                        'baseAssetPrecision': 2,                // 基础币精度
+                        'baseCommissionPrecision': 2,
+                        'baseSizePrecision': '0',
+                        'filters': [],
+                        'fullName': 'Rato The Rat',
+                        'isMarginTradingAllowed': False,
+                        'isSpotTradingAllowed': True,
+                        'makerCommission': '0',
+                        'maxQuoteAmount': '2000000',
+                        'maxQuoteAmountMarket': '100000',
+                        'orderTypes': ['LIMIT', 'MARKET', 'LIMIT_MAKER'],
+                        'permissions': ['SPOT'],
+                        'quoteAmountPrecision': '1',
+                        'quoteAmountPrecisionMarket': '1',
+                        'quoteAsset': 'USDT',
+                        'quoteAssetPrecision': 9,               // 计价币精度
+                        'quoteCommissionPrecision': 9,
+                        'quotePrecision': 9,                    // 交易对价格精度
+                        'st': False,
+                        'status': '1',
+                        'symbol': 'RATOUSDT',
+                        'takerCommission': '0.0005',
+                        'tradeSideType': 1}],
+            'timezone': 'CST'}
+            '''
+            params = {
+                "symbols": "RATOUSDT",
+            }
+            info = client.market.get_exchangeInfo(params)
+            pprint(info)
         except requests.exceptions.RequestException as e:
             print(f"  私有 API 请求期间出错: {e}")
             if e.response is not None: