ccxt 4.4.70__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 (51) 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/async_support/__init__.py +1 -3
  6. ccxt/async_support/base/exchange.py +3 -3
  7. ccxt/async_support/binance.py +106 -101
  8. ccxt/async_support/bingx.py +64 -42
  9. ccxt/async_support/bitget.py +0 -3
  10. ccxt/async_support/bitmart.py +12 -1
  11. ccxt/async_support/bitopro.py +1 -0
  12. ccxt/async_support/bitrue.py +1 -0
  13. ccxt/async_support/cex.py +1 -0
  14. ccxt/async_support/coinbaseexchange.py +1 -0
  15. ccxt/async_support/deribit.py +1 -0
  16. ccxt/async_support/hashkey.py +4 -2
  17. ccxt/async_support/kraken.py +77 -5
  18. ccxt/async_support/kucoin.py +4 -2
  19. ccxt/async_support/mexc.py +8 -4
  20. ccxt/async_support/okx.py +58 -46
  21. ccxt/async_support/poloniex.py +1263 -85
  22. ccxt/async_support/whitebit.py +4 -2
  23. ccxt/base/exchange.py +23 -3
  24. ccxt/base/types.py +28 -0
  25. ccxt/binance.py +106 -101
  26. ccxt/bingx.py +64 -42
  27. ccxt/bitget.py +0 -3
  28. ccxt/bitmart.py +12 -1
  29. ccxt/bitopro.py +1 -0
  30. ccxt/bitrue.py +1 -0
  31. ccxt/cex.py +1 -0
  32. ccxt/coinbaseexchange.py +1 -0
  33. ccxt/deribit.py +1 -0
  34. ccxt/hashkey.py +4 -2
  35. ccxt/kraken.py +77 -5
  36. ccxt/kucoin.py +4 -2
  37. ccxt/mexc.py +8 -4
  38. ccxt/okx.py +58 -46
  39. ccxt/poloniex.py +1262 -85
  40. ccxt/pro/__init__.py +1 -3
  41. ccxt/pro/binance.py +102 -102
  42. ccxt/pro/bingx.py +62 -51
  43. ccxt/test/tests_async.py +1 -0
  44. ccxt/test/tests_sync.py +1 -0
  45. ccxt/whitebit.py +4 -2
  46. {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/METADATA +6 -9
  47. {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/RECORD +50 -51
  48. ccxt/abstract/poloniexfutures.py +0 -48
  49. {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/LICENSE.txt +0 -0
  50. {ccxt-4.4.70.dist-info → ccxt-4.4.71.dist-info}/WHEEL +0 -0
  51. {ccxt-4.4.70.dist-info → ccxt-4.4.71.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.71'
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
@@ -16,6 +16,7 @@ class ImplicitAPI:
16
16
  spot_v1_private_get_trade_mytrades = spotV1PrivateGetTradeMyTrades = Entry('trade/myTrades', ['spot', 'v1', 'private'], 'GET', {'cost': 2})
17
17
  spot_v1_private_get_user_commissionrate = spotV1PrivateGetUserCommissionRate = Entry('user/commissionRate', ['spot', 'v1', 'private'], 'GET', {'cost': 5})
18
18
  spot_v1_private_get_account_balance = spotV1PrivateGetAccountBalance = Entry('account/balance', ['spot', 'v1', 'private'], 'GET', {'cost': 2})
19
+ spot_v1_private_get_account_allaccountbalance = spotV1PrivateGetAccountAllAccountBalance = Entry('account/allAccountBalance', ['spot', 'v1', 'private'], 'GET', {'cost': 2})
19
20
  spot_v1_private_post_trade_order = spotV1PrivatePostTradeOrder = Entry('trade/order', ['spot', 'v1', 'private'], 'POST', {'cost': 2})
20
21
  spot_v1_private_post_trade_cancel = spotV1PrivatePostTradeCancel = Entry('trade/cancel', ['spot', 'v1', 'private'], 'POST', {'cost': 2})
21
22
  spot_v1_private_post_trade_batchorders = spotV1PrivatePostTradeBatchOrders = Entry('trade/batchOrders', ['spot', 'v1', 'private'], 'POST', {'cost': 5})
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})
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.70'
7
+ __version__ = '4.4.71'
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',
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.4.70'
5
+ __version__ = '4.4.71'
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)