ccxt 4.4.30__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.
Files changed (267) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +36 -12
  3. ccxt/alpaca.py +62 -22
  4. ccxt/ascendex.py +65 -30
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +36 -12
  7. ccxt/async_support/alpaca.py +62 -22
  8. ccxt/async_support/ascendex.py +65 -30
  9. ccxt/async_support/base/exchange.py +3 -3
  10. ccxt/async_support/bigone.py +71 -27
  11. ccxt/async_support/binance.py +555 -323
  12. ccxt/async_support/bingx.py +208 -108
  13. ccxt/async_support/bit2c.py +34 -12
  14. ccxt/async_support/bitbank.py +42 -14
  15. ccxt/async_support/bitbns.py +17 -9
  16. ccxt/async_support/bitfinex.py +68 -24
  17. ccxt/async_support/bitfinex2.py +116 -44
  18. ccxt/async_support/bitflyer.py +54 -18
  19. ccxt/async_support/bitget.py +277 -145
  20. ccxt/async_support/bithumb.py +39 -14
  21. ccxt/async_support/bitmart.py +145 -79
  22. ccxt/async_support/bitmex.py +90 -30
  23. ccxt/async_support/bitopro.py +66 -22
  24. ccxt/async_support/bitrue.py +109 -57
  25. ccxt/async_support/bitso.py +55 -19
  26. ccxt/async_support/bitstamp.py +84 -36
  27. ccxt/async_support/bitteam.py +51 -17
  28. ccxt/async_support/bitvavo.py +57 -19
  29. ccxt/async_support/bl3p.py +26 -10
  30. ccxt/async_support/blockchaincom.py +63 -21
  31. ccxt/async_support/blofin.py +95 -38
  32. ccxt/async_support/btcalpha.py +48 -16
  33. ccxt/async_support/btcbox.py +27 -9
  34. ccxt/async_support/btcmarkets.py +57 -19
  35. ccxt/async_support/btcturk.py +36 -12
  36. ccxt/async_support/bybit.py +251 -95
  37. ccxt/async_support/cex.py +65 -22
  38. ccxt/async_support/coinbase.py +138 -56
  39. ccxt/async_support/coinbaseexchange.py +76 -28
  40. ccxt/async_support/coinbaseinternational.py +75 -27
  41. ccxt/async_support/coincatch.py +191 -97
  42. ccxt/async_support/coincheck.py +33 -11
  43. ccxt/async_support/coinex.py +212 -101
  44. ccxt/async_support/coinlist.py +87 -30
  45. ccxt/async_support/coinmate.py +55 -24
  46. ccxt/async_support/coinmetro.py +52 -18
  47. ccxt/async_support/coinone.py +27 -10
  48. ccxt/async_support/coinsph.py +73 -27
  49. ccxt/async_support/coinspot.py +25 -9
  50. ccxt/async_support/cryptocom.py +103 -38
  51. ccxt/async_support/currencycom.py +70 -23
  52. ccxt/async_support/delta.py +90 -30
  53. ccxt/async_support/deribit.py +131 -50
  54. ccxt/async_support/digifinex.py +114 -51
  55. ccxt/async_support/exmo.py +104 -45
  56. ccxt/async_support/gate.py +298 -155
  57. ccxt/async_support/gemini.py +57 -20
  58. ccxt/async_support/hashkey.py +151 -66
  59. ccxt/async_support/hitbtc.py +156 -73
  60. ccxt/async_support/hollaex.py +76 -25
  61. ccxt/async_support/htx.py +297 -240
  62. ccxt/async_support/huobijp.py +1 -0
  63. ccxt/async_support/hyperliquid.py +94 -38
  64. ccxt/async_support/idex.py +73 -24
  65. ccxt/async_support/independentreserve.py +12 -5
  66. ccxt/async_support/indodax.py +53 -16
  67. ccxt/async_support/kraken.py +107 -35
  68. ccxt/async_support/krakenfutures.py +88 -34
  69. ccxt/async_support/kucoin.py +211 -109
  70. ccxt/async_support/kucoinfutures.py +119 -42
  71. ccxt/async_support/kuna.py +80 -39
  72. ccxt/async_support/latoken.py +70 -33
  73. ccxt/async_support/lbank.py +89 -38
  74. ccxt/async_support/luno.py +54 -19
  75. ccxt/async_support/lykke.py +54 -19
  76. ccxt/async_support/mercado.py +1 -0
  77. ccxt/async_support/mexc.py +226 -108
  78. ccxt/async_support/ndax.py +58 -19
  79. ccxt/async_support/novadax.py +67 -22
  80. ccxt/async_support/oceanex.py +58 -19
  81. ccxt/async_support/okcoin.py +81 -38
  82. ccxt/async_support/okx.py +270 -109
  83. ccxt/async_support/onetrading.py +3 -1
  84. ccxt/async_support/oxfun.py +95 -36
  85. ccxt/async_support/p2b.py +49 -23
  86. ccxt/async_support/paradex.py +75 -27
  87. ccxt/async_support/paymium.py +31 -11
  88. ccxt/async_support/phemex.py +91 -41
  89. ccxt/async_support/poloniex.py +80 -30
  90. ccxt/async_support/poloniexfutures.py +72 -30
  91. ccxt/async_support/probit.py +64 -22
  92. ccxt/async_support/timex.py +58 -19
  93. ccxt/async_support/tokocrypto.py +63 -22
  94. ccxt/async_support/tradeogre.py +7 -2
  95. ccxt/async_support/upbit.py +72 -25
  96. ccxt/async_support/vertex.py +74 -28
  97. ccxt/async_support/wavesexchange.py +29 -8
  98. ccxt/async_support/wazirx.py +51 -17
  99. ccxt/async_support/whitebit.py +105 -41
  100. ccxt/async_support/woo.py +162 -65
  101. ccxt/async_support/woofipro.py +118 -49
  102. ccxt/async_support/xt.py +150 -73
  103. ccxt/async_support/yobit.py +49 -16
  104. ccxt/async_support/zaif.py +30 -10
  105. ccxt/async_support/zonda.py +46 -16
  106. ccxt/base/exchange.py +34 -34
  107. ccxt/base/types.py +1 -0
  108. ccxt/bigone.py +71 -27
  109. ccxt/binance.py +555 -323
  110. ccxt/bingx.py +208 -108
  111. ccxt/bit2c.py +34 -12
  112. ccxt/bitbank.py +42 -14
  113. ccxt/bitbns.py +17 -9
  114. ccxt/bitfinex.py +68 -24
  115. ccxt/bitfinex2.py +116 -44
  116. ccxt/bitflyer.py +54 -18
  117. ccxt/bitget.py +277 -145
  118. ccxt/bithumb.py +39 -14
  119. ccxt/bitmart.py +145 -79
  120. ccxt/bitmex.py +90 -30
  121. ccxt/bitopro.py +66 -22
  122. ccxt/bitrue.py +109 -57
  123. ccxt/bitso.py +55 -19
  124. ccxt/bitstamp.py +84 -36
  125. ccxt/bitteam.py +51 -17
  126. ccxt/bitvavo.py +57 -19
  127. ccxt/bl3p.py +26 -10
  128. ccxt/blockchaincom.py +63 -21
  129. ccxt/blofin.py +95 -38
  130. ccxt/btcalpha.py +48 -16
  131. ccxt/btcbox.py +27 -9
  132. ccxt/btcmarkets.py +57 -19
  133. ccxt/btcturk.py +36 -12
  134. ccxt/bybit.py +251 -95
  135. ccxt/cex.py +65 -22
  136. ccxt/coinbase.py +138 -56
  137. ccxt/coinbaseexchange.py +76 -28
  138. ccxt/coinbaseinternational.py +75 -27
  139. ccxt/coincatch.py +191 -97
  140. ccxt/coincheck.py +33 -11
  141. ccxt/coinex.py +212 -101
  142. ccxt/coinlist.py +87 -30
  143. ccxt/coinmate.py +55 -24
  144. ccxt/coinmetro.py +52 -18
  145. ccxt/coinone.py +27 -10
  146. ccxt/coinsph.py +73 -27
  147. ccxt/coinspot.py +25 -9
  148. ccxt/cryptocom.py +103 -38
  149. ccxt/currencycom.py +70 -23
  150. ccxt/delta.py +90 -30
  151. ccxt/deribit.py +131 -50
  152. ccxt/digifinex.py +114 -51
  153. ccxt/exmo.py +104 -45
  154. ccxt/gate.py +298 -155
  155. ccxt/gemini.py +57 -20
  156. ccxt/hashkey.py +151 -66
  157. ccxt/hitbtc.py +156 -73
  158. ccxt/hollaex.py +76 -25
  159. ccxt/htx.py +297 -240
  160. ccxt/huobijp.py +1 -0
  161. ccxt/hyperliquid.py +94 -38
  162. ccxt/idex.py +73 -24
  163. ccxt/independentreserve.py +12 -5
  164. ccxt/indodax.py +53 -16
  165. ccxt/kraken.py +107 -35
  166. ccxt/krakenfutures.py +88 -34
  167. ccxt/kucoin.py +211 -109
  168. ccxt/kucoinfutures.py +119 -42
  169. ccxt/kuna.py +80 -39
  170. ccxt/latoken.py +70 -33
  171. ccxt/lbank.py +89 -38
  172. ccxt/luno.py +54 -19
  173. ccxt/lykke.py +54 -19
  174. ccxt/mercado.py +1 -0
  175. ccxt/mexc.py +226 -108
  176. ccxt/ndax.py +58 -19
  177. ccxt/novadax.py +67 -22
  178. ccxt/oceanex.py +58 -19
  179. ccxt/okcoin.py +81 -38
  180. ccxt/okx.py +270 -109
  181. ccxt/onetrading.py +3 -1
  182. ccxt/oxfun.py +95 -36
  183. ccxt/p2b.py +49 -23
  184. ccxt/paradex.py +75 -27
  185. ccxt/paymium.py +31 -11
  186. ccxt/phemex.py +91 -41
  187. ccxt/poloniex.py +80 -30
  188. ccxt/poloniexfutures.py +72 -30
  189. ccxt/pro/__init__.py +1 -1
  190. ccxt/pro/alpaca.py +15 -5
  191. ccxt/pro/ascendex.py +18 -6
  192. ccxt/pro/binance.py +200 -119
  193. ccxt/pro/bingx.py +44 -24
  194. ccxt/pro/bitfinex.py +13 -5
  195. ccxt/pro/bitget.py +75 -36
  196. ccxt/pro/bithumb.py +12 -4
  197. ccxt/pro/bitmart.py +44 -20
  198. ccxt/pro/bitmex.py +42 -14
  199. ccxt/pro/bitopro.py +15 -5
  200. ccxt/pro/bitrue.py +7 -3
  201. ccxt/pro/bitvavo.py +51 -17
  202. ccxt/pro/blockchaincom.py +18 -6
  203. ccxt/pro/blofin.py +36 -12
  204. ccxt/pro/bybit.py +100 -42
  205. ccxt/pro/cex.py +48 -16
  206. ccxt/pro/coinbase.py +32 -12
  207. ccxt/pro/coinbaseexchange.py +1 -1
  208. ccxt/pro/coinbaseinternational.py +34 -14
  209. ccxt/pro/coincatch.py +54 -19
  210. ccxt/pro/coincheck.py +6 -2
  211. ccxt/pro/coinex.py +40 -20
  212. ccxt/pro/coinone.py +9 -3
  213. ccxt/pro/cryptocom.py +70 -26
  214. ccxt/pro/deribit.py +36 -12
  215. ccxt/pro/exmo.py +10 -4
  216. ccxt/pro/gate.py +64 -30
  217. ccxt/pro/gemini.py +21 -7
  218. ccxt/pro/hashkey.py +26 -8
  219. ccxt/pro/hitbtc.py +61 -37
  220. ccxt/pro/hollaex.py +15 -5
  221. ccxt/pro/htx.py +39 -21
  222. ccxt/pro/hyperliquid.py +41 -14
  223. ccxt/pro/kraken.py +49 -17
  224. ccxt/pro/krakenfutures.py +47 -24
  225. ccxt/pro/kucoin.py +60 -31
  226. ccxt/pro/kucoinfutures.py +41 -19
  227. ccxt/pro/lbank.py +27 -9
  228. ccxt/pro/luno.py +3 -1
  229. ccxt/pro/mexc.py +35 -17
  230. ccxt/pro/ndax.py +12 -4
  231. ccxt/pro/okcoin.py +18 -6
  232. ccxt/pro/okx.py +76 -28
  233. ccxt/pro/onetrading.py +21 -7
  234. ccxt/pro/oxfun.py +54 -20
  235. ccxt/pro/p2b.py +23 -11
  236. ccxt/pro/paradex.py +12 -4
  237. ccxt/pro/phemex.py +31 -19
  238. ccxt/pro/poloniex.py +50 -22
  239. ccxt/pro/poloniexfutures.py +17 -7
  240. ccxt/pro/probit.py +18 -6
  241. ccxt/pro/upbit.py +25 -9
  242. ccxt/pro/vertex.py +20 -6
  243. ccxt/pro/wazirx.py +21 -7
  244. ccxt/pro/whitebit.py +25 -9
  245. ccxt/pro/woo.py +32 -12
  246. ccxt/pro/woofipro.py +35 -13
  247. ccxt/pro/xt.py +46 -26
  248. ccxt/probit.py +64 -22
  249. ccxt/timex.py +58 -19
  250. ccxt/tokocrypto.py +63 -22
  251. ccxt/tradeogre.py +7 -2
  252. ccxt/upbit.py +72 -25
  253. ccxt/vertex.py +74 -28
  254. ccxt/wavesexchange.py +29 -8
  255. ccxt/wazirx.py +51 -17
  256. ccxt/whitebit.py +105 -41
  257. ccxt/woo.py +162 -65
  258. ccxt/woofipro.py +118 -49
  259. ccxt/xt.py +150 -73
  260. ccxt/yobit.py +49 -16
  261. ccxt/zaif.py +30 -10
  262. ccxt/zonda.py +46 -16
  263. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
  264. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
  265. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
  266. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
  267. {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/krakenfutures.py CHANGED
@@ -290,7 +290,9 @@ class krakenfutures(Exchange, ImplicitAPI):
290
290
  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
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-instrument-details-get-instruments
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
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
457
459
  """
458
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-orderbook
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
  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
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
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
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
620
626
  """
621
- :see: https://docs.futures.kraken.com/#http-api-charts-candles
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
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
697
705
  """
698
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-trade-history
699
- :see: https://docs.futures.kraken.com/#http-api-history-market-history-get-public-execution-events
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
  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
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-send-order
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
  self.load_markets()
1016
1030
  market = self.market(symbol)
@@ -1054,8 +1068,11 @@ class krakenfutures(Exchange, ImplicitAPI):
1054
1068
  def create_orders(self, orders: List[OrderRequest], params={}):
1055
1069
  """
1056
1070
  create a list of trade orders
1057
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-batch-order-management
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
  self.load_markets()
@@ -1100,7 +1117,9 @@ class krakenfutures(Exchange, ImplicitAPI):
1100
1117
 
1101
1118
  def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
1102
1119
  """
1103
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-edit-order
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
  def cancel_order(self, id: str, symbol: Str = None, params={}):
1130
1149
  """
1131
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-order
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
  def cancel_orders(self, ids: List[str], symbol: Str = None, params={}):
1148
1169
  """
1149
1170
  cancel multiple orders
1150
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-batch-order-management
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
- * EXCHANGE SPECIFIC PARAMETERS
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
  def cancel_all_orders(self, symbol: Str = None, params={}):
1206
1229
  """
1207
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-all-orders
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
  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
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-dead-man-39-s-switch
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
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1283
1310
  """
1284
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-get-open-orders
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
  def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1301
1330
  """
1302
- :see: https://docs.futures.kraken.com/#http-api-history-account-history-get-order-events
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
  def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1335
1366
  """
1336
- :see: https://docs.futures.kraken.com/#http-api-history-account-history-get-order-events
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
  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
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-data-get-your-fills
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
  def fetch_balance(self, params={}) -> Balances:
1824
1859
  """
1825
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-account-information-get-wallets
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
  def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
2036
2073
  """
2037
2074
  fetch the current funding rates for multiple markets
2038
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
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
  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
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-funding-rates-historical-funding-rates
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
  def fetch_positions(self, symbols: Strings = None, params={}):
2164
2205
  """
2165
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-account-information-get-open-positions
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
  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
- * @ignore
2315
- * @param info Exchange market response for 1 market
2316
- * @param market CCXT market
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
- id = self.safe_string(info, 'symbol')
2353
- market = self.safe_market(id, 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
  def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
2431
2477
  """
2432
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-wallet-transfer
2433
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-transfers-initiate-withdrawal-to-spot-wallet
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
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
2474
2522
  """
2475
2523
  set the level of leverage for a market
2476
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-set-the-leverage-setting-for-a-market
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
  def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages:
2495
2545
  """
2496
2546
  fetch the set leverage for all contract and margin markets
2497
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
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
  def fetch_leverage(self, symbol: str, params={}) -> Leverage:
2520
2572
  """
2521
2573
  fetch the set leverage for a market
2522
- :see: https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
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>`