ccxt 4.3.60__py2.py3-none-any.whl → 4.3.62__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.
- ccxt/__init__.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/base/ws/fast_client.py +2 -2
- ccxt/async_support/binance.py +37 -29
- ccxt/async_support/bingx.py +41 -33
- ccxt/async_support/bybit.py +9 -1
- ccxt/async_support/hyperliquid.py +10 -2
- ccxt/async_support/mexc.py +2 -1
- ccxt/async_support/tradeogre.py +1 -1
- ccxt/async_support/vertex.py +10 -1
- ccxt/async_support/xt.py +1 -1
- ccxt/base/exchange.py +1 -1
- ccxt/binance.py +37 -29
- ccxt/bingx.py +41 -33
- ccxt/bybit.py +9 -1
- ccxt/hyperliquid.py +10 -2
- ccxt/mexc.py +2 -1
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +3 -3
- ccxt/pro/binance.py +2 -4
- ccxt/pro/bingx.py +2 -2
- ccxt/pro/bitfinex2.py +2 -2
- ccxt/pro/bitget.py +1 -1
- ccxt/pro/bitmex.py +1 -1
- ccxt/pro/bitopro.py +1 -1
- ccxt/pro/bybit.py +5 -5
- ccxt/pro/coinbaseexchange.py +2 -2
- ccxt/pro/coincheck.py +1 -1
- ccxt/pro/coinone.py +1 -1
- ccxt/pro/cryptocom.py +1 -1
- ccxt/pro/deribit.py +1 -1
- ccxt/pro/gate.py +2 -2
- ccxt/pro/hollaex.py +1 -1
- ccxt/pro/htx.py +1 -1
- ccxt/pro/hyperliquid.py +3 -3
- ccxt/pro/kraken.py +1 -1
- ccxt/pro/kucoin.py +3 -4
- ccxt/pro/mexc.py +1 -1
- ccxt/pro/okx.py +1 -1
- ccxt/pro/oxfun.py +1 -1
- ccxt/pro/phemex.py +1 -1
- ccxt/pro/upbit.py +1 -1
- ccxt/pro/vertex.py +2 -2
- ccxt/pro/whitebit.py +1 -1
- ccxt/pro/woo.py +1 -1
- ccxt/tradeogre.py +1 -1
- ccxt/vertex.py +10 -1
- ccxt/xt.py +1 -1
- {ccxt-4.3.60.dist-info → ccxt-4.3.62.dist-info}/METADATA +4 -4
- {ccxt-4.3.60.dist-info → ccxt-4.3.62.dist-info}/RECORD +54 -54
- {ccxt-4.3.60.dist-info → ccxt-4.3.62.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.3.60.dist-info → ccxt-4.3.62.dist-info}/WHEEL +0 -0
- {ccxt-4.3.60.dist-info → ccxt-4.3.62.dist-info}/top_level.txt +0 -0
ccxt/bybit.py
CHANGED
@@ -4051,6 +4051,10 @@ class bybit(Exchange, ImplicitAPI):
|
|
4051
4051
|
raise ArgumentsRequired(self.id + ' cancelOrders() requires a symbol argument')
|
4052
4052
|
self.load_markets()
|
4053
4053
|
market = self.market(symbol)
|
4054
|
+
types = self.is_unified_enabled()
|
4055
|
+
enableUnifiedAccount = types[1]
|
4056
|
+
if not enableUnifiedAccount:
|
4057
|
+
raise NotSupported(self.id + ' cancelOrders() supports UTA accounts only')
|
4054
4058
|
category = None
|
4055
4059
|
category, params = self.get_bybit_type('cancelOrders', market, params)
|
4056
4060
|
if category == 'inverse':
|
@@ -4152,6 +4156,10 @@ class bybit(Exchange, ImplicitAPI):
|
|
4152
4156
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
4153
4157
|
"""
|
4154
4158
|
self.load_markets()
|
4159
|
+
types = self.is_unified_enabled()
|
4160
|
+
enableUnifiedAccount = types[1]
|
4161
|
+
if not enableUnifiedAccount:
|
4162
|
+
raise NotSupported(self.id + ' cancelOrdersForSymbols() supports UTA accounts only')
|
4155
4163
|
ordersRequests = []
|
4156
4164
|
category = None
|
4157
4165
|
for i in range(0, len(orders)):
|
@@ -5869,6 +5877,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
5869
5877
|
:param str [params.settleCoin]: Settle coin. Supports linear, inverse & option
|
5870
5878
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
5871
5879
|
"""
|
5880
|
+
self.load_markets()
|
5872
5881
|
symbol = None
|
5873
5882
|
if (symbols is not None) and isinstance(symbols, list):
|
5874
5883
|
symbolsLength = len(symbols)
|
@@ -5880,7 +5889,6 @@ class bybit(Exchange, ImplicitAPI):
|
|
5880
5889
|
elif symbols is not None:
|
5881
5890
|
symbol = symbols
|
5882
5891
|
symbols = [self.symbol(symbol)]
|
5883
|
-
self.load_markets()
|
5884
5892
|
enableUnifiedMargin, enableUnifiedAccount = self.is_unified_enabled()
|
5885
5893
|
isUnifiedAccount = (enableUnifiedMargin or enableUnifiedAccount)
|
5886
5894
|
request: dict = {}
|
ccxt/hyperliquid.py
CHANGED
@@ -255,8 +255,16 @@ class hyperliquid(Exchange, ImplicitAPI):
|
|
255
255
|
'withdraw': None,
|
256
256
|
'networks': None,
|
257
257
|
'fee': None,
|
258
|
-
|
259
|
-
|
258
|
+
'limits': {
|
259
|
+
'amount': {
|
260
|
+
'min': None,
|
261
|
+
'max': None,
|
262
|
+
},
|
263
|
+
'withdraw': {
|
264
|
+
'min': None,
|
265
|
+
'max': None,
|
266
|
+
},
|
267
|
+
},
|
260
268
|
}
|
261
269
|
return result
|
262
270
|
|
ccxt/mexc.py
CHANGED
@@ -4905,9 +4905,10 @@ class mexc(Exchange, ImplicitAPI):
|
|
4905
4905
|
:returns dict: a `transaction structure <https://docs.ccxt.com/#/?id=transaction-structure>`
|
4906
4906
|
"""
|
4907
4907
|
tag, params = self.handle_withdraw_tag_and_params(tag, params)
|
4908
|
-
networks = self.
|
4908
|
+
networks = self.safe_dict(self.options, 'networks', {})
|
4909
4909
|
network = self.safe_string_2(params, 'network', 'netWork') # self line allows the user to specify either ERC20 or ETH
|
4910
4910
|
network = self.safe_string(networks, network, network) # handle ETH > ERC-20 alias
|
4911
|
+
network = self.network_code_to_id(network)
|
4911
4912
|
self.check_address(address)
|
4912
4913
|
self.load_markets()
|
4913
4914
|
currency = self.currency(code)
|
ccxt/pro/__init__.py
CHANGED
ccxt/pro/alpaca.py
CHANGED
@@ -258,7 +258,7 @@ class alpaca(ccxt.async_support.alpaca):
|
|
258
258
|
:param int [since]: the earliest time in ms to fetch orders for
|
259
259
|
:param int [limit]: the maximum number of trade structures to retrieve
|
260
260
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
261
|
-
:returns dict[]: a list of
|
261
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
262
262
|
"""
|
263
263
|
url = self.urls['api']['ws']['crypto']
|
264
264
|
await self.authenticate(url)
|
@@ -307,7 +307,7 @@ class alpaca(ccxt.async_support.alpaca):
|
|
307
307
|
:param int [limit]: the maximum number of trade structures to retrieve
|
308
308
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
309
309
|
:param boolean [params.unifiedMargin]: use unified margin account
|
310
|
-
:returns dict[]: a list of
|
310
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
311
311
|
"""
|
312
312
|
url = self.urls['api']['ws']['trading']
|
313
313
|
await self.authenticate(url)
|
@@ -334,7 +334,7 @@ class alpaca(ccxt.async_support.alpaca):
|
|
334
334
|
:param int [since]: the earliest time in ms to fetch orders for
|
335
335
|
:param int [limit]: the maximum number of order structures to retrieve
|
336
336
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
337
|
-
:returns dict[]: a list of
|
337
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
338
338
|
"""
|
339
339
|
url = self.urls['api']['ws']['trading']
|
340
340
|
await self.authenticate(url)
|
ccxt/pro/binance.py
CHANGED
@@ -679,10 +679,8 @@ class binance(ccxt.async_support.binance):
|
|
679
679
|
client.resolve(orderbook, messageHash)
|
680
680
|
|
681
681
|
async def fetch_order_book_snapshot(self, client, message, subscription):
|
682
|
-
name = self.safe_string(subscription, 'name')
|
683
682
|
symbol = self.safe_string(subscription, 'symbol')
|
684
|
-
|
685
|
-
messageHash = market['lowercaseId'] + '@' + name
|
683
|
+
messageHash = 'orderbook::' + symbol
|
686
684
|
try:
|
687
685
|
defaultLimit = self.safe_integer(self.options, 'watchOrderBookLimit', 1000)
|
688
686
|
type = self.safe_value(subscription, 'type')
|
@@ -3260,7 +3258,7 @@ class binance(ccxt.async_support.binance):
|
|
3260
3258
|
:param int [limit]: the maximum number of order structures to retrieve
|
3261
3259
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3262
3260
|
:param boolean [params.portfolioMargin]: set to True if you would like to watch trades in a portfolio margin account
|
3263
|
-
:returns dict[]: a list of
|
3261
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
3264
3262
|
"""
|
3265
3263
|
await self.load_markets()
|
3266
3264
|
type = None
|
ccxt/pro/bingx.py
CHANGED
@@ -409,7 +409,7 @@ class bingx(ccxt.async_support.bingx):
|
|
409
409
|
:param int [since]: the earliest time in ms to fetch orders for
|
410
410
|
:param int [limit]: the maximum number of order structures to retrieve
|
411
411
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
412
|
-
:returns dict[]: a list of
|
412
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
413
413
|
"""
|
414
414
|
await self.load_markets()
|
415
415
|
market = self.market(symbol)
|
@@ -824,7 +824,7 @@ class bingx(ccxt.async_support.bingx):
|
|
824
824
|
:param int [since]: the earliest time in ms to trades orders for
|
825
825
|
:param int [limit]: the maximum number of trades structures to retrieve
|
826
826
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
827
|
-
:returns dict[]: a list of
|
827
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
828
828
|
"""
|
829
829
|
await self.load_markets()
|
830
830
|
await self.authenticate()
|
ccxt/pro/bitfinex2.py
CHANGED
@@ -205,7 +205,7 @@ class bitfinex2(ccxt.async_support.bitfinex2):
|
|
205
205
|
:param int [since]: the earliest time in ms to fetch trades for
|
206
206
|
:param int [limit]: the maximum number of trade structures to retrieve
|
207
207
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
208
|
-
:returns dict[]: a list of
|
208
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
209
209
|
"""
|
210
210
|
await self.load_markets()
|
211
211
|
messageHash = 'myTrade'
|
@@ -837,7 +837,7 @@ class bitfinex2(ccxt.async_support.bitfinex2):
|
|
837
837
|
:param int [since]: the earliest time in ms to fetch orders for
|
838
838
|
:param int [limit]: the maximum number of order structures to retrieve
|
839
839
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
840
|
-
:returns dict[]: a list of
|
840
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
841
841
|
"""
|
842
842
|
await self.load_markets()
|
843
843
|
messageHash = 'orders'
|
ccxt/pro/bitget.py
CHANGED
@@ -920,7 +920,7 @@ class bitget(ccxt.async_support.bitget):
|
|
920
920
|
:param str [params.marginMode]: 'isolated' or 'cross' for watching spot margin orders]
|
921
921
|
:param str [params.type]: 'spot', 'swap'
|
922
922
|
:param str [params.subType]: 'linear', 'inverse'
|
923
|
-
:returns dict[]: a list of
|
923
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
924
924
|
"""
|
925
925
|
await self.load_markets()
|
926
926
|
market = None
|
ccxt/pro/bitmex.py
CHANGED
@@ -1104,7 +1104,7 @@ class bitmex(ccxt.async_support.bitmex):
|
|
1104
1104
|
:param int [since]: the earliest time in ms to fetch trades for
|
1105
1105
|
:param int [limit]: the maximum number of trade structures to retrieve
|
1106
1106
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1107
|
-
:returns dict[]: a list of
|
1107
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1108
1108
|
"""
|
1109
1109
|
await self.load_markets()
|
1110
1110
|
await self.authenticate()
|
ccxt/pro/bitopro.py
CHANGED
@@ -176,7 +176,7 @@ class bitopro(ccxt.async_support.bitopro):
|
|
176
176
|
:param int [since]: the earliest time in ms to fetch trades for
|
177
177
|
:param int [limit]: the maximum number of trade structures to retrieve
|
178
178
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
179
|
-
:returns dict[]: a list of
|
179
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
180
180
|
"""
|
181
181
|
self.check_required_credentials()
|
182
182
|
await self.load_markets()
|
ccxt/pro/bybit.py
CHANGED
@@ -723,7 +723,7 @@ class bybit(ccxt.async_support.bybit):
|
|
723
723
|
:param int [since]: the earliest time in ms to fetch trades for
|
724
724
|
:param int [limit]: the maximum number of trade structures to retrieve
|
725
725
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
726
|
-
:returns dict[]: a list of
|
726
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
727
727
|
"""
|
728
728
|
return await self.watch_trades_for_symbols([symbol], since, limit, params)
|
729
729
|
|
@@ -885,7 +885,7 @@ class bybit(ccxt.async_support.bybit):
|
|
885
885
|
:param int [limit]: the maximum number of order structures to retrieve
|
886
886
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
887
887
|
:param boolean [params.unifiedMargin]: use unified margin account
|
888
|
-
:returns dict[]: a list of
|
888
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
889
889
|
"""
|
890
890
|
method = 'watchMyTrades'
|
891
891
|
messageHash = 'myTrades'
|
@@ -1174,7 +1174,7 @@ class bybit(ccxt.async_support.bybit):
|
|
1174
1174
|
rawLiquidation = self.safe_dict(message, 'data', {})
|
1175
1175
|
marketId = self.safe_string(rawLiquidation, 'symbol')
|
1176
1176
|
market = self.safe_market(marketId, None, '', 'contract')
|
1177
|
-
symbol =
|
1177
|
+
symbol = market['symbol']
|
1178
1178
|
liquidation = self.parse_ws_liquidation(rawLiquidation, market)
|
1179
1179
|
liquidations = self.safe_value(self.liquidations, symbol)
|
1180
1180
|
if liquidations is None:
|
@@ -1200,7 +1200,7 @@ class bybit(ccxt.async_support.bybit):
|
|
1200
1200
|
timestamp = self.safe_integer(liquidation, 'updatedTime')
|
1201
1201
|
return self.safe_liquidation({
|
1202
1202
|
'info': liquidation,
|
1203
|
-
'symbol':
|
1203
|
+
'symbol': market['symbol'],
|
1204
1204
|
'contracts': self.safe_number(liquidation, 'size'),
|
1205
1205
|
'contractSize': self.safe_number(market, 'contractSize'),
|
1206
1206
|
'price': self.safe_number(liquidation, 'price'),
|
@@ -1218,7 +1218,7 @@ class bybit(ccxt.async_support.bybit):
|
|
1218
1218
|
:param int [since]: the earliest time in ms to fetch orders for
|
1219
1219
|
:param int [limit]: the maximum number of order structures to retrieve
|
1220
1220
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1221
|
-
:returns dict[]: a list of
|
1221
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1222
1222
|
"""
|
1223
1223
|
await self.load_markets()
|
1224
1224
|
method = 'watchOrders'
|
ccxt/pro/coinbaseexchange.py
CHANGED
@@ -189,7 +189,7 @@ class coinbaseexchange(ccxt.async_support.coinbaseexchange):
|
|
189
189
|
:param int [since]: the earliest time in ms to fetch trades for
|
190
190
|
:param int [limit]: the maximum number of trade structures to retrieve
|
191
191
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
192
|
-
:returns dict[]: a list of
|
192
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
193
193
|
"""
|
194
194
|
if symbol is None:
|
195
195
|
raise ArgumentsRequired(self.id + ' watchMyTrades() requires a symbol argument')
|
@@ -210,7 +210,7 @@ class coinbaseexchange(ccxt.async_support.coinbaseexchange):
|
|
210
210
|
:param int [since]: the earliest time in ms to fetch trades for
|
211
211
|
:param int [limit]: the maximum number of trade structures to retrieve
|
212
212
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
213
|
-
:returns dict[]: a list of
|
213
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
214
214
|
"""
|
215
215
|
symbols = self.market_symbols(symbols, None, False)
|
216
216
|
await self.load_markets()
|
ccxt/pro/coincheck.py
CHANGED
@@ -111,7 +111,7 @@ class coincheck(ccxt.async_support.coincheck):
|
|
111
111
|
:param int [since]: the earliest time in ms to fetch trades for
|
112
112
|
:param int [limit]: the maximum number of trade structures to retrieve
|
113
113
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
114
|
-
:returns dict[]: a list of
|
114
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
115
115
|
"""
|
116
116
|
await self.load_markets()
|
117
117
|
market = self.market(symbol)
|
ccxt/pro/coinone.py
CHANGED
@@ -252,7 +252,7 @@ class coinone(ccxt.async_support.coinone):
|
|
252
252
|
:param int [since]: the earliest time in ms to fetch trades for
|
253
253
|
:param int [limit]: the maximum number of trade structures to retrieve
|
254
254
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
255
|
-
:returns dict[]: a list of
|
255
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
256
256
|
"""
|
257
257
|
await self.load_markets()
|
258
258
|
market = self.market(symbol)
|
ccxt/pro/cryptocom.py
CHANGED
@@ -310,7 +310,7 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
310
310
|
:param int [since]: the earliest time in ms to fetch trades for
|
311
311
|
:param int [limit]: the maximum number of trade structures to retrieve
|
312
312
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
313
|
-
:returns dict[]: a list of
|
313
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
314
314
|
"""
|
315
315
|
await self.load_markets()
|
316
316
|
market = None
|
ccxt/pro/deribit.py
CHANGED
@@ -537,7 +537,7 @@ class deribit(ccxt.async_support.deribit):
|
|
537
537
|
:param int [since]: the earliest time in ms to fetch orders for
|
538
538
|
:param int [limit]: the maximum number of order structures to retrieve
|
539
539
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
540
|
-
:returns dict[]: a list of
|
540
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
541
541
|
"""
|
542
542
|
await self.load_markets()
|
543
543
|
await self.authenticate(params)
|
ccxt/pro/gate.py
CHANGED
@@ -785,7 +785,7 @@ class gate(ccxt.async_support.gate):
|
|
785
785
|
:param int [since]: the earliest time in ms to fetch trades for
|
786
786
|
:param int [limit]: the maximum number of trade structures to retrieve
|
787
787
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
788
|
-
:returns dict[]: a list of
|
788
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
789
789
|
"""
|
790
790
|
await self.load_markets()
|
791
791
|
subType = None
|
@@ -1105,7 +1105,7 @@ class gate(ccxt.async_support.gate):
|
|
1105
1105
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1106
1106
|
:param str [params.type]: spot, margin, swap, future, or option. Required if listening to all symbols.
|
1107
1107
|
:param boolean [params.isInverse]: if future, listen to inverse or linear contracts
|
1108
|
-
:returns dict[]: a list of
|
1108
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1109
1109
|
"""
|
1110
1110
|
await self.load_markets()
|
1111
1111
|
market = None
|
ccxt/pro/hollaex.py
CHANGED
@@ -170,7 +170,7 @@ class hollaex(ccxt.async_support.hollaex):
|
|
170
170
|
:param int [since]: the earliest time in ms to fetch trades for
|
171
171
|
:param int [limit]: the maximum number of trade structures to retrieve
|
172
172
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
173
|
-
:returns dict[]: a list of
|
173
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
174
174
|
"""
|
175
175
|
await self.load_markets()
|
176
176
|
messageHash = 'usertrade'
|
ccxt/pro/htx.py
CHANGED
@@ -641,7 +641,7 @@ class htx(ccxt.async_support.htx):
|
|
641
641
|
:param int [since]: the earliest time in ms to fetch trades for
|
642
642
|
:param int [limit]: the maximum number of trade structures to retrieve
|
643
643
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
644
|
-
:returns dict[]: a list of
|
644
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
645
645
|
"""
|
646
646
|
self.check_required_credentials()
|
647
647
|
await self.load_markets()
|
ccxt/pro/hyperliquid.py
CHANGED
@@ -131,7 +131,7 @@ class hyperliquid(ccxt.async_support.hyperliquid):
|
|
131
131
|
:param int [limit]: the maximum number of order structures to retrieve
|
132
132
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
133
133
|
:param str [params.user]: user address, will default to self.walletAddress if not provided
|
134
|
-
:returns dict[]: a list of
|
134
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
135
135
|
"""
|
136
136
|
userAddress = None
|
137
137
|
userAddress, params = self.handlePublicAddress('watchMyTrades', params)
|
@@ -214,7 +214,7 @@ class hyperliquid(ccxt.async_support.hyperliquid):
|
|
214
214
|
:param int [since]: the earliest time in ms to fetch trades for
|
215
215
|
:param int [limit]: the maximum number of trade structures to retrieve
|
216
216
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
217
|
-
:returns dict[]: a list of
|
217
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
218
218
|
"""
|
219
219
|
await self.load_markets()
|
220
220
|
market = self.market(symbol)
|
@@ -403,7 +403,7 @@ class hyperliquid(ccxt.async_support.hyperliquid):
|
|
403
403
|
:param int [limit]: the maximum number of order structures to retrieve
|
404
404
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
405
405
|
:param str [params.user]: user address, will default to self.walletAddress if not provided
|
406
|
-
:returns dict[]: a list of
|
406
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
407
407
|
"""
|
408
408
|
await self.load_markets()
|
409
409
|
userAddress = None
|
ccxt/pro/kraken.py
CHANGED
@@ -835,7 +835,7 @@ class kraken(ccxt.async_support.kraken):
|
|
835
835
|
:param int [since]: the earliest time in ms to fetch trades for
|
836
836
|
:param int [limit]: the maximum number of trade structures to retrieve
|
837
837
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
838
|
-
:returns dict[]: a list of
|
838
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
839
839
|
"""
|
840
840
|
return await self.watch_private('ownTrades', symbol, since, limit, params)
|
841
841
|
|
ccxt/pro/kucoin.py
CHANGED
@@ -916,13 +916,12 @@ class kucoin(ccxt.async_support.kucoin):
|
|
916
916
|
:param int [limit]: the maximum number of trade structures to retrieve
|
917
917
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
918
918
|
:param str [params.method]: '/spotMarket/tradeOrders' or '/spot/tradeFills' default is '/spotMarket/tradeOrders'
|
919
|
-
:returns dict[]: a list of
|
919
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
920
920
|
"""
|
921
921
|
await self.load_markets()
|
922
922
|
url = await self.negotiate(True)
|
923
|
-
|
924
|
-
|
925
|
-
topic = defaultMethod if (defaultMethod is not None) else self.safe_string(options, 'method')
|
923
|
+
topic: Str = None
|
924
|
+
topic, params = self.handle_option_and_params(params, 'watchMyTrades', 'method', '/spotMarket/tradeOrders')
|
926
925
|
request: dict = {
|
927
926
|
'privateChannel': True,
|
928
927
|
}
|
ccxt/pro/mexc.py
CHANGED
@@ -582,7 +582,7 @@ class mexc(ccxt.async_support.mexc):
|
|
582
582
|
:param int [since]: the earliest time in ms to fetch trades for
|
583
583
|
:param int [limit]: the maximum number of trade structures to retrieve
|
584
584
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
585
|
-
:returns dict[]: a list of
|
585
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
586
586
|
"""
|
587
587
|
await self.load_markets()
|
588
588
|
messageHash = 'myTrades'
|
ccxt/pro/okx.py
CHANGED
@@ -1147,7 +1147,7 @@ class okx(ccxt.async_support.okx):
|
|
1147
1147
|
:param bool [params.stop]: True if fetching trigger or conditional trades
|
1148
1148
|
:param str [params.type]: 'spot', 'swap', 'future', 'option', 'ANY', 'SPOT', 'MARGIN', 'SWAP', 'FUTURES' or 'OPTION'
|
1149
1149
|
:param str [params.marginMode]: 'cross' or 'isolated', for automatically setting the type to spot margin
|
1150
|
-
:returns dict[]: a list of
|
1150
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1151
1151
|
"""
|
1152
1152
|
# By default, receive order updates from any instrument type
|
1153
1153
|
type = None
|
ccxt/pro/oxfun.py
CHANGED
@@ -83,7 +83,7 @@ class oxfun(ccxt.async_support.oxfun):
|
|
83
83
|
:param int [limit]: the maximum number of trade structures to retrieve
|
84
84
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
85
85
|
:param int|str [params.tag]: If given it will be echoed in the reply and the max size of tag is 32
|
86
|
-
:returns dict[]: a list of
|
86
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
87
87
|
"""
|
88
88
|
return await self.watch_trades_for_symbols([symbol], since, limit, params)
|
89
89
|
|
ccxt/pro/phemex.py
CHANGED
@@ -697,7 +697,7 @@ class phemex(ccxt.async_support.phemex):
|
|
697
697
|
:param int [since]: the earliest time in ms to fetch trades for
|
698
698
|
:param int [limit]: the maximum number of trade structures to retrieve
|
699
699
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
700
|
-
:returns dict[]: a list of
|
700
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
701
701
|
"""
|
702
702
|
await self.load_markets()
|
703
703
|
market = None
|
ccxt/pro/upbit.py
CHANGED
@@ -293,7 +293,7 @@ class upbit(ccxt.async_support.upbit):
|
|
293
293
|
:param int [since]: the earliest time in ms to fetch orders for
|
294
294
|
:param int [limit]: the maximum number of order structures to retrieve
|
295
295
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
296
|
-
:returns dict[]: a list of
|
296
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
297
297
|
"""
|
298
298
|
await self.load_markets()
|
299
299
|
channel = 'myOrder'
|
ccxt/pro/vertex.py
CHANGED
@@ -90,7 +90,7 @@ class vertex(ccxt.async_support.vertex):
|
|
90
90
|
:param int [since]: the earliest time in ms to fetch trades for
|
91
91
|
:param int [limit]: the maximum number of trade structures to retrieve
|
92
92
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
93
|
-
:returns dict[]: a list of
|
93
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
94
94
|
"""
|
95
95
|
await self.load_markets()
|
96
96
|
market = self.market(symbol)
|
@@ -147,7 +147,7 @@ class vertex(ccxt.async_support.vertex):
|
|
147
147
|
:param int [limit]: the maximum number of order structures to retrieve
|
148
148
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
149
149
|
:param str [params.user]: user address, will default to self.walletAddress if not provided
|
150
|
-
:returns dict[]: a list of
|
150
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
151
151
|
"""
|
152
152
|
if symbol is None:
|
153
153
|
raise ArgumentsRequired(self.id + ' watchMyTrades requires a symbol.')
|
ccxt/pro/whitebit.py
CHANGED
@@ -453,7 +453,7 @@ class whitebit(ccxt.async_support.whitebit):
|
|
453
453
|
:param int [since]: the earliest time in ms to fetch orders for
|
454
454
|
:param int [limit]: the maximum number of order structures to retrieve
|
455
455
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
456
|
-
:returns dict[]: a list of
|
456
|
+
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
457
457
|
"""
|
458
458
|
if symbol is None:
|
459
459
|
raise ArgumentsRequired(self.id + ' watchOrders() requires a symbol argument')
|
ccxt/pro/woo.py
CHANGED
@@ -368,7 +368,7 @@ class woo(ccxt.async_support.woo):
|
|
368
368
|
:param int [since]: the earliest time in ms to fetch trades for
|
369
369
|
:param int [limit]: the maximum number of trade structures to retrieve
|
370
370
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
371
|
-
:returns dict[]: a list of
|
371
|
+
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
372
372
|
"""
|
373
373
|
await self.load_markets()
|
374
374
|
market = self.market(symbol)
|
ccxt/tradeogre.py
CHANGED
@@ -221,7 +221,7 @@ class tradeogre(Exchange, ImplicitAPI):
|
|
221
221
|
'inverse': None,
|
222
222
|
'contractSize': None,
|
223
223
|
'taker': self.fees['trading']['taker'],
|
224
|
-
'maker': self.fees['trading']['
|
224
|
+
'maker': self.fees['trading']['maker'],
|
225
225
|
'expiry': None,
|
226
226
|
'expiryDatetime': None,
|
227
227
|
'strike': None,
|
ccxt/vertex.py
CHANGED
@@ -400,7 +400,16 @@ class vertex(Exchange, ImplicitAPI):
|
|
400
400
|
'withdraw': self.safe_bool(data, 'can_withdraw'),
|
401
401
|
'networks': None,
|
402
402
|
'fee': None,
|
403
|
-
'limits':
|
403
|
+
'limits': {
|
404
|
+
'amount': {
|
405
|
+
'min': None,
|
406
|
+
'max': None,
|
407
|
+
},
|
408
|
+
'withdraw': {
|
409
|
+
'min': None,
|
410
|
+
'max': None,
|
411
|
+
},
|
412
|
+
},
|
404
413
|
}
|
405
414
|
return result
|
406
415
|
|
ccxt/xt.py
CHANGED
@@ -4489,7 +4489,7 @@ class xt(Exchange, ImplicitAPI):
|
|
4489
4489
|
if isUndefinedBody:
|
4490
4490
|
if urlencoded:
|
4491
4491
|
url += '?' + urlencoded
|
4492
|
-
payloadString += '#' + method + '#' + payload + '#' +
|
4492
|
+
payloadString += '#' + method + '#' + payload + '#' + self.rawencode(self.keysort(query))
|
4493
4493
|
else:
|
4494
4494
|
payloadString += '#' + method + '#' + payload
|
4495
4495
|
else:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 4.3.
|
3
|
+
Version: 4.3.62
|
4
4
|
Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges
|
5
5
|
Home-page: https://ccxt.com
|
6
6
|
Author: Igor Kroitor
|
@@ -268,13 +268,13 @@ console.log(version, Object.keys(exchanges));
|
|
268
268
|
|
269
269
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
270
270
|
|
271
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.
|
272
|
-
* unpkg: https://unpkg.com/ccxt@4.3.
|
271
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.3.62/dist/ccxt.browser.min.js
|
272
|
+
* unpkg: https://unpkg.com/ccxt@4.3.62/dist/ccxt.browser.min.js
|
273
273
|
|
274
274
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
275
275
|
|
276
276
|
```HTML
|
277
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.
|
277
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.3.62/dist/ccxt.browser.min.js"></script>
|
278
278
|
```
|
279
279
|
|
280
280
|
Creates a global `ccxt` object:
|