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/bingx.py
CHANGED
@@ -57,6 +57,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
57
57
|
'createOrder': True,
|
58
58
|
'createOrders': True,
|
59
59
|
'createOrderWithTakeProfitAndStopLoss': True,
|
60
|
+
'createReduceOnlyOrder': True,
|
60
61
|
'createStopLossOrder': True,
|
61
62
|
'createStopOrder': True,
|
62
63
|
'createTakeProfitOrder': True,
|
@@ -174,6 +175,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
174
175
|
'trade/myTrades': 2,
|
175
176
|
'user/commissionRate': 5,
|
176
177
|
'account/balance': 2,
|
178
|
+
'account/allAccountBalance': 2,
|
177
179
|
},
|
178
180
|
'post': {
|
179
181
|
'trade/order': 2,
|
@@ -1428,62 +1430,82 @@ class bingx(Exchange, ImplicitAPI):
|
|
1428
1430
|
# spot
|
1429
1431
|
#
|
1430
1432
|
# {
|
1431
|
-
# "code":
|
1432
|
-
# "
|
1433
|
-
#
|
1434
|
-
# [
|
1435
|
-
#
|
1436
|
-
#
|
1437
|
-
#
|
1438
|
-
# [
|
1439
|
-
# "26324.71",
|
1440
|
-
# "0.31888"
|
1441
|
-
# ],
|
1442
|
-
# ],
|
1443
|
-
# "asks": [
|
1444
|
-
# [
|
1445
|
-
# "26340.30",
|
1446
|
-
# "6.45221"
|
1433
|
+
# "code":0,
|
1434
|
+
# "timestamp":1743240504535,
|
1435
|
+
# "data":{
|
1436
|
+
# "bids":[
|
1437
|
+
# ["83775.39","1.981875"],
|
1438
|
+
# ["83775.38","0.001076"],
|
1439
|
+
# ["83775.34","0.254716"],
|
1447
1440
|
# ],
|
1448
|
-
# [
|
1449
|
-
#
|
1450
|
-
#
|
1441
|
+
# "asks":[
|
1442
|
+
# ["83985.40","0.000013"],
|
1443
|
+
# ["83980.00","0.000011"],
|
1444
|
+
# ["83975.70","0.000061000000000000005"],
|
1451
1445
|
# ],
|
1452
|
-
#
|
1446
|
+
# "ts":1743240504535,
|
1447
|
+
# "lastUpdateId":13565639906
|
1448
|
+
# }
|
1453
1449
|
# }
|
1454
1450
|
#
|
1455
|
-
#
|
1451
|
+
#
|
1452
|
+
# linear swap
|
1456
1453
|
#
|
1457
1454
|
# {
|
1458
|
-
# "code":
|
1459
|
-
# "msg":
|
1460
|
-
# "data":
|
1461
|
-
#
|
1462
|
-
#
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
#
|
1455
|
+
# "code":0,
|
1456
|
+
# "msg":"",
|
1457
|
+
# "data":{
|
1458
|
+
# "T":1743240836255,
|
1459
|
+
# "bids":[
|
1460
|
+
# ["83760.7","7.0861"],
|
1461
|
+
# ["83760.6","0.0044"],
|
1462
|
+
# ["83757.7","1.9526"],
|
1466
1463
|
# ],
|
1467
|
-
# [
|
1468
|
-
#
|
1469
|
-
#
|
1464
|
+
# "asks":[
|
1465
|
+
# ["83784.3","8.3531"],
|
1466
|
+
# ["83782.8","23.7289"],
|
1467
|
+
# ["83780.1","18.0617"],
|
1470
1468
|
# ],
|
1471
|
-
#
|
1472
|
-
#
|
1473
|
-
#
|
1474
|
-
#
|
1475
|
-
# "43616.00000000"
|
1469
|
+
# "bidsCoin":[
|
1470
|
+
# ["83760.7","0.0007"],
|
1471
|
+
# ["83760.6","0.0000"],
|
1472
|
+
# ["83757.7","0.0002"],
|
1476
1473
|
# ],
|
1477
|
-
# [
|
1478
|
-
#
|
1479
|
-
#
|
1474
|
+
# "asksCoin":[
|
1475
|
+
# ["83784.3","0.0008"],
|
1476
|
+
# ["83782.8","0.0024"],
|
1477
|
+
# ["83780.1","0.0018"],
|
1478
|
+
# ]
|
1479
|
+
# }
|
1480
|
+
# }
|
1481
|
+
#
|
1482
|
+
# inverse swap
|
1483
|
+
#
|
1484
|
+
# {
|
1485
|
+
# "code":0,
|
1486
|
+
# "msg":"",
|
1487
|
+
# "timestamp":1743240979146,
|
1488
|
+
# "data":{
|
1489
|
+
# "T":1743240978691,
|
1490
|
+
# "bids":[
|
1491
|
+
# ["83611.4","241.0"],
|
1492
|
+
# ["83611.3","1.0"],
|
1493
|
+
# ["83602.9","666.0"],
|
1480
1494
|
# ],
|
1481
|
-
#
|
1495
|
+
# "asks":[
|
1496
|
+
# ["83645.0","4253.0"],
|
1497
|
+
# ["83640.5","3188.0"],
|
1498
|
+
# ["83636.0","5540.0"],
|
1499
|
+
# ]
|
1500
|
+
# }
|
1482
1501
|
# }
|
1483
1502
|
#
|
1484
1503
|
orderbook = self.safe_dict(response, 'data', {})
|
1504
|
+
nonce = self.safe_integer(orderbook, 'lastUpdateId')
|
1485
1505
|
timestamp = self.safe_integer_2(orderbook, 'T', 'ts')
|
1486
|
-
|
1506
|
+
result = self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 0, 1)
|
1507
|
+
result['nonce'] = nonce
|
1508
|
+
return result
|
1487
1509
|
|
1488
1510
|
def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
1489
1511
|
"""
|