mexc-exchange-api 0.0.88__py3-none-any.whl → 0.0.89__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.
Potentially problematic release.
This version of mexc-exchange-api might be problematic. Click here for more details.
- mexc/ccxt/async_support/base/exchange.py +1 -1
- mexc/ccxt/base/errors.py +6 -0
- mexc/ccxt/base/exchange.py +7 -1
- mexc/ccxt/pro/mexc.py +22 -22
- {mexc_exchange_api-0.0.88.dist-info → mexc_exchange_api-0.0.89.dist-info}/METADATA +1 -1
- {mexc_exchange_api-0.0.88.dist-info → mexc_exchange_api-0.0.89.dist-info}/RECORD +7 -7
- {mexc_exchange_api-0.0.88.dist-info → mexc_exchange_api-0.0.89.dist-info}/WHEEL +0 -0
|
@@ -645,7 +645,7 @@ class Exchange(BaseExchange):
|
|
|
645
645
|
# ########################################################################
|
|
646
646
|
# ########################################################################
|
|
647
647
|
|
|
648
|
-
# METHODS BELOW THIS LINE ARE TRANSPILED FROM
|
|
648
|
+
# METHODS BELOW THIS LINE ARE TRANSPILED FROM TYPESCRIPT
|
|
649
649
|
|
|
650
650
|
async def fetch_accounts(self, params={}):
|
|
651
651
|
raise NotSupported(self.id + ' fetchAccounts() is not supported yet')
|
mexc/ccxt/base/errors.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
+
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
+
# EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
+
|
|
1
7
|
error_hierarchy = {
|
|
2
8
|
'BaseError': {
|
|
3
9
|
'ExchangeError': {
|
mexc/ccxt/base/exchange.py
CHANGED
|
@@ -1916,7 +1916,7 @@ class Exchange(object):
|
|
|
1916
1916
|
# ########################################################################
|
|
1917
1917
|
# ########################################################################
|
|
1918
1918
|
|
|
1919
|
-
# METHODS BELOW THIS LINE ARE TRANSPILED FROM
|
|
1919
|
+
# METHODS BELOW THIS LINE ARE TRANSPILED FROM TYPESCRIPT
|
|
1920
1920
|
|
|
1921
1921
|
def describe(self) -> Any:
|
|
1922
1922
|
return {
|
|
@@ -3343,6 +3343,12 @@ class Exchange(object):
|
|
|
3343
3343
|
self.baseCurrencies = sourceExchange.baseCurrencies
|
|
3344
3344
|
self.quoteCurrencies = sourceExchange.quoteCurrencies
|
|
3345
3345
|
self.codes = sourceExchange.codes
|
|
3346
|
+
# check marketHelperProps
|
|
3347
|
+
sourceExchangeHelpers = self.safe_list(sourceExchange.options, 'marketHelperProps', [])
|
|
3348
|
+
for i in range(0, len(sourceExchangeHelpers)):
|
|
3349
|
+
helper = sourceExchangeHelpers[i]
|
|
3350
|
+
if sourceExchange.options[helper] is not None:
|
|
3351
|
+
self.options[helper] = sourceExchange.options[helper]
|
|
3346
3352
|
return self
|
|
3347
3353
|
|
|
3348
3354
|
def get_describe_for_extended_ws_exchange(self, currentRestInstance: Any, parentRestInstance: Any, wsBaseDescribe: dict):
|
mexc/ccxt/pro/mexc.py
CHANGED
|
@@ -1451,18 +1451,21 @@ class mexc(mexcAsync):
|
|
|
1451
1451
|
def handle_balance(self, client: Client, message):
|
|
1452
1452
|
#
|
|
1453
1453
|
# spot
|
|
1454
|
+
#
|
|
1454
1455
|
# {
|
|
1455
|
-
#
|
|
1456
|
-
# "
|
|
1457
|
-
#
|
|
1458
|
-
#
|
|
1459
|
-
#
|
|
1460
|
-
#
|
|
1461
|
-
#
|
|
1462
|
-
#
|
|
1463
|
-
#
|
|
1464
|
-
#
|
|
1465
|
-
#
|
|
1456
|
+
# channel: "spot@private.account.v3.api.pb",
|
|
1457
|
+
# createTime: "1758134605364",
|
|
1458
|
+
# sendTime: "1758134605373",
|
|
1459
|
+
# privateAccount: {
|
|
1460
|
+
# vcoinName: "USDT",
|
|
1461
|
+
# coinId: "128f589271cb4951b03e71e6323eb7be",
|
|
1462
|
+
# balanceAmount: "0.006016465074677006",
|
|
1463
|
+
# balanceAmountChange: "-4.4022",
|
|
1464
|
+
# frozenAmount: "4.4022",
|
|
1465
|
+
# frozenAmountChange: "4.4022",
|
|
1466
|
+
# type: "ENTRUST_PLACE",
|
|
1467
|
+
# time: "1758134605364",
|
|
1468
|
+
# }
|
|
1466
1469
|
# }
|
|
1467
1470
|
#
|
|
1468
1471
|
#
|
|
@@ -1480,25 +1483,22 @@ class mexc(mexcAsync):
|
|
|
1480
1483
|
# "ts": 1680059188190
|
|
1481
1484
|
# }
|
|
1482
1485
|
#
|
|
1483
|
-
|
|
1484
|
-
type = '
|
|
1486
|
+
channel = self.safe_string(message, 'channel')
|
|
1487
|
+
type = 'spot' if (channel == 'spot@private.account.v3.api.pb') else 'swap'
|
|
1485
1488
|
messageHash = 'balance:' + type
|
|
1486
|
-
data = self.safe_dict_n(message, ['
|
|
1487
|
-
futuresTimestamp = self.
|
|
1488
|
-
timestamp = self.safe_integer_2(data, '
|
|
1489
|
+
data = self.safe_dict_n(message, ['data', 'privateAccount'])
|
|
1490
|
+
futuresTimestamp = self.safe_integer_2(message, 'ts', 'createTime')
|
|
1491
|
+
timestamp = self.safe_integer_2(data, 'time', futuresTimestamp)
|
|
1489
1492
|
if not (type in self.balance):
|
|
1490
1493
|
self.balance[type] = {}
|
|
1491
1494
|
self.balance[type]['info'] = data
|
|
1492
1495
|
self.balance[type]['timestamp'] = timestamp
|
|
1493
1496
|
self.balance[type]['datetime'] = self.iso8601(timestamp)
|
|
1494
|
-
currencyId = self.safe_string_n(data, ['
|
|
1497
|
+
currencyId = self.safe_string_n(data, ['currency', 'vcoinName'])
|
|
1495
1498
|
code = self.safe_currency_code(currencyId)
|
|
1496
1499
|
account = self.account()
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
account['free'] = balanceAmount
|
|
1500
|
-
account['total'] = self.safe_string_n(data, ['f', 'availableBalance'])
|
|
1501
|
-
account['used'] = self.safe_string_n(data, ['l', 'frozenBalance', 'frozenAmount'])
|
|
1500
|
+
account['free'] = self.safe_string_2(data, 'balanceAmount', 'availableBalance')
|
|
1501
|
+
account['used'] = self.safe_string_n(data, ['frozenBalance', 'frozenAmount'])
|
|
1502
1502
|
self.balance[type][code] = account
|
|
1503
1503
|
self.balance[type] = self.safe_balance(self.balance[type])
|
|
1504
1504
|
client.resolve(self.balance[type], messageHash)
|
|
@@ -5,7 +5,7 @@ mexc/ccxt/abstract/mexc.py,sha256=oyg0sZFYs1d77F-_9QAatqMSQJ8h-1u1wWb-d1DX2zQ,26
|
|
|
5
5
|
mexc/ccxt/async_support/__init__.py,sha256=tJsfZg394jJaQ-tNcociRsiO31b_5qdgld4TF0uMtwk,4859
|
|
6
6
|
mexc/ccxt/async_support/mexc.py,sha256=0T_xkvZHwCZoI1opouAZL8PkiYRW7BUtz33kxEqozCs,262293
|
|
7
7
|
mexc/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
|
8
|
-
mexc/ccxt/async_support/base/exchange.py,sha256=
|
|
8
|
+
mexc/ccxt/async_support/base/exchange.py,sha256=zcjR7MUn8V80r5FKX8ifKeOXMg7cNSuEfxbhZ6PLteY,121432
|
|
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
|
|
@@ -16,12 +16,12 @@ mexc/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_Hoz
|
|
|
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=3XI30u9YudHbTA438397u5rkdlXa3atxwZEfUus3C4k,6803
|
|
19
|
-
mexc/ccxt/base/errors.py,sha256=
|
|
20
|
-
mexc/ccxt/base/exchange.py,sha256=
|
|
19
|
+
mexc/ccxt/base/errors.py,sha256=OGhWNvNtRlJOzFx-n1x3ZjTnaPpfWH0Vc0xACS-MeDw,5012
|
|
20
|
+
mexc/ccxt/base/exchange.py,sha256=pEYq-RPWeigwt4gmtNlP-wF7G-KD4NsY28n6YYIvBTE,338594
|
|
21
21
|
mexc/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
|
22
22
|
mexc/ccxt/base/types.py,sha256=Gvbogh9i7pPH7Z18xesYeDPribqqwq8uKpOv-YODFBs,11505
|
|
23
23
|
mexc/ccxt/pro/__init__.py,sha256=nyzvWpOUQu1VPzNf916tl41lCMjKFVoZFbO0xWbtb5Q,4173
|
|
24
|
-
mexc/ccxt/pro/mexc.py,sha256=
|
|
24
|
+
mexc/ccxt/pro/mexc.py,sha256=C4I8i62DHdIs_yolMkhnbwZGLxBVwd66O_p9CH21VwE,77133
|
|
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.
|
|
285
|
-
mexc_exchange_api-0.0.
|
|
286
|
-
mexc_exchange_api-0.0.
|
|
284
|
+
mexc_exchange_api-0.0.89.dist-info/METADATA,sha256=kMnPuOY5_2Qj2T9fXFZMa3yoNqoI1skRsMTptHODTKQ,18072
|
|
285
|
+
mexc_exchange_api-0.0.89.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
286
|
+
mexc_exchange_api-0.0.89.dist-info/RECORD,,
|
|
File without changes
|