ccxt 4.4.100__py2.py3-none-any.whl → 4.5.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/base/exchange.py +2 -2
- ccxt/async_support/coinbase.py +46 -34
- ccxt/async_support/gate.py +31 -17
- ccxt/async_support/gemini.py +1 -1
- ccxt/async_support/hibachi.py +1 -1
- ccxt/async_support/hyperliquid.py +13 -2
- ccxt/async_support/kraken.py +1 -8
- ccxt/async_support/krakenfutures.py +25 -25
- ccxt/async_support/mexc.py +2 -1
- ccxt/async_support/timex.py +35 -0
- ccxt/async_support/tradeogre.py +32 -0
- ccxt/async_support/wavesexchange.py +33 -0
- ccxt/base/errors.py +6 -0
- ccxt/base/exchange.py +7 -1
- ccxt/coinbase.py +46 -34
- ccxt/gate.py +31 -17
- ccxt/gemini.py +1 -1
- ccxt/hibachi.py +1 -1
- ccxt/hyperliquid.py +13 -2
- ccxt/kraken.py +1 -8
- ccxt/krakenfutures.py +25 -25
- ccxt/mexc.py +2 -1
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/bitget.py +179 -51
- ccxt/pro/bybit.py +8 -10
- ccxt/pro/gate.py +8 -1
- ccxt/pro/hyperliquid.py +2 -0
- ccxt/pro/kraken.py +1 -0
- ccxt/pro/lbank.py +56 -2
- ccxt/pro/mexc.py +11 -12
- ccxt/timex.py +35 -0
- ccxt/tradeogre.py +32 -0
- ccxt/wavesexchange.py +33 -0
- {ccxt-4.4.100.dist-info → ccxt-4.5.1.dist-info}/METADATA +5 -5
- {ccxt-4.4.100.dist-info → ccxt-4.5.1.dist-info}/RECORD +40 -40
- {ccxt-4.4.100.dist-info → ccxt-4.5.1.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.100.dist-info → ccxt-4.5.1.dist-info}/WHEEL +0 -0
- {ccxt-4.4.100.dist-info → ccxt-4.5.1.dist-info}/top_level.txt +0 -0
ccxt/krakenfutures.py
CHANGED
@@ -115,7 +115,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
115
115
|
},
|
116
116
|
'www': 'https://futures.kraken.com/',
|
117
117
|
'doc': [
|
118
|
-
'https://docs.
|
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.
|
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
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
546
546
|
"""
|
547
547
|
|
548
|
-
https://docs.
|
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.
|
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
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
713
713
|
"""
|
714
714
|
|
715
|
-
https://docs.
|
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
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
792
792
|
"""
|
793
793
|
|
794
|
-
https://docs.
|
795
|
-
https://docs.
|
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
|
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.
|
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
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1236
1236
|
"""
|
1237
1237
|
|
1238
|
-
https://docs.
|
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.
|
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
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1316
1316
|
"""
|
1317
1317
|
|
1318
|
-
https://docs.
|
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.
|
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
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1397
1397
|
"""
|
1398
1398
|
|
1399
|
-
https://docs.
|
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
|
def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1453
1453
|
"""
|
1454
1454
|
|
1455
|
-
https://docs.
|
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.
|
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
|
def fetch_balance(self, params={}) -> Balances:
|
1946
1946
|
"""
|
1947
1947
|
|
1948
|
-
https://docs.
|
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.
|
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.
|
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
|
def fetch_positions(self, symbols: Strings = None, params={}) -> List[Position]:
|
2292
2292
|
"""
|
2293
2293
|
|
2294
|
-
https://docs.
|
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.
|
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
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
2566
2566
|
"""
|
2567
2567
|
|
2568
|
-
https://docs.
|
2569
|
-
https://docs.
|
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.
|
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.
|
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.
|
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
|
ccxt/mexc.py
CHANGED
@@ -680,6 +680,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
680
680
|
'BNB Smart Chain(BEP20-RACAV1)': 'BSC',
|
681
681
|
'BNB Smart Chain(BEP20-RACAV2)': 'BSC',
|
682
682
|
'BNB Smart Chain(BEP20)': 'BSC',
|
683
|
+
'Ethereum(ERC20)': 'ERC20',
|
683
684
|
# TODO: uncomment below after deciding unified name
|
684
685
|
# 'PEPE COIN BSC':
|
685
686
|
# 'SMART BLOCKCHAIN':
|
@@ -4960,7 +4961,7 @@ class mexc(Exchange, ImplicitAPI):
|
|
4960
4961
|
# positionShowStatus: 'CLOSED'
|
4961
4962
|
# }
|
4962
4963
|
#
|
4963
|
-
market = self.safe_market(self.safe_string(position, 'symbol'), market)
|
4964
|
+
market = self.safe_market(self.safe_string(position, 'symbol'), market, None, 'swap')
|
4964
4965
|
symbol = market['symbol']
|
4965
4966
|
contracts = self.safe_string(position, 'holdVol')
|
4966
4967
|
entryPrice = self.safe_number(position, 'openAvgPrice')
|