ccxt 4.4.95__py2.py3-none-any.whl → 4.4.97__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.
- ccxt/__init__.py +3 -1
- ccxt/abstract/binance.py +3 -0
- ccxt/abstract/binancecoinm.py +3 -0
- ccxt/abstract/binanceus.py +3 -0
- ccxt/abstract/binanceusdm.py +3 -0
- ccxt/abstract/foxbit.py +26 -0
- ccxt/abstract/hyperliquid.py +1 -1
- ccxt/abstract/phemex.py +1 -0
- ccxt/apex.py +3 -3
- ccxt/ascendex.py +2 -2
- ccxt/async_support/__init__.py +3 -1
- ccxt/async_support/apex.py +3 -3
- ccxt/async_support/ascendex.py +2 -2
- ccxt/async_support/base/exchange.py +10 -5
- ccxt/async_support/base/ws/future.py +5 -3
- ccxt/async_support/binance.py +90 -34
- ccxt/async_support/binancecoinm.py +5 -1
- ccxt/async_support/binanceus.py +3 -1
- ccxt/async_support/binanceusdm.py +3 -1
- ccxt/async_support/bingx.py +1 -1
- ccxt/async_support/bitget.py +30 -143
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitrue.py +13 -8
- ccxt/async_support/bybit.py +14 -5
- ccxt/async_support/coinbaseexchange.py +4 -2
- ccxt/async_support/coinbaseinternational.py +2 -2
- ccxt/async_support/coinspot.py +36 -1
- ccxt/async_support/cryptocom.py +78 -3
- ccxt/async_support/cryptomus.py +41 -1
- ccxt/async_support/defx.py +1 -1
- ccxt/async_support/derive.py +1 -1
- ccxt/async_support/ellipx.py +40 -0
- ccxt/async_support/exmo.py +1 -1
- ccxt/async_support/foxbit.py +1935 -0
- ccxt/async_support/gate.py +1 -2
- ccxt/async_support/hashkey.py +39 -0
- ccxt/async_support/hyperliquid.py +42 -27
- ccxt/async_support/independentreserve.py +35 -0
- ccxt/async_support/indodax.py +34 -0
- ccxt/async_support/kucoin.py +3 -2
- ccxt/async_support/kucoinfutures.py +3 -2
- ccxt/async_support/latoken.py +42 -0
- ccxt/async_support/luno.py +36 -0
- ccxt/async_support/mercado.py +34 -0
- ccxt/async_support/mexc.py +31 -32
- ccxt/async_support/modetrade.py +3 -3
- ccxt/async_support/okcoin.py +1 -1
- ccxt/async_support/okx.py +10 -3
- ccxt/async_support/onetrading.py +1 -1
- ccxt/async_support/oxfun.py +2 -1
- ccxt/async_support/paradex.py +2 -2
- ccxt/async_support/phemex.py +36 -31
- ccxt/async_support/vertex.py +3 -2
- ccxt/async_support/woo.py +6 -2
- ccxt/async_support/woofipro.py +2 -2
- ccxt/base/decimal_to_precision.py +16 -10
- ccxt/base/errors.py +6 -0
- ccxt/base/exchange.py +60 -17
- ccxt/binance.py +90 -34
- ccxt/binancecoinm.py +5 -1
- ccxt/binanceus.py +3 -1
- ccxt/binanceusdm.py +3 -1
- ccxt/bingx.py +1 -1
- ccxt/bitget.py +30 -143
- ccxt/bitmart.py +2 -2
- ccxt/bitrue.py +13 -8
- ccxt/bybit.py +14 -5
- ccxt/coinbaseexchange.py +4 -2
- ccxt/coinbaseinternational.py +2 -2
- ccxt/coinspot.py +36 -1
- ccxt/cryptocom.py +78 -3
- ccxt/cryptomus.py +41 -1
- ccxt/defx.py +1 -1
- ccxt/derive.py +1 -1
- ccxt/ellipx.py +40 -0
- ccxt/exmo.py +1 -1
- ccxt/foxbit.py +1935 -0
- ccxt/gate.py +1 -2
- ccxt/hashkey.py +39 -0
- ccxt/hyperliquid.py +42 -27
- ccxt/independentreserve.py +35 -0
- ccxt/indodax.py +34 -0
- ccxt/kucoin.py +3 -2
- ccxt/kucoinfutures.py +3 -2
- ccxt/latoken.py +42 -0
- ccxt/luno.py +36 -0
- ccxt/mercado.py +34 -0
- ccxt/mexc.py +31 -32
- ccxt/modetrade.py +3 -3
- ccxt/okcoin.py +1 -1
- ccxt/okx.py +10 -3
- ccxt/onetrading.py +1 -1
- ccxt/oxfun.py +2 -1
- ccxt/paradex.py +2 -2
- ccxt/phemex.py +36 -31
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/binancecoinm.py +3 -1
- ccxt/pro/binanceus.py +3 -1
- ccxt/pro/binanceusdm.py +3 -1
- ccxt/pro/bybit.py +33 -1
- ccxt/test/tests_async.py +15 -0
- ccxt/test/tests_sync.py +15 -0
- ccxt/vertex.py +3 -2
- ccxt/woo.py +6 -2
- ccxt/woofipro.py +2 -2
- {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/METADATA +19 -19
- {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/RECORD +110 -107
- {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/WHEEL +0 -0
- {ccxt-4.4.95.dist-info → ccxt-4.4.97.dist-info}/top_level.txt +0 -0
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
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,
|
ccxt/exmo.py
CHANGED
@@ -956,7 +956,7 @@ class exmo(Exchange, ImplicitAPI):
|
|
956
956
|
request['from'] = to - (limit * duration) - 1
|
957
957
|
request['to'] = to
|
958
958
|
else:
|
959
|
-
request['from'] = self.parse_to_int(since / 1000)
|
959
|
+
request['from'] = self.parse_to_int(since / 1000)
|
960
960
|
if untilIsDefined:
|
961
961
|
request['to'] = min(until, now)
|
962
962
|
else:
|