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
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": 0,
1432
- # "data": {
1433
- # "bids": [
1434
- # [
1435
- # "26324.73",
1436
- # "0.37655"
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
- # "26340.15",
1450
- # "6.73261"
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
- # swap
1451
+ #
1452
+ # linear swap
1456
1453
  #
1457
1454
  # {
1458
- # "code": 0,
1459
- # "msg": "",
1460
- # "data": {
1461
- # "T": 1683914263304,
1462
- # "bids": [
1463
- # [
1464
- # "26300.90000000",
1465
- # "30408.00000000"
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
- # "26300.80000000",
1469
- # "50906.00000000"
1464
+ # "asks":[
1465
+ # ["83784.3","8.3531"],
1466
+ # ["83782.8","23.7289"],
1467
+ # ["83780.1","18.0617"],
1470
1468
  # ],
1471
- # ],
1472
- # "asks": [
1473
- # [
1474
- # "26301.00000000",
1475
- # "43616.00000000"
1469
+ # "bidsCoin":[
1470
+ # ["83760.7","0.0007"],
1471
+ # ["83760.6","0.0000"],
1472
+ # ["83757.7","0.0002"],
1476
1473
  # ],
1477
- # [
1478
- # "26301.10000000",
1479
- # "49402.00000000"
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
- return self.parse_order_book(orderbook, market['symbol'], timestamp, 'bids', 'asks', 0, 1)
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
  """