ccxt 4.4.94__py2.py3-none-any.whl → 4.4.96__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 (92) hide show
  1. ccxt/__init__.py +3 -1
  2. ccxt/abstract/bingx.py +3 -0
  3. ccxt/abstract/foxbit.py +26 -0
  4. ccxt/abstract/hyperliquid.py +1 -1
  5. ccxt/abstract/woo.py +59 -4
  6. ccxt/apex.py +3 -3
  7. ccxt/ascendex.py +2 -2
  8. ccxt/async_support/__init__.py +3 -1
  9. ccxt/async_support/apex.py +3 -3
  10. ccxt/async_support/ascendex.py +2 -2
  11. ccxt/async_support/base/exchange.py +5 -3
  12. ccxt/async_support/base/ws/future.py +5 -1
  13. ccxt/async_support/bingx.py +129 -92
  14. ccxt/async_support/bitget.py +31 -144
  15. ccxt/async_support/bitmart.py +2 -2
  16. ccxt/async_support/bitrue.py +13 -8
  17. ccxt/async_support/bitstamp.py +2 -0
  18. ccxt/async_support/blofin.py +6 -1
  19. ccxt/async_support/bybit.py +15 -6
  20. ccxt/async_support/coinbase.py +36 -0
  21. ccxt/async_support/coinbaseexchange.py +4 -2
  22. ccxt/async_support/coinbaseinternational.py +2 -2
  23. ccxt/async_support/coinmate.py +34 -0
  24. ccxt/async_support/coinone.py +34 -0
  25. ccxt/async_support/coinsph.py +29 -0
  26. ccxt/async_support/coinspot.py +36 -1
  27. ccxt/async_support/cryptocom.py +2 -1
  28. ccxt/async_support/cryptomus.py +41 -1
  29. ccxt/async_support/defx.py +1 -1
  30. ccxt/async_support/derive.py +1 -1
  31. ccxt/async_support/ellipx.py +40 -0
  32. ccxt/async_support/foxbit.py +1935 -0
  33. ccxt/async_support/gate.py +1 -1
  34. ccxt/async_support/hyperliquid.py +3 -2
  35. ccxt/async_support/kucoin.py +1 -1
  36. ccxt/async_support/kucoinfutures.py +3 -2
  37. ccxt/async_support/mexc.py +28 -13
  38. ccxt/async_support/modetrade.py +3 -3
  39. ccxt/async_support/okcoin.py +1 -1
  40. ccxt/async_support/okx.py +10 -3
  41. ccxt/async_support/onetrading.py +1 -1
  42. ccxt/async_support/oxfun.py +2 -1
  43. ccxt/async_support/paradex.py +2 -2
  44. ccxt/async_support/vertex.py +3 -2
  45. ccxt/async_support/woo.py +1255 -875
  46. ccxt/async_support/woofipro.py +2 -2
  47. ccxt/base/exchange.py +8 -5
  48. ccxt/bingx.py +129 -92
  49. ccxt/bitget.py +31 -144
  50. ccxt/bitmart.py +2 -2
  51. ccxt/bitrue.py +13 -8
  52. ccxt/bitstamp.py +2 -0
  53. ccxt/blofin.py +6 -1
  54. ccxt/bybit.py +15 -6
  55. ccxt/coinbase.py +36 -0
  56. ccxt/coinbaseexchange.py +4 -2
  57. ccxt/coinbaseinternational.py +2 -2
  58. ccxt/coinmate.py +34 -0
  59. ccxt/coinone.py +34 -0
  60. ccxt/coinsph.py +29 -0
  61. ccxt/coinspot.py +36 -1
  62. ccxt/cryptocom.py +2 -1
  63. ccxt/cryptomus.py +41 -1
  64. ccxt/defx.py +1 -1
  65. ccxt/derive.py +1 -1
  66. ccxt/ellipx.py +40 -0
  67. ccxt/foxbit.py +1935 -0
  68. ccxt/gate.py +1 -1
  69. ccxt/hyperliquid.py +3 -2
  70. ccxt/kucoin.py +1 -1
  71. ccxt/kucoinfutures.py +3 -2
  72. ccxt/mexc.py +28 -13
  73. ccxt/modetrade.py +3 -3
  74. ccxt/okcoin.py +1 -1
  75. ccxt/okx.py +10 -3
  76. ccxt/onetrading.py +1 -1
  77. ccxt/oxfun.py +2 -1
  78. ccxt/paradex.py +2 -2
  79. ccxt/pro/__init__.py +1 -1
  80. ccxt/pro/hyperliquid.py +6 -6
  81. ccxt/pro/kraken.py +17 -16
  82. ccxt/pro/mexc.py +10 -10
  83. ccxt/test/tests_async.py +17 -2
  84. ccxt/test/tests_sync.py +17 -2
  85. ccxt/vertex.py +3 -2
  86. ccxt/woo.py +1255 -875
  87. ccxt/woofipro.py +2 -2
  88. {ccxt-4.4.94.dist-info → ccxt-4.4.96.dist-info}/METADATA +8 -8
  89. {ccxt-4.4.94.dist-info → ccxt-4.4.96.dist-info}/RECORD +92 -89
  90. {ccxt-4.4.94.dist-info → ccxt-4.4.96.dist-info}/LICENSE.txt +0 -0
  91. {ccxt-4.4.94.dist-info → ccxt-4.4.96.dist-info}/WHEEL +0 -0
  92. {ccxt-4.4.94.dist-info → ccxt-4.4.96.dist-info}/top_level.txt +0 -0
ccxt/coinone.py CHANGED
@@ -36,18 +36,28 @@ class coinone(Exchange, ImplicitAPI):
36
36
  'future': False,
37
37
  'option': False,
38
38
  'addMargin': False,
39
+ 'borrowCrossMargin': False,
40
+ 'borrowIsolatedMargin': False,
41
+ 'borrowMargin': False,
39
42
  'cancelOrder': True,
40
43
  'closeAllPositions': False,
41
44
  'closePosition': False,
42
45
  'createMarketOrder': False,
43
46
  'createOrder': True,
47
+ 'createOrderWithTakeProfitAndStopLoss': False,
48
+ 'createOrderWithTakeProfitAndStopLossWs': False,
49
+ 'createPostOnlyOrder': False,
44
50
  'createReduceOnlyOrder': False,
45
51
  'createStopLimitOrder': False,
46
52
  'createStopMarketOrder': False,
47
53
  'createStopOrder': False,
48
54
  'fetchBalance': True,
55
+ 'fetchBorrowInterest': False,
56
+ 'fetchBorrowRate': False,
49
57
  'fetchBorrowRateHistories': False,
50
58
  'fetchBorrowRateHistory': False,
59
+ 'fetchBorrowRates': False,
60
+ 'fetchBorrowRatesPerSymbol': False,
51
61
  'fetchClosedOrders': False, # the endpoint that should return closed orders actually returns trades, https://github.com/ccxt/ccxt/pull/7067
52
62
  'fetchCrossBorrowRate': False,
53
63
  'fetchCrossBorrowRates': False,
@@ -56,20 +66,38 @@ class coinone(Exchange, ImplicitAPI):
56
66
  'fetchDepositAddresses': True,
57
67
  'fetchDepositAddressesByNetwork': False,
58
68
  'fetchFundingHistory': False,
69
+ 'fetchFundingInterval': False,
70
+ 'fetchFundingIntervals': False,
59
71
  'fetchFundingRate': False,
60
72
  'fetchFundingRateHistory': False,
61
73
  'fetchFundingRates': False,
74
+ 'fetchGreeks': False,
62
75
  'fetchIndexOHLCV': False,
63
76
  'fetchIsolatedBorrowRate': False,
64
77
  'fetchIsolatedBorrowRates': False,
78
+ 'fetchIsolatedPositions': False,
65
79
  'fetchLeverage': False,
80
+ 'fetchLeverages': False,
66
81
  'fetchLeverageTiers': False,
82
+ 'fetchLiquidations': False,
83
+ 'fetchLongShortRatio': False,
84
+ 'fetchLongShortRatioHistory': False,
85
+ 'fetchMarginAdjustmentHistory': False,
67
86
  'fetchMarginMode': False,
87
+ 'fetchMarginModes': False,
88
+ 'fetchMarketLeverageTiers': False,
68
89
  'fetchMarkets': True,
69
90
  'fetchMarkOHLCV': False,
91
+ 'fetchMarkPrices': False,
92
+ 'fetchMyLiquidations': False,
93
+ 'fetchMySettlementHistory': False,
70
94
  'fetchMyTrades': True,
95
+ 'fetchOpenInterest': False,
71
96
  'fetchOpenInterestHistory': False,
97
+ 'fetchOpenInterests': False,
72
98
  'fetchOpenOrders': True,
99
+ 'fetchOption': False,
100
+ 'fetchOptionChain': False,
73
101
  'fetchOrder': True,
74
102
  'fetchOrderBook': True,
75
103
  'fetchPosition': False,
@@ -80,11 +108,17 @@ class coinone(Exchange, ImplicitAPI):
80
108
  'fetchPositionsHistory': False,
81
109
  'fetchPositionsRisk': False,
82
110
  'fetchPremiumIndexOHLCV': False,
111
+ 'fetchSettlementHistory': False,
83
112
  'fetchTicker': True,
84
113
  'fetchTickers': True,
85
114
  'fetchTrades': True,
115
+ 'fetchVolatilityHistory': False,
86
116
  'reduceMargin': False,
117
+ 'repayCrossMargin': False,
118
+ 'repayIsolatedMargin': False,
119
+ 'repayMargin': False,
87
120
  'setLeverage': False,
121
+ 'setMargin': False,
88
122
  'setMarginMode': False,
89
123
  'setPositionMode': False,
90
124
  'ws': True,
ccxt/coinsph.py CHANGED
@@ -47,6 +47,9 @@ class coinsph(Exchange, ImplicitAPI):
47
47
  'future': False,
48
48
  'option': False,
49
49
  'addMargin': False,
50
+ 'borrowCrossMargin': False,
51
+ 'borrowIsolatedMargin': False,
52
+ 'borrowMargin': False,
50
53
  'cancelAllOrders': True,
51
54
  'cancelOrder': True,
52
55
  'cancelOrders': False,
@@ -57,6 +60,8 @@ class coinsph(Exchange, ImplicitAPI):
57
60
  'createMarketOrderWithCost': False,
58
61
  'createMarketSellOrderWithCost': False,
59
62
  'createOrder': True,
63
+ 'createOrderWithTakeProfitAndStopLoss': False,
64
+ 'createOrderWithTakeProfitAndStopLossWs': False,
60
65
  'createPostOnlyOrder': False,
61
66
  'createReduceOnlyOrder': False,
62
67
  'createStopLimitOrder': True,
@@ -68,8 +73,11 @@ class coinsph(Exchange, ImplicitAPI):
68
73
  'fetchBalance': True,
69
74
  'fetchBidsAsks': False,
70
75
  'fetchBorrowInterest': False,
76
+ 'fetchBorrowRate': False,
71
77
  'fetchBorrowRateHistories': False,
72
78
  'fetchBorrowRateHistory': False,
79
+ 'fetchBorrowRates': False,
80
+ 'fetchBorrowRatesPerSymbol': False,
73
81
  'fetchCanceledOrders': False,
74
82
  'fetchClosedOrder': False,
75
83
  'fetchClosedOrders': True,
@@ -84,24 +92,42 @@ class coinsph(Exchange, ImplicitAPI):
84
92
  'fetchDepositWithdrawFee': False,
85
93
  'fetchDepositWithdrawFees': False,
86
94
  'fetchFundingHistory': False,
95
+ 'fetchFundingInterval': False,
96
+ 'fetchFundingIntervals': False,
87
97
  'fetchFundingRate': False,
88
98
  'fetchFundingRateHistory': False,
89
99
  'fetchFundingRates': False,
100
+ 'fetchGreeks': False,
90
101
  'fetchIndexOHLCV': False,
91
102
  'fetchIsolatedBorrowRate': False,
92
103
  'fetchIsolatedBorrowRates': False,
104
+ 'fetchIsolatedPositions': False,
93
105
  'fetchL3OrderBook': False,
94
106
  'fetchLedger': False,
95
107
  'fetchLeverage': False,
108
+ 'fetchLeverages': False,
96
109
  'fetchLeverageTiers': False,
110
+ 'fetchLiquidations': False,
111
+ 'fetchLongShortRatio': False,
112
+ 'fetchLongShortRatioHistory': False,
113
+ 'fetchMarginAdjustmentHistory': False,
114
+ 'fetchMarginMode': False,
115
+ 'fetchMarginModes': False,
97
116
  'fetchMarketLeverageTiers': False,
98
117
  'fetchMarkets': True,
99
118
  'fetchMarkOHLCV': False,
119
+ 'fetchMarkPrices': False,
120
+ 'fetchMyLiquidations': False,
121
+ 'fetchMySettlementHistory': False,
100
122
  'fetchMyTrades': True,
101
123
  'fetchOHLCV': True,
124
+ 'fetchOpenInterest': False,
102
125
  'fetchOpenInterestHistory': False,
126
+ 'fetchOpenInterests': False,
103
127
  'fetchOpenOrder': None,
104
128
  'fetchOpenOrders': True,
129
+ 'fetchOption': False,
130
+ 'fetchOptionChain': False,
105
131
  'fetchOrder': True,
106
132
  'fetchOrderBook': True,
107
133
  'fetchOrderBooks': False,
@@ -115,6 +141,7 @@ class coinsph(Exchange, ImplicitAPI):
115
141
  'fetchPositionsHistory': False,
116
142
  'fetchPositionsRisk': False,
117
143
  'fetchPremiumIndexOHLCV': False,
144
+ 'fetchSettlementHistory': False,
118
145
  'fetchStatus': True,
119
146
  'fetchTicker': True,
120
147
  'fetchTickers': True,
@@ -127,12 +154,14 @@ class coinsph(Exchange, ImplicitAPI):
127
154
  'fetchTransactionFees': False,
128
155
  'fetchTransactions': False,
129
156
  'fetchTransfers': False,
157
+ 'fetchVolatilityHistory': False,
130
158
  'fetchWithdrawal': None,
131
159
  'fetchWithdrawals': True,
132
160
  'fetchWithdrawalWhitelist': False,
133
161
  'reduceMargin': False,
134
162
  'repayCrossMargin': False,
135
163
  'repayIsolatedMargin': False,
164
+ 'repayMargin': False,
136
165
  'setLeverage': False,
137
166
  'setMargin': False,
138
167
  'setMarginMode': False,
ccxt/coinspot.py CHANGED
@@ -31,33 +31,61 @@ class coinspot(Exchange, ImplicitAPI):
31
31
  'future': False,
32
32
  'option': False,
33
33
  'addMargin': False,
34
+ 'borrowCrossMargin': False,
35
+ 'borrowIsolatedMargin': False,
36
+ 'borrowMargin': False,
34
37
  'cancelOrder': True,
35
38
  'closeAllPositions': False,
36
39
  'closePosition': False,
37
40
  'createMarketOrder': False,
38
41
  'createOrder': True,
42
+ 'createOrderWithTakeProfitAndStopLoss': False,
43
+ 'createOrderWithTakeProfitAndStopLossWs': False,
44
+ 'createPostOnlyOrder': False,
39
45
  'createReduceOnlyOrder': False,
40
46
  'createStopLimitOrder': False,
41
47
  'createStopMarketOrder': False,
42
48
  'createStopOrder': False,
43
49
  'fetchBalance': True,
50
+ 'fetchBorrowInterest': False,
51
+ 'fetchBorrowRate': False,
44
52
  'fetchBorrowRateHistories': False,
45
53
  'fetchBorrowRateHistory': False,
54
+ 'fetchBorrowRates': False,
55
+ 'fetchBorrowRatesPerSymbol': False,
46
56
  'fetchCrossBorrowRate': False,
47
57
  'fetchCrossBorrowRates': False,
48
58
  'fetchFundingHistory': False,
59
+ 'fetchFundingInterval': False,
60
+ 'fetchFundingIntervals': False,
49
61
  'fetchFundingRate': False,
50
62
  'fetchFundingRateHistory': False,
51
63
  'fetchFundingRates': False,
64
+ 'fetchGreeks': False,
52
65
  'fetchIndexOHLCV': False,
53
66
  'fetchIsolatedBorrowRate': False,
54
67
  'fetchIsolatedBorrowRates': False,
68
+ 'fetchIsolatedPositions': False,
55
69
  'fetchLeverage': False,
70
+ 'fetchLeverages': False,
56
71
  'fetchLeverageTiers': False,
72
+ 'fetchLiquidations': False,
73
+ 'fetchLongShortRatio': False,
74
+ 'fetchLongShortRatioHistory': False,
75
+ 'fetchMarginAdjustmentHistory': False,
57
76
  'fetchMarginMode': False,
77
+ 'fetchMarginModes': False,
78
+ 'fetchMarketLeverageTiers': False,
58
79
  'fetchMarkOHLCV': False,
80
+ 'fetchMarkPrices': False,
81
+ 'fetchMyLiquidations': False,
82
+ 'fetchMySettlementHistory': False,
59
83
  'fetchMyTrades': True,
84
+ 'fetchOpenInterest': False,
60
85
  'fetchOpenInterestHistory': False,
86
+ 'fetchOpenInterests': False,
87
+ 'fetchOption': False,
88
+ 'fetchOptionChain': False,
61
89
  'fetchOrderBook': True,
62
90
  'fetchPosition': False,
63
91
  'fetchPositionHistory': False,
@@ -67,13 +95,19 @@ class coinspot(Exchange, ImplicitAPI):
67
95
  'fetchPositionsHistory': False,
68
96
  'fetchPositionsRisk': False,
69
97
  'fetchPremiumIndexOHLCV': False,
98
+ 'fetchSettlementHistory': False,
70
99
  'fetchTicker': True,
71
100
  'fetchTickers': True,
72
101
  'fetchTrades': True,
73
102
  'fetchTradingFee': False,
74
103
  'fetchTradingFees': False,
104
+ 'fetchVolatilityHistory': False,
75
105
  'reduceMargin': False,
106
+ 'repayCrossMargin': False,
107
+ 'repayIsolatedMargin': False,
108
+ 'repayMargin': False,
76
109
  'setLeverage': False,
110
+ 'setMargin': False,
77
111
  'setMarginMode': False,
78
112
  'setPositionMode': False,
79
113
  'ws': False,
@@ -551,7 +585,8 @@ class coinspot(Exchange, ImplicitAPI):
551
585
  'amount': amount,
552
586
  'rate': price,
553
587
  }
554
- return getattr(self, method)(self.extend(request, params))
588
+ response = getattr(self, method)(self.extend(request, params))
589
+ return self.parse_order(response)
555
590
 
556
591
  def cancel_order(self, id: str, symbol: Str = None, params={}):
557
592
  """
ccxt/cryptocom.py CHANGED
@@ -1631,7 +1631,8 @@ class cryptocom(Exchange, ImplicitAPI):
1631
1631
  if symbol is not None:
1632
1632
  market = self.market(symbol)
1633
1633
  request['instrument_name'] = market['id']
1634
- return self.v1PrivatePostPrivateCancelAllOrders(self.extend(request, params))
1634
+ response = self.v1PrivatePostPrivateCancelAllOrders(self.extend(request, params))
1635
+ return [self.safe_order({'info': response})]
1635
1636
 
1636
1637
  def cancel_order(self, id: str, symbol: Str = None, params={}):
1637
1638
  """
ccxt/cryptomus.py CHANGED
@@ -34,11 +34,15 @@ class cryptomus(Exchange, ImplicitAPI):
34
34
  'future': False,
35
35
  'option': False,
36
36
  'addMargin': False,
37
+ 'borrowCrossMargin': False,
38
+ 'borrowIsolatedMargin': False,
39
+ 'borrowMargin': False,
37
40
  'cancelAllOrders': False,
38
41
  'cancelAllOrdersAfter': False,
39
42
  'cancelOrder': True,
40
43
  'cancelOrders': False,
41
44
  'cancelWithdraw': False,
45
+ 'closeAllPositions': False,
42
46
  'closePosition': False,
43
47
  'createConvertTrade': False,
44
48
  'createDepositAddress': False,
@@ -48,6 +52,8 @@ class cryptomus(Exchange, ImplicitAPI):
48
52
  'createMarketSellOrderWithCost': False,
49
53
  'createOrder': True,
50
54
  'createOrderWithTakeProfitAndStopLoss': False,
55
+ 'createOrderWithTakeProfitAndStopLossWs': False,
56
+ 'createPostOnlyOrder': False,
51
57
  'createReduceOnlyOrder': False,
52
58
  'createStopLimitOrder': False,
53
59
  'createStopLossOrder': False,
@@ -59,6 +65,12 @@ class cryptomus(Exchange, ImplicitAPI):
59
65
  'createTriggerOrder': False,
60
66
  'fetchAccounts': False,
61
67
  'fetchBalance': True,
68
+ 'fetchBorrowInterest': False,
69
+ 'fetchBorrowRate': False,
70
+ 'fetchBorrowRateHistories': False,
71
+ 'fetchBorrowRateHistory': False,
72
+ 'fetchBorrowRates': False,
73
+ 'fetchBorrowRatesPerSymbol': False,
62
74
  'fetchCanceledAndClosedOrders': True,
63
75
  'fetchCanceledOrders': False,
64
76
  'fetchClosedOrder': False,
@@ -67,27 +79,48 @@ class cryptomus(Exchange, ImplicitAPI):
67
79
  'fetchConvertQuote': False,
68
80
  'fetchConvertTrade': False,
69
81
  'fetchConvertTradeHistory': False,
82
+ 'fetchCrossBorrowRate': False,
83
+ 'fetchCrossBorrowRates': False,
70
84
  'fetchCurrencies': True,
71
85
  'fetchDepositAddress': False,
72
86
  'fetchDeposits': False,
73
87
  'fetchDepositsWithdrawals': False,
74
88
  'fetchFundingHistory': False,
89
+ 'fetchFundingInterval': False,
90
+ 'fetchFundingIntervals': False,
75
91
  'fetchFundingRate': False,
76
92
  'fetchFundingRateHistory': False,
77
93
  'fetchFundingRates': False,
94
+ 'fetchGreeks': False,
78
95
  'fetchIndexOHLCV': False,
96
+ 'fetchIsolatedBorrowRate': False,
97
+ 'fetchIsolatedBorrowRates': False,
98
+ 'fetchIsolatedPositions': False,
79
99
  'fetchLedger': False,
80
100
  'fetchLeverage': False,
101
+ 'fetchLeverages': False,
81
102
  'fetchLeverageTiers': False,
103
+ 'fetchLiquidations': False,
104
+ 'fetchLongShortRatio': False,
105
+ 'fetchLongShortRatioHistory': False,
82
106
  'fetchMarginAdjustmentHistory': False,
83
107
  'fetchMarginMode': False,
108
+ 'fetchMarginModes': False,
109
+ 'fetchMarketLeverageTiers': False,
84
110
  'fetchMarkets': True,
85
111
  'fetchMarkOHLCV': False,
112
+ 'fetchMarkPrices': False,
113
+ 'fetchMyLiquidations': False,
114
+ 'fetchMySettlementHistory': False,
86
115
  'fetchMyTrades': False,
87
116
  'fetchOHLCV': False,
117
+ 'fetchOpenInterest': False,
88
118
  'fetchOpenInterestHistory': False,
119
+ 'fetchOpenInterests': False,
89
120
  'fetchOpenOrder': False,
90
121
  'fetchOpenOrders': True,
122
+ 'fetchOption': False,
123
+ 'fetchOptionChain': False,
91
124
  'fetchOrder': True,
92
125
  'fetchOrderBook': True,
93
126
  'fetchOrders': False,
@@ -98,7 +131,9 @@ class cryptomus(Exchange, ImplicitAPI):
98
131
  'fetchPositions': False,
99
132
  'fetchPositionsForSymbol': False,
100
133
  'fetchPositionsHistory': False,
134
+ 'fetchPositionsRisk': False,
101
135
  'fetchPremiumIndexOHLCV': False,
136
+ 'fetchSettlementHistory': False,
102
137
  'fetchStatus': False,
103
138
  'fetchTicker': False,
104
139
  'fetchTickers': True,
@@ -108,11 +143,16 @@ class cryptomus(Exchange, ImplicitAPI):
108
143
  'fetchTradingFees': True,
109
144
  'fetchTransactions': False,
110
145
  'fetchTransfers': False,
146
+ 'fetchVolatilityHistory': False,
111
147
  'fetchWithdrawals': False,
112
148
  'reduceMargin': False,
149
+ 'repayCrossMargin': False,
150
+ 'repayIsolatedMargin': False,
151
+ 'repayMargin': False,
113
152
  'sandbox': False,
114
153
  'setLeverage': False,
115
154
  'setMargin': False,
155
+ 'setMarginMode': False,
116
156
  'setPositionMode': False,
117
157
  'transfer': False,
118
158
  'withdraw': False,
@@ -712,7 +752,7 @@ class cryptomus(Exchange, ImplicitAPI):
712
752
  # "success": True
713
753
  # }
714
754
  #
715
- return response
755
+ return self.safe_order({'info': response})
716
756
 
717
757
  def fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
718
758
  """
ccxt/defx.py CHANGED
@@ -1454,7 +1454,7 @@ class defx(Exchange, ImplicitAPI):
1454
1454
  # }
1455
1455
  # }
1456
1456
  #
1457
- return response
1457
+ return [self.safe_order({'info': response})]
1458
1458
 
1459
1459
  def fetch_position(self, symbol: str, params={}):
1460
1460
  """
ccxt/derive.py CHANGED
@@ -1629,7 +1629,7 @@ class derive(Exchange, ImplicitAPI):
1629
1629
  # "result": "ok"
1630
1630
  # }
1631
1631
  #
1632
- return response
1632
+ return [self.safe_order({'info': response})]
1633
1633
 
1634
1634
  def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1635
1635
  """
ccxt/ellipx.py CHANGED
@@ -38,11 +38,15 @@ class ellipx(Exchange, ImplicitAPI):
38
38
  'future': False,
39
39
  'option': False,
40
40
  'addMargin': False,
41
+ 'borrowCrossMargin': False,
42
+ 'borrowIsolatedMargin': False,
43
+ 'borrowMargin': False,
41
44
  'cancelAllOrders': False,
42
45
  'cancelAllOrdersAfter': False,
43
46
  'cancelOrder': True,
44
47
  'cancelOrders': False,
45
48
  'cancelWithdraw': False,
49
+ 'closeAllPositions': False,
46
50
  'closePosition': False,
47
51
  'createConvertTrade': False,
48
52
  'createDepositAddress': False,
@@ -52,6 +56,8 @@ class ellipx(Exchange, ImplicitAPI):
52
56
  'createMarketSellOrderWithCost': False,
53
57
  'createOrder': True,
54
58
  'createOrderWithTakeProfitAndStopLoss': False,
59
+ 'createOrderWithTakeProfitAndStopLossWs': False,
60
+ 'createPostOnlyOrder': False,
55
61
  'createReduceOnlyOrder': False,
56
62
  'createStopLimitOrder': False,
57
63
  'createStopLossOrder': False,
@@ -63,6 +69,12 @@ class ellipx(Exchange, ImplicitAPI):
63
69
  'createTriggerOrder': False,
64
70
  'fetchAccounts': False,
65
71
  'fetchBalance': True,
72
+ 'fetchBorrowInterest': False,
73
+ 'fetchBorrowRate': False,
74
+ 'fetchBorrowRateHistories': False,
75
+ 'fetchBorrowRateHistory': False,
76
+ 'fetchBorrowRates': False,
77
+ 'fetchBorrowRatesPerSymbol': False,
66
78
  'fetchCanceledAndClosedOrders': False,
67
79
  'fetchCanceledOrders': False,
68
80
  'fetchClosedOrder': False,
@@ -71,27 +83,48 @@ class ellipx(Exchange, ImplicitAPI):
71
83
  'fetchConvertQuote': False,
72
84
  'fetchConvertTrade': False,
73
85
  'fetchConvertTradeHistory': False,
86
+ 'fetchCrossBorrowRate': False,
87
+ 'fetchCrossBorrowRates': False,
74
88
  'fetchCurrencies': True,
75
89
  'fetchDepositAddress': True,
76
90
  'fetchDeposits': False,
77
91
  'fetchDepositsWithdrawals': False,
78
92
  'fetchFundingHistory': False,
93
+ 'fetchFundingInterval': False,
94
+ 'fetchFundingIntervals': False,
79
95
  'fetchFundingRate': False,
80
96
  'fetchFundingRateHistory': False,
81
97
  'fetchFundingRates': False,
98
+ 'fetchGreeks': False,
82
99
  'fetchIndexOHLCV': False,
100
+ 'fetchIsolatedBorrowRate': False,
101
+ 'fetchIsolatedBorrowRates': False,
102
+ 'fetchIsolatedPositions': False,
83
103
  'fetchLedger': False,
84
104
  'fetchLeverage': False,
105
+ 'fetchLeverages': False,
85
106
  'fetchLeverageTiers': False,
107
+ 'fetchLiquidations': False,
108
+ 'fetchLongShortRatio': False,
109
+ 'fetchLongShortRatioHistory': False,
86
110
  'fetchMarginAdjustmentHistory': False,
87
111
  'fetchMarginMode': False,
112
+ 'fetchMarginModes': False,
113
+ 'fetchMarketLeverageTiers': False,
88
114
  'fetchMarkets': True,
89
115
  'fetchMarkOHLCV': False,
116
+ 'fetchMarkPrices': False,
117
+ 'fetchMyLiquidations': False,
118
+ 'fetchMySettlementHistory': False,
90
119
  'fetchMyTrades': False,
91
120
  'fetchOHLCV': True,
121
+ 'fetchOpenInterest': False,
92
122
  'fetchOpenInterestHistory': False,
123
+ 'fetchOpenInterests': False,
93
124
  'fetchOpenOrder': False,
94
125
  'fetchOpenOrders': True,
126
+ 'fetchOption': False,
127
+ 'fetchOptionChain': False,
95
128
  'fetchOrder': True,
96
129
  'fetchOrderBook': True,
97
130
  'fetchOrders': True,
@@ -102,7 +135,9 @@ class ellipx(Exchange, ImplicitAPI):
102
135
  'fetchPositions': False,
103
136
  'fetchPositionsForSymbol': False,
104
137
  'fetchPositionsHistory': False,
138
+ 'fetchPositionsRisk': False,
105
139
  'fetchPremiumIndexOHLCV': False,
140
+ 'fetchSettlementHistory': False,
106
141
  'fetchStatus': False,
107
142
  'fetchTicker': True,
108
143
  'fetchTickers': False,
@@ -112,11 +147,16 @@ class ellipx(Exchange, ImplicitAPI):
112
147
  'fetchTradingFees': False,
113
148
  'fetchTransactions': False,
114
149
  'fetchTransfers': False,
150
+ 'fetchVolatilityHistory': False,
115
151
  'fetchWithdrawals': False,
116
152
  'reduceMargin': False,
153
+ 'repayCrossMargin': False,
154
+ 'repayIsolatedMargin': False,
155
+ 'repayMargin': False,
117
156
  'sandbox': False,
118
157
  'setLeverage': False,
119
158
  'setMargin': False,
159
+ 'setMarginMode': False,
120
160
  'setPositionMode': False,
121
161
  'transfer': False,
122
162
  'withdraw': True,