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/digifinex.py CHANGED
@@ -809,9 +809,11 @@ class digifinex(Exchange, ImplicitAPI):
809
809
  def fetch_balance(self, params={}) -> Balances:
810
810
  """
811
811
  query for balance and get the amount of funds available for trading or funds locked in orders
812
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
813
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
814
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
812
+
813
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
814
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
815
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
816
+
815
817
  :param dict [params]: extra parameters specific to the exchange API endpoint
816
818
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
817
819
  """
@@ -872,8 +874,10 @@ class digifinex(Exchange, ImplicitAPI):
872
874
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
873
875
  """
874
876
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
875
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-orderbook
876
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
877
+
878
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-orderbook
879
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
880
+
877
881
  :param str symbol: unified symbol of the market to fetch the order book for
878
882
  :param int [limit]: the maximum amount of order book entries to return
879
883
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -943,8 +947,10 @@ class digifinex(Exchange, ImplicitAPI):
943
947
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
944
948
  """
945
949
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
946
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
947
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
950
+
951
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
952
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
953
+
948
954
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
949
955
  :param dict [params]: extra parameters specific to the exchange API endpoint
950
956
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1026,8 +1032,10 @@ class digifinex(Exchange, ImplicitAPI):
1026
1032
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
1027
1033
  """
1028
1034
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1029
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
1030
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
1035
+
1036
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
1037
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
1038
+
1031
1039
  :param str symbol: unified symbol of the market to fetch the ticker for
1032
1040
  :param dict [params]: extra parameters specific to the exchange API endpoint
1033
1041
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1341,8 +1349,10 @@ class digifinex(Exchange, ImplicitAPI):
1341
1349
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1342
1350
  """
1343
1351
  get the list of most recent trades for a particular symbol
1344
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-recent-trades
1345
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#recenttrades
1352
+
1353
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-recent-trades
1354
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#recenttrades
1355
+
1346
1356
  :param str symbol: unified symbol of the market to fetch trades for
1347
1357
  :param int [since]: timestamp in ms of the earliest trade to fetch
1348
1358
  :param int [limit]: the maximum amount of trades to fetch
@@ -1438,8 +1448,10 @@ class digifinex(Exchange, ImplicitAPI):
1438
1448
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1439
1449
  """
1440
1450
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1441
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-candles-data
1442
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#recentcandle
1451
+
1452
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-candles-data
1453
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#recentcandle
1454
+
1443
1455
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1444
1456
  :param str timeframe: the length of time each candle represents
1445
1457
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1510,8 +1522,10 @@ class digifinex(Exchange, ImplicitAPI):
1510
1522
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1511
1523
  """
1512
1524
  create a trade order
1513
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1514
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderplace
1525
+
1526
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1527
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderplace
1528
+
1515
1529
  :param str symbol: unified symbol of the market to create an order in
1516
1530
  :param str type: 'market' or 'limit'
1517
1531
  :param str side: 'buy' or 'sell'
@@ -1564,8 +1578,10 @@ class digifinex(Exchange, ImplicitAPI):
1564
1578
  def create_orders(self, orders: List[OrderRequest], params={}):
1565
1579
  """
1566
1580
  create a list of trade orders(all orders should be of the same symbol)
1567
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-multiple-order
1568
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#batchorder
1581
+
1582
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-multiple-order
1583
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#batchorder
1584
+
1569
1585
  :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
1570
1586
  :param dict [params]: extra parameters specific to the exchange API endpoint
1571
1587
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1646,7 +1662,7 @@ class digifinex(Exchange, ImplicitAPI):
1646
1662
 
1647
1663
  def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1648
1664
  """
1649
- * @ignore
1665
+ @ignore
1650
1666
  helper function to build request
1651
1667
  :param str symbol: unified symbol of the market to create an order in
1652
1668
  :param str type: 'market' or 'limit'
@@ -1738,7 +1754,9 @@ class digifinex(Exchange, ImplicitAPI):
1738
1754
  def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
1739
1755
  """
1740
1756
  create a market buy order by providing the symbol and cost
1741
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1757
+
1758
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1759
+
1742
1760
  :param str symbol: unified symbol of the market to create an order in
1743
1761
  :param float cost: how much you want to trade in units of the quote currency
1744
1762
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1754,8 +1772,10 @@ class digifinex(Exchange, ImplicitAPI):
1754
1772
  def cancel_order(self, id: str, symbol: Str = None, params={}):
1755
1773
  """
1756
1774
  cancels an open order
1757
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
1758
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
1775
+
1776
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
1777
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
1778
+
1759
1779
  :param str id: order id
1760
1780
  :param str symbol: not used by digifinex cancelOrder()
1761
1781
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2020,8 +2040,10 @@ class digifinex(Exchange, ImplicitAPI):
2020
2040
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2021
2041
  """
2022
2042
  fetch all unfilled currently open orders
2023
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#current-active-orders
2024
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#openorder
2043
+
2044
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#current-active-orders
2045
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#openorder
2046
+
2025
2047
  :param str symbol: unified market symbol
2026
2048
  :param int [since]: the earliest time in ms to fetch open orders for
2027
2049
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -2114,8 +2136,10 @@ class digifinex(Exchange, ImplicitAPI):
2114
2136
  def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2115
2137
  """
2116
2138
  fetches information on multiple orders made by the user
2117
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-all-orders-including-history-orders
2118
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
2139
+
2140
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-all-orders-including-history-orders
2141
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
2142
+
2119
2143
  :param str symbol: unified market symbol of the market orders were made in
2120
2144
  :param int [since]: the earliest time in ms to fetch orders for
2121
2145
  :param int [limit]: the maximum number of order structures to retrieve
@@ -2209,8 +2233,10 @@ class digifinex(Exchange, ImplicitAPI):
2209
2233
  def fetch_order(self, id: str, symbol: Str = None, params={}):
2210
2234
  """
2211
2235
  fetches information on an order made by the user
2212
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-order-status
2213
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
2236
+
2237
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-order-status
2238
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
2239
+
2214
2240
  :param str id: order id
2215
2241
  :param str symbol: unified symbol of the market the order was made in
2216
2242
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2298,8 +2324,10 @@ class digifinex(Exchange, ImplicitAPI):
2298
2324
  def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2299
2325
  """
2300
2326
  fetch all trades made by the user
2301
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#customer-39-s-trades
2302
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#historytrade
2327
+
2328
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#customer-39-s-trades
2329
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#historytrade
2330
+
2303
2331
  :param str symbol: unified market symbol
2304
2332
  :param int [since]: the earliest time in ms to fetch trades for
2305
2333
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -2440,8 +2468,10 @@ class digifinex(Exchange, ImplicitAPI):
2440
2468
  def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
2441
2469
  """
2442
2470
  fetch the history of changes, actions done by the user or operations that altered the balance of the user
2443
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-margin-otc-financial-logs
2444
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#bills
2471
+
2472
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-margin-otc-financial-logs
2473
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#bills
2474
+
2445
2475
  :param str [code]: unified currency code, default is None
2446
2476
  :param int [since]: timestamp in ms of the earliest ledger entry, default is None
2447
2477
  :param int [limit]: max number of ledger entries to return, default is None
@@ -2885,7 +2915,9 @@ class digifinex(Exchange, ImplicitAPI):
2885
2915
  def fetch_cross_borrow_rate(self, code: str, params={}) -> CrossBorrowRate:
2886
2916
  """
2887
2917
  fetch the rate of interest to borrow a currency for margin trading
2888
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2918
+
2919
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2920
+
2889
2921
  :param str code: unified currency code
2890
2922
  :param dict [params]: extra parameters specific to the exchange API endpoint
2891
2923
  :returns dict: a `borrow rate structure <https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure>`
@@ -2922,7 +2954,9 @@ class digifinex(Exchange, ImplicitAPI):
2922
2954
  def fetch_cross_borrow_rates(self, params={}) -> CrossBorrowRates:
2923
2955
  """
2924
2956
  fetch the borrow interest rates of all currencies
2925
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2957
+
2958
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2959
+
2926
2960
  :param dict [params]: extra parameters specific to the exchange API endpoint
2927
2961
  :returns dict: a list of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
2928
2962
  """
@@ -2989,7 +3023,9 @@ class digifinex(Exchange, ImplicitAPI):
2989
3023
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
2990
3024
  """
2991
3025
  fetch the current funding rate
2992
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3026
+
3027
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3028
+
2993
3029
  :param str symbol: unified market symbol
2994
3030
  :param dict [params]: extra parameters specific to the exchange API endpoint
2995
3031
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -3020,7 +3056,9 @@ class digifinex(Exchange, ImplicitAPI):
3020
3056
  def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
3021
3057
  """
3022
3058
  fetch the current funding rate interval
3023
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3059
+
3060
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3061
+
3024
3062
  :param str symbol: unified market symbol
3025
3063
  :param dict [params]: extra parameters specific to the exchange API endpoint
3026
3064
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -3133,7 +3171,9 @@ class digifinex(Exchange, ImplicitAPI):
3133
3171
  def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
3134
3172
  """
3135
3173
  fetch the trading fees for a market
3136
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
3174
+
3175
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
3176
+
3137
3177
  :param str symbol: unified market symbol
3138
3178
  :param dict [params]: extra parameters specific to the exchange API endpoint
3139
3179
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -3181,8 +3221,10 @@ class digifinex(Exchange, ImplicitAPI):
3181
3221
  def fetch_positions(self, symbols: Strings = None, params={}):
3182
3222
  """
3183
3223
  fetch all open positions
3184
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3185
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3224
+
3225
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3226
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3227
+
3186
3228
  :param str[]|None symbols: list of unified market symbols
3187
3229
  :param dict [params]: extra parameters specific to the exchange API endpoint
3188
3230
  :returns dict[]: a list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
@@ -3278,8 +3320,10 @@ class digifinex(Exchange, ImplicitAPI):
3278
3320
 
3279
3321
  def fetch_position(self, symbol: str, params={}):
3280
3322
  """
3281
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3282
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3323
+
3324
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3325
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3326
+
3283
3327
  fetch data on a single open contract trade position
3284
3328
  :param str symbol: unified market symbol of the market the position is held in
3285
3329
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3447,7 +3491,9 @@ class digifinex(Exchange, ImplicitAPI):
3447
3491
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
3448
3492
  """
3449
3493
  set the level of leverage for a market
3450
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
3494
+
3495
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
3496
+
3451
3497
  :param float leverage: the rate of leverage
3452
3498
  :param str symbol: unified market symbol
3453
3499
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3496,7 +3542,9 @@ class digifinex(Exchange, ImplicitAPI):
3496
3542
  def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
3497
3543
  """
3498
3544
  fetch the transfer history, only transfers between spot and swap accounts are supported
3499
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#transferrecord
3545
+
3546
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#transferrecord
3547
+
3500
3548
  :param str code: unified currency code of the currency transferred
3501
3549
  :param int [since]: the earliest time in ms to fetch transfers for
3502
3550
  :param int [limit]: the maximum number of transfers to retrieve
@@ -3534,7 +3582,9 @@ class digifinex(Exchange, ImplicitAPI):
3534
3582
 
3535
3583
  def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
3536
3584
  """
3537
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
3585
+
3586
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
3587
+
3538
3588
  retrieve information on the maximum leverage, for different trade sizes
3539
3589
  :param str[]|None symbols: a list of unified market symbols
3540
3590
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3577,8 +3627,10 @@ class digifinex(Exchange, ImplicitAPI):
3577
3627
 
3578
3628
  def fetch_market_leverage_tiers(self, symbol: str, params={}) -> List[LeverageTier]:
3579
3629
  """
3580
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
3581
3630
  retrieve information on the maximum leverage, for different trade sizes for a single market
3631
+
3632
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
3633
+
3582
3634
  :param str symbol: unified market symbol
3583
3635
  :param dict [params]: extra parameters specific to the exchange API endpoint
3584
3636
  :returns dict: a `leverage tiers structure <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`
@@ -3651,9 +3703,10 @@ class digifinex(Exchange, ImplicitAPI):
3651
3703
  for i in range(0, len(brackets)):
3652
3704
  tier = brackets[i]
3653
3705
  marketId = self.safe_string(info, 'instrument_id')
3654
- market = self.safe_market(marketId)
3706
+ market = self.safe_market(marketId, market)
3655
3707
  tiers.append({
3656
3708
  'tier': self.sum(i, 1),
3709
+ 'symbol': self.safe_symbol(marketId, market, None, 'swap'),
3657
3710
  'currency': market['settle'],
3658
3711
  'minNotional': None,
3659
3712
  'maxNotional': self.safe_number(tier, 'max_limit'),
@@ -3665,7 +3718,7 @@ class digifinex(Exchange, ImplicitAPI):
3665
3718
 
3666
3719
  def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
3667
3720
  """
3668
- * @ignore
3721
+ @ignore
3669
3722
  marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
3670
3723
  :param dict [params]: extra parameters specific to the exchange API endpoint
3671
3724
  :returns Array: the marginMode in lowercase
@@ -3685,7 +3738,9 @@ class digifinex(Exchange, ImplicitAPI):
3685
3738
  def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
3686
3739
  """
3687
3740
  fetch deposit and withdraw fees
3688
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
3741
+
3742
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
3743
+
3689
3744
  :param str[]|None codes: not used by fetchDepositWithdrawFees()
3690
3745
  :param dict [params]: extra parameters specific to the exchange API endpoint
3691
3746
  :returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -3792,7 +3847,9 @@ class digifinex(Exchange, ImplicitAPI):
3792
3847
  def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3793
3848
  """
3794
3849
  add margin to a position
3795
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3850
+
3851
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3852
+
3796
3853
  :param str symbol: unified market symbol
3797
3854
  :param float amount: amount of margin to add
3798
3855
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3806,7 +3863,9 @@ class digifinex(Exchange, ImplicitAPI):
3806
3863
  def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3807
3864
  """
3808
3865
  remove margin from a position
3809
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3866
+
3867
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3868
+
3810
3869
  :param str symbol: unified market symbol
3811
3870
  :param float amount: the amount of margin to remove
3812
3871
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3873,7 +3932,9 @@ class digifinex(Exchange, ImplicitAPI):
3873
3932
  def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3874
3933
  """
3875
3934
  fetch the history of funding payments paid and received on self account
3876
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#funding-fee
3935
+
3936
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#funding-fee
3937
+
3877
3938
  :param str [symbol]: unified market symbol
3878
3939
  :param int [since]: the earliest time in ms to fetch funding history for
3879
3940
  :param int [limit]: the maximum number of funding history structures to retrieve
@@ -3934,7 +3995,9 @@ class digifinex(Exchange, ImplicitAPI):
3934
3995
  def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
3935
3996
  """
3936
3997
  set margin mode to 'cross' or 'isolated'
3937
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmode
3998
+
3999
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmode
4000
+
3938
4001
  :param str marginMode: 'cross' or 'isolated'
3939
4002
  :param str symbol: unified market symbol
3940
4003
  :param dict [params]: extra parameters specific to the exchange API endpoint