ccxt 4.4.29__py2.py3-none-any.whl → 4.4.31__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/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +564 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +198 -132
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +138 -53
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +203 -42
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +90 -39
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +138 -53
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +203 -42
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +90 -39
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +38 -13
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/test/tests_helpers.py +2 -2
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
@@ -290,7 +290,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
290
290
|
async def fetch_markets(self, params={}) -> List[Market]:
|
291
291
|
"""
|
292
292
|
Fetches the available trading markets from the exchange, Multi-collateral markets are returned markets, but can be settled in multiple currencies
|
293
|
-
|
293
|
+
|
294
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
|
295
|
+
|
294
296
|
:param dict [params]: exchange specific params
|
295
297
|
:returns: An array of market structures
|
296
298
|
"""
|
@@ -455,7 +457,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
455
457
|
|
456
458
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
457
459
|
"""
|
458
|
-
|
460
|
+
|
461
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-orderbook
|
462
|
+
|
459
463
|
Fetches a list of open orders in a market
|
460
464
|
:param str symbol: Unified market symbol
|
461
465
|
:param int [limit]: Not used by krakenfutures
|
@@ -504,7 +508,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
504
508
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
505
509
|
"""
|
506
510
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
507
|
-
|
511
|
+
|
512
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
|
513
|
+
|
508
514
|
:param str[] symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
509
515
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
510
516
|
:returns dict: an array of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -618,7 +624,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
618
624
|
|
619
625
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
620
626
|
"""
|
621
|
-
|
627
|
+
|
628
|
+
https://docs.futures.kraken.com/#http-api-charts-candles
|
629
|
+
|
622
630
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
623
631
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
624
632
|
:param str timeframe: the length of time each candle represents
|
@@ -695,8 +703,10 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
695
703
|
|
696
704
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
697
705
|
"""
|
698
|
-
|
699
|
-
|
706
|
+
|
707
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-trade-history
|
708
|
+
https://docs.futures.kraken.com/#http-api-history-market-history-get-public-execution-events
|
709
|
+
|
700
710
|
Fetch a history of filled trades that self account has made
|
701
711
|
:param str symbol: Unified CCXT market symbol
|
702
712
|
:param int [since]: Timestamp in ms of earliest trade. Not used by krakenfutures except in combination with params.until
|
@@ -998,12 +1008,15 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
998
1008
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
999
1009
|
"""
|
1000
1010
|
Create an order on the exchange
|
1001
|
-
|
1011
|
+
|
1012
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-send-order
|
1013
|
+
|
1002
1014
|
:param str symbol: unified market symbol
|
1003
1015
|
:param str type: 'limit' or 'market'
|
1004
1016
|
:param str side: 'buy' or 'sell'
|
1005
1017
|
:param float amount: number of contracts
|
1006
1018
|
:param float [price]: limit order price
|
1019
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1007
1020
|
:param bool [params.reduceOnly]: set if you wish the order to only reduce an existing position, any order which increases an existing position will be rejected, default is False
|
1008
1021
|
:param bool [params.postOnly]: set if you wish to make a postOnly order, default is False
|
1009
1022
|
:param str [params.clientOrderId]: UUID The order identity that is specified from the user, It must be globally unique
|
@@ -1011,6 +1024,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1011
1024
|
:param float [params.stopLossPrice]: the price that a stop loss order is triggered at
|
1012
1025
|
:param float [params.takeProfitPrice]: the price that a take profit order is triggered at
|
1013
1026
|
:param str [params.triggerSignal]: for triggerPrice, stopLossPrice and takeProfitPrice orders, the trigger price type, 'last', 'mark' or 'index', default is 'last'
|
1027
|
+
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
1014
1028
|
"""
|
1015
1029
|
await self.load_markets()
|
1016
1030
|
market = self.market(symbol)
|
@@ -1054,8 +1068,11 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1054
1068
|
async def create_orders(self, orders: List[OrderRequest], params={}):
|
1055
1069
|
"""
|
1056
1070
|
create a list of trade orders
|
1057
|
-
|
1071
|
+
|
1072
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-batch-order-management
|
1073
|
+
|
1058
1074
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
1075
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1059
1076
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
1060
1077
|
"""
|
1061
1078
|
await self.load_markets()
|
@@ -1100,7 +1117,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1100
1117
|
|
1101
1118
|
async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
1102
1119
|
"""
|
1103
|
-
|
1120
|
+
|
1121
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-edit-order
|
1122
|
+
|
1104
1123
|
Edit an open order on the exchange
|
1105
1124
|
:param str id: order id
|
1106
1125
|
:param str symbol: Not used by Krakenfutures
|
@@ -1128,7 +1147,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1128
1147
|
|
1129
1148
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1130
1149
|
"""
|
1131
|
-
|
1150
|
+
|
1151
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-order
|
1152
|
+
|
1132
1153
|
Cancel an open order on the exchange
|
1133
1154
|
:param str id: Order id
|
1134
1155
|
:param str symbol: Not used by Krakenfutures
|
@@ -1147,12 +1168,14 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1147
1168
|
async def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
|
1148
1169
|
"""
|
1149
1170
|
cancel multiple orders
|
1150
|
-
|
1171
|
+
|
1172
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-batch-order-management
|
1173
|
+
|
1151
1174
|
:param str[] ids: order ids
|
1152
1175
|
:param str [symbol]: unified market symbol
|
1153
1176
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1154
|
-
|
1155
|
-
|
1177
|
+
|
1178
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1156
1179
|
:param str[] [params.clientOrderIds]: max length 10 e.g. ["my_id_1","my_id_2"]
|
1157
1180
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1158
1181
|
"""
|
@@ -1204,7 +1227,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1204
1227
|
|
1205
1228
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1206
1229
|
"""
|
1207
|
-
|
1230
|
+
|
1231
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-all-orders
|
1232
|
+
|
1208
1233
|
Cancels all orders on the exchange, including trigger orders
|
1209
1234
|
:param str symbol: Unified market symbol
|
1210
1235
|
:param dict [params]: Exchange specific params
|
@@ -1257,7 +1282,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1257
1282
|
async def cancel_all_orders_after(self, timeout: Int, params={}):
|
1258
1283
|
"""
|
1259
1284
|
dead man's switch, cancel all orders after the given timeout
|
1260
|
-
|
1285
|
+
|
1286
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-dead-man-39-s-switch
|
1287
|
+
|
1261
1288
|
:param number timeout: time in milliseconds, 0 represents cancel the timer
|
1262
1289
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1263
1290
|
:returns dict: the api result
|
@@ -1281,7 +1308,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1281
1308
|
|
1282
1309
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1283
1310
|
"""
|
1284
|
-
|
1311
|
+
|
1312
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-get-open-orders
|
1313
|
+
|
1285
1314
|
Gets all open orders, including trigger orders, for an account from the exchange api
|
1286
1315
|
:param str symbol: Unified market symbol
|
1287
1316
|
:param int [since]: Timestamp(ms) of earliest order.(Not used by kraken api but filtered internally by CCXT)
|
@@ -1299,7 +1328,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1299
1328
|
|
1300
1329
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1301
1330
|
"""
|
1302
|
-
|
1331
|
+
|
1332
|
+
https://docs.futures.kraken.com/#http-api-history-account-history-get-order-events
|
1333
|
+
|
1303
1334
|
Gets all closed orders, including trigger orders, for an account from the exchange api
|
1304
1335
|
:param str symbol: Unified market symbol
|
1305
1336
|
:param int [since]: Timestamp(ms) of earliest order.
|
@@ -1333,7 +1364,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1333
1364
|
|
1334
1365
|
async def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1335
1366
|
"""
|
1336
|
-
|
1367
|
+
|
1368
|
+
https://docs.futures.kraken.com/#http-api-history-account-history-get-order-events
|
1369
|
+
|
1337
1370
|
Gets all canceled orders, including trigger orders, for an account from the exchange api
|
1338
1371
|
:param str symbol: Unified market symbol
|
1339
1372
|
:param int [since]: Timestamp(ms) of earliest order.
|
@@ -1785,7 +1818,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1785
1818
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1786
1819
|
"""
|
1787
1820
|
fetch all trades made by the user
|
1788
|
-
|
1821
|
+
|
1822
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-data-get-your-fills
|
1823
|
+
|
1789
1824
|
:param str symbol: unified market symbol
|
1790
1825
|
:param int [since]: *not used by the api* the earliest time in ms to fetch trades for
|
1791
1826
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1822,7 +1857,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
1822
1857
|
|
1823
1858
|
async def fetch_balance(self, params={}) -> Balances:
|
1824
1859
|
"""
|
1825
|
-
|
1860
|
+
|
1861
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-account-information-get-wallets
|
1862
|
+
|
1826
1863
|
Fetch the balance for a sub-account, all sub-account balances are inside 'info' in the response
|
1827
1864
|
:param dict [params]: Exchange specific parameters
|
1828
1865
|
:param str [params.type]: The sub-account type to query the balance of, possible values include 'flex', 'cash'/'main'/'funding', or a market symbol * defaults to 'flex' *
|
@@ -2035,7 +2072,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2035
2072
|
async def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
2036
2073
|
"""
|
2037
2074
|
fetch the current funding rates for multiple markets
|
2038
|
-
|
2075
|
+
|
2076
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
|
2077
|
+
|
2039
2078
|
:param str[] symbols: unified market symbols
|
2040
2079
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2041
2080
|
:returns Order[]: an array of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -2116,7 +2155,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2116
2155
|
async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2117
2156
|
"""
|
2118
2157
|
fetches historical funding rate prices
|
2119
|
-
|
2158
|
+
|
2159
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-funding-rates-historical-funding-rates
|
2160
|
+
|
2120
2161
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2121
2162
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2122
2163
|
:param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
|
@@ -2162,7 +2203,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2162
2203
|
|
2163
2204
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
2164
2205
|
"""
|
2165
|
-
|
2206
|
+
|
2207
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-account-information-get-open-positions
|
2208
|
+
|
2166
2209
|
Fetches current contract trading positions
|
2167
2210
|
:param str[] symbols: List of unified symbols
|
2168
2211
|
:param dict [params]: Not used by krakenfutures
|
@@ -2254,8 +2297,10 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2254
2297
|
|
2255
2298
|
async def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
|
2256
2299
|
"""
|
2257
|
-
:see: https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
|
2258
2300
|
retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
2301
|
+
|
2302
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
|
2303
|
+
|
2259
2304
|
:param str[]|None symbols: list of unified market symbols
|
2260
2305
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2261
2306
|
:returns dict: a dictionary of `leverage tiers structures <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`, indexed by market symbols
|
@@ -2311,9 +2356,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2311
2356
|
|
2312
2357
|
def parse_market_leverage_tiers(self, info, market: Market = None) -> List[LeverageTier]:
|
2313
2358
|
"""
|
2314
|
-
|
2315
|
-
|
2316
|
-
|
2359
|
+
@ignore
|
2360
|
+
@param info Exchange market response for 1 market
|
2361
|
+
@param market CCXT market
|
2317
2362
|
"""
|
2318
2363
|
#
|
2319
2364
|
# {
|
@@ -2349,8 +2394,8 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2349
2394
|
# }
|
2350
2395
|
#
|
2351
2396
|
marginLevels = self.safe_value(info, 'marginLevels')
|
2352
|
-
|
2353
|
-
market = self.safe_market(
|
2397
|
+
marketId = self.safe_string(info, 'symbol')
|
2398
|
+
market = self.safe_market(marketId, market)
|
2354
2399
|
tiers = []
|
2355
2400
|
for i in range(0, len(marginLevels)):
|
2356
2401
|
tier = marginLevels[i]
|
@@ -2362,6 +2407,7 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2362
2407
|
previousTier['notionalCap'] = notionalFloor
|
2363
2408
|
tiers.append({
|
2364
2409
|
'tier': self.sum(i, 1),
|
2410
|
+
'symbol': self.safe_symbol(marketId, market),
|
2365
2411
|
'currency': market['quote'],
|
2366
2412
|
'notionalFloor': notionalFloor,
|
2367
2413
|
'notionalCap': None,
|
@@ -2429,8 +2475,10 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2429
2475
|
|
2430
2476
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
2431
2477
|
"""
|
2432
|
-
|
2433
|
-
|
2478
|
+
|
2479
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-wallet-transfer
|
2480
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-withdrawal-to-spot-wallet
|
2481
|
+
|
2434
2482
|
transfers currencies between sub-accounts
|
2435
2483
|
:param str code: Unified currency code
|
2436
2484
|
:param float amount: Size of the transfer
|
@@ -2473,7 +2521,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2473
2521
|
async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
2474
2522
|
"""
|
2475
2523
|
set the level of leverage for a market
|
2476
|
-
|
2524
|
+
|
2525
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-set-the-leverage-setting-for-a-market
|
2526
|
+
|
2477
2527
|
:param float leverage: the rate of leverage
|
2478
2528
|
:param str symbol: unified market symbol
|
2479
2529
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2494,7 +2544,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2494
2544
|
async def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages:
|
2495
2545
|
"""
|
2496
2546
|
fetch the set leverage for all contract and margin markets
|
2497
|
-
|
2547
|
+
|
2548
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
|
2549
|
+
|
2498
2550
|
:param str[] [symbols]: a list of unified market symbols
|
2499
2551
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2500
2552
|
:returns dict: a list of `leverage structures <https://docs.ccxt.com/#/?id=leverage-structure>`
|
@@ -2519,7 +2571,9 @@ class krakenfutures(Exchange, ImplicitAPI):
|
|
2519
2571
|
async def fetch_leverage(self, symbol: str, params={}) -> Leverage:
|
2520
2572
|
"""
|
2521
2573
|
fetch the set leverage for a market
|
2522
|
-
|
2574
|
+
|
2575
|
+
https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
|
2576
|
+
|
2523
2577
|
:param str symbol: unified market symbol
|
2524
2578
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2525
2579
|
:returns dict: a `leverage structure <https://docs.ccxt.com/#/?id=leverage-structure>`
|