mexc-exchange-api 0.0.74__py3-none-any.whl → 0.0.76__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mexc/ccxt/__init__.py CHANGED
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
29
- __version__ = '4.4.94'
29
+ __version__ = '4.4.96'
30
30
 
31
31
  # ----------------------------------------------------------------------------
32
32
 
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.94'
11
+ __version__ = '4.4.96'
12
12
 
13
13
  # -----------------------------------------------------------------------------
14
14
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.4.94'
5
+ __version__ = '4.4.96'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -231,6 +231,8 @@ class Exchange(BaseExchange):
231
231
  self.last_json_response = json_response
232
232
  if self.verbose:
233
233
  self.log("\nfetch Response:", self.id, method, url, http_status_code, "ResponseHeaders:", headers, "ResponseBody:", http_response)
234
+ if json_response and not isinstance(json_response, list) and self.returnResponseHeaders:
235
+ json_response['responseHeaders'] = headers
234
236
  self.logger.debug("%s %s, Response: %s %s %s", method, url, http_status_code, headers, http_response)
235
237
 
236
238
  except socket.gaierror as e:
@@ -1596,10 +1598,10 @@ class Exchange(BaseExchange):
1596
1598
  """
1597
1599
  raise NotSupported(self.id + ' fetchDepositsWithdrawals() is not supported yet')
1598
1600
 
1599
- async def fetch_deposits(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1601
+ async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
1600
1602
  raise NotSupported(self.id + ' fetchDeposits() is not supported yet')
1601
1603
 
1602
- async def fetch_withdrawals(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1604
+ async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
1603
1605
  raise NotSupported(self.id + ' fetchWithdrawals() is not supported yet')
1604
1606
 
1605
1607
  async def fetch_deposits_ws(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
@@ -1,6 +1,8 @@
1
1
  import asyncio
2
2
 
3
-
3
+ # Test by running:
4
+ # - python python/ccxt/pro/test/base/test_close.py
5
+ # - python python/ccxt/pro/test/base/test_future.py
4
6
  class Future(asyncio.Future):
5
7
 
6
8
  def resolve(self, result=None):
@@ -30,6 +32,8 @@ class Future(asyncio.Future):
30
32
  if err:
31
33
  exceptions.append(err)
32
34
  # if any exceptions return with first exception
35
+ if future.cancelled():
36
+ return
33
37
  if len(exceptions) > 0:
34
38
  future.set_exception(exceptions[0])
35
39
  # else return first result
@@ -4652,11 +4652,14 @@ class mexc(Exchange, ImplicitAPI):
4652
4652
  # "network": "TRX",
4653
4653
  # "status": "5",
4654
4654
  # "address": "TSMcEDDvkqY9dz8RkFnrS86U59GwEZjfvh",
4655
- # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4655
+ # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b:0",
4656
4656
  # "insertTime": "1664805021000",
4657
4657
  # "unlockConfirm": "200",
4658
4658
  # "confirmTimes": "203",
4659
- # "memo": "xxyy1122"
4659
+ # "memo": "xxyy1122",
4660
+ # "transHash": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4661
+ # "updateTime": "1664805621000",
4662
+ # "netWork: "TRX"
4660
4663
  # }
4661
4664
  # ]
4662
4665
  #
@@ -4697,7 +4700,7 @@ class mexc(Exchange, ImplicitAPI):
4697
4700
  # [
4698
4701
  # {
4699
4702
  # "id": "adcd1c8322154de691b815eedcd10c42",
4700
- # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4703
+ # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0:0",
4701
4704
  # "coin": "USDC-MATIC",
4702
4705
  # "network": "MATIC",
4703
4706
  # "address": "0xeE6C7a415995312ED52c53a0f8f03e165e0A5D62",
@@ -4708,7 +4711,11 @@ class mexc(Exchange, ImplicitAPI):
4708
4711
  # "confirmNo": null,
4709
4712
  # "applyTime": "1664882739000",
4710
4713
  # "remark": '',
4711
- # "memo": null
4714
+ # "memo": null,
4715
+ # "explorerUrl": "https://etherscan.io/tx/0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4716
+ # "transHash": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4717
+ # "updateTime": "1664882799000",
4718
+ # "netWork: "MATIC"
4712
4719
  # }
4713
4720
  # ]
4714
4721
  #
@@ -4724,18 +4731,21 @@ class mexc(Exchange, ImplicitAPI):
4724
4731
  # "network": "TRX",
4725
4732
  # "status": "5",
4726
4733
  # "address": "TSMcEDDvkqY9dz8RkFnrS86U59GwEZjfvh",
4727
- # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4734
+ # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b:0",
4728
4735
  # "insertTime": "1664805021000",
4729
4736
  # "unlockConfirm": "200",
4730
4737
  # "confirmTimes": "203",
4731
- # "memo": "xxyy1122"
4738
+ # "memo": "xxyy1122",
4739
+ # "transHash": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4740
+ # "updateTime": "1664805621000",
4741
+ # "netWork: "TRX"
4732
4742
  # }
4733
4743
  #
4734
4744
  # fetchWithdrawals
4735
4745
  #
4736
4746
  # {
4737
4747
  # "id": "adcd1c8322154de691b815eedcd10c42",
4738
- # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4748
+ # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0:0",
4739
4749
  # "coin": "USDC-MATIC",
4740
4750
  # "network": "MATIC",
4741
4751
  # "address": "0xeE6C7a415995312ED52c53a0f8f03e165e0A5D62",
@@ -4745,8 +4755,12 @@ class mexc(Exchange, ImplicitAPI):
4745
4755
  # "transactionFee": "1",
4746
4756
  # "confirmNo": null,
4747
4757
  # "applyTime": "1664882739000",
4748
- # "remark": '',
4749
- # "memo": null
4758
+ # "remark": "",
4759
+ # "memo": null,
4760
+ # "explorerUrl": "https://etherscan.io/tx/0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4761
+ # "transHash": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4762
+ # "updateTime": "1664882799000",
4763
+ # "netWork: "MATIC"
4750
4764
  # }
4751
4765
  #
4752
4766
  # withdraw
@@ -4758,6 +4772,7 @@ class mexc(Exchange, ImplicitAPI):
4758
4772
  id = self.safe_string(transaction, 'id')
4759
4773
  type = 'deposit' if (id is None) else 'withdrawal'
4760
4774
  timestamp = self.safe_integer_2(transaction, 'insertTime', 'applyTime')
4775
+ updated = self.safe_integer(transaction, 'updateTime')
4761
4776
  currencyId = None
4762
4777
  currencyWithNetwork = self.safe_string(transaction, 'coin')
4763
4778
  if currencyWithNetwork is not None:
@@ -4770,7 +4785,7 @@ class mexc(Exchange, ImplicitAPI):
4770
4785
  status = self.parse_transaction_status_by_type(self.safe_string(transaction, 'status'), type)
4771
4786
  amountString = self.safe_string(transaction, 'amount')
4772
4787
  address = self.safe_string(transaction, 'address')
4773
- txid = self.safe_string(transaction, 'txId')
4788
+ txid = self.safe_string_2(transaction, 'transHash', 'txId')
4774
4789
  fee = None
4775
4790
  feeCostString = self.safe_string(transaction, 'transactionFee')
4776
4791
  if feeCostString is not None:
@@ -4798,8 +4813,8 @@ class mexc(Exchange, ImplicitAPI):
4798
4813
  'amount': self.parse_number(amountString),
4799
4814
  'currency': code,
4800
4815
  'status': status,
4801
- 'updated': None,
4802
- 'comment': None,
4816
+ 'updated': updated,
4817
+ 'comment': self.safe_string(transaction, 'remark'),
4803
4818
  'internal': None,
4804
4819
  'fee': fee,
4805
4820
  }
@@ -5705,7 +5720,7 @@ class mexc(Exchange, ImplicitAPI):
5705
5720
  #
5706
5721
  # {success: True, code: '0'}
5707
5722
  #
5708
- return self.parse_leverage(response, market)
5723
+ return self.parse_leverage(response, market) # tmp revert type
5709
5724
 
5710
5725
  def nonce(self):
5711
5726
  return self.milliseconds() - self.safe_integer(self.options, 'timeDifference', 0)
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.94'
7
+ __version__ = '4.4.96'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -229,6 +229,7 @@ class Exchange(object):
229
229
  'chrome100': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36',
230
230
  }
231
231
  headers = None
232
+ returnResponseHeaders = False
232
233
  origin = '*' # CORS origin
233
234
  MAX_VALUE = float('inf')
234
235
  #
@@ -579,6 +580,8 @@ class Exchange(object):
579
580
  if self.verbose:
580
581
  self.log("\nfetch Response:", self.id, method, url, http_status_code, "ResponseHeaders:", headers, "ResponseBody:", http_response)
581
582
  self.logger.debug("%s %s, Response: %s %s %s", method, url, http_status_code, headers, http_response)
583
+ if json_response and not isinstance(json_response, list) and self.returnResponseHeaders:
584
+ json_response['responseHeaders'] = headers
582
585
  response.raise_for_status()
583
586
 
584
587
  except Timeout as e:
@@ -2839,7 +2842,7 @@ class Exchange(object):
2839
2842
  # keep self in mind:
2840
2843
  # in JS: 1 == 1.0 is True; 1 == 1.0 is True
2841
2844
  # in Python: 1 == 1.0 is True
2842
- # in PHP 1 == 1.0 is True, but 1 == 1.0 is False
2845
+ # in PHP 1 == 1.0 is True, but 1 == 1.0 is False.
2843
2846
  if stringVersion.find('.') >= 0:
2844
2847
  return float(stringVersion)
2845
2848
  return int(stringVersion)
@@ -3780,7 +3783,7 @@ class Exchange(object):
3780
3783
  for i in range(0, len(fees)):
3781
3784
  fee = fees[i]
3782
3785
  code = self.safe_string(fee, 'currency')
3783
- feeCurrencyCode = code is not code if None else str(i)
3786
+ feeCurrencyCode = code if (code is not None) else str(i)
3784
3787
  if feeCurrencyCode is not None:
3785
3788
  rate = self.safe_string(fee, 'rate')
3786
3789
  cost = self.safe_string(fee, 'cost')
@@ -5495,10 +5498,10 @@ class Exchange(object):
5495
5498
  """
5496
5499
  raise NotSupported(self.id + ' fetchDepositsWithdrawals() is not supported yet')
5497
5500
 
5498
- def fetch_deposits(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
5501
+ def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
5499
5502
  raise NotSupported(self.id + ' fetchDeposits() is not supported yet')
5500
5503
 
5501
- def fetch_withdrawals(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
5504
+ def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
5502
5505
  raise NotSupported(self.id + ' fetchWithdrawals() is not supported yet')
5503
5506
 
5504
5507
  def fetch_deposits_ws(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
mexc/ccxt/mexc.py CHANGED
@@ -4651,11 +4651,14 @@ class mexc(Exchange, ImplicitAPI):
4651
4651
  # "network": "TRX",
4652
4652
  # "status": "5",
4653
4653
  # "address": "TSMcEDDvkqY9dz8RkFnrS86U59GwEZjfvh",
4654
- # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4654
+ # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b:0",
4655
4655
  # "insertTime": "1664805021000",
4656
4656
  # "unlockConfirm": "200",
4657
4657
  # "confirmTimes": "203",
4658
- # "memo": "xxyy1122"
4658
+ # "memo": "xxyy1122",
4659
+ # "transHash": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4660
+ # "updateTime": "1664805621000",
4661
+ # "netWork: "TRX"
4659
4662
  # }
4660
4663
  # ]
4661
4664
  #
@@ -4696,7 +4699,7 @@ class mexc(Exchange, ImplicitAPI):
4696
4699
  # [
4697
4700
  # {
4698
4701
  # "id": "adcd1c8322154de691b815eedcd10c42",
4699
- # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4702
+ # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0:0",
4700
4703
  # "coin": "USDC-MATIC",
4701
4704
  # "network": "MATIC",
4702
4705
  # "address": "0xeE6C7a415995312ED52c53a0f8f03e165e0A5D62",
@@ -4707,7 +4710,11 @@ class mexc(Exchange, ImplicitAPI):
4707
4710
  # "confirmNo": null,
4708
4711
  # "applyTime": "1664882739000",
4709
4712
  # "remark": '',
4710
- # "memo": null
4713
+ # "memo": null,
4714
+ # "explorerUrl": "https://etherscan.io/tx/0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4715
+ # "transHash": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4716
+ # "updateTime": "1664882799000",
4717
+ # "netWork: "MATIC"
4711
4718
  # }
4712
4719
  # ]
4713
4720
  #
@@ -4723,18 +4730,21 @@ class mexc(Exchange, ImplicitAPI):
4723
4730
  # "network": "TRX",
4724
4731
  # "status": "5",
4725
4732
  # "address": "TSMcEDDvkqY9dz8RkFnrS86U59GwEZjfvh",
4726
- # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4733
+ # "txId": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b:0",
4727
4734
  # "insertTime": "1664805021000",
4728
4735
  # "unlockConfirm": "200",
4729
4736
  # "confirmTimes": "203",
4730
- # "memo": "xxyy1122"
4737
+ # "memo": "xxyy1122",
4738
+ # "transHash": "51a8f49e6f03f2c056e71fe3291aa65e1032880be855b65cecd0595a1b8af95b",
4739
+ # "updateTime": "1664805621000",
4740
+ # "netWork: "TRX"
4731
4741
  # }
4732
4742
  #
4733
4743
  # fetchWithdrawals
4734
4744
  #
4735
4745
  # {
4736
4746
  # "id": "adcd1c8322154de691b815eedcd10c42",
4737
- # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4747
+ # "txId": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0:0",
4738
4748
  # "coin": "USDC-MATIC",
4739
4749
  # "network": "MATIC",
4740
4750
  # "address": "0xeE6C7a415995312ED52c53a0f8f03e165e0A5D62",
@@ -4744,8 +4754,12 @@ class mexc(Exchange, ImplicitAPI):
4744
4754
  # "transactionFee": "1",
4745
4755
  # "confirmNo": null,
4746
4756
  # "applyTime": "1664882739000",
4747
- # "remark": '',
4748
- # "memo": null
4757
+ # "remark": "",
4758
+ # "memo": null,
4759
+ # "explorerUrl": "https://etherscan.io/tx/0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4760
+ # "transHash": "0xc8c918cd69b2246db493ef6225a72ffdc664f15b08da3e25c6879b271d05e9d0",
4761
+ # "updateTime": "1664882799000",
4762
+ # "netWork: "MATIC"
4749
4763
  # }
4750
4764
  #
4751
4765
  # withdraw
@@ -4757,6 +4771,7 @@ class mexc(Exchange, ImplicitAPI):
4757
4771
  id = self.safe_string(transaction, 'id')
4758
4772
  type = 'deposit' if (id is None) else 'withdrawal'
4759
4773
  timestamp = self.safe_integer_2(transaction, 'insertTime', 'applyTime')
4774
+ updated = self.safe_integer(transaction, 'updateTime')
4760
4775
  currencyId = None
4761
4776
  currencyWithNetwork = self.safe_string(transaction, 'coin')
4762
4777
  if currencyWithNetwork is not None:
@@ -4769,7 +4784,7 @@ class mexc(Exchange, ImplicitAPI):
4769
4784
  status = self.parse_transaction_status_by_type(self.safe_string(transaction, 'status'), type)
4770
4785
  amountString = self.safe_string(transaction, 'amount')
4771
4786
  address = self.safe_string(transaction, 'address')
4772
- txid = self.safe_string(transaction, 'txId')
4787
+ txid = self.safe_string_2(transaction, 'transHash', 'txId')
4773
4788
  fee = None
4774
4789
  feeCostString = self.safe_string(transaction, 'transactionFee')
4775
4790
  if feeCostString is not None:
@@ -4797,8 +4812,8 @@ class mexc(Exchange, ImplicitAPI):
4797
4812
  'amount': self.parse_number(amountString),
4798
4813
  'currency': code,
4799
4814
  'status': status,
4800
- 'updated': None,
4801
- 'comment': None,
4815
+ 'updated': updated,
4816
+ 'comment': self.safe_string(transaction, 'remark'),
4802
4817
  'internal': None,
4803
4818
  'fee': fee,
4804
4819
  }
@@ -5704,7 +5719,7 @@ class mexc(Exchange, ImplicitAPI):
5704
5719
  #
5705
5720
  # {success: True, code: '0'}
5706
5721
  #
5707
- return self.parse_leverage(response, market)
5722
+ return self.parse_leverage(response, market) # tmp revert type
5708
5723
 
5709
5724
  def nonce(self):
5710
5725
  return self.milliseconds() - self.safe_integer(self.options, 'timeDifference', 0)
mexc/ccxt/pro/__init__.py CHANGED
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.94'
11
+ __version__ = '4.4.96'
12
12
 
13
13
  # ----------------------------------------------------------------------------
14
14
 
mexc/ccxt/pro/mexc.py CHANGED
@@ -1380,14 +1380,14 @@ class mexc(mexcAsync):
1380
1380
  channel = 'spot@public.bookTicker.v3.api@' + market['id']
1381
1381
  url = self.urls['api']['ws']['spot']
1382
1382
  params['unsubscribed'] = True
1383
- self.watch_spot_public(channel, messageHash, params)
1383
+ await self.watch_spot_public(channel, messageHash, params)
1384
1384
  else:
1385
1385
  channel = 'unsub.ticker'
1386
1386
  requestParams: dict = {
1387
1387
  'symbol': market['id'],
1388
1388
  }
1389
1389
  url = self.urls['api']['ws']['swap']
1390
- self.watch_swap_public(channel, messageHash, requestParams, params)
1390
+ await self.watch_swap_public(channel, messageHash, requestParams, params)
1391
1391
  client = self.client(url)
1392
1392
  self.handle_unsubscriptions(client, [messageHash])
1393
1393
  return None
@@ -1438,7 +1438,7 @@ class mexc(mexcAsync):
1438
1438
  request['params'] = {}
1439
1439
  messageHashes.append('unsubscribe:ticker')
1440
1440
  client = self.client(url)
1441
- self.watch_multiple(url, messageHashes, self.extend(request, params), messageHashes)
1441
+ await self.watch_multiple(url, messageHashes, self.extend(request, params), messageHashes)
1442
1442
  self.handle_unsubscriptions(client, messageHashes)
1443
1443
  return None
1444
1444
 
@@ -1472,7 +1472,7 @@ class mexc(mexcAsync):
1472
1472
  'params': topics,
1473
1473
  }
1474
1474
  client = self.client(url)
1475
- self.watch_multiple(url, messageHashes, self.extend(request, params), messageHashes)
1475
+ await self.watch_multiple(url, messageHashes, self.extend(request, params), messageHashes)
1476
1476
  self.handle_unsubscriptions(client, messageHashes)
1477
1477
  return None
1478
1478
 
@@ -1496,7 +1496,7 @@ class mexc(mexcAsync):
1496
1496
  url = self.urls['api']['ws']['spot']
1497
1497
  channel = 'spot@public.kline.v3.api@' + market['id'] + '@' + timeframeId
1498
1498
  params['unsubscribed'] = True
1499
- self.watch_spot_public(channel, messageHash, params)
1499
+ await self.watch_spot_public(channel, messageHash, params)
1500
1500
  else:
1501
1501
  url = self.urls['api']['ws']['swap']
1502
1502
  channel = 'unsub.kline'
@@ -1504,7 +1504,7 @@ class mexc(mexcAsync):
1504
1504
  'symbol': market['id'],
1505
1505
  'interval': timeframeId,
1506
1506
  }
1507
- self.watch_swap_public(channel, messageHash, requestParams, params)
1507
+ await self.watch_swap_public(channel, messageHash, requestParams, params)
1508
1508
  client = self.client(url)
1509
1509
  self.handle_unsubscriptions(client, [messageHash])
1510
1510
  return None
@@ -1525,14 +1525,14 @@ class mexc(mexcAsync):
1525
1525
  url = self.urls['api']['ws']['spot']
1526
1526
  channel = 'spot@public.increase.depth.v3.api@' + market['id']
1527
1527
  params['unsubscribed'] = True
1528
- self.watch_spot_public(channel, messageHash, params)
1528
+ await self.watch_spot_public(channel, messageHash, params)
1529
1529
  else:
1530
1530
  url = self.urls['api']['ws']['swap']
1531
1531
  channel = 'unsub.depth'
1532
1532
  requestParams: dict = {
1533
1533
  'symbol': market['id'],
1534
1534
  }
1535
- self.watch_swap_public(channel, messageHash, requestParams, params)
1535
+ await self.watch_swap_public(channel, messageHash, requestParams, params)
1536
1536
  client = self.client(url)
1537
1537
  self.handle_unsubscriptions(client, [messageHash])
1538
1538
  return None
@@ -1554,14 +1554,14 @@ class mexc(mexcAsync):
1554
1554
  url = self.urls['api']['ws']['spot']
1555
1555
  channel = 'spot@public.deals.v3.api@' + market['id']
1556
1556
  params['unsubscribed'] = True
1557
- self.watch_spot_public(channel, messageHash, params)
1557
+ await self.watch_spot_public(channel, messageHash, params)
1558
1558
  else:
1559
1559
  url = self.urls['api']['ws']['swap']
1560
1560
  channel = 'unsub.deal'
1561
1561
  requestParams: dict = {
1562
1562
  'symbol': market['id'],
1563
1563
  }
1564
- self.watch_swap_public(channel, messageHash, requestParams, params)
1564
+ await self.watch_swap_public(channel, messageHash, requestParams, params)
1565
1565
  client = self.client(url)
1566
1566
  self.handle_unsubscriptions(client, [messageHash])
1567
1567
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mexc-exchange-api
3
- Version: 0.0.74
3
+ Version: 0.0.76
4
4
  Summary: mexc crypto exchange api client
5
5
  Project-URL: Homepage, https://github.com/ccxt/ccxt
6
6
  Project-URL: Issues, https://github.com/ccxt/ccxt
@@ -1,27 +1,27 @@
1
1
  mexc/__init__.py,sha256=bFV_Nfz_k-lfB_ImsHGpFnJuVMUXLBRbttugnPV7c4A,222
2
- mexc/ccxt/__init__.py,sha256=mlOdC98tzHKCUWJ_aKNgMOolSBaYKKd1fynVSurNowk,6044
3
- mexc/ccxt/mexc.py,sha256=h_lRUM7X5-ZKEPKKYNUxBiAlrqgc6YEDjuH8j_KTFw0,258968
2
+ mexc/ccxt/__init__.py,sha256=r9Q0DqWjHTCXMTBRvbmyEOJZC0YUCvO1tA9RFrH4jno,6044
3
+ mexc/ccxt/mexc.py,sha256=4XhYjNZLkdA29frijT0uOD92Ju-N8YOhqTIgQJFBtb4,260069
4
4
  mexc/ccxt/abstract/mexc.py,sha256=oyg0sZFYs1d77F-_9QAatqMSQJ8h-1u1wWb-d1DX2zQ,26434
5
- mexc/ccxt/async_support/__init__.py,sha256=svblUcpRTWxOohuhJuX4bBjnj5kGH0tWTVwXDhe1cFE,4777
6
- mexc/ccxt/async_support/mexc.py,sha256=Q84eiLJUARv6JA2q_0Tpq9JsRqLzNVmf0fmWo5mnMho,260232
5
+ mexc/ccxt/async_support/__init__.py,sha256=WxBIDPAzUBxDUrMPJNb6ePHsct59k1UFmcBIc2JQi1U,4777
6
+ mexc/ccxt/async_support/mexc.py,sha256=am4xXbxkVQ7ZuyaC0C48GWJ2mC4VG0Etrh_kcX7VdgE,261333
7
7
  mexc/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
8
- mexc/ccxt/async_support/base/exchange.py,sha256=Z9NwTqOgxX_ZbS_RhtiRlLojF9sY4xOXTmwyXRjXVc0,119440
8
+ mexc/ccxt/async_support/base/exchange.py,sha256=Ov3ySIOFH_PGlKGNFfPqF_RywDiSLp9Je64KanBTMDY,119604
9
9
  mexc/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
10
10
  mexc/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
11
11
  mexc/ccxt/async_support/base/ws/cache.py,sha256=xf2VOtfUwloxSlIQ39M1RGZHWQzyS9IGhB5NX6cDcAc,8370
12
12
  mexc/ccxt/async_support/base/ws/client.py,sha256=ekIN5HNgeQgMG3tLZMsE889Aoxs960DLwQnwkTGhdi8,13624
13
13
  mexc/ccxt/async_support/base/ws/functions.py,sha256=qwvEnjtINWL5ZU-dbbeIunjyBxzFqbGWHfVhxqAcKug,1499
14
- mexc/ccxt/async_support/base/ws/future.py,sha256=9yFyxqT7cl-7ZFM6LM4b6UPXyO2FGIbAhs5uoJ3-Smo,1271
14
+ mexc/ccxt/async_support/base/ws/future.py,sha256=hjdQ42zkfju5nar0GpTLJ4zXQBtgBU8DzYM5uPFcjsE,1450
15
15
  mexc/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_HozS6VxhEs8x-Kbj-NI,2894
16
16
  mexc/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmBJLCI5FHIRdMz1O-g,6551
17
17
  mexc/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
18
18
  mexc/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
19
19
  mexc/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
20
- mexc/ccxt/base/exchange.py,sha256=ygC1Ymk0Jd6SUwnCS8Eq0ZaPyYBLyG5iXWNJyrMuhNQ,331662
20
+ mexc/ccxt/base/exchange.py,sha256=uJ-9MHGpRUufv0rcn7X9QmQSnSKuWj8OjA5poA_qc_s,331855
21
21
  mexc/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
22
22
  mexc/ccxt/base/types.py,sha256=vMQfFDVntED4YHrRJt0Q98YaM7OtGhK-DkbkqXFTYHc,11485
23
- mexc/ccxt/pro/__init__.py,sha256=VBpN2x81GGesNdB0EdvlDOggFf7B8GWO_RURadWan04,4091
24
- mexc/ccxt/pro/mexc.py,sha256=_VcnXMNj0zwob-0oi2_DTdsk7WWjktI7JFPlE1tEI8E,68568
23
+ mexc/ccxt/pro/__init__.py,sha256=3D2AtG8OAdcDSeX0bIWrLhKMjjQ-blEGcAuJZCuaoz8,4091
24
+ mexc/ccxt/pro/mexc.py,sha256=CaDYhXdZ-_bEQuhfx4FIVTA953zTaNnMpdc2wi9WlJw,68628
25
25
  mexc/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
26
26
  mexc/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
27
27
  mexc/ccxt/static_dependencies/ecdsa/__init__.py,sha256=Xaj0G79BLtBt2YZcOOMV8qOlQZ7fIJznNiHhiEEZfQA,594
@@ -281,6 +281,6 @@ mexc/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX2u
281
281
  mexc/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
282
282
  mexc/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
283
  mexc/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
284
- mexc_exchange_api-0.0.74.dist-info/METADATA,sha256=tBULCN9Ps3zudxmcIxv2kpA2w9PBhV_D95E3wJP5OCI,18194
285
- mexc_exchange_api-0.0.74.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
- mexc_exchange_api-0.0.74.dist-info/RECORD,,
284
+ mexc_exchange_api-0.0.76.dist-info/METADATA,sha256=p8pV2FL3eg8EZmrLJGVXRUh97taSxNxmFh32xlFHbEw,18194
285
+ mexc_exchange_api-0.0.76.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
+ mexc_exchange_api-0.0.76.dist-info/RECORD,,