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.
Files changed (65) hide show
  1. ccxt/__init__.py +1 -3
  2. ccxt/abstract/bingx.py +1 -0
  3. ccxt/abstract/bitmart.py +1 -0
  4. ccxt/abstract/bybit.py +4 -0
  5. ccxt/abstract/myokx.py +3 -0
  6. ccxt/abstract/okx.py +3 -0
  7. ccxt/abstract/poloniex.py +36 -0
  8. ccxt/abstract/tradeogre.py +1 -1
  9. ccxt/async_support/__init__.py +1 -3
  10. ccxt/async_support/base/exchange.py +3 -3
  11. ccxt/async_support/binance.py +107 -102
  12. ccxt/async_support/bingx.py +64 -42
  13. ccxt/async_support/bitget.py +47 -265
  14. ccxt/async_support/bitmart.py +12 -1
  15. ccxt/async_support/bitopro.py +1 -0
  16. ccxt/async_support/bitrue.py +1 -0
  17. ccxt/async_support/bybit.py +7 -0
  18. ccxt/async_support/cex.py +1 -0
  19. ccxt/async_support/coinbase.py +23 -4
  20. ccxt/async_support/coinbaseexchange.py +1 -0
  21. ccxt/async_support/deribit.py +1 -0
  22. ccxt/async_support/hashkey.py +4 -2
  23. ccxt/async_support/hyperliquid.py +16 -7
  24. ccxt/async_support/kraken.py +77 -5
  25. ccxt/async_support/kucoin.py +4 -2
  26. ccxt/async_support/mexc.py +8 -4
  27. ccxt/async_support/okx.py +62 -46
  28. ccxt/async_support/poloniex.py +1263 -85
  29. ccxt/async_support/tradeogre.py +20 -4
  30. ccxt/async_support/whitebit.py +4 -2
  31. ccxt/base/exchange.py +23 -4
  32. ccxt/base/types.py +28 -0
  33. ccxt/binance.py +107 -102
  34. ccxt/bingx.py +64 -42
  35. ccxt/bitget.py +47 -265
  36. ccxt/bitmart.py +12 -1
  37. ccxt/bitopro.py +1 -0
  38. ccxt/bitrue.py +1 -0
  39. ccxt/bybit.py +7 -0
  40. ccxt/cex.py +1 -0
  41. ccxt/coinbase.py +23 -4
  42. ccxt/coinbaseexchange.py +1 -0
  43. ccxt/deribit.py +1 -0
  44. ccxt/hashkey.py +4 -2
  45. ccxt/hyperliquid.py +16 -7
  46. ccxt/kraken.py +77 -5
  47. ccxt/kucoin.py +4 -2
  48. ccxt/mexc.py +8 -4
  49. ccxt/okx.py +62 -46
  50. ccxt/poloniex.py +1262 -85
  51. ccxt/pro/__init__.py +1 -3
  52. ccxt/pro/binance.py +102 -102
  53. ccxt/pro/bingx.py +62 -51
  54. ccxt/pro/bitget.py +28 -3
  55. ccxt/pro/bybit.py +81 -37
  56. ccxt/test/tests_async.py +4 -3
  57. ccxt/test/tests_sync.py +4 -3
  58. ccxt/tradeogre.py +20 -4
  59. ccxt/whitebit.py +4 -2
  60. {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/METADATA +6 -9
  61. {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/RECORD +64 -65
  62. ccxt/abstract/poloniexfutures.py +0 -48
  63. {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/LICENSE.txt +0 -0
  64. {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/WHEEL +0 -0
  65. {ccxt-4.4.69.dist-info → ccxt-4.4.71.dist-info}/top_level.txt +0 -0
@@ -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": 0,
1433
- # "data": {
1434
- # "bids": [
1435
- # [
1436
- # "26324.73",
1437
- # "0.37655"
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
- # "26340.15",
1451
- # "6.73261"
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
- # swap
1452
+ #
1453
+ # linear swap
1457
1454
  #
1458
1455
  # {
1459
- # "code": 0,
1460
- # "msg": "",
1461
- # "data": {
1462
- # "T": 1683914263304,
1463
- # "bids": [
1464
- # [
1465
- # "26300.90000000",
1466
- # "30408.00000000"
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
- # "26300.80000000",
1470
- # "50906.00000000"
1465
+ # "asks":[
1466
+ # ["83784.3","8.3531"],
1467
+ # ["83782.8","23.7289"],
1468
+ # ["83780.1","18.0617"],
1471
1469
  # ],
1472
- # ],
1473
- # "asks": [
1474
- # [
1475
- # "26301.00000000",
1476
- # "43616.00000000"
1470
+ # "bidsCoin":[
1471
+ # ["83760.7","0.0007"],
1472
+ # ["83760.6","0.0000"],
1473
+ # ["83757.7","0.0002"],
1477
1474
  # ],
1478
- # [
1479
- # "26301.10000000",
1480
- # "49402.00000000"
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
- return self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 0, 1)
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
  """