ccxt 4.4.94__py2.py3-none-any.whl → 4.4.95__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 (44) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/bingx.py +3 -0
  3. ccxt/abstract/hyperliquid.py +1 -1
  4. ccxt/abstract/woo.py +59 -4
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/base/exchange.py +1 -1
  7. ccxt/async_support/base/ws/future.py +2 -0
  8. ccxt/async_support/bingx.py +129 -92
  9. ccxt/async_support/bitget.py +1 -1
  10. ccxt/async_support/bitstamp.py +2 -0
  11. ccxt/async_support/blofin.py +6 -1
  12. ccxt/async_support/bybit.py +1 -1
  13. ccxt/async_support/coinbase.py +36 -0
  14. ccxt/async_support/coinmate.py +34 -0
  15. ccxt/async_support/coinone.py +34 -0
  16. ccxt/async_support/coinsph.py +29 -0
  17. ccxt/async_support/gate.py +1 -1
  18. ccxt/async_support/hyperliquid.py +2 -1
  19. ccxt/async_support/woo.py +1251 -875
  20. ccxt/base/errors.py +0 -6
  21. ccxt/base/exchange.py +3 -3
  22. ccxt/bingx.py +129 -92
  23. ccxt/bitget.py +1 -1
  24. ccxt/bitstamp.py +2 -0
  25. ccxt/blofin.py +6 -1
  26. ccxt/bybit.py +1 -1
  27. ccxt/coinbase.py +36 -0
  28. ccxt/coinmate.py +34 -0
  29. ccxt/coinone.py +34 -0
  30. ccxt/coinsph.py +29 -0
  31. ccxt/gate.py +1 -1
  32. ccxt/hyperliquid.py +2 -1
  33. ccxt/pro/__init__.py +1 -1
  34. ccxt/pro/hyperliquid.py +6 -6
  35. ccxt/pro/kraken.py +17 -16
  36. ccxt/pro/mexc.py +10 -10
  37. ccxt/test/tests_async.py +2 -2
  38. ccxt/test/tests_sync.py +2 -2
  39. ccxt/woo.py +1251 -875
  40. {ccxt-4.4.94.dist-info → ccxt-4.4.95.dist-info}/METADATA +4 -4
  41. {ccxt-4.4.94.dist-info → ccxt-4.4.95.dist-info}/RECORD +44 -44
  42. {ccxt-4.4.94.dist-info → ccxt-4.4.95.dist-info}/LICENSE.txt +0 -0
  43. {ccxt-4.4.94.dist-info → ccxt-4.4.95.dist-info}/WHEEL +0 -0
  44. {ccxt-4.4.94.dist-info → ccxt-4.4.95.dist-info}/top_level.txt +0 -0
@@ -52,6 +52,9 @@ class coinbase(Exchange, ImplicitAPI):
52
52
  'future': False,
53
53
  'option': False,
54
54
  'addMargin': False,
55
+ 'borrowCrossMargin': False,
56
+ 'borrowIsolatedMargin': False,
57
+ 'borrowMargin': False,
55
58
  'cancelOrder': True,
56
59
  'cancelOrders': True,
57
60
  'closeAllPositions': False,
@@ -66,6 +69,8 @@ class coinbase(Exchange, ImplicitAPI):
66
69
  'createMarketSellOrder': True,
67
70
  'createMarketSellOrderWithCost': False,
68
71
  'createOrder': True,
72
+ 'createOrderWithTakeProfitAndStopLoss': False,
73
+ 'createOrderWithTakeProfitAndStopLossWs': False,
69
74
  'createPostOnlyOrder': True,
70
75
  'createReduceOnlyOrder': False,
71
76
  'createStopLimitOrder': True,
@@ -76,8 +81,12 @@ class coinbase(Exchange, ImplicitAPI):
76
81
  'fetchAccounts': True,
77
82
  'fetchBalance': True,
78
83
  'fetchBidsAsks': True,
84
+ 'fetchBorrowInterest': False,
85
+ 'fetchBorrowRate': False,
79
86
  'fetchBorrowRateHistories': False,
80
87
  'fetchBorrowRateHistory': False,
88
+ 'fetchBorrowRates': False,
89
+ 'fetchBorrowRatesPerSymbol': False,
81
90
  'fetchCanceledOrders': True,
82
91
  'fetchClosedOrders': True,
83
92
  'fetchConvertQuote': True,
@@ -95,42 +104,69 @@ class coinbase(Exchange, ImplicitAPI):
95
104
  'fetchDeposits': True,
96
105
  'fetchDepositsWithdrawals': True,
97
106
  'fetchFundingHistory': False,
107
+ 'fetchFundingInterval': False,
108
+ 'fetchFundingIntervals': False,
98
109
  'fetchFundingRate': False,
99
110
  'fetchFundingRateHistory': False,
100
111
  'fetchFundingRates': False,
112
+ 'fetchGreeks': False,
101
113
  'fetchIndexOHLCV': False,
102
114
  'fetchIsolatedBorrowRate': False,
103
115
  'fetchIsolatedBorrowRates': False,
116
+ 'fetchIsolatedPositions': False,
104
117
  'fetchL2OrderBook': False,
105
118
  'fetchLedger': True,
106
119
  'fetchLeverage': False,
120
+ 'fetchLeverages': False,
107
121
  'fetchLeverageTiers': False,
122
+ 'fetchLiquidations': False,
123
+ 'fetchLongShortRatio': False,
124
+ 'fetchLongShortRatioHistory': False,
125
+ 'fetchMarginAdjustmentHistory': False,
108
126
  'fetchMarginMode': False,
127
+ 'fetchMarginModes': False,
128
+ 'fetchMarketLeverageTiers': False,
109
129
  'fetchMarkets': True,
110
130
  'fetchMarkOHLCV': False,
131
+ 'fetchMarkPrices': False,
111
132
  'fetchMyBuys': True,
133
+ 'fetchMyLiquidations': False,
112
134
  'fetchMySells': True,
135
+ 'fetchMySettlementHistory': False,
113
136
  'fetchMyTrades': True,
114
137
  'fetchOHLCV': True,
138
+ 'fetchOpenInterest': False,
115
139
  'fetchOpenInterestHistory': False,
140
+ 'fetchOpenInterests': False,
116
141
  'fetchOpenOrders': True,
142
+ 'fetchOption': False,
143
+ 'fetchOptionChain': False,
117
144
  'fetchOrder': True,
118
145
  'fetchOrderBook': True,
119
146
  'fetchOrders': True,
120
147
  'fetchPosition': True,
148
+ 'fetchPositionHistory': False,
121
149
  'fetchPositionMode': False,
122
150
  'fetchPositions': True,
151
+ 'fetchPositionsForSymbol': False,
152
+ 'fetchPositionsHistory': False,
123
153
  'fetchPositionsRisk': False,
124
154
  'fetchPremiumIndexOHLCV': False,
155
+ 'fetchSettlementHistory': False,
125
156
  'fetchTicker': True,
126
157
  'fetchTickers': True,
127
158
  'fetchTime': True,
128
159
  'fetchTrades': True,
129
160
  'fetchTradingFee': 'emulated',
130
161
  'fetchTradingFees': True,
162
+ 'fetchVolatilityHistory': False,
131
163
  'fetchWithdrawals': True,
132
164
  'reduceMargin': False,
165
+ 'repayCrossMargin': False,
166
+ 'repayIsolatedMargin': False,
167
+ 'repayMargin': False,
133
168
  'setLeverage': False,
169
+ 'setMargin': False,
134
170
  'setMarginMode': False,
135
171
  'setPositionMode': False,
136
172
  'withdraw': True,
@@ -35,32 +35,60 @@ class coinmate(Exchange, ImplicitAPI):
35
35
  'future': False,
36
36
  'option': False,
37
37
  'addMargin': False,
38
+ 'borrowCrossMargin': False,
39
+ 'borrowIsolatedMargin': False,
40
+ 'borrowMargin': False,
38
41
  'cancelOrder': True,
39
42
  'closeAllPositions': False,
40
43
  'closePosition': False,
41
44
  'createOrder': True,
45
+ 'createOrderWithTakeProfitAndStopLoss': False,
46
+ 'createOrderWithTakeProfitAndStopLossWs': False,
47
+ 'createPostOnlyOrder': False,
42
48
  'createReduceOnlyOrder': 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
  'fetchDepositsWithdrawals': True,
49
59
  'fetchFundingHistory': False,
60
+ 'fetchFundingInterval': False,
61
+ 'fetchFundingIntervals': False,
50
62
  'fetchFundingRate': False,
51
63
  'fetchFundingRateHistory': False,
52
64
  'fetchFundingRates': False,
65
+ 'fetchGreeks': False,
53
66
  'fetchIndexOHLCV': False,
54
67
  'fetchIsolatedBorrowRate': False,
55
68
  'fetchIsolatedBorrowRates': False,
69
+ 'fetchIsolatedPositions': False,
56
70
  'fetchLeverage': False,
71
+ 'fetchLeverages': False,
57
72
  'fetchLeverageTiers': False,
73
+ 'fetchLiquidations': False,
74
+ 'fetchLongShortRatio': False,
75
+ 'fetchLongShortRatioHistory': False,
76
+ 'fetchMarginAdjustmentHistory': False,
58
77
  'fetchMarginMode': False,
78
+ 'fetchMarginModes': False,
79
+ 'fetchMarketLeverageTiers': False,
59
80
  'fetchMarkets': True,
60
81
  'fetchMarkOHLCV': False,
82
+ 'fetchMarkPrices': False,
83
+ 'fetchMyLiquidations': False,
84
+ 'fetchMySettlementHistory': False,
61
85
  'fetchMyTrades': True,
86
+ 'fetchOpenInterest': False,
62
87
  'fetchOpenInterestHistory': False,
88
+ 'fetchOpenInterests': False,
63
89
  'fetchOpenOrders': True,
90
+ 'fetchOption': False,
91
+ 'fetchOptionChain': False,
64
92
  'fetchOrder': True,
65
93
  'fetchOrderBook': True,
66
94
  'fetchOrders': True,
@@ -72,14 +100,20 @@ class coinmate(Exchange, ImplicitAPI):
72
100
  'fetchPositionsHistory': False,
73
101
  'fetchPositionsRisk': False,
74
102
  'fetchPremiumIndexOHLCV': False,
103
+ 'fetchSettlementHistory': False,
75
104
  'fetchTicker': True,
76
105
  'fetchTickers': True,
77
106
  'fetchTrades': True,
78
107
  'fetchTradingFee': True,
79
108
  'fetchTradingFees': False,
80
109
  'fetchTransactions': 'emulated',
110
+ 'fetchVolatilityHistory': False,
81
111
  'reduceMargin': False,
112
+ 'repayCrossMargin': False,
113
+ 'repayIsolatedMargin': False,
114
+ 'repayMargin': False,
82
115
  'setLeverage': False,
116
+ 'setMargin': False,
83
117
  'setMarginMode': False,
84
118
  'setPositionMode': False,
85
119
  'transfer': False,
@@ -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,
@@ -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,
@@ -3755,7 +3755,7 @@ class gate(Exchange, ImplicitAPI):
3755
3755
  start = self.parse_to_int(since / 1000)
3756
3756
  request['from'] = start
3757
3757
  request['to'] = self.sum(start, 30 * 24 * 60 * 60)
3758
- request, params = self.handle_until_option('to', request, params)
3758
+ request, params = self.handle_until_option('to', request, params, 0.001)
3759
3759
  response = await self.privateWalletGetDeposits(self.extend(request, params))
3760
3760
  return self.parse_transactions(response, currency)
3761
3761
 
@@ -174,6 +174,7 @@ class hyperliquid(Exchange, ImplicitAPI):
174
174
  'orderStatus': 2,
175
175
  'spotClearinghouseState': 2,
176
176
  'exchangeStatus': 2,
177
+ 'candleSnapshot': 3,
177
178
  },
178
179
  },
179
180
  },
@@ -3600,7 +3601,7 @@ class hyperliquid(Exchange, ImplicitAPI):
3600
3601
  def coin_to_market_id(self, coin: Str):
3601
3602
  if coin.find('/') > -1 or coin.find('@') > -1:
3602
3603
  return coin # spot
3603
- return coin + '/USDC:USDC'
3604
+ return self.safe_currency_code(coin) + '/USDC:USDC'
3604
3605
 
3605
3606
  def handle_errors(self, code: int, reason: str, url: str, method: str, headers: dict, body: str, response, requestHeaders, requestBody):
3606
3607
  if not response: