ccxt 4.1.95__py2.py3-none-any.whl → 4.1.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.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +2 -1
- ccxt/abstract/bingx.py +2 -0
- ccxt/abstract/kucoin.py +12 -0
- ccxt/abstract/kucoinfutures.py +12 -1
- ccxt/ace.py +1 -1
- ccxt/ascendex.py +1 -1
- ccxt/async_support/__init__.py +2 -1
- ccxt/async_support/ace.py +1 -1
- ccxt/async_support/ascendex.py +1 -1
- ccxt/async_support/base/exchange.py +29 -23
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +116 -114
- ccxt/async_support/bingx.py +46 -7
- ccxt/async_support/bit2c.py +2 -3
- ccxt/async_support/bitfinex.py +1 -1
- ccxt/async_support/bitfinex2.py +3 -4
- ccxt/async_support/bitflyer.py +2 -2
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitmex.py +2 -2
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitvavo.py +1 -1
- ccxt/async_support/blockchaincom.py +1 -1
- ccxt/async_support/btcalpha.py +2 -2
- ccxt/async_support/btcbox.py +3 -4
- ccxt/async_support/btcmarkets.py +2 -2
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +2 -2
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +11 -5
- ccxt/async_support/coinbasepro.py +2 -2
- ccxt/async_support/coinex.py +1 -1
- ccxt/async_support/coinlist.py +1 -1
- ccxt/async_support/cryptocom.py +2 -1
- ccxt/async_support/delta.py +24 -1
- ccxt/async_support/deribit.py +1 -1
- ccxt/async_support/digifinex.py +1 -1
- ccxt/async_support/gate.py +2 -2
- ccxt/async_support/hitbtc.py +1 -1
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/htx.py +1 -1
- ccxt/async_support/huobijp.py +2 -2
- ccxt/async_support/idex.py +1 -1
- ccxt/async_support/independentreserve.py +1 -1
- ccxt/async_support/kraken.py +45 -41
- ccxt/async_support/krakenfutures.py +46 -23
- ccxt/async_support/kucoin.py +68 -5
- ccxt/async_support/kucoinfutures.py +2 -2
- ccxt/async_support/kuna.py +1 -1
- ccxt/async_support/latoken.py +1 -1
- ccxt/async_support/luno.py +2 -2
- ccxt/async_support/lykke.py +1 -1
- ccxt/async_support/mexc.py +2 -2
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +2 -2
- ccxt/async_support/oceanex.py +1 -1
- ccxt/async_support/okcoin.py +1 -1
- ccxt/async_support/okx.py +1 -1
- ccxt/async_support/poloniexfutures.py +1 -1
- ccxt/async_support/probit.py +1 -1
- ccxt/async_support/timex.py +1 -1
- ccxt/async_support/tokocrypto.py +1 -1
- ccxt/async_support/upbit.py +1 -1
- ccxt/async_support/wavesexchange.py +1 -1
- ccxt/async_support/whitebit.py +1 -1
- ccxt/async_support/woo.py +1 -1
- ccxt/async_support/zaif.py +1 -1
- ccxt/base/errors.py +6 -0
- ccxt/base/exchange.py +10 -7
- ccxt/bigone.py +2 -2
- ccxt/binance.py +116 -114
- ccxt/bingx.py +46 -7
- ccxt/bit2c.py +2 -3
- ccxt/bitfinex.py +1 -1
- ccxt/bitfinex2.py +3 -4
- ccxt/bitflyer.py +2 -2
- ccxt/bitmart.py +2 -2
- ccxt/bitmex.py +2 -2
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitvavo.py +1 -1
- ccxt/blockchaincom.py +1 -1
- ccxt/btcalpha.py +2 -2
- ccxt/btcbox.py +3 -4
- ccxt/btcmarkets.py +2 -2
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +2 -2
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +11 -5
- ccxt/coinbasepro.py +2 -2
- ccxt/coinex.py +1 -1
- ccxt/coinlist.py +1 -1
- ccxt/cryptocom.py +2 -1
- ccxt/delta.py +24 -1
- ccxt/deribit.py +1 -1
- ccxt/digifinex.py +1 -1
- ccxt/gate.py +2 -2
- ccxt/hitbtc.py +1 -1
- ccxt/hollaex.py +2 -2
- ccxt/htx.py +1 -1
- ccxt/huobijp.py +2 -2
- ccxt/idex.py +1 -1
- ccxt/independentreserve.py +1 -1
- ccxt/kraken.py +45 -41
- ccxt/krakenfutures.py +46 -23
- ccxt/kucoin.py +68 -5
- ccxt/kucoinfutures.py +2 -2
- ccxt/kuna.py +1 -1
- ccxt/latoken.py +1 -1
- ccxt/luno.py +2 -2
- ccxt/lykke.py +1 -1
- ccxt/mexc.py +2 -2
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +2 -2
- ccxt/oceanex.py +1 -1
- ccxt/okcoin.py +1 -1
- ccxt/okx.py +1 -1
- ccxt/poloniexfutures.py +1 -1
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +5 -6
- ccxt/pro/bingx.py +6 -3
- ccxt/pro/bitfinex.py +3 -4
- ccxt/pro/bitfinex2.py +1 -1
- ccxt/pro/bitmex.py +1 -1
- ccxt/pro/bitpanda.py +1 -1
- ccxt/pro/blockchaincom.py +1 -1
- ccxt/pro/bybit.py +2 -2
- ccxt/pro/cex.py +1 -1
- ccxt/pro/coinbase.py +1 -1
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/cryptocom.py +1 -1
- ccxt/pro/deribit.py +1 -1
- ccxt/pro/gate.py +3 -3
- ccxt/pro/gemini.py +1 -1
- ccxt/pro/hitbtc.py +1 -1
- ccxt/pro/hollaex.py +1 -1
- ccxt/pro/htx.py +1 -1
- ccxt/pro/idex.py +1 -1
- ccxt/pro/kraken.py +3 -4
- ccxt/pro/krakenfutures.py +1 -1
- ccxt/pro/kucoinfutures.py +1 -1
- ccxt/pro/mexc.py +1 -1
- ccxt/pro/okcoin.py +1 -1
- ccxt/pro/okx.py +4 -4
- ccxt/pro/phemex.py +1 -1
- ccxt/pro/poloniexfutures.py +1 -1
- ccxt/pro/woo.py +2 -3
- ccxt/probit.py +1 -1
- ccxt/test/test_async.py +3 -1
- ccxt/test/test_sync.py +3 -1
- ccxt/timex.py +1 -1
- ccxt/tokocrypto.py +1 -1
- ccxt/upbit.py +1 -1
- ccxt/wavesexchange.py +1 -1
- ccxt/whitebit.py +1 -1
- ccxt/woo.py +1 -1
- ccxt/zaif.py +1 -1
- {ccxt-4.1.95.dist-info → ccxt-4.1.97.dist-info}/METADATA +4 -4
- {ccxt-4.1.95.dist-info → ccxt-4.1.97.dist-info}/RECORD +163 -163
- {ccxt-4.1.95.dist-info → ccxt-4.1.97.dist-info}/WHEEL +0 -0
- {ccxt-4.1.95.dist-info → ccxt-4.1.97.dist-info}/top_level.txt +0 -0
ccxt/pro/binance.py
CHANGED
@@ -873,13 +873,12 @@ class binance(ccxt.async_support.binance):
|
|
873
873
|
if event == '24hrTicker':
|
874
874
|
event = 'ticker'
|
875
875
|
timestamp = None
|
876
|
-
now = self.milliseconds()
|
877
876
|
if event == 'bookTicker':
|
878
877
|
# take the event timestamp, if available, for spot tickers it is not
|
879
|
-
timestamp = self.safe_integer(message, 'E'
|
878
|
+
timestamp = self.safe_integer(message, 'E')
|
880
879
|
else:
|
881
880
|
# take the timestamp of the closing price for candlestick streams
|
882
|
-
timestamp = self.safe_integer(message, 'C'
|
881
|
+
timestamp = self.safe_integer(message, 'C')
|
883
882
|
marketId = self.safe_string(message, 's')
|
884
883
|
symbol = self.safe_symbol(marketId, None, None, marketType)
|
885
884
|
last = self.safe_float(message, 'c')
|
@@ -1371,7 +1370,7 @@ class binance(ccxt.async_support.binance):
|
|
1371
1370
|
messageHash = str(requestId)
|
1372
1371
|
sor = self.safe_value_2(params, 'sor', 'SOR', False)
|
1373
1372
|
params = self.omit(params, 'sor', 'SOR')
|
1374
|
-
payload = self.
|
1373
|
+
payload = self.create_order_request(symbol, type, side, amount, price, params)
|
1375
1374
|
returnRateLimits = False
|
1376
1375
|
returnRateLimits, params = self.handle_option_and_params(params, 'createOrderWs', 'returnRateLimits', False)
|
1377
1376
|
payload['returnRateLimits'] = returnRateLimits
|
@@ -1773,7 +1772,7 @@ class binance(ccxt.async_support.binance):
|
|
1773
1772
|
watches information on multiple orders made by the user
|
1774
1773
|
:param str symbol: unified market symbol of the market orders were made in
|
1775
1774
|
:param int [since]: the earliest time in ms to fetch orders for
|
1776
|
-
:param int [limit]: the maximum number of
|
1775
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1777
1776
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1778
1777
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1779
1778
|
"""
|
@@ -2288,7 +2287,7 @@ class binance(ccxt.async_support.binance):
|
|
2288
2287
|
watches information on multiple trades made by the user
|
2289
2288
|
:param str symbol: unified market symbol of the market orders were made in
|
2290
2289
|
:param int [since]: the earliest time in ms to fetch orders for
|
2291
|
-
:param int [limit]: the maximum number of
|
2290
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
2292
2291
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2293
2292
|
:returns dict[]: a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
2294
2293
|
"""
|
ccxt/pro/bingx.py
CHANGED
@@ -85,7 +85,7 @@ class bingx(ccxt.async_support.bingx):
|
|
85
85
|
:see: https://bingx-api.github.io/docs/#/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
|
86
86
|
:param str symbol: unified market symbol of the market orders were made in
|
87
87
|
:param int [since]: the earliest time in ms to fetch orders for
|
88
|
-
:param int [limit]: the maximum number of
|
88
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
89
89
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
90
90
|
:returns dict[]: a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
91
91
|
"""
|
@@ -295,8 +295,11 @@ class bingx(ccxt.async_support.bingx):
|
|
295
295
|
# "t": 1696687440000
|
296
296
|
# }
|
297
297
|
#
|
298
|
+
# for spot, opening-time(t) is used instead of closing-time(T), to be compatible with fetchOHLCV
|
299
|
+
# for swap,(T) is the opening time
|
300
|
+
timestamp = 't' if (market['spot']) else 'T'
|
298
301
|
return [
|
299
|
-
self.safe_integer(ohlcv,
|
302
|
+
self.safe_integer(ohlcv, timestamp),
|
300
303
|
self.safe_number(ohlcv, 'o'),
|
301
304
|
self.safe_number(ohlcv, 'h'),
|
302
305
|
self.safe_number(ohlcv, 'l'),
|
@@ -413,7 +416,7 @@ class bingx(ccxt.async_support.bingx):
|
|
413
416
|
watches information on multiple orders made by the user
|
414
417
|
:param str symbol: unified market symbol of the market orders were made in
|
415
418
|
:param int [since]: the earliest time in ms to fetch orders for
|
416
|
-
:param int [limit]: the maximum number of
|
419
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
417
420
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
418
421
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
419
422
|
"""
|
ccxt/pro/bitfinex.py
CHANGED
@@ -202,7 +202,6 @@ class bitfinex(ccxt.async_support.bitfinex):
|
|
202
202
|
# 220.05, # 10 LOW float Daily low
|
203
203
|
# ]
|
204
204
|
#
|
205
|
-
timestamp = self.milliseconds()
|
206
205
|
marketId = self.safe_string(subscription, 'pair')
|
207
206
|
symbol = self.safe_symbol(marketId)
|
208
207
|
channel = 'ticker'
|
@@ -214,8 +213,8 @@ class bitfinex(ccxt.async_support.bitfinex):
|
|
214
213
|
open = Precise.string_sub(last, change)
|
215
214
|
result = {
|
216
215
|
'symbol': symbol,
|
217
|
-
'timestamp':
|
218
|
-
'datetime':
|
216
|
+
'timestamp': None,
|
217
|
+
'datetime': None,
|
219
218
|
'high': self.safe_float(message, 9),
|
220
219
|
'low': self.safe_float(message, 10),
|
221
220
|
'bid': self.safe_float(message, 1),
|
@@ -430,7 +429,7 @@ class bitfinex(ccxt.async_support.bitfinex):
|
|
430
429
|
watches information on multiple orders made by the user
|
431
430
|
:param str symbol: unified market symbol of the market orders were made in
|
432
431
|
:param int [since]: the earliest time in ms to fetch orders for
|
433
|
-
:param int [limit]: the maximum number of
|
432
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
434
433
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
435
434
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
436
435
|
"""
|
ccxt/pro/bitfinex2.py
CHANGED
@@ -828,7 +828,7 @@ class bitfinex2(ccxt.async_support.bitfinex2):
|
|
828
828
|
watches information on multiple orders made by the user
|
829
829
|
:param str symbol: unified market symbol of the market orders were made in
|
830
830
|
:param int [since]: the earliest time in ms to fetch orders for
|
831
|
-
:param int [limit]: the maximum number of
|
831
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
832
832
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
833
833
|
:returns dict[]: a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
834
834
|
"""
|
ccxt/pro/bitmex.py
CHANGED
@@ -786,7 +786,7 @@ class bitmex(ccxt.async_support.bitmex):
|
|
786
786
|
watches information on multiple orders made by the user
|
787
787
|
:param str symbol: unified market symbol of the market orders were made in
|
788
788
|
:param int [since]: the earliest time in ms to fetch orders for
|
789
|
-
:param int [limit]: the maximum number of
|
789
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
790
790
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
791
791
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
792
792
|
"""
|
ccxt/pro/bitpanda.py
CHANGED
@@ -406,7 +406,7 @@ class bitpanda(ccxt.async_support.bitpanda):
|
|
406
406
|
watches information on multiple orders made by the user
|
407
407
|
:param str symbol: unified market symbol of the market orders were made in
|
408
408
|
:param int [since]: the earliest time in ms to fetch orders for
|
409
|
-
:param int [limit]: the maximum number of
|
409
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
410
410
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
411
411
|
:param str [params.channel]: can listen to orders using ACCOUNT_HISTORY or TRADING
|
412
412
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/pro/blockchaincom.py
CHANGED
@@ -398,7 +398,7 @@ class blockchaincom(ccxt.async_support.blockchaincom):
|
|
398
398
|
:see: https://exchange.blockchain.com/api/#mass-order-status-request-ordermassstatusrequest
|
399
399
|
:param str symbol: unified market symbol of the market orders were made in
|
400
400
|
:param int [since]: the earliest time in ms to fetch orders for
|
401
|
-
:param int [limit]: the maximum number of
|
401
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
402
402
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
403
403
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
404
404
|
"""
|
ccxt/pro/bybit.py
CHANGED
@@ -740,7 +740,7 @@ class bybit(ccxt.async_support.bybit):
|
|
740
740
|
:see: https://bybit-exchange.github.io/docs/v5/websocket/private/execution
|
741
741
|
:param str symbol: unified market symbol of the market orders were made in
|
742
742
|
:param int [since]: the earliest time in ms to fetch orders for
|
743
|
-
:param int [limit]: the maximum number of
|
743
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
744
744
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
745
745
|
:param boolean [params.unifiedMargin]: use unified margin account
|
746
746
|
:returns dict[]: a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
@@ -982,7 +982,7 @@ class bybit(ccxt.async_support.bybit):
|
|
982
982
|
:see: https://bybit-exchange.github.io/docs/v5/websocket/private/order
|
983
983
|
:param str symbol: unified market symbol of the market orders were made in
|
984
984
|
:param int [since]: the earliest time in ms to fetch orders for
|
985
|
-
:param int [limit]: the maximum number of
|
985
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
986
986
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
987
987
|
:returns dict[]: a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
988
988
|
"""
|
ccxt/pro/cex.py
CHANGED
@@ -698,7 +698,7 @@ class cex(ccxt.async_support.cex):
|
|
698
698
|
'currency': quote,
|
699
699
|
'rate': None,
|
700
700
|
}
|
701
|
-
timestamp = self.safe_integer(data, 'time'
|
701
|
+
timestamp = self.safe_integer(data, 'time')
|
702
702
|
order['timestamp'] = timestamp
|
703
703
|
order['datetime'] = self.iso8601(timestamp)
|
704
704
|
order = self.safe_order(order)
|
ccxt/pro/coinbase.py
CHANGED
@@ -256,7 +256,7 @@ class coinbase(ccxt.async_support.coinbase):
|
|
256
256
|
:see: https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#user-channel
|
257
257
|
:param str [symbol]: unified market symbol of the market orders were made in
|
258
258
|
:param int [since]: the earliest time in ms to fetch orders for
|
259
|
-
:param int [limit]: the maximum number of
|
259
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
260
260
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
261
261
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
262
262
|
"""
|
ccxt/pro/coinbasepro.py
CHANGED
@@ -249,7 +249,7 @@ class coinbasepro(ccxt.async_support.coinbasepro):
|
|
249
249
|
watches information on multiple orders made by the user
|
250
250
|
:param str symbol: unified market symbol of the market orders were made in
|
251
251
|
:param int [since]: the earliest time in ms to fetch orders for
|
252
|
-
:param int [limit]: the maximum number of
|
252
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
253
253
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
254
254
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
255
255
|
"""
|
ccxt/pro/cryptocom.py
CHANGED
@@ -604,7 +604,7 @@ class cryptocom(ccxt.async_support.cryptocom):
|
|
604
604
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
605
605
|
"""
|
606
606
|
await self.load_markets()
|
607
|
-
params = self.
|
607
|
+
params = self.create_order_request(symbol, type, side, amount, price, params)
|
608
608
|
request = {
|
609
609
|
'method': 'private/create-order',
|
610
610
|
'params': params,
|
ccxt/pro/deribit.py
CHANGED
@@ -492,7 +492,7 @@ class deribit(ccxt.async_support.deribit):
|
|
492
492
|
watches information on multiple orders made by the user
|
493
493
|
:param str symbol: unified market symbol of the market orders were made in
|
494
494
|
:param int [since]: the earliest time in ms to fetch orders for
|
495
|
-
:param int [limit]: the maximum number of
|
495
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
496
496
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
497
497
|
:returns dict[]: a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
498
498
|
"""
|
ccxt/pro/gate.py
CHANGED
@@ -677,7 +677,7 @@ class gate(ccxt.async_support.gate):
|
|
677
677
|
# }
|
678
678
|
#
|
679
679
|
result = self.safe_value(message, 'result', [])
|
680
|
-
timestamp = self.safe_integer(message, '
|
680
|
+
timestamp = self.safe_integer(message, 'time_ms')
|
681
681
|
self.balance['info'] = result
|
682
682
|
self.balance['timestamp'] = timestamp
|
683
683
|
self.balance['datetime'] = self.iso8601(timestamp)
|
@@ -745,7 +745,7 @@ class gate(ccxt.async_support.gate):
|
|
745
745
|
positions = await self.subscribe_private(url, messageHash, payload, channel, query, True)
|
746
746
|
if self.newUpdates:
|
747
747
|
return positions
|
748
|
-
return self.filter_by_symbols_since_limit(self.positions, symbols, since, limit, True)
|
748
|
+
return self.filter_by_symbols_since_limit(self.positions[type], symbols, since, limit, True)
|
749
749
|
|
750
750
|
def set_positions_cache(self, client: Client, type, symbols: Strings = None):
|
751
751
|
if self.positions is None:
|
@@ -829,7 +829,7 @@ class gate(ccxt.async_support.gate):
|
|
829
829
|
watches information on multiple orders made by the user
|
830
830
|
:param str symbol: unified market symbol of the market orders were made in
|
831
831
|
:param int [since]: the earliest time in ms to fetch orders for
|
832
|
-
:param int [limit]: the maximum number of
|
832
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
833
833
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
834
834
|
:param str [params.type]: spot, margin, swap, future, or option. Required if listening to all symbols.
|
835
835
|
:param boolean [params.isInverse]: if future, listen to inverse or linear contracts
|
ccxt/pro/gemini.py
CHANGED
@@ -364,7 +364,7 @@ class gemini(ccxt.async_support.gemini):
|
|
364
364
|
:see: https://docs.gemini.com/websocket-api/#order-events
|
365
365
|
:param str symbol: unified market symbol of the market orders were made in
|
366
366
|
:param int [since]: the earliest time in ms to fetch orders for
|
367
|
-
:param int [limit]: the maximum number of
|
367
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
368
368
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
369
369
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
370
370
|
"""
|
ccxt/pro/hitbtc.py
CHANGED
@@ -959,7 +959,7 @@ class hitbtc(ccxt.async_support.hitbtc):
|
|
959
959
|
marketType, params = self.handle_market_type_and_params('createOrder', market, params)
|
960
960
|
marginMode = None
|
961
961
|
marginMode, params = self.handle_margin_mode_and_params('createOrder', params)
|
962
|
-
request, params = self.
|
962
|
+
request, params = self.create_order_request(market, marketType, type, side, amount, price, marginMode, params)
|
963
963
|
request = self.extend(request, params)
|
964
964
|
if marketType == 'swap':
|
965
965
|
return await self.trade_request('futures_new_order', request)
|
ccxt/pro/hollaex.py
CHANGED
@@ -240,7 +240,7 @@ class hollaex(ccxt.async_support.hollaex):
|
|
240
240
|
watches information on multiple orders made by the user
|
241
241
|
:param str symbol: unified market symbol of the market orders were made in
|
242
242
|
:param int [since]: the earliest time in ms to fetch orders for
|
243
|
-
:param int [limit]: the maximum number of
|
243
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
244
244
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
245
245
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
246
246
|
"""
|
ccxt/pro/htx.py
CHANGED
@@ -723,7 +723,7 @@ class htx(ccxt.async_support.htx):
|
|
723
723
|
watches information on multiple orders made by the user
|
724
724
|
:param str symbol: unified market symbol of the market orders were made in
|
725
725
|
:param int [since]: the earliest time in ms to fetch orders for
|
726
|
-
:param int [limit]: the maximum number of
|
726
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
727
727
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
728
728
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
729
729
|
"""
|
ccxt/pro/idex.py
CHANGED
@@ -480,7 +480,7 @@ class idex(ccxt.async_support.idex):
|
|
480
480
|
watches information on multiple orders made by the user
|
481
481
|
:param str symbol: unified market symbol of the market orders were made in
|
482
482
|
:param int [since]: the earliest time in ms to fetch orders for
|
483
|
-
:param int [limit]: the maximum number of
|
483
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
484
484
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
485
485
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
486
486
|
"""
|
ccxt/pro/kraken.py
CHANGED
@@ -328,11 +328,10 @@ class kraken(ccxt.async_support.kraken):
|
|
328
328
|
if baseVolume is not None and vwap is not None:
|
329
329
|
quoteVolume = Precise.string_mul(baseVolume, vwap)
|
330
330
|
last = self.safe_string(ticker['c'], 0)
|
331
|
-
timestamp = self.milliseconds()
|
332
331
|
result = self.safe_ticker({
|
333
332
|
'symbol': symbol,
|
334
|
-
'timestamp':
|
335
|
-
'datetime':
|
333
|
+
'timestamp': None,
|
334
|
+
'datetime': None,
|
336
335
|
'high': self.safe_string(ticker['h'], 0),
|
337
336
|
'low': self.safe_string(ticker['l'], 0),
|
338
337
|
'bid': self.safe_string(ticker['b'], 0),
|
@@ -941,7 +940,7 @@ class kraken(ccxt.async_support.kraken):
|
|
941
940
|
:param str symbol: unified market symbol of the market orders were made in
|
942
941
|
:param int [since]: the earliest time in ms to fetch orders for
|
943
942
|
:param int [limit]: the maximum number of orde structures to retrieve
|
944
|
-
:param dict [params]:
|
943
|
+
:param dict [params]: maximum number of orderic to the exchange API endpoint
|
945
944
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
946
945
|
"""
|
947
946
|
return await self.watch_private('openOrders', symbol, since, limit, params)
|
ccxt/pro/krakenfutures.py
CHANGED
@@ -352,7 +352,7 @@ class krakenfutures(ccxt.async_support.krakenfutures):
|
|
352
352
|
:see: https://docs.futures.kraken.com/#websocket-api-private-feeds-fills
|
353
353
|
:param str symbol: unified market symbol of the market orders were made in
|
354
354
|
:param int [since]: the earliest time in ms to fetch orders for
|
355
|
-
:param int [limit]: the maximum number of
|
355
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
356
356
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
357
357
|
:returns dict[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
358
358
|
"""
|
ccxt/pro/kucoinfutures.py
CHANGED
@@ -628,7 +628,7 @@ class kucoinfutures(ccxt.async_support.kucoinfutures):
|
|
628
628
|
:see: https://docs.kucoin.com/futures/#trade-orders-according-to-the-market
|
629
629
|
:param str symbol: unified market symbol of the market orders were made in
|
630
630
|
:param int [since]: the earliest time in ms to fetch orders for
|
631
|
-
:param int [limit]: the maximum number of
|
631
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
632
632
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
633
633
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
634
634
|
"""
|
ccxt/pro/mexc.py
CHANGED
@@ -696,7 +696,7 @@ class mexc(ccxt.async_support.mexc):
|
|
696
696
|
watches information on multiple orders made by the user
|
697
697
|
:param str symbol: unified market symbol of the market orders were made in
|
698
698
|
:param int [since]: the earliest time in ms to fetch orders for
|
699
|
-
:param int [limit]: the maximum number of
|
699
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
700
700
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
701
701
|
:param str|None params['type']: the type of orders to retrieve, can be 'spot' or 'margin'
|
702
702
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/pro/okcoin.py
CHANGED
@@ -90,7 +90,7 @@ class okcoin(ccxt.async_support.okcoin):
|
|
90
90
|
watches information on multiple orders made by the user
|
91
91
|
:param str symbol: unified market symbol of the market orders were made in
|
92
92
|
:param int [since]: the earliest time in ms to fetch orders for
|
93
|
-
:param int [limit]: the maximum number of
|
93
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
94
94
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
95
95
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
96
96
|
"""
|
ccxt/pro/okx.py
CHANGED
@@ -747,7 +747,7 @@ class okx(ccxt.async_support.okx):
|
|
747
747
|
'side': self.safe_string(order, 'side'),
|
748
748
|
'price': self.safe_number(info, 'fillPx'),
|
749
749
|
'amount': self.safe_number(info, 'fillSz'),
|
750
|
-
'cost':
|
750
|
+
'cost': self.safe_number(order, 'cost'),
|
751
751
|
'fee': {
|
752
752
|
'cost': self.safe_number(info, 'fillFee'),
|
753
753
|
'currency': self.safe_currency_code(feeMarketId),
|
@@ -908,7 +908,7 @@ class okx(ccxt.async_support.okx):
|
|
908
908
|
watches information on multiple orders made by the user
|
909
909
|
:param str [symbol]: unified market symbol of the market orders were made in
|
910
910
|
:param int [since]: the earliest time in ms to fetch orders for
|
911
|
-
:param int [limit]: the maximum number of
|
911
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
912
912
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
913
913
|
:param bool [params.stop]: True if fetching trigger or conditional orders
|
914
914
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1122,7 +1122,7 @@ class okx(ccxt.async_support.okx):
|
|
1122
1122
|
messageHash = str(self.nonce())
|
1123
1123
|
op = None
|
1124
1124
|
op, params = self.handle_option_and_params(params, 'createOrderWs', 'op', 'batch-orders')
|
1125
|
-
args = self.
|
1125
|
+
args = self.create_order_request(symbol, type, side, amount, price, params)
|
1126
1126
|
ordType = self.safe_string(args, 'ordType')
|
1127
1127
|
if (ordType == 'trigger') or (ordType == 'conditional') or (type == 'oco') or (type == 'move_order_stop') or (type == 'iceberg') or (type == 'twap'):
|
1128
1128
|
raise BadRequest(self.id + ' createOrderWs() does not support algo trading. self.options["createOrderWs"]["op"] must be either order or batch-order')
|
@@ -1186,7 +1186,7 @@ class okx(ccxt.async_support.okx):
|
|
1186
1186
|
messageHash = str(self.nonce())
|
1187
1187
|
op = None
|
1188
1188
|
op, params = self.handle_option_and_params(params, 'editOrderWs', 'op', 'amend-order')
|
1189
|
-
args = self.
|
1189
|
+
args = self.edit_order_request(id, symbol, type, side, amount, price, params)
|
1190
1190
|
request = {
|
1191
1191
|
'id': messageHash,
|
1192
1192
|
'op': op,
|
ccxt/pro/phemex.py
CHANGED
@@ -842,7 +842,7 @@ class phemex(ccxt.async_support.phemex):
|
|
842
842
|
watches information on multiple orders made by the user
|
843
843
|
:param str symbol: unified market symbol of the market orders were made in
|
844
844
|
:param int [since]: the earliest time in ms to fetch orders for
|
845
|
-
:param int [limit]: the maximum number of
|
845
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
846
846
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
847
847
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
848
848
|
"""
|
ccxt/pro/poloniexfutures.py
CHANGED
@@ -286,7 +286,7 @@ class poloniexfutures(ccxt.async_support.poloniexfutures):
|
|
286
286
|
:see: https://futures-docs.poloniex.com/#private-messages
|
287
287
|
:param str symbol: filter by unified market symbol of the market orders were made in
|
288
288
|
:param int [since]: the earliest time in ms to fetch orders for
|
289
|
-
:param int [limit]: the maximum number of
|
289
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
290
290
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
291
291
|
:param str [params.method]: the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
292
292
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/pro/woo.py
CHANGED
@@ -149,11 +149,10 @@ class woo(ccxt.async_support.woo):
|
|
149
149
|
# "count": 3689
|
150
150
|
# }
|
151
151
|
#
|
152
|
-
timestamp = self.safe_integer(ticker, 'date', self.milliseconds())
|
153
152
|
return self.safe_ticker({
|
154
153
|
'symbol': self.safe_symbol(None, market),
|
155
|
-
'timestamp':
|
156
|
-
'datetime':
|
154
|
+
'timestamp': None,
|
155
|
+
'datetime': None,
|
157
156
|
'high': self.safe_string(ticker, 'high'),
|
158
157
|
'low': self.safe_string(ticker, 'low'),
|
159
158
|
'bid': None,
|
ccxt/probit.py
CHANGED
@@ -1015,7 +1015,7 @@ class probit(Exchange, ImplicitAPI):
|
|
1015
1015
|
fetches information on multiple closed orders made by the user
|
1016
1016
|
:param str symbol: unified market symbol of the market orders were made in
|
1017
1017
|
:param int [since]: the earliest time in ms to fetch orders for
|
1018
|
-
:param int [limit]: the maximum number of
|
1018
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1019
1019
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1020
1020
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1021
1021
|
"""
|
ccxt/test/test_async.py
CHANGED
@@ -24,6 +24,7 @@ import asyncio
|
|
24
24
|
# from typing import Optional
|
25
25
|
# from typing import List
|
26
26
|
from ccxt.base.errors import NotSupported
|
27
|
+
from ccxt.base.errors import ProxyError
|
27
28
|
from ccxt.base.errors import NetworkError
|
28
29
|
from ccxt.base.errors import ExchangeNotAvailable
|
29
30
|
from ccxt.base.errors import OnMaintenance
|
@@ -911,7 +912,7 @@ class testMainClass(baseMainTestClass):
|
|
911
912
|
try:
|
912
913
|
await call_exchange_method_dynamically(exchange, method, self.sanitize_data_input(data['input']))
|
913
914
|
except Exception as e:
|
914
|
-
if not (isinstance(e,
|
915
|
+
if not (isinstance(e, ProxyError)):
|
915
916
|
raise e
|
916
917
|
output = exchange.last_request_body
|
917
918
|
request_url = exchange.last_request_url
|
@@ -942,6 +943,7 @@ class testMainClass(baseMainTestClass):
|
|
942
943
|
'markets': markets,
|
943
944
|
'enableRateLimit': False,
|
944
945
|
'rateLimit': 1,
|
946
|
+
'httpProxy': 'http://fake:8080',
|
945
947
|
'httpsProxy': 'http://fake:8080',
|
946
948
|
'apiKey': 'key',
|
947
949
|
'secret': 'secretsecret',
|
ccxt/test/test_sync.py
CHANGED
@@ -23,6 +23,7 @@ import ccxt # noqa: E402
|
|
23
23
|
# from typing import Optional
|
24
24
|
# from typing import List
|
25
25
|
from ccxt.base.errors import NotSupported
|
26
|
+
from ccxt.base.errors import ProxyError
|
26
27
|
from ccxt.base.errors import NetworkError
|
27
28
|
from ccxt.base.errors import ExchangeNotAvailable
|
28
29
|
from ccxt.base.errors import OnMaintenance
|
@@ -910,7 +911,7 @@ class testMainClass(baseMainTestClass):
|
|
910
911
|
try:
|
911
912
|
call_exchange_method_dynamically(exchange, method, self.sanitize_data_input(data['input']))
|
912
913
|
except Exception as e:
|
913
|
-
if not (isinstance(e,
|
914
|
+
if not (isinstance(e, ProxyError)):
|
914
915
|
raise e
|
915
916
|
output = exchange.last_request_body
|
916
917
|
request_url = exchange.last_request_url
|
@@ -941,6 +942,7 @@ class testMainClass(baseMainTestClass):
|
|
941
942
|
'markets': markets,
|
942
943
|
'enableRateLimit': False,
|
943
944
|
'rateLimit': 1,
|
945
|
+
'httpProxy': 'http://fake:8080',
|
944
946
|
'httpsProxy': 'http://fake:8080',
|
945
947
|
'apiKey': 'key',
|
946
948
|
'secret': 'secretsecret',
|
ccxt/timex.py
CHANGED
@@ -957,7 +957,7 @@ class timex(Exchange, ImplicitAPI):
|
|
957
957
|
fetches information on multiple closed orders made by the user
|
958
958
|
:param str symbol: unified market symbol of the market orders were made in
|
959
959
|
:param int [since]: the earliest time in ms to fetch orders for
|
960
|
-
:param int [limit]: the maximum number of
|
960
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
961
961
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
962
962
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
963
963
|
"""
|
ccxt/tokocrypto.py
CHANGED
@@ -1827,7 +1827,7 @@ class tokocrypto(Exchange, ImplicitAPI):
|
|
1827
1827
|
fetches information on multiple closed orders made by the user
|
1828
1828
|
:param str symbol: unified market symbol of the market orders were made in
|
1829
1829
|
:param int [since]: the earliest time in ms to fetch orders for
|
1830
|
-
:param int [limit]: the maximum number of
|
1830
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1831
1831
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1832
1832
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1833
1833
|
"""
|
ccxt/upbit.py
CHANGED
@@ -1446,7 +1446,7 @@ class upbit(Exchange, ImplicitAPI):
|
|
1446
1446
|
fetches information on multiple closed orders made by the user
|
1447
1447
|
:param str symbol: unified market symbol of the market orders were made in
|
1448
1448
|
:param int [since]: the earliest time in ms to fetch orders for
|
1449
|
-
:param int [limit]: the maximum number of
|
1449
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1450
1450
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1451
1451
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1452
1452
|
"""
|
ccxt/wavesexchange.py
CHANGED
@@ -1543,7 +1543,7 @@ class wavesexchange(Exchange, ImplicitAPI):
|
|
1543
1543
|
fetches information on multiple closed orders made by the user
|
1544
1544
|
:param str symbol: unified market symbol of the market orders were made in
|
1545
1545
|
:param int [since]: the earliest time in ms to fetch orders for
|
1546
|
-
:param int [limit]: the maximum number of
|
1546
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1547
1547
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1548
1548
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1549
1549
|
"""
|
ccxt/whitebit.py
CHANGED
@@ -1334,7 +1334,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1334
1334
|
:see: https://docs.whitebit.com/private/http-trade-v4/#query-executed-orders
|
1335
1335
|
:param str symbol: unified market symbol of the market orders were made in
|
1336
1336
|
:param int [since]: the earliest time in ms to fetch orders for
|
1337
|
-
:param int [limit]: the maximum number of
|
1337
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1338
1338
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1339
1339
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1340
1340
|
"""
|
ccxt/woo.py
CHANGED
@@ -1118,7 +1118,7 @@ class woo(Exchange, ImplicitAPI):
|
|
1118
1118
|
fetches information on multiple orders made by the user
|
1119
1119
|
:param str symbol: unified market symbol of the market orders were made in
|
1120
1120
|
:param int [since]: the earliest time in ms to fetch orders for
|
1121
|
-
:param int [limit]: the maximum number of
|
1121
|
+
:param int [limit]: the maximum number of order structures to retrieve
|
1122
1122
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1123
1123
|
:param boolean [params.stop]: whether the order is a stop/algo order
|
1124
1124
|
:param boolean [params.isTriggered]: whether the order has been triggered(False by default)
|
ccxt/zaif.py
CHANGED
@@ -535,7 +535,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
535
535
|
fetches information on multiple closed orders made by the user
|
536
536
|
:param str symbol: unified market symbol of the market orders were made in
|
537
537
|
:param int [since]: the earliest time in ms to fetch orders for
|
538
|
-
:param int [limit]: the maximum number of
|
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
540
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
541
541
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 4.1.
|
3
|
+
Version: 4.1.97
|
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
|
@@ -257,13 +257,13 @@ console.log(version, Object.keys(exchanges));
|
|
257
257
|
|
258
258
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
259
259
|
|
260
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
261
|
-
* unpkg: https://unpkg.com/ccxt@4.1.
|
260
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.97/dist/ccxt.browser.js
|
261
|
+
* unpkg: https://unpkg.com/ccxt@4.1.97/dist/ccxt.browser.js
|
262
262
|
|
263
263
|
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.
|
264
264
|
|
265
265
|
```HTML
|
266
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
266
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.97/dist/ccxt.browser.js"></script>
|
267
267
|
```
|
268
268
|
|
269
269
|
Creates a global `ccxt` object:
|