ccxt 4.4.69__py2.py3-none-any.whl → 4.4.71__py2.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.
- ccxt/__init__.py +1 -3
- ccxt/abstract/bingx.py +1 -0
- ccxt/abstract/bitmart.py +1 -0
- ccxt/abstract/bybit.py +4 -0
- ccxt/abstract/myokx.py +3 -0
- ccxt/abstract/okx.py +3 -0
- ccxt/abstract/poloniex.py +36 -0
- ccxt/abstract/tradeogre.py +1 -1
- ccxt/async_support/__init__.py +1 -3
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/binance.py +107 -102
- ccxt/async_support/bingx.py +64 -42
- ccxt/async_support/bitget.py +47 -265
- ccxt/async_support/bitmart.py +12 -1
- ccxt/async_support/bitopro.py +1 -0
- ccxt/async_support/bitrue.py +1 -0
- ccxt/async_support/bybit.py +7 -0
- ccxt/async_support/cex.py +1 -0
- ccxt/async_support/coinbase.py +23 -4
- ccxt/async_support/coinbaseexchange.py +1 -0
- ccxt/async_support/deribit.py +1 -0
- ccxt/async_support/hashkey.py +4 -2
- ccxt/async_support/hyperliquid.py +16 -7
- ccxt/async_support/kraken.py +77 -5
- ccxt/async_support/kucoin.py +4 -2
- ccxt/async_support/mexc.py +8 -4
- ccxt/async_support/okx.py +62 -46
- ccxt/async_support/poloniex.py +1263 -85
- ccxt/async_support/tradeogre.py +20 -4
- ccxt/async_support/whitebit.py +4 -2
- ccxt/base/exchange.py +23 -4
- ccxt/base/types.py +28 -0
- ccxt/binance.py +107 -102
- ccxt/bingx.py +64 -42
- ccxt/bitget.py +47 -265
- ccxt/bitmart.py +12 -1
- ccxt/bitopro.py +1 -0
- ccxt/bitrue.py +1 -0
- ccxt/bybit.py +7 -0
- ccxt/cex.py +1 -0
- ccxt/coinbase.py +23 -4
- ccxt/coinbaseexchange.py +1 -0
- ccxt/deribit.py +1 -0
- ccxt/hashkey.py +4 -2
- ccxt/hyperliquid.py +16 -7
- ccxt/kraken.py +77 -5
- ccxt/kucoin.py +4 -2
- ccxt/mexc.py +8 -4
- ccxt/okx.py +62 -46
- ccxt/poloniex.py +1262 -85
- ccxt/pro/__init__.py +1 -3
- ccxt/pro/binance.py +102 -102
- ccxt/pro/bingx.py +62 -51
- ccxt/pro/bitget.py +28 -3
- ccxt/pro/bybit.py +81 -37
- ccxt/test/tests_async.py +4 -3
- ccxt/test/tests_sync.py +4 -3
- ccxt/tradeogre.py +20 -4
- ccxt/whitebit.py +4 -2
- {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/METADATA +6 -9
- {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/RECORD +64 -65
- ccxt/abstract/poloniexfutures.py +0 -48
- {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/WHEEL +0 -0
- {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/top_level.txt +0 -0
ccxt/async_support/bingx.py
CHANGED
@@ -58,6 +58,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
58
58
|
'createOrder': True,
|
59
59
|
'createOrders': True,
|
60
60
|
'createOrderWithTakeProfitAndStopLoss': True,
|
61
|
+
'createReduceOnlyOrder': True,
|
61
62
|
'createStopLossOrder': True,
|
62
63
|
'createStopOrder': True,
|
63
64
|
'createTakeProfitOrder': True,
|
@@ -175,6 +176,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
175
176
|
'trade/myTrades': 2,
|
176
177
|
'user/commissionRate': 5,
|
177
178
|
'account/balance': 2,
|
179
|
+
'account/allAccountBalance': 2,
|
178
180
|
},
|
179
181
|
'post': {
|
180
182
|
'trade/order': 2,
|
@@ -1429,62 +1431,82 @@ class bingx(Exchange, ImplicitAPI):
|
|
1429
1431
|
# spot
|
1430
1432
|
#
|
1431
1433
|
# {
|
1432
|
-
# "code":
|
1433
|
-
# "
|
1434
|
-
#
|
1435
|
-
# [
|
1436
|
-
#
|
1437
|
-
#
|
1438
|
-
#
|
1439
|
-
# [
|
1440
|
-
# "26324.71",
|
1441
|
-
# "0.31888"
|
1442
|
-
# ],
|
1443
|
-
# ],
|
1444
|
-
# "asks": [
|
1445
|
-
# [
|
1446
|
-
# "26340.30",
|
1447
|
-
# "6.45221"
|
1434
|
+
# "code":0,
|
1435
|
+
# "timestamp":1743240504535,
|
1436
|
+
# "data":{
|
1437
|
+
# "bids":[
|
1438
|
+
# ["83775.39","1.981875"],
|
1439
|
+
# ["83775.38","0.001076"],
|
1440
|
+
# ["83775.34","0.254716"],
|
1448
1441
|
# ],
|
1449
|
-
# [
|
1450
|
-
#
|
1451
|
-
#
|
1442
|
+
# "asks":[
|
1443
|
+
# ["83985.40","0.000013"],
|
1444
|
+
# ["83980.00","0.000011"],
|
1445
|
+
# ["83975.70","0.000061000000000000005"],
|
1452
1446
|
# ],
|
1453
|
-
#
|
1447
|
+
# "ts":1743240504535,
|
1448
|
+
# "lastUpdateId":13565639906
|
1449
|
+
# }
|
1454
1450
|
# }
|
1455
1451
|
#
|
1456
|
-
#
|
1452
|
+
#
|
1453
|
+
# linear swap
|
1457
1454
|
#
|
1458
1455
|
# {
|
1459
|
-
# "code":
|
1460
|
-
# "msg":
|
1461
|
-
# "data":
|
1462
|
-
#
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
#
|
1456
|
+
# "code":0,
|
1457
|
+
# "msg":"",
|
1458
|
+
# "data":{
|
1459
|
+
# "T":1743240836255,
|
1460
|
+
# "bids":[
|
1461
|
+
# ["83760.7","7.0861"],
|
1462
|
+
# ["83760.6","0.0044"],
|
1463
|
+
# ["83757.7","1.9526"],
|
1467
1464
|
# ],
|
1468
|
-
# [
|
1469
|
-
#
|
1470
|
-
#
|
1465
|
+
# "asks":[
|
1466
|
+
# ["83784.3","8.3531"],
|
1467
|
+
# ["83782.8","23.7289"],
|
1468
|
+
# ["83780.1","18.0617"],
|
1471
1469
|
# ],
|
1472
|
-
#
|
1473
|
-
#
|
1474
|
-
#
|
1475
|
-
#
|
1476
|
-
# "43616.00000000"
|
1470
|
+
# "bidsCoin":[
|
1471
|
+
# ["83760.7","0.0007"],
|
1472
|
+
# ["83760.6","0.0000"],
|
1473
|
+
# ["83757.7","0.0002"],
|
1477
1474
|
# ],
|
1478
|
-
# [
|
1479
|
-
#
|
1480
|
-
#
|
1475
|
+
# "asksCoin":[
|
1476
|
+
# ["83784.3","0.0008"],
|
1477
|
+
# ["83782.8","0.0024"],
|
1478
|
+
# ["83780.1","0.0018"],
|
1479
|
+
# ]
|
1480
|
+
# }
|
1481
|
+
# }
|
1482
|
+
#
|
1483
|
+
# inverse swap
|
1484
|
+
#
|
1485
|
+
# {
|
1486
|
+
# "code":0,
|
1487
|
+
# "msg":"",
|
1488
|
+
# "timestamp":1743240979146,
|
1489
|
+
# "data":{
|
1490
|
+
# "T":1743240978691,
|
1491
|
+
# "bids":[
|
1492
|
+
# ["83611.4","241.0"],
|
1493
|
+
# ["83611.3","1.0"],
|
1494
|
+
# ["83602.9","666.0"],
|
1481
1495
|
# ],
|
1482
|
-
#
|
1496
|
+
# "asks":[
|
1497
|
+
# ["83645.0","4253.0"],
|
1498
|
+
# ["83640.5","3188.0"],
|
1499
|
+
# ["83636.0","5540.0"],
|
1500
|
+
# ]
|
1501
|
+
# }
|
1483
1502
|
# }
|
1484
1503
|
#
|
1485
1504
|
orderbook = self.safe_dict(response, 'data', {})
|
1505
|
+
nonce = self.safe_integer(orderbook, 'lastUpdateId')
|
1486
1506
|
timestamp = self.safe_integer_2(orderbook, 'T', 'ts')
|
1487
|
-
|
1507
|
+
result = self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 0, 1)
|
1508
|
+
result['nonce'] = nonce
|
1509
|
+
return result
|
1488
1510
|
|
1489
1511
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
1490
1512
|
"""
|