ccxt 4.4.70__py2.py3-none-any.whl → 4.4.72__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 (99) 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/poloniex.py +36 -0
  5. ccxt/ascendex.py +1 -1
  6. ccxt/async_support/__init__.py +1 -3
  7. ccxt/async_support/ascendex.py +1 -1
  8. ccxt/async_support/base/exchange.py +3 -3
  9. ccxt/async_support/binance.py +107 -102
  10. ccxt/async_support/bingx.py +65 -43
  11. ccxt/async_support/bitfinex.py +1 -1
  12. ccxt/async_support/bitfinex1.py +1 -1
  13. ccxt/async_support/bitget.py +0 -3
  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/bl3p.py +2 -2
  18. ccxt/async_support/cex.py +2 -0
  19. ccxt/async_support/coinbase.py +3 -2
  20. ccxt/async_support/coinbaseexchange.py +4 -2
  21. ccxt/async_support/coinbaseinternational.py +3 -2
  22. ccxt/async_support/coinex.py +1 -1
  23. ccxt/async_support/deribit.py +3 -1
  24. ccxt/async_support/derive.py +11 -7
  25. ccxt/async_support/gate.py +3 -0
  26. ccxt/async_support/gemini.py +2 -1
  27. ccxt/async_support/hashkey.py +4 -2
  28. ccxt/async_support/hitbtc.py +1 -1
  29. ccxt/async_support/hyperliquid.py +38 -0
  30. ccxt/async_support/kraken.py +78 -6
  31. ccxt/async_support/krakenfutures.py +4 -0
  32. ccxt/async_support/kucoin.py +5 -3
  33. ccxt/async_support/kuna.py +1 -1
  34. ccxt/async_support/mexc.py +9 -5
  35. ccxt/async_support/ndax.py +1 -1
  36. ccxt/async_support/okcoin.py +4 -0
  37. ccxt/async_support/okx.py +79 -76
  38. ccxt/async_support/paradex.py +65 -7
  39. ccxt/async_support/paymium.py +1 -1
  40. ccxt/async_support/poloniex.py +1265 -86
  41. ccxt/async_support/upbit.py +1 -1
  42. ccxt/async_support/whitebit.py +102 -4
  43. ccxt/async_support/woo.py +3 -1
  44. ccxt/async_support/woofipro.py +1 -1
  45. ccxt/async_support/yobit.py +2 -1
  46. ccxt/base/errors.py +6 -0
  47. ccxt/base/exchange.py +31 -4
  48. ccxt/base/types.py +28 -0
  49. ccxt/binance.py +107 -102
  50. ccxt/bingx.py +65 -43
  51. ccxt/bitfinex.py +1 -1
  52. ccxt/bitfinex1.py +1 -1
  53. ccxt/bitget.py +0 -3
  54. ccxt/bitmart.py +12 -1
  55. ccxt/bitopro.py +1 -0
  56. ccxt/bitrue.py +1 -0
  57. ccxt/bl3p.py +2 -2
  58. ccxt/cex.py +2 -0
  59. ccxt/coinbase.py +3 -2
  60. ccxt/coinbaseexchange.py +4 -2
  61. ccxt/coinbaseinternational.py +3 -2
  62. ccxt/coinex.py +1 -1
  63. ccxt/deribit.py +3 -1
  64. ccxt/derive.py +11 -7
  65. ccxt/gate.py +3 -0
  66. ccxt/gemini.py +2 -1
  67. ccxt/hashkey.py +4 -2
  68. ccxt/hitbtc.py +1 -1
  69. ccxt/hyperliquid.py +38 -0
  70. ccxt/kraken.py +78 -6
  71. ccxt/krakenfutures.py +4 -0
  72. ccxt/kucoin.py +5 -3
  73. ccxt/kuna.py +1 -1
  74. ccxt/mexc.py +9 -5
  75. ccxt/ndax.py +1 -1
  76. ccxt/okcoin.py +4 -0
  77. ccxt/okx.py +79 -76
  78. ccxt/paradex.py +65 -7
  79. ccxt/paymium.py +1 -1
  80. ccxt/poloniex.py +1264 -86
  81. ccxt/pro/__init__.py +1 -3
  82. ccxt/pro/binance.py +102 -102
  83. ccxt/pro/bingx.py +63 -52
  84. ccxt/pro/bitmart.py +15 -7
  85. ccxt/pro/derive.py +2 -2
  86. ccxt/pro/krakenfutures.py +1 -1
  87. ccxt/test/tests_async.py +1 -0
  88. ccxt/test/tests_sync.py +1 -0
  89. ccxt/upbit.py +1 -1
  90. ccxt/whitebit.py +102 -4
  91. ccxt/woo.py +3 -1
  92. ccxt/woofipro.py +1 -1
  93. ccxt/yobit.py +2 -1
  94. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/METADATA +6 -9
  95. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/RECORD +98 -99
  96. ccxt/abstract/poloniexfutures.py +0 -48
  97. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/LICENSE.txt +0 -0
  98. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/WHEEL +0 -0
  99. {ccxt-4.4.70.dist-info → ccxt-4.4.72.dist-info}/top_level.txt +0 -0
ccxt/__init__.py CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # ----------------------------------------------------------------------------
24
24
 
25
- __version__ = '4.4.70'
25
+ __version__ = '4.4.72'
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
@@ -179,7 +179,6 @@ from ccxt.paradex import paradex # noqa: F4
179
179
  from ccxt.paymium import paymium # noqa: F401
180
180
  from ccxt.phemex import phemex # noqa: F401
181
181
  from ccxt.poloniex import poloniex # noqa: F401
182
- from ccxt.poloniexfutures import poloniexfutures # noqa: F401
183
182
  from ccxt.probit import probit # noqa: F401
184
183
  from ccxt.timex import timex # noqa: F401
185
184
  from ccxt.tokocrypto import tokocrypto # noqa: F401
@@ -292,7 +291,6 @@ exchanges = [
292
291
  'paymium',
293
292
  'phemex',
294
293
  'poloniex',
295
- 'poloniexfutures',
296
294
  'probit',
297
295
  'timex',
298
296
  'tokocrypto',
ccxt/abstract/bingx.py CHANGED
@@ -140,6 +140,7 @@ class ImplicitAPI:
140
140
  account_v1_private_get_uid = accountV1PrivateGetUid = Entry('uid', ['account', 'v1', 'private'], 'GET', {'cost': 1})
141
141
  account_v1_private_get_apikey_query = accountV1PrivateGetApiKeyQuery = Entry('apiKey/query', ['account', 'v1', 'private'], 'GET', {'cost': 2})
142
142
  account_v1_private_get_account_apipermissions = accountV1PrivateGetAccountApiPermissions = Entry('account/apiPermissions', ['account', 'v1', 'private'], 'GET', {'cost': 5})
143
+ account_v1_private_get_allaccountbalance = accountV1PrivateGetAllAccountBalance = Entry('allAccountBalance', ['account', 'v1', 'private'], 'GET', {'cost': 2})
143
144
  account_v1_private_post_innertransfer_authorizesubaccount = accountV1PrivatePostInnerTransferAuthorizeSubAccount = Entry('innerTransfer/authorizeSubAccount', ['account', 'v1', 'private'], 'POST', {'cost': 1})
144
145
  account_transfer_v1_private_get_subaccount_asset_transferhistory = accountTransferV1PrivateGetSubAccountAssetTransferHistory = Entry('subAccount/asset/transferHistory', ['account', 'transfer', 'v1', 'private'], 'GET', {'cost': 1})
145
146
  account_transfer_v1_private_post_subaccount_transferasset_supportcoins = accountTransferV1PrivatePostSubAccountTransferAssetSupportCoins = Entry('subAccount/transferAsset/supportCoins', ['account', 'transfer', 'v1', 'private'], 'POST', {'cost': 1})
ccxt/abstract/bitmart.py CHANGED
@@ -108,6 +108,7 @@ class ImplicitAPI:
108
108
  private_post_contract_private_submit_tp_sl_order = privatePostContractPrivateSubmitTpSlOrder = Entry('contract/private/submit-tp-sl-order', 'private', 'POST', {'cost': 2.5})
109
109
  private_post_contract_private_modify_plan_order = privatePostContractPrivateModifyPlanOrder = Entry('contract/private/modify-plan-order', 'private', 'POST', {'cost': 2.5})
110
110
  private_post_contract_private_modify_preset_plan_order = privatePostContractPrivateModifyPresetPlanOrder = Entry('contract/private/modify-preset-plan-order', 'private', 'POST', {'cost': 2.5})
111
+ private_post_contract_private_modify_limit_order = privatePostContractPrivateModifyLimitOrder = Entry('contract/private/modify-limit-order', 'private', 'POST', {'cost': 2.5})
111
112
  private_post_contract_private_modify_tp_sl_order = privatePostContractPrivateModifyTpSlOrder = Entry('contract/private/modify-tp-sl-order', 'private', 'POST', {'cost': 2.5})
112
113
  private_post_contract_private_submit_trail_order = privatePostContractPrivateSubmitTrailOrder = Entry('contract/private/submit-trail-order', 'private', 'POST', {'cost': 2.5})
113
114
  private_post_contract_private_cancel_trail_order = privatePostContractPrivateCancelTrailOrder = Entry('contract/private/cancel-trail-order', 'private', 'POST', {'cost': 1.5})
ccxt/abstract/poloniex.py CHANGED
@@ -67,3 +67,39 @@ class ImplicitAPI:
67
67
  private_delete_smartorders = privateDeleteSmartorders = Entry('smartorders', 'private', 'DELETE', {'cost': 20})
68
68
  private_put_orders_id = privatePutOrdersId = Entry('orders/{id}', 'private', 'PUT', {'cost': 20})
69
69
  private_put_smartorders_id = privatePutSmartordersId = Entry('smartorders/{id}', 'private', 'PUT', {'cost': 20})
70
+ swappublic_get_v3_market_allinstruments = swapPublicGetV3MarketAllInstruments = Entry('v3/market/allInstruments', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
71
+ swappublic_get_v3_market_instruments = swapPublicGetV3MarketInstruments = Entry('v3/market/instruments', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
72
+ swappublic_get_v3_market_orderbook = swapPublicGetV3MarketOrderBook = Entry('v3/market/orderBook', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
73
+ swappublic_get_v3_market_candles = swapPublicGetV3MarketCandles = Entry('v3/market/candles', 'swapPublic', 'GET', {'cost': 10})
74
+ swappublic_get_v3_market_indexpricecandlesticks = swapPublicGetV3MarketIndexPriceCandlesticks = Entry('v3/market/indexPriceCandlesticks', 'swapPublic', 'GET', {'cost': 10})
75
+ swappublic_get_v3_market_premiumindexcandlesticks = swapPublicGetV3MarketPremiumIndexCandlesticks = Entry('v3/market/premiumIndexCandlesticks', 'swapPublic', 'GET', {'cost': 10})
76
+ swappublic_get_v3_market_markpricecandlesticks = swapPublicGetV3MarketMarkPriceCandlesticks = Entry('v3/market/markPriceCandlesticks', 'swapPublic', 'GET', {'cost': 10})
77
+ swappublic_get_v3_market_trades = swapPublicGetV3MarketTrades = Entry('v3/market/trades', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
78
+ swappublic_get_v3_market_liquidationorder = swapPublicGetV3MarketLiquidationOrder = Entry('v3/market/liquidationOrder', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
79
+ swappublic_get_v3_market_tickers = swapPublicGetV3MarketTickers = Entry('v3/market/tickers', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
80
+ swappublic_get_v3_market_markprice = swapPublicGetV3MarketMarkPrice = Entry('v3/market/markPrice', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
81
+ swappublic_get_v3_market_indexprice = swapPublicGetV3MarketIndexPrice = Entry('v3/market/indexPrice', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
82
+ swappublic_get_v3_market_indexpricecomponents = swapPublicGetV3MarketIndexPriceComponents = Entry('v3/market/indexPriceComponents', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
83
+ swappublic_get_v3_market_fundingrate = swapPublicGetV3MarketFundingRate = Entry('v3/market/fundingRate', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
84
+ swappublic_get_v3_market_openinterest = swapPublicGetV3MarketOpenInterest = Entry('v3/market/openInterest', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
85
+ swappublic_get_v3_market_insurance = swapPublicGetV3MarketInsurance = Entry('v3/market/insurance', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
86
+ swappublic_get_v3_market_risklimit = swapPublicGetV3MarketRiskLimit = Entry('v3/market/riskLimit', 'swapPublic', 'GET', {'cost': 0.6666666666666666})
87
+ swapprivate_get_v3_account_balance = swapPrivateGetV3AccountBalance = Entry('v3/account/balance', 'swapPrivate', 'GET', {'cost': 4})
88
+ swapprivate_get_v3_account_bills = swapPrivateGetV3AccountBills = Entry('v3/account/bills', 'swapPrivate', 'GET', {'cost': 20})
89
+ swapprivate_get_v3_trade_order_opens = swapPrivateGetV3TradeOrderOpens = Entry('v3/trade/order/opens', 'swapPrivate', 'GET', {'cost': 20})
90
+ swapprivate_get_v3_trade_order_trades = swapPrivateGetV3TradeOrderTrades = Entry('v3/trade/order/trades', 'swapPrivate', 'GET', {'cost': 20})
91
+ swapprivate_get_v3_trade_order_history = swapPrivateGetV3TradeOrderHistory = Entry('v3/trade/order/history', 'swapPrivate', 'GET', {'cost': 20})
92
+ swapprivate_get_v3_trade_position_opens = swapPrivateGetV3TradePositionOpens = Entry('v3/trade/position/opens', 'swapPrivate', 'GET', {'cost': 20})
93
+ swapprivate_get_v3_trade_position_history = swapPrivateGetV3TradePositionHistory = Entry('v3/trade/position/history', 'swapPrivate', 'GET', {'cost': 20})
94
+ swapprivate_get_v3_position_leverages = swapPrivateGetV3PositionLeverages = Entry('v3/position/leverages', 'swapPrivate', 'GET', {'cost': 20})
95
+ swapprivate_get_v3_position_mode = swapPrivateGetV3PositionMode = Entry('v3/position/mode', 'swapPrivate', 'GET', {'cost': 20})
96
+ swapprivate_post_v3_trade_order = swapPrivatePostV3TradeOrder = Entry('v3/trade/order', 'swapPrivate', 'POST', {'cost': 4})
97
+ swapprivate_post_v3_trade_orders = swapPrivatePostV3TradeOrders = Entry('v3/trade/orders', 'swapPrivate', 'POST', {'cost': 40})
98
+ swapprivate_post_v3_trade_position = swapPrivatePostV3TradePosition = Entry('v3/trade/position', 'swapPrivate', 'POST', {'cost': 20})
99
+ swapprivate_post_v3_trade_positionall = swapPrivatePostV3TradePositionAll = Entry('v3/trade/positionAll', 'swapPrivate', 'POST', {'cost': 100})
100
+ swapprivate_post_v3_position_leverage = swapPrivatePostV3PositionLeverage = Entry('v3/position/leverage', 'swapPrivate', 'POST', {'cost': 20})
101
+ swapprivate_post_v3_position_mode = swapPrivatePostV3PositionMode = Entry('v3/position/mode', 'swapPrivate', 'POST', {'cost': 20})
102
+ swapprivate_post_v3_trade_position_margin = swapPrivatePostV3TradePositionMargin = Entry('v3/trade/position/margin', 'swapPrivate', 'POST', {'cost': 20})
103
+ swapprivate_delete_v3_trade_order = swapPrivateDeleteV3TradeOrder = Entry('v3/trade/order', 'swapPrivate', 'DELETE', {'cost': 2})
104
+ swapprivate_delete_v3_trade_batchorders = swapPrivateDeleteV3TradeBatchOrders = Entry('v3/trade/batchOrders', 'swapPrivate', 'DELETE', {'cost': 20})
105
+ swapprivate_delete_v3_trade_allorders = swapPrivateDeleteV3TradeAllOrders = Entry('v3/trade/allOrders', 'swapPrivate', 'DELETE', {'cost': 20})
ccxt/ascendex.py CHANGED
@@ -1959,7 +1959,7 @@ class ascendex(Exchange, ImplicitAPI):
1959
1959
  # "code": 0,
1960
1960
  # "data": [
1961
1961
  # {
1962
- # "avgPx": "0", # Average filled price of the order
1962
+ # "avgPx": "0", # Average filled price of the order
1963
1963
  # "cumFee": "0", # cumulative fee paid for self order
1964
1964
  # "cumFilledQty": "0", # cumulative filled quantity
1965
1965
  # "errorCode": "", # error code; could be empty
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.70'
7
+ __version__ = '4.4.72'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -159,7 +159,6 @@ from ccxt.async_support.paradex import paradex
159
159
  from ccxt.async_support.paymium import paymium # noqa: F401
160
160
  from ccxt.async_support.phemex import phemex # noqa: F401
161
161
  from ccxt.async_support.poloniex import poloniex # noqa: F401
162
- from ccxt.async_support.poloniexfutures import poloniexfutures # noqa: F401
163
162
  from ccxt.async_support.probit import probit # noqa: F401
164
163
  from ccxt.async_support.timex import timex # noqa: F401
165
164
  from ccxt.async_support.tokocrypto import tokocrypto # noqa: F401
@@ -272,7 +271,6 @@ exchanges = [
272
271
  'paymium',
273
272
  'phemex',
274
273
  'poloniex',
275
- 'poloniexfutures',
276
274
  'probit',
277
275
  'timex',
278
276
  'tokocrypto',
@@ -1960,7 +1960,7 @@ class ascendex(Exchange, ImplicitAPI):
1960
1960
  # "code": 0,
1961
1961
  # "data": [
1962
1962
  # {
1963
- # "avgPx": "0", # Average filled price of the order
1963
+ # "avgPx": "0", # Average filled price of the order
1964
1964
  # "cumFee": "0", # cumulative fee paid for self order
1965
1965
  # "cumFilledQty": "0", # cumulative filled quantity
1966
1966
  # "errorCode": "", # error code; could be empty
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.4.70'
5
+ __version__ = '4.4.72'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
@@ -25,7 +25,7 @@ from ccxt.async_support.base.throttler import Throttler
25
25
  # -----------------------------------------------------------------------------
26
26
 
27
27
  from ccxt.base.errors import BaseError, BadSymbol, BadRequest, BadResponse, ExchangeError, ExchangeNotAvailable, RequestTimeout, NotSupported, NullResponse, InvalidAddress, RateLimitExceeded, OperationFailed
28
- from ccxt.base.types import OrderType, OrderSide, OrderRequest, CancellationRequest
28
+ from ccxt.base.types import ConstructorArgs, OrderType, OrderSide, OrderRequest, CancellationRequest
29
29
 
30
30
  # -----------------------------------------------------------------------------
31
31
 
@@ -67,7 +67,7 @@ class Exchange(BaseExchange):
67
67
  clients = {}
68
68
  timeout_on_exit = 250 # needed for: https://github.com/ccxt/ccxt/pull/23470
69
69
 
70
- def __init__(self, config={}):
70
+ def __init__(self, config: ConstructorArgs = {}):
71
71
  if 'asyncio_loop' in config:
72
72
  self.asyncio_loop = config['asyncio_loop']
73
73
  self.aiohttp_trust_env = config.get('aiohttp_trust_env', self.aiohttp_trust_env)