ccxt 4.2.20__py2.py3-none-any.whl → 4.2.22__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.

Potentially problematic release.


This version of ccxt might be problematic. Click here for more details.

Files changed (62) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/binance.py +3 -0
  3. ccxt/abstract/binancecoinm.py +3 -0
  4. ccxt/abstract/binanceus.py +16 -12
  5. ccxt/abstract/binanceusdm.py +3 -0
  6. ccxt/abstract/gate.py +1 -0
  7. ccxt/abstract/gateio.py +1 -0
  8. ccxt/abstract/novadax.py +22 -18
  9. ccxt/abstract/phemex.py +1 -0
  10. ccxt/async_support/__init__.py +1 -1
  11. ccxt/async_support/base/exchange.py +16 -4
  12. ccxt/async_support/bigone.py +1 -0
  13. ccxt/async_support/binance.py +14 -3
  14. ccxt/async_support/bitget.py +11 -1
  15. ccxt/async_support/bitrue.py +1 -0
  16. ccxt/async_support/bitvavo.py +250 -152
  17. ccxt/async_support/blockchaincom.py +3 -1
  18. ccxt/async_support/bybit.py +49 -10
  19. ccxt/async_support/coinbasepro.py +1 -0
  20. ccxt/async_support/coinex.py +34 -12
  21. ccxt/async_support/deribit.py +145 -0
  22. ccxt/async_support/gate.py +30 -1
  23. ccxt/async_support/novadax.py +27 -23
  24. ccxt/async_support/okcoin.py +3 -0
  25. ccxt/async_support/phemex.py +7 -3
  26. ccxt/async_support/poloniex.py +1 -0
  27. ccxt/async_support/woo.py +1 -1
  28. ccxt/base/exchange.py +17 -5
  29. ccxt/bigone.py +1 -0
  30. ccxt/binance.py +14 -3
  31. ccxt/bitget.py +11 -1
  32. ccxt/bitrue.py +1 -0
  33. ccxt/bitvavo.py +250 -152
  34. ccxt/blockchaincom.py +3 -1
  35. ccxt/bybit.py +49 -10
  36. ccxt/coinbasepro.py +1 -0
  37. ccxt/coinex.py +34 -12
  38. ccxt/deribit.py +145 -0
  39. ccxt/gate.py +30 -1
  40. ccxt/novadax.py +27 -23
  41. ccxt/okcoin.py +3 -0
  42. ccxt/phemex.py +7 -3
  43. ccxt/poloniex.py +1 -0
  44. ccxt/pro/__init__.py +1 -1
  45. ccxt/pro/bequant.py +7 -1
  46. ccxt/pro/binance.py +7 -4
  47. ccxt/pro/binancecoinm.py +7 -1
  48. ccxt/pro/binanceus.py +7 -1
  49. ccxt/pro/bitcoincom.py +7 -1
  50. ccxt/pro/bitget.py +1 -1
  51. ccxt/pro/bitopro.py +7 -3
  52. ccxt/pro/bitrue.py +5 -1
  53. ccxt/pro/bitvavo.py +623 -19
  54. ccxt/pro/lbank.py +1 -1
  55. ccxt/pro/okx.py +10 -2
  56. ccxt/test/test_async.py +14 -1
  57. ccxt/test/test_sync.py +14 -1
  58. ccxt/woo.py +1 -1
  59. {ccxt-4.2.20.dist-info → ccxt-4.2.22.dist-info}/METADATA +4 -4
  60. {ccxt-4.2.20.dist-info → ccxt-4.2.22.dist-info}/RECORD +62 -62
  61. {ccxt-4.2.20.dist-info → ccxt-4.2.22.dist-info}/WHEEL +0 -0
  62. {ccxt-4.2.20.dist-info → ccxt-4.2.22.dist-info}/top_level.txt +0 -0
ccxt/bigone.py CHANGED
@@ -52,6 +52,7 @@ class bigone(Exchange, ImplicitAPI):
52
52
  'fetchCurrencies': True,
53
53
  'fetchDepositAddress': True,
54
54
  'fetchDeposits': True,
55
+ 'fetchFundingRate': False,
55
56
  'fetchMarkets': True,
56
57
  'fetchMyTrades': True,
57
58
  'fetchOHLCV': True,
ccxt/binance.py CHANGED
@@ -329,6 +329,7 @@ class binance(Exchange, ImplicitAPI):
329
329
  'convert/exchangeInfo': 50,
330
330
  'convert/assetInfo': 10,
331
331
  'convert/orderStatus': 0.6667,
332
+ 'convert/limit/queryOpenOrders': 20.001, # Weight(UID): 3000 => cost = 0.006667 * 3000 = 20.001
332
333
  'account/status': 0.1,
333
334
  'account/apiTradingStatus': 0.1,
334
335
  'account/apiRestrictions/ipRestriction': 0.1,
@@ -600,6 +601,8 @@ class binance(Exchange, ImplicitAPI):
600
601
  'loan/vip/repay': 40.002,
601
602
  'convert/getQuote': 1.3334, # Weight(UID): 200 => cost = 0.006667 * 200 = 1.3334
602
603
  'convert/acceptQuote': 3.3335, # Weight(UID): 500 => cost = 0.006667 * 500 = 3.3335
604
+ 'convert/limit/placeOrder': 3.3335, # Weight(UID): 500 => cost = 0.006667 * 500 = 3.3335
605
+ 'convert/limit/cancelOrder': 1.3334, # Weight(UID): 200 => cost = 0.006667 * 200 = 1.3334
603
606
  'portfolio/auto-collection': 150, # Weight(IP): 1500 => cost = 0.1 * 1500 = 150
604
607
  'portfolio/asset-collection': 6, # Weight(IP): 60 => cost = 0.1 * 60 = 6
605
608
  'portfolio/bnb-transfer': 150, # Weight(IP): 1500 => cost = 0.1 * 1500 = 150
@@ -7369,12 +7372,20 @@ class binance(Exchange, ImplicitAPI):
7369
7372
 
7370
7373
  def fetch_positions(self, symbols: Strings = None, params={}):
7371
7374
  """
7375
+ :see: https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
7376
+ :see: https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
7377
+ :see: https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
7378
+ :see: https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
7379
+ :see: https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
7372
7380
  fetch all open positions
7373
- :param str[]|None symbols: list of unified market symbols
7381
+ :param str[] [symbols]: list of unified market symbols
7374
7382
  :param dict [params]: extra parameters specific to the exchange API endpoint
7383
+ :param str [method]: method name to call, "positionRisk", "account" or "option", default is "positionRisk"
7375
7384
  :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
7376
7385
  """
7377
- defaultMethod = self.safe_string(self.options, 'fetchPositions', 'positionRisk')
7386
+ defaultValue = self.safe_string(self.options, 'fetchPositions', 'positionRisk')
7387
+ defaultMethod = None
7388
+ defaultMethod, params = self.handle_option_and_params(params, 'fetchPositions', 'method', defaultValue)
7378
7389
  if defaultMethod == 'positionRisk':
7379
7390
  return self.fetch_positions_risk(symbols, params)
7380
7391
  elif defaultMethod == 'account':
@@ -7382,7 +7393,7 @@ class binance(Exchange, ImplicitAPI):
7382
7393
  elif defaultMethod == 'option':
7383
7394
  return self.fetch_option_positions(symbols, params)
7384
7395
  else:
7385
- raise NotSupported(self.id + '.options["fetchPositions"] = "' + defaultMethod + '" is invalid, please choose between "account", "positionRisk" and "option"')
7396
+ raise NotSupported(self.id + '.options["fetchPositions"]/params["method"] = "' + defaultMethod + '" is invalid, please choose between "account", "positionRisk" and "option"')
7386
7397
 
7387
7398
  def fetch_account_positions(self, symbols: Strings = None, params={}):
7388
7399
  """
ccxt/bitget.py CHANGED
@@ -58,15 +58,21 @@ class bitget(Exchange, ImplicitAPI):
58
58
  'cancelOrders': True,
59
59
  'closeAllPositions': True,
60
60
  'closePosition': True,
61
+ 'createDepositAddress': False,
61
62
  'createMarketBuyOrderWithCost': True,
62
63
  'createMarketOrderWithCost': False,
63
64
  'createMarketSellOrderWithCost': False,
64
65
  'createOrder': True,
65
66
  'createOrders': True,
66
67
  'createOrderWithTakeProfitAndStopLoss': True,
68
+ 'createPostOnlyOrder': True,
67
69
  'createReduceOnlyOrder': False,
70
+ 'createStopLimitOrder': True,
68
71
  'createStopLossOrder': True,
72
+ 'createStopMarketOrder': True,
73
+ 'createStopOrder': True,
69
74
  'createTakeProfitOrder': True,
75
+ 'createTrailingAmountOrder': False,
70
76
  'createTrailingPercentOrder': True,
71
77
  'createTriggerOrder': True,
72
78
  'editOrder': True,
@@ -84,6 +90,7 @@ class bitget(Exchange, ImplicitAPI):
84
90
  'fetchDepositAddress': True,
85
91
  'fetchDepositAddresses': False,
86
92
  'fetchDeposits': True,
93
+ 'fetchDepositsWithdrawals': False,
87
94
  'fetchDepositWithdrawFee': 'emulated',
88
95
  'fetchDepositWithdrawFees': True,
89
96
  'fetchFundingHistory': True,
@@ -97,7 +104,7 @@ class bitget(Exchange, ImplicitAPI):
97
104
  'fetchLeverage': True,
98
105
  'fetchLeverageTiers': False,
99
106
  'fetchLiquidations': False,
100
- 'fetchMarginMode': None,
107
+ 'fetchMarginMode': False,
101
108
  'fetchMarketLeverageTiers': True,
102
109
  'fetchMarkets': True,
103
110
  'fetchMarkOHLCV': True,
@@ -122,8 +129,10 @@ class bitget(Exchange, ImplicitAPI):
122
129
  'fetchTrades': True,
123
130
  'fetchTradingFee': True,
124
131
  'fetchTradingFees': True,
132
+ 'fetchTransactions': False,
125
133
  'fetchTransfer': False,
126
134
  'fetchTransfers': True,
135
+ 'fetchWithdrawAddresses': False,
127
136
  'fetchWithdrawal': False,
128
137
  'fetchWithdrawals': True,
129
138
  'reduceMargin': True,
@@ -132,6 +141,7 @@ class bitget(Exchange, ImplicitAPI):
132
141
  'setLeverage': True,
133
142
  'setMarginMode': True,
134
143
  'setPositionMode': True,
144
+ 'signIn': False,
135
145
  'transfer': True,
136
146
  'withdraw': True,
137
147
  },
ccxt/bitrue.py CHANGED
@@ -72,6 +72,7 @@ class bitrue(Exchange, ImplicitAPI):
72
72
  'fetchDepositsWithdrawals': False,
73
73
  'fetchDepositWithdrawFee': 'emulated',
74
74
  'fetchDepositWithdrawFees': True,
75
+ 'fetchFundingRate': False,
75
76
  'fetchIsolatedBorrowRate': False,
76
77
  'fetchIsolatedBorrowRates': False,
77
78
  'fetchMarginMode': False,