ccxt 4.5.0__py2.py3-none-any.whl → 4.5.2__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 (64) hide show
  1. ccxt/__init__.py +1 -5
  2. ccxt/ascendex.py +1 -1
  3. ccxt/async_support/__init__.py +1 -5
  4. ccxt/async_support/ascendex.py +1 -1
  5. ccxt/async_support/base/exchange.py +1 -1
  6. ccxt/async_support/binance.py +17 -12
  7. ccxt/async_support/bitget.py +1 -1
  8. ccxt/async_support/coinbase.py +46 -34
  9. ccxt/async_support/gate.py +31 -17
  10. ccxt/async_support/gemini.py +1 -1
  11. ccxt/async_support/hibachi.py +1 -1
  12. ccxt/async_support/hyperliquid.py +13 -2
  13. ccxt/async_support/indodax.py +11 -12
  14. ccxt/async_support/kraken.py +1 -8
  15. ccxt/async_support/krakenfutures.py +25 -25
  16. ccxt/async_support/mexc.py +2 -1
  17. ccxt/async_support/okx.py +2 -2
  18. ccxt/async_support/poloniex.py +1 -1
  19. ccxt/async_support/timex.py +35 -0
  20. ccxt/async_support/tradeogre.py +32 -0
  21. ccxt/async_support/wavesexchange.py +33 -0
  22. ccxt/async_support/zonda.py +12 -0
  23. ccxt/base/exchange.py +7 -1
  24. ccxt/binance.py +17 -12
  25. ccxt/bitget.py +1 -1
  26. ccxt/coinbase.py +46 -34
  27. ccxt/gate.py +31 -17
  28. ccxt/gemini.py +1 -1
  29. ccxt/hibachi.py +1 -1
  30. ccxt/hyperliquid.py +13 -2
  31. ccxt/indodax.py +11 -12
  32. ccxt/kraken.py +1 -8
  33. ccxt/krakenfutures.py +25 -25
  34. ccxt/mexc.py +2 -1
  35. ccxt/okx.py +2 -2
  36. ccxt/poloniex.py +1 -1
  37. ccxt/pro/__init__.py +1 -3
  38. ccxt/pro/bitget.py +328 -75
  39. ccxt/pro/bitmart.py +1 -1
  40. ccxt/pro/bybit.py +8 -10
  41. ccxt/pro/gate.py +8 -1
  42. ccxt/pro/gemini.py +6 -2
  43. ccxt/pro/hyperliquid.py +6 -0
  44. ccxt/pro/kraken.py +4 -6
  45. ccxt/pro/lbank.py +56 -2
  46. ccxt/pro/mexc.py +1 -1
  47. ccxt/test/tests_async.py +2 -25
  48. ccxt/test/tests_sync.py +2 -25
  49. ccxt/timex.py +35 -0
  50. ccxt/tradeogre.py +32 -0
  51. ccxt/wavesexchange.py +33 -0
  52. ccxt/zonda.py +12 -0
  53. {ccxt-4.5.0.dist-info → ccxt-4.5.2.dist-info}/METADATA +111 -113
  54. {ccxt-4.5.0.dist-info → ccxt-4.5.2.dist-info}/RECORD +57 -64
  55. ccxt/abstract/ellipx.py +0 -25
  56. ccxt/abstract/vertex.py +0 -19
  57. ccxt/async_support/ellipx.py +0 -2029
  58. ccxt/async_support/vertex.py +0 -3050
  59. ccxt/ellipx.py +0 -2029
  60. ccxt/pro/vertex.py +0 -948
  61. ccxt/vertex.py +0 -3050
  62. {ccxt-4.5.0.dist-info → ccxt-4.5.2.dist-info}/LICENSE.txt +0 -0
  63. {ccxt-4.5.0.dist-info → ccxt-4.5.2.dist-info}/WHEEL +0 -0
  64. {ccxt-4.5.0.dist-info → ccxt-4.5.2.dist-info}/top_level.txt +0 -0
@@ -115,7 +115,7 @@ class krakenfutures(Exchange, ImplicitAPI):
115
115
  },
116
116
  'www': 'https://futures.kraken.com/',
117
117
  'doc': [
118
- 'https://docs.futures.kraken.com/#introduction',
118
+ 'https://docs.kraken.com/api/docs/futures-api/trading/market-data/',
119
119
  ],
120
120
  'fees': 'https://support.kraken.com/hc/en-us/articles/360022835771-Transaction-fees-and-rebates-for-Kraken-Futures',
121
121
  'referral': None,
@@ -378,7 +378,7 @@ class krakenfutures(Exchange, ImplicitAPI):
378
378
  """
379
379
  Fetches the available trading markets from the exchange, Multi-collateral markets are returned markets, but can be settled in multiple currencies
380
380
 
381
- https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
381
+ https://docs.kraken.com/api/docs/futures-api/trading/get-instruments
382
382
 
383
383
  :param dict [params]: exchange specific params
384
384
  :returns: An array of market structures
@@ -545,7 +545,7 @@ class krakenfutures(Exchange, ImplicitAPI):
545
545
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
546
546
  """
547
547
 
548
- https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-orderbook
548
+ https://docs.kraken.com/api/docs/futures-api/trading/get-orderbook
549
549
 
550
550
  Fetches a list of open orders in a market
551
551
  :param str symbol: Unified market symbol
@@ -596,7 +596,7 @@ class krakenfutures(Exchange, ImplicitAPI):
596
596
  """
597
597
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
598
598
 
599
- https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
599
+ https://docs.kraken.com/api/docs/futures-api/trading/get-tickers
600
600
 
601
601
  :param str[] symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
602
602
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -712,7 +712,7 @@ class krakenfutures(Exchange, ImplicitAPI):
712
712
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
713
713
  """
714
714
 
715
- https://docs.futures.kraken.com/#http-api-charts-candles
715
+ https://docs.kraken.com/api/docs/futures-api/charts/candles
716
716
 
717
717
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
718
718
  :param str symbol: unified symbol of the market to fetch OHLCV data for
@@ -791,8 +791,8 @@ class krakenfutures(Exchange, ImplicitAPI):
791
791
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
792
792
  """
793
793
 
794
- https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-trade-history
795
- https://docs.futures.kraken.com/#http-api-history-market-history-get-public-execution-events
794
+ https://docs.kraken.com/api/docs/futures-api/trading/get-history
795
+ https://docs.kraken.com/api/docs/futures-api/history/get-public-execution-events
796
796
 
797
797
  Fetch a history of filled trades that self account has made
798
798
  :param str symbol: Unified CCXT market symbol
@@ -1205,7 +1205,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1205
1205
  async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
1206
1206
  """
1207
1207
 
1208
- https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-edit-order
1208
+ https://docs.kraken.com/api/docs/futures-api/trading/edit-order-spring
1209
1209
 
1210
1210
  Edit an open order on the exchange
1211
1211
  :param str id: order id
@@ -1235,7 +1235,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1235
1235
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
1236
1236
  """
1237
1237
 
1238
- https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-order
1238
+ https://docs.kraken.com/api/docs/futures-api/trading/cancel-order
1239
1239
 
1240
1240
  Cancel an open order on the exchange
1241
1241
  :param str id: Order id
@@ -1256,7 +1256,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1256
1256
  """
1257
1257
  cancel multiple orders
1258
1258
 
1259
- https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-batch-order-management
1259
+ https://docs.kraken.com/api/docs/futures-api/trading/send-batch-order
1260
1260
 
1261
1261
  :param str[] ids: order ids
1262
1262
  :param str [symbol]: unified market symbol
@@ -1315,7 +1315,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1315
1315
  async def cancel_all_orders(self, symbol: Str = None, params={}):
1316
1316
  """
1317
1317
 
1318
- https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-all-orders
1318
+ https://docs.kraken.com/api/docs/futures-api/trading/cancel-all-orders
1319
1319
 
1320
1320
  Cancels all orders on the exchange, including trigger orders
1321
1321
  :param str symbol: Unified market symbol
@@ -1370,7 +1370,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1370
1370
  """
1371
1371
  dead man's switch, cancel all orders after the given timeout
1372
1372
 
1373
- https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-dead-man-39-s-switch
1373
+ https://docs.kraken.com/api/docs/futures-api/trading/cancel-all-orders-after
1374
1374
 
1375
1375
  :param number timeout: time in milliseconds, 0 represents cancel the timer
1376
1376
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1396,7 +1396,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1396
1396
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1397
1397
  """
1398
1398
 
1399
- https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-get-open-orders
1399
+ https://docs.kraken.com/api/docs/futures-api/trading/get-open-orders
1400
1400
 
1401
1401
  Gets all open orders, including trigger orders, for an account from the exchange api
1402
1402
  :param str symbol: Unified market symbol
@@ -1452,7 +1452,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1452
1452
  async def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1453
1453
  """
1454
1454
 
1455
- https://docs.futures.kraken.com/#http-api-history-account-history-get-order-events
1455
+ https://docs.kraken.com/api/docs/futures-api/history/get-order-events
1456
1456
 
1457
1457
  Gets all canceled orders, including trigger orders, for an account from the exchange api
1458
1458
  :param str symbol: Unified market symbol
@@ -1905,7 +1905,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1905
1905
  """
1906
1906
  fetch all trades made by the user
1907
1907
 
1908
- https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-data-get-your-fills
1908
+ https://docs.kraken.com/api/docs/futures-api/trading/get-fills
1909
1909
 
1910
1910
  :param str symbol: unified market symbol
1911
1911
  :param int [since]: *not used by the api* the earliest time in ms to fetch trades for
@@ -1945,7 +1945,7 @@ class krakenfutures(Exchange, ImplicitAPI):
1945
1945
  async def fetch_balance(self, params={}) -> Balances:
1946
1946
  """
1947
1947
 
1948
- https://docs.futures.kraken.com/#http-api-trading-v3-api-account-information-get-wallets
1948
+ https://docs.kraken.com/api/docs/futures-api/trading/get-accounts
1949
1949
 
1950
1950
  Fetch the balance for a sub-account, all sub-account balances are inside 'info' in the response
1951
1951
  :param dict [params]: Exchange specific parameters
@@ -2160,7 +2160,7 @@ class krakenfutures(Exchange, ImplicitAPI):
2160
2160
  """
2161
2161
  fetch the current funding rates for multiple markets
2162
2162
 
2163
- https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
2163
+ https://docs.kraken.com/api/docs/futures-api/trading/get-tickers
2164
2164
 
2165
2165
  :param str[] symbols: unified market symbols
2166
2166
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2243,7 +2243,7 @@ class krakenfutures(Exchange, ImplicitAPI):
2243
2243
  """
2244
2244
  fetches historical funding rate prices
2245
2245
 
2246
- https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-funding-rates-historical-funding-rates
2246
+ https://docs.kraken.com/api/docs/futures-api/trading/historical-funding-rates
2247
2247
 
2248
2248
  :param str symbol: unified symbol of the market to fetch the funding rate history for
2249
2249
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
@@ -2291,7 +2291,7 @@ class krakenfutures(Exchange, ImplicitAPI):
2291
2291
  async def fetch_positions(self, symbols: Strings = None, params={}) -> List[Position]:
2292
2292
  """
2293
2293
 
2294
- https://docs.futures.kraken.com/#http-api-trading-v3-api-account-information-get-open-positions
2294
+ https://docs.kraken.com/api/docs/futures-api/trading/get-open-positions
2295
2295
 
2296
2296
  Fetches current contract trading positions
2297
2297
  :param str[] symbols: List of unified symbols
@@ -2386,7 +2386,7 @@ class krakenfutures(Exchange, ImplicitAPI):
2386
2386
  """
2387
2387
  retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
2388
2388
 
2389
- https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
2389
+ https://docs.kraken.com/api/docs/futures-api/trading/get-instruments
2390
2390
 
2391
2391
  :param str[]|None symbols: list of unified market symbols
2392
2392
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2565,8 +2565,8 @@ class krakenfutures(Exchange, ImplicitAPI):
2565
2565
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
2566
2566
  """
2567
2567
 
2568
- https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-wallet-transfer
2569
- https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-withdrawal-to-spot-wallet
2568
+ https://docs.kraken.com/api/docs/futures-api/trading/transfer
2569
+ https://docs.kraken.com/api/docs/futures-api/trading/sub-account-transfer
2570
2570
 
2571
2571
  transfers currencies between sub-accounts
2572
2572
  :param str code: Unified currency code
@@ -2611,7 +2611,7 @@ class krakenfutures(Exchange, ImplicitAPI):
2611
2611
  """
2612
2612
  set the level of leverage for a market
2613
2613
 
2614
- https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-set-the-leverage-setting-for-a-market
2614
+ https://docs.kraken.com/api/docs/futures-api/trading/set-leverage-setting
2615
2615
 
2616
2616
  :param float leverage: the rate of leverage
2617
2617
  :param str symbol: unified market symbol
@@ -2634,7 +2634,7 @@ class krakenfutures(Exchange, ImplicitAPI):
2634
2634
  """
2635
2635
  fetch the set leverage for all contract and margin markets
2636
2636
 
2637
- https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
2637
+ https://docs.kraken.com/api/docs/futures-api/trading/get-leverage-setting
2638
2638
 
2639
2639
  :param str[] [symbols]: a list of unified market symbols
2640
2640
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2661,7 +2661,7 @@ class krakenfutures(Exchange, ImplicitAPI):
2661
2661
  """
2662
2662
  fetch the set leverage for a market
2663
2663
 
2664
- https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
2664
+ https://docs.kraken.com/api/docs/futures-api/trading/get-leverage-setting
2665
2665
 
2666
2666
  :param str symbol: unified market symbol
2667
2667
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -681,6 +681,7 @@ class mexc(Exchange, ImplicitAPI):
681
681
  'BNB Smart Chain(BEP20-RACAV1)': 'BSC',
682
682
  'BNB Smart Chain(BEP20-RACAV2)': 'BSC',
683
683
  'BNB Smart Chain(BEP20)': 'BSC',
684
+ 'Ethereum(ERC20)': 'ERC20',
684
685
  # TODO: uncomment below after deciding unified name
685
686
  # 'PEPE COIN BSC':
686
687
  # 'SMART BLOCKCHAIN':
@@ -4961,7 +4962,7 @@ class mexc(Exchange, ImplicitAPI):
4961
4962
  # positionShowStatus: 'CLOSED'
4962
4963
  # }
4963
4964
  #
4964
- market = self.safe_market(self.safe_string(position, 'symbol'), market)
4965
+ market = self.safe_market(self.safe_string(position, 'symbol'), market, None, 'swap')
4965
4966
  symbol = market['symbol']
4966
4967
  contracts = self.safe_string(position, 'holdVol')
4967
4968
  entryPrice = self.safe_number(position, 'openAvgPrice')
ccxt/async_support/okx.py CHANGED
@@ -1244,7 +1244,7 @@ class okx(Exchange, ImplicitAPI):
1244
1244
  'FUTURES': 'FUTURES',
1245
1245
  'OPTION': 'OPTION',
1246
1246
  },
1247
- 'brokerId': 'e847386590ce4dBC',
1247
+ 'brokerId': '6b9ad766b55dBCDE',
1248
1248
  },
1249
1249
  'features': {
1250
1250
  'default': {
@@ -6009,7 +6009,7 @@ class okx(Exchange, ImplicitAPI):
6009
6009
  self.check_required_credentials()
6010
6010
  # inject id in implicit api call
6011
6011
  if method == 'POST' and (path == 'trade/batch-orders' or path == 'trade/order-algo' or path == 'trade/order'):
6012
- brokerId = self.safe_string(self.options, 'brokerId', 'e847386590ce4dBC')
6012
+ brokerId = self.safe_string(self.options, 'brokerId', '6b9ad766b55dBCDE')
6013
6013
  if isinstance(params, list):
6014
6014
  for i in range(0, len(params)):
6015
6015
  entry = params[i]
@@ -2568,7 +2568,7 @@ class poloniex(Exchange, ImplicitAPI):
2568
2568
  # "scale" : "-1",
2569
2569
  # "asks" : ["23139.82", "0.317981", "23140", "0.191091", "23170.06", "0.01", "23200", "0.107758", "23230.55", "0.01", "23247.2", "0.154", "23254", "0.005121", "23263", "0.038", "23285.4", "0.308", "23300", "0.108896"],
2570
2570
  # "bids" : ["23139.74", "0.432092", "23139.73", "0.198592", "23123.21", "0.000886", "23123.2", "0.308", "23121.4", "0.154", "23105", "0.000789", "23100", "0.078175", "23069.1", "0.026276", "23068.83", "0.001329", "23051", "0.000048"],
2571
- # "ts" : 1659695219513
2571
+ # "ts" : 1659695219512
2572
2572
  # }
2573
2573
  #
2574
2574
  timestamp = self.safe_integer(response, 'time')
@@ -39,17 +39,27 @@ class timex(Exchange, ImplicitAPI):
39
39
  'future': False,
40
40
  'option': False,
41
41
  'addMargin': False,
42
+ 'borrowCrossMargin': False,
43
+ 'borrowIsolatedMargin': False,
44
+ 'borrowMargin': False,
42
45
  'cancelOrder': True,
43
46
  'cancelOrders': True,
47
+ 'closeAllPositions': False,
48
+ 'closePosition': False,
44
49
  'createOrder': True,
45
50
  'createReduceOnlyOrder': False,
46
51
  'createStopLimitOrder': False,
47
52
  'createStopMarketOrder': False,
48
53
  'createStopOrder': False,
49
54
  'editOrder': True,
55
+ 'fetchAllGreeks': False,
50
56
  'fetchBalance': True,
57
+ 'fetchBorrowInterest': False,
58
+ 'fetchBorrowRate': False,
51
59
  'fetchBorrowRateHistories': False,
52
60
  'fetchBorrowRateHistory': False,
61
+ 'fetchBorrowRates': False,
62
+ 'fetchBorrowRatesPerSymbol': False,
53
63
  'fetchClosedOrders': True,
54
64
  'fetchCrossBorrowRate': False,
55
65
  'fetchCrossBorrowRates': False,
@@ -60,21 +70,40 @@ class timex(Exchange, ImplicitAPI):
60
70
  'fetchDepositAddressesByNetwork': False,
61
71
  'fetchDeposits': True,
62
72
  'fetchFundingHistory': False,
73
+ 'fetchFundingInterval': False,
74
+ 'fetchFundingIntervals': False,
63
75
  'fetchFundingRate': False,
64
76
  'fetchFundingRateHistory': False,
65
77
  'fetchFundingRates': False,
78
+ 'fetchGreeks': False,
66
79
  'fetchIndexOHLCV': False,
67
80
  'fetchIsolatedBorrowRate': False,
68
81
  'fetchIsolatedBorrowRates': False,
82
+ 'fetchIsolatedPositions': False,
69
83
  'fetchLeverage': False,
84
+ 'fetchLeverages': False,
70
85
  'fetchLeverageTiers': False,
86
+ 'fetchLiquidations': False,
87
+ 'fetchLongShortRatio': False,
88
+ 'fetchLongShortRatioHistory': False,
89
+ 'fetchMarginAdjustmentHistory': False,
71
90
  'fetchMarginMode': False,
91
+ 'fetchMarginModes': False,
92
+ 'fetchMarketLeverageTiers': False,
72
93
  'fetchMarkets': True,
73
94
  'fetchMarkOHLCV': False,
95
+ 'fetchMarkPrice': False,
96
+ 'fetchMarkPrices': False,
97
+ 'fetchMyLiquidations': False,
98
+ 'fetchMySettlementHistory': False,
74
99
  'fetchMyTrades': True,
75
100
  'fetchOHLCV': True,
101
+ 'fetchOpenInterest': False,
76
102
  'fetchOpenInterestHistory': False,
103
+ 'fetchOpenInterests': False,
77
104
  'fetchOpenOrders': True,
105
+ 'fetchOption': False,
106
+ 'fetchOptionChain': False,
78
107
  'fetchOrder': True,
79
108
  'fetchOrderBook': True,
80
109
  'fetchPosition': False,
@@ -85,15 +114,21 @@ class timex(Exchange, ImplicitAPI):
85
114
  'fetchPositionsHistory': False,
86
115
  'fetchPositionsRisk': False,
87
116
  'fetchPremiumIndexOHLCV': False,
117
+ 'fetchSettlementHistory': False,
88
118
  'fetchTicker': True,
89
119
  'fetchTickers': True,
90
120
  'fetchTime': True,
91
121
  'fetchTrades': True,
92
122
  'fetchTradingFee': True, # maker fee only
123
+ 'fetchUnderlyingAssets': False,
124
+ 'fetchVolatilityHistory': False,
93
125
  'fetchWithdrawal': False,
94
126
  'fetchWithdrawals': True,
95
127
  'reduceMargin': False,
128
+ 'repayCrossMargin': False,
129
+ 'repayIsolatedMargin': False,
96
130
  'setLeverage': False,
131
+ 'setMargin': False,
97
132
  'setMarginMode': False,
98
133
  'setPositionMode': False,
99
134
  },
@@ -33,6 +33,9 @@ class tradeogre(Exchange, ImplicitAPI):
33
33
  'future': False,
34
34
  'option': False,
35
35
  'addMargin': False,
36
+ 'borrowCrossMargin': False,
37
+ 'borrowIsolatedMargin': False,
38
+ 'borrowMargin': False,
36
39
  'cancelAllOrders': True,
37
40
  'cancelOrder': True,
38
41
  'cancelOrders': False,
@@ -48,9 +51,14 @@ class tradeogre(Exchange, ImplicitAPI):
48
51
  'createStopMarketOrder': False,
49
52
  'createStopOrder': False,
50
53
  'fetchAccounts': False,
54
+ 'fetchAllGreeks': False,
51
55
  'fetchBalance': True,
52
56
  'fetchBorrowInterest': False,
57
+ 'fetchBorrowRate': False,
58
+ 'fetchBorrowRateHistories': False,
53
59
  'fetchBorrowRateHistory': False,
60
+ 'fetchBorrowRates': False,
61
+ 'fetchBorrowRatesPerSymbol': False,
54
62
  'fetchClosedOrders': False,
55
63
  'fetchCrossBorrowRate': False,
56
64
  'fetchCrossBorrowRates': False,
@@ -61,23 +69,42 @@ class tradeogre(Exchange, ImplicitAPI):
61
69
  'fetchDeposits': False,
62
70
  'fetchDepositsWithdrawals': False,
63
71
  'fetchFundingHistory': False,
72
+ 'fetchFundingInterval': False,
73
+ 'fetchFundingIntervals': False,
64
74
  'fetchFundingRate': False,
65
75
  'fetchFundingRateHistory': False,
66
76
  'fetchFundingRates': False,
77
+ 'fetchGreeks': False,
67
78
  'fetchIndexOHLCV': False,
68
79
  'fetchIsolatedBorrowRate': False,
69
80
  'fetchIsolatedBorrowRates': False,
81
+ 'fetchIsolatedPositions': False,
70
82
  'fetchLedger': False,
71
83
  'fetchLedgerEntry': False,
84
+ 'fetchLeverage': False,
85
+ 'fetchLeverages': False,
72
86
  'fetchLeverageTiers': False,
87
+ 'fetchLiquidations': False,
88
+ 'fetchLongShortRatio': False,
89
+ 'fetchLongShortRatioHistory': False,
90
+ 'fetchMarginAdjustmentHistory': False,
91
+ 'fetchMarginMode': False,
92
+ 'fetchMarginModes': False,
73
93
  'fetchMarketLeverageTiers': False,
74
94
  'fetchMarkets': True,
75
95
  'fetchMarkOHLCV': False,
96
+ 'fetchMarkPrice': False,
97
+ 'fetchMarkPrices': False,
98
+ 'fetchMyLiquidations': False,
99
+ 'fetchMySettlementHistory': False,
76
100
  'fetchMyTrades': False,
77
101
  'fetchOHLCV': True,
78
102
  'fetchOpenInterest': False,
79
103
  'fetchOpenInterestHistory': False,
104
+ 'fetchOpenInterests': False,
80
105
  'fetchOpenOrders': True,
106
+ 'fetchOption': False,
107
+ 'fetchOptionChain': False,
81
108
  'fetchOrder': True,
82
109
  'fetchOrderBook': True,
83
110
  'fetchOrderBooks': False,
@@ -91,6 +118,7 @@ class tradeogre(Exchange, ImplicitAPI):
91
118
  'fetchPositionsHistory': False,
92
119
  'fetchPositionsRisk': False,
93
120
  'fetchPremiumIndexOHLCV': False,
121
+ 'fetchSettlementHistory': False,
94
122
  'fetchTicker': True,
95
123
  'fetchTickers': True,
96
124
  'fetchTrades': True,
@@ -99,10 +127,14 @@ class tradeogre(Exchange, ImplicitAPI):
99
127
  'fetchTransactionFees': False,
100
128
  'fetchTransactions': False,
101
129
  'fetchTransfers': False,
130
+ 'fetchUnderlyingAssets': False,
131
+ 'fetchVolatilityHistory': False,
102
132
  'fetchWithdrawAddresses': False,
103
133
  'fetchWithdrawal': False,
104
134
  'fetchWithdrawals': False,
105
135
  'reduceMargin': False,
136
+ 'repayCrossMargin': False,
137
+ 'repayIsolatedMargin': False,
106
138
  'setLeverage': False,
107
139
  'setMargin': False,
108
140
  'setMarginMode': False,
@@ -42,6 +42,9 @@ class wavesexchange(Exchange, ImplicitAPI):
42
42
  'future': False,
43
43
  'option': False,
44
44
  'addMargin': False,
45
+ 'borrowCrossMargin': False,
46
+ 'borrowIsolatedMargin': False,
47
+ 'borrowMargin': False,
45
48
  'cancelOrder': True,
46
49
  'closeAllPositions': False,
47
50
  'closePosition': False,
@@ -51,9 +54,14 @@ class wavesexchange(Exchange, ImplicitAPI):
51
54
  'createStopLimitOrder': False,
52
55
  'createStopMarketOrder': False,
53
56
  'createStopOrder': False,
57
+ 'fetchAllGreeks': False,
54
58
  'fetchBalance': True,
59
+ 'fetchBorrowInterest': False,
60
+ 'fetchBorrowRate': False,
55
61
  'fetchBorrowRateHistories': False,
56
62
  'fetchBorrowRateHistory': False,
63
+ 'fetchBorrowRates': False,
64
+ 'fetchBorrowRatesPerSymbol': False,
57
65
  'fetchClosedOrders': True,
58
66
  'fetchCrossBorrowRate': False,
59
67
  'fetchCrossBorrowRates': False,
@@ -63,21 +71,40 @@ class wavesexchange(Exchange, ImplicitAPI):
63
71
  'fetchDepositWithdrawFee': 'emulated',
64
72
  'fetchDepositWithdrawFees': True,
65
73
  'fetchFundingHistory': False,
74
+ 'fetchFundingInterval': False,
75
+ 'fetchFundingIntervals': False,
66
76
  'fetchFundingRate': False,
67
77
  'fetchFundingRateHistory': False,
68
78
  'fetchFundingRates': False,
79
+ 'fetchGreeks': False,
69
80
  'fetchIndexOHLCV': False,
70
81
  'fetchIsolatedBorrowRate': False,
71
82
  'fetchIsolatedBorrowRates': False,
83
+ 'fetchIsolatedPositions': False,
72
84
  'fetchLeverage': False,
85
+ 'fetchLeverages': False,
73
86
  'fetchLeverageTiers': False,
87
+ 'fetchLiquidations': False,
88
+ 'fetchLongShortRatio': False,
89
+ 'fetchLongShortRatioHistory': False,
90
+ 'fetchMarginAdjustmentHistory': False,
74
91
  'fetchMarginMode': False,
92
+ 'fetchMarginModes': False,
93
+ 'fetchMarketLeverageTiers': False,
75
94
  'fetchMarkets': True,
76
95
  'fetchMarkOHLCV': False,
96
+ 'fetchMarkPrice': False,
97
+ 'fetchMarkPrices': False,
98
+ 'fetchMyLiquidations': False,
99
+ 'fetchMySettlementHistory': False,
77
100
  'fetchMyTrades': True,
78
101
  'fetchOHLCV': True,
102
+ 'fetchOpenInterest': False,
79
103
  'fetchOpenInterestHistory': False,
104
+ 'fetchOpenInterests': False,
80
105
  'fetchOpenOrders': True,
106
+ 'fetchOption': False,
107
+ 'fetchOptionChain': False,
81
108
  'fetchOrder': True,
82
109
  'fetchOrderBook': True,
83
110
  'fetchOrders': True,
@@ -89,14 +116,20 @@ class wavesexchange(Exchange, ImplicitAPI):
89
116
  'fetchPositionsHistory': False,
90
117
  'fetchPositionsRisk': False,
91
118
  'fetchPremiumIndexOHLCV': False,
119
+ 'fetchSettlementHistory': False,
92
120
  'fetchTicker': True,
93
121
  'fetchTickers': True,
94
122
  'fetchTrades': True,
95
123
  'fetchTransfer': False,
96
124
  'fetchTransfers': False,
125
+ 'fetchUnderlyingAssets': False,
126
+ 'fetchVolatilityHistory': False,
97
127
  'reduceMargin': False,
128
+ 'repayCrossMargin': False,
129
+ 'repayIsolatedMargin': False,
98
130
  'sandbox': True,
99
131
  'setLeverage': False,
132
+ 'setMargin': False,
100
133
  'setMarginMode': False,
101
134
  'setPositionMode': False,
102
135
  'signIn': True,
@@ -41,6 +41,9 @@ class zonda(Exchange, ImplicitAPI):
41
41
  'future': False,
42
42
  'option': False,
43
43
  'addMargin': False,
44
+ 'borrowCrossMargin': False,
45
+ 'borrowIsolatedMargin': False,
46
+ 'borrowMargin': False,
44
47
  'cancelAllOrders': False,
45
48
  'cancelOrder': True,
46
49
  'cancelOrders': False,
@@ -49,6 +52,7 @@ class zonda(Exchange, ImplicitAPI):
49
52
  'createDepositAddress': False,
50
53
  'createOrder': True,
51
54
  'createReduceOnlyOrder': False,
55
+ 'fetchAllGreeks': False,
52
56
  'fetchBalance': True,
53
57
  'fetchBorrowInterest': False,
54
58
  'fetchBorrowRate': False,
@@ -79,12 +83,15 @@ class zonda(Exchange, ImplicitAPI):
79
83
  'fetchLeverages': False,
80
84
  'fetchLeverageTiers': False,
81
85
  'fetchLiquidations': False,
86
+ 'fetchLongShortRatio': False,
87
+ 'fetchLongShortRatioHistory': False,
82
88
  'fetchMarginAdjustmentHistory': False,
83
89
  'fetchMarginMode': False,
84
90
  'fetchMarginModes': False,
85
91
  'fetchMarketLeverageTiers': False,
86
92
  'fetchMarkets': True,
87
93
  'fetchMarkOHLCV': False,
94
+ 'fetchMarkPrice': False,
88
95
  'fetchMarkPrices': False,
89
96
  'fetchMyLiquidations': False,
90
97
  'fetchMySettlementHistory': False,
@@ -92,6 +99,7 @@ class zonda(Exchange, ImplicitAPI):
92
99
  'fetchOHLCV': True,
93
100
  'fetchOpenInterest': False,
94
101
  'fetchOpenInterestHistory': False,
102
+ 'fetchOpenInterests': False,
95
103
  'fetchOpenOrder': False,
96
104
  'fetchOpenOrders': True,
97
105
  'fetchOption': False,
@@ -99,8 +107,11 @@ class zonda(Exchange, ImplicitAPI):
99
107
  'fetchOrderBook': True,
100
108
  'fetchOrderBooks': False,
101
109
  'fetchPosition': False,
110
+ 'fetchPositionHistory': False,
102
111
  'fetchPositionMode': False,
103
112
  'fetchPositions': False,
113
+ 'fetchPositionsForSymbol': False,
114
+ 'fetchPositionsHistory': False,
104
115
  'fetchPositionsRisk': False,
105
116
  'fetchPremiumIndexOHLCV': False,
106
117
  'fetchSettlementHistory': False,
@@ -121,6 +132,7 @@ class zonda(Exchange, ImplicitAPI):
121
132
  'reduceMargin': False,
122
133
  'repayCrossMargin': False,
123
134
  'repayIsolatedMargin': False,
135
+ 'repayMargin': False,
124
136
  'setLeverage': False,
125
137
  'setMargin': False,
126
138
  'setMarginMode': False,
ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.5.0'
7
+ __version__ = '4.5.2'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
@@ -2337,6 +2337,12 @@ class Exchange(object):
2337
2337
  # return the first index of the cache that can be applied to the orderbook or -1 if not possible
2338
2338
  return -1
2339
2339
 
2340
+ def arrays_concat(self, arraysOfArrays: List[Any]):
2341
+ result = []
2342
+ for i in range(0, len(arraysOfArrays)):
2343
+ result = self.array_concat(result, arraysOfArrays[i])
2344
+ return result
2345
+
2340
2346
  def find_timeframe(self, timeframe, timeframes=None):
2341
2347
  if timeframes is None:
2342
2348
  timeframes = self.timeframes