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.
Files changed (273) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/alpaca.py +1 -0
  3. ccxt/abstract/binance.py +9 -0
  4. ccxt/abstract/binancecoinm.py +9 -0
  5. ccxt/abstract/binanceus.py +9 -0
  6. ccxt/abstract/binanceusdm.py +9 -0
  7. ccxt/ace.py +36 -12
  8. ccxt/alpaca.py +113 -28
  9. ccxt/ascendex.py +65 -30
  10. ccxt/async_support/__init__.py +1 -1
  11. ccxt/async_support/ace.py +36 -12
  12. ccxt/async_support/alpaca.py +113 -28
  13. ccxt/async_support/ascendex.py +65 -30
  14. ccxt/async_support/base/exchange.py +3 -3
  15. ccxt/async_support/bigone.py +71 -27
  16. ccxt/async_support/binance.py +564 -323
  17. ccxt/async_support/bingx.py +208 -108
  18. ccxt/async_support/bit2c.py +34 -12
  19. ccxt/async_support/bitbank.py +42 -14
  20. ccxt/async_support/bitbns.py +29 -21
  21. ccxt/async_support/bitfinex.py +77 -33
  22. ccxt/async_support/bitfinex2.py +116 -44
  23. ccxt/async_support/bitflyer.py +54 -18
  24. ccxt/async_support/bitget.py +277 -145
  25. ccxt/async_support/bithumb.py +39 -14
  26. ccxt/async_support/bitmart.py +198 -132
  27. ccxt/async_support/bitmex.py +90 -30
  28. ccxt/async_support/bitopro.py +66 -22
  29. ccxt/async_support/bitrue.py +109 -57
  30. ccxt/async_support/bitso.py +55 -19
  31. ccxt/async_support/bitstamp.py +84 -36
  32. ccxt/async_support/bitteam.py +51 -17
  33. ccxt/async_support/bitvavo.py +57 -19
  34. ccxt/async_support/bl3p.py +26 -10
  35. ccxt/async_support/blockchaincom.py +63 -21
  36. ccxt/async_support/blofin.py +95 -38
  37. ccxt/async_support/btcalpha.py +48 -16
  38. ccxt/async_support/btcbox.py +27 -9
  39. ccxt/async_support/btcmarkets.py +57 -19
  40. ccxt/async_support/btcturk.py +36 -12
  41. ccxt/async_support/bybit.py +251 -95
  42. ccxt/async_support/cex.py +65 -22
  43. ccxt/async_support/coinbase.py +138 -56
  44. ccxt/async_support/coinbaseexchange.py +76 -28
  45. ccxt/async_support/coinbaseinternational.py +75 -27
  46. ccxt/async_support/coincatch.py +191 -97
  47. ccxt/async_support/coincheck.py +33 -11
  48. ccxt/async_support/coinex.py +212 -101
  49. ccxt/async_support/coinlist.py +87 -30
  50. ccxt/async_support/coinmate.py +55 -24
  51. ccxt/async_support/coinmetro.py +52 -18
  52. ccxt/async_support/coinone.py +27 -10
  53. ccxt/async_support/coinsph.py +73 -27
  54. ccxt/async_support/coinspot.py +25 -9
  55. ccxt/async_support/cryptocom.py +103 -38
  56. ccxt/async_support/currencycom.py +70 -23
  57. ccxt/async_support/delta.py +90 -30
  58. ccxt/async_support/deribit.py +138 -53
  59. ccxt/async_support/digifinex.py +114 -51
  60. ccxt/async_support/exmo.py +104 -45
  61. ccxt/async_support/gate.py +298 -155
  62. ccxt/async_support/gemini.py +57 -20
  63. ccxt/async_support/hashkey.py +151 -66
  64. ccxt/async_support/hitbtc.py +156 -73
  65. ccxt/async_support/hollaex.py +76 -25
  66. ccxt/async_support/htx.py +297 -240
  67. ccxt/async_support/huobijp.py +1 -0
  68. ccxt/async_support/hyperliquid.py +203 -42
  69. ccxt/async_support/idex.py +73 -24
  70. ccxt/async_support/independentreserve.py +12 -5
  71. ccxt/async_support/indodax.py +53 -16
  72. ccxt/async_support/kraken.py +107 -35
  73. ccxt/async_support/krakenfutures.py +88 -34
  74. ccxt/async_support/kucoin.py +211 -109
  75. ccxt/async_support/kucoinfutures.py +119 -42
  76. ccxt/async_support/kuna.py +80 -39
  77. ccxt/async_support/latoken.py +70 -33
  78. ccxt/async_support/lbank.py +90 -39
  79. ccxt/async_support/luno.py +54 -19
  80. ccxt/async_support/lykke.py +54 -19
  81. ccxt/async_support/mercado.py +1 -0
  82. ccxt/async_support/mexc.py +226 -108
  83. ccxt/async_support/ndax.py +58 -19
  84. ccxt/async_support/novadax.py +67 -22
  85. ccxt/async_support/oceanex.py +58 -19
  86. ccxt/async_support/okcoin.py +81 -38
  87. ccxt/async_support/okx.py +270 -109
  88. ccxt/async_support/onetrading.py +3 -1
  89. ccxt/async_support/oxfun.py +95 -36
  90. ccxt/async_support/p2b.py +49 -23
  91. ccxt/async_support/paradex.py +75 -27
  92. ccxt/async_support/paymium.py +31 -11
  93. ccxt/async_support/phemex.py +91 -41
  94. ccxt/async_support/poloniex.py +80 -30
  95. ccxt/async_support/poloniexfutures.py +72 -30
  96. ccxt/async_support/probit.py +64 -22
  97. ccxt/async_support/timex.py +58 -19
  98. ccxt/async_support/tokocrypto.py +63 -22
  99. ccxt/async_support/tradeogre.py +7 -2
  100. ccxt/async_support/upbit.py +72 -25
  101. ccxt/async_support/vertex.py +74 -28
  102. ccxt/async_support/wavesexchange.py +29 -8
  103. ccxt/async_support/wazirx.py +51 -17
  104. ccxt/async_support/whitebit.py +105 -41
  105. ccxt/async_support/woo.py +162 -65
  106. ccxt/async_support/woofipro.py +118 -49
  107. ccxt/async_support/xt.py +150 -73
  108. ccxt/async_support/yobit.py +49 -16
  109. ccxt/async_support/zaif.py +30 -10
  110. ccxt/async_support/zonda.py +46 -16
  111. ccxt/base/exchange.py +34 -34
  112. ccxt/base/types.py +1 -0
  113. ccxt/bigone.py +71 -27
  114. ccxt/binance.py +564 -323
  115. ccxt/bingx.py +208 -108
  116. ccxt/bit2c.py +34 -12
  117. ccxt/bitbank.py +42 -14
  118. ccxt/bitbns.py +29 -21
  119. ccxt/bitfinex.py +77 -33
  120. ccxt/bitfinex2.py +116 -44
  121. ccxt/bitflyer.py +54 -18
  122. ccxt/bitget.py +277 -145
  123. ccxt/bithumb.py +39 -14
  124. ccxt/bitmart.py +198 -132
  125. ccxt/bitmex.py +90 -30
  126. ccxt/bitopro.py +66 -22
  127. ccxt/bitrue.py +109 -57
  128. ccxt/bitso.py +55 -19
  129. ccxt/bitstamp.py +84 -36
  130. ccxt/bitteam.py +51 -17
  131. ccxt/bitvavo.py +57 -19
  132. ccxt/bl3p.py +26 -10
  133. ccxt/blockchaincom.py +63 -21
  134. ccxt/blofin.py +95 -38
  135. ccxt/btcalpha.py +48 -16
  136. ccxt/btcbox.py +27 -9
  137. ccxt/btcmarkets.py +57 -19
  138. ccxt/btcturk.py +36 -12
  139. ccxt/bybit.py +251 -95
  140. ccxt/cex.py +65 -22
  141. ccxt/coinbase.py +138 -56
  142. ccxt/coinbaseexchange.py +76 -28
  143. ccxt/coinbaseinternational.py +75 -27
  144. ccxt/coincatch.py +191 -97
  145. ccxt/coincheck.py +33 -11
  146. ccxt/coinex.py +212 -101
  147. ccxt/coinlist.py +87 -30
  148. ccxt/coinmate.py +55 -24
  149. ccxt/coinmetro.py +52 -18
  150. ccxt/coinone.py +27 -10
  151. ccxt/coinsph.py +73 -27
  152. ccxt/coinspot.py +25 -9
  153. ccxt/cryptocom.py +103 -38
  154. ccxt/currencycom.py +70 -23
  155. ccxt/delta.py +90 -30
  156. ccxt/deribit.py +138 -53
  157. ccxt/digifinex.py +114 -51
  158. ccxt/exmo.py +104 -45
  159. ccxt/gate.py +298 -155
  160. ccxt/gemini.py +57 -20
  161. ccxt/hashkey.py +151 -66
  162. ccxt/hitbtc.py +156 -73
  163. ccxt/hollaex.py +76 -25
  164. ccxt/htx.py +297 -240
  165. ccxt/huobijp.py +1 -0
  166. ccxt/hyperliquid.py +203 -42
  167. ccxt/idex.py +73 -24
  168. ccxt/independentreserve.py +12 -5
  169. ccxt/indodax.py +53 -16
  170. ccxt/kraken.py +107 -35
  171. ccxt/krakenfutures.py +88 -34
  172. ccxt/kucoin.py +211 -109
  173. ccxt/kucoinfutures.py +119 -42
  174. ccxt/kuna.py +80 -39
  175. ccxt/latoken.py +70 -33
  176. ccxt/lbank.py +90 -39
  177. ccxt/luno.py +54 -19
  178. ccxt/lykke.py +54 -19
  179. ccxt/mercado.py +1 -0
  180. ccxt/mexc.py +226 -108
  181. ccxt/ndax.py +58 -19
  182. ccxt/novadax.py +67 -22
  183. ccxt/oceanex.py +58 -19
  184. ccxt/okcoin.py +81 -38
  185. ccxt/okx.py +270 -109
  186. ccxt/onetrading.py +3 -1
  187. ccxt/oxfun.py +95 -36
  188. ccxt/p2b.py +49 -23
  189. ccxt/paradex.py +75 -27
  190. ccxt/paymium.py +31 -11
  191. ccxt/phemex.py +91 -41
  192. ccxt/poloniex.py +80 -30
  193. ccxt/poloniexfutures.py +72 -30
  194. ccxt/pro/__init__.py +1 -1
  195. ccxt/pro/alpaca.py +15 -5
  196. ccxt/pro/ascendex.py +18 -6
  197. ccxt/pro/binance.py +200 -119
  198. ccxt/pro/bingx.py +44 -24
  199. ccxt/pro/bitfinex.py +13 -5
  200. ccxt/pro/bitget.py +75 -36
  201. ccxt/pro/bithumb.py +12 -4
  202. ccxt/pro/bitmart.py +44 -20
  203. ccxt/pro/bitmex.py +42 -14
  204. ccxt/pro/bitopro.py +15 -5
  205. ccxt/pro/bitrue.py +7 -3
  206. ccxt/pro/bitvavo.py +51 -17
  207. ccxt/pro/blockchaincom.py +18 -6
  208. ccxt/pro/blofin.py +38 -13
  209. ccxt/pro/bybit.py +100 -42
  210. ccxt/pro/cex.py +48 -16
  211. ccxt/pro/coinbase.py +32 -12
  212. ccxt/pro/coinbaseexchange.py +1 -1
  213. ccxt/pro/coinbaseinternational.py +34 -14
  214. ccxt/pro/coincatch.py +54 -19
  215. ccxt/pro/coincheck.py +6 -2
  216. ccxt/pro/coinex.py +40 -20
  217. ccxt/pro/coinone.py +9 -3
  218. ccxt/pro/cryptocom.py +70 -26
  219. ccxt/pro/deribit.py +36 -12
  220. ccxt/pro/exmo.py +10 -4
  221. ccxt/pro/gate.py +64 -30
  222. ccxt/pro/gemini.py +21 -7
  223. ccxt/pro/hashkey.py +26 -8
  224. ccxt/pro/hitbtc.py +61 -37
  225. ccxt/pro/hollaex.py +15 -5
  226. ccxt/pro/htx.py +39 -21
  227. ccxt/pro/hyperliquid.py +41 -14
  228. ccxt/pro/kraken.py +49 -17
  229. ccxt/pro/krakenfutures.py +47 -24
  230. ccxt/pro/kucoin.py +60 -31
  231. ccxt/pro/kucoinfutures.py +41 -19
  232. ccxt/pro/lbank.py +27 -9
  233. ccxt/pro/luno.py +3 -1
  234. ccxt/pro/mexc.py +35 -17
  235. ccxt/pro/ndax.py +12 -4
  236. ccxt/pro/okcoin.py +18 -6
  237. ccxt/pro/okx.py +76 -28
  238. ccxt/pro/onetrading.py +21 -7
  239. ccxt/pro/oxfun.py +54 -20
  240. ccxt/pro/p2b.py +23 -11
  241. ccxt/pro/paradex.py +12 -4
  242. ccxt/pro/phemex.py +31 -19
  243. ccxt/pro/poloniex.py +50 -22
  244. ccxt/pro/poloniexfutures.py +17 -7
  245. ccxt/pro/probit.py +18 -6
  246. ccxt/pro/upbit.py +25 -9
  247. ccxt/pro/vertex.py +20 -6
  248. ccxt/pro/wazirx.py +21 -7
  249. ccxt/pro/whitebit.py +25 -9
  250. ccxt/pro/woo.py +32 -12
  251. ccxt/pro/woofipro.py +35 -13
  252. ccxt/pro/xt.py +46 -26
  253. ccxt/probit.py +64 -22
  254. ccxt/test/tests_helpers.py +2 -2
  255. ccxt/timex.py +58 -19
  256. ccxt/tokocrypto.py +63 -22
  257. ccxt/tradeogre.py +7 -2
  258. ccxt/upbit.py +72 -25
  259. ccxt/vertex.py +74 -28
  260. ccxt/wavesexchange.py +29 -8
  261. ccxt/wazirx.py +51 -17
  262. ccxt/whitebit.py +105 -41
  263. ccxt/woo.py +162 -65
  264. ccxt/woofipro.py +118 -49
  265. ccxt/xt.py +150 -73
  266. ccxt/yobit.py +49 -16
  267. ccxt/zaif.py +30 -10
  268. ccxt/zonda.py +46 -16
  269. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
  270. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
  271. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
  272. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
  273. {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
@@ -810,9 +810,11 @@ class digifinex(Exchange, ImplicitAPI):
810
810
  async def fetch_balance(self, params={}) -> Balances:
811
811
  """
812
812
  query for balance and get the amount of funds available for trading or funds locked in orders
813
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
814
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
815
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
813
+
814
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-account-assets
815
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
816
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#accountbalance
817
+
816
818
  :param dict [params]: extra parameters specific to the exchange API endpoint
817
819
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
818
820
  """
@@ -873,8 +875,10 @@ class digifinex(Exchange, ImplicitAPI):
873
875
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
874
876
  """
875
877
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
876
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-orderbook
877
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
878
+
879
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-orderbook
880
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderbook
881
+
878
882
  :param str symbol: unified symbol of the market to fetch the order book for
879
883
  :param int [limit]: the maximum amount of order book entries to return
880
884
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -944,8 +948,10 @@ class digifinex(Exchange, ImplicitAPI):
944
948
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
945
949
  """
946
950
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
947
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
948
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
951
+
952
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
953
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#tickers
954
+
949
955
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
950
956
  :param dict [params]: extra parameters specific to the exchange API endpoint
951
957
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1027,8 +1033,10 @@ class digifinex(Exchange, ImplicitAPI):
1027
1033
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
1028
1034
  """
1029
1035
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1030
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
1031
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
1036
+
1037
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#ticker-price
1038
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#ticker
1039
+
1032
1040
  :param str symbol: unified symbol of the market to fetch the ticker for
1033
1041
  :param dict [params]: extra parameters specific to the exchange API endpoint
1034
1042
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1342,8 +1350,10 @@ class digifinex(Exchange, ImplicitAPI):
1342
1350
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1343
1351
  """
1344
1352
  get the list of most recent trades for a particular symbol
1345
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-recent-trades
1346
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#recenttrades
1353
+
1354
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-recent-trades
1355
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#recenttrades
1356
+
1347
1357
  :param str symbol: unified symbol of the market to fetch trades for
1348
1358
  :param int [since]: timestamp in ms of the earliest trade to fetch
1349
1359
  :param int [limit]: the maximum amount of trades to fetch
@@ -1439,8 +1449,10 @@ class digifinex(Exchange, ImplicitAPI):
1439
1449
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1440
1450
  """
1441
1451
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1442
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-candles-data
1443
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#recentcandle
1452
+
1453
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-candles-data
1454
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#recentcandle
1455
+
1444
1456
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1445
1457
  :param str timeframe: the length of time each candle represents
1446
1458
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1511,8 +1523,10 @@ class digifinex(Exchange, ImplicitAPI):
1511
1523
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1512
1524
  """
1513
1525
  create a trade order
1514
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1515
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderplace
1526
+
1527
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1528
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderplace
1529
+
1516
1530
  :param str symbol: unified symbol of the market to create an order in
1517
1531
  :param str type: 'market' or 'limit'
1518
1532
  :param str side: 'buy' or 'sell'
@@ -1565,8 +1579,10 @@ class digifinex(Exchange, ImplicitAPI):
1565
1579
  async def create_orders(self, orders: List[OrderRequest], params={}):
1566
1580
  """
1567
1581
  create a list of trade orders(all orders should be of the same symbol)
1568
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-multiple-order
1569
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#batchorder
1582
+
1583
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-multiple-order
1584
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#batchorder
1585
+
1570
1586
  :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
1571
1587
  :param dict [params]: extra parameters specific to the exchange API endpoint
1572
1588
  :returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1647,7 +1663,7 @@ class digifinex(Exchange, ImplicitAPI):
1647
1663
 
1648
1664
  def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1649
1665
  """
1650
- * @ignore
1666
+ @ignore
1651
1667
  helper function to build request
1652
1668
  :param str symbol: unified symbol of the market to create an order in
1653
1669
  :param str type: 'market' or 'limit'
@@ -1739,7 +1755,9 @@ class digifinex(Exchange, ImplicitAPI):
1739
1755
  async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
1740
1756
  """
1741
1757
  create a market buy order by providing the symbol and cost
1742
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1758
+
1759
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#create-new-order
1760
+
1743
1761
  :param str symbol: unified symbol of the market to create an order in
1744
1762
  :param float cost: how much you want to trade in units of the quote currency
1745
1763
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1755,8 +1773,10 @@ class digifinex(Exchange, ImplicitAPI):
1755
1773
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
1756
1774
  """
1757
1775
  cancels an open order
1758
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
1759
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
1776
+
1777
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
1778
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#cancelorder
1779
+
1760
1780
  :param str id: order id
1761
1781
  :param str symbol: not used by digifinex cancelOrder()
1762
1782
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2021,8 +2041,10 @@ class digifinex(Exchange, ImplicitAPI):
2021
2041
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2022
2042
  """
2023
2043
  fetch all unfilled currently open orders
2024
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#current-active-orders
2025
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#openorder
2044
+
2045
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#current-active-orders
2046
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#openorder
2047
+
2026
2048
  :param str symbol: unified market symbol
2027
2049
  :param int [since]: the earliest time in ms to fetch open orders for
2028
2050
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -2115,8 +2137,10 @@ class digifinex(Exchange, ImplicitAPI):
2115
2137
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2116
2138
  """
2117
2139
  fetches information on multiple orders made by the user
2118
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-all-orders-including-history-orders
2119
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
2140
+
2141
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-all-orders-including-history-orders
2142
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
2143
+
2120
2144
  :param str symbol: unified market symbol of the market orders were made in
2121
2145
  :param int [since]: the earliest time in ms to fetch orders for
2122
2146
  :param int [limit]: the maximum number of order structures to retrieve
@@ -2210,8 +2234,10 @@ class digifinex(Exchange, ImplicitAPI):
2210
2234
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
2211
2235
  """
2212
2236
  fetches information on an order made by the user
2213
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-order-status
2214
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
2237
+
2238
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-order-status
2239
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#orderinfo
2240
+
2215
2241
  :param str id: order id
2216
2242
  :param str symbol: unified symbol of the market the order was made in
2217
2243
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2299,8 +2325,10 @@ class digifinex(Exchange, ImplicitAPI):
2299
2325
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2300
2326
  """
2301
2327
  fetch all trades made by the user
2302
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#customer-39-s-trades
2303
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#historytrade
2328
+
2329
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#customer-39-s-trades
2330
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#historytrade
2331
+
2304
2332
  :param str symbol: unified market symbol
2305
2333
  :param int [since]: the earliest time in ms to fetch trades for
2306
2334
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -2441,8 +2469,10 @@ class digifinex(Exchange, ImplicitAPI):
2441
2469
  async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
2442
2470
  """
2443
2471
  fetch the history of changes, actions done by the user or operations that altered the balance of the user
2444
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-margin-otc-financial-logs
2445
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#bills
2472
+
2473
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-margin-otc-financial-logs
2474
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#bills
2475
+
2446
2476
  :param str [code]: unified currency code, default is None
2447
2477
  :param int [since]: timestamp in ms of the earliest ledger entry, default is None
2448
2478
  :param int [limit]: max number of ledger entries to return, default is None
@@ -2886,7 +2916,9 @@ class digifinex(Exchange, ImplicitAPI):
2886
2916
  async def fetch_cross_borrow_rate(self, code: str, params={}) -> CrossBorrowRate:
2887
2917
  """
2888
2918
  fetch the rate of interest to borrow a currency for margin trading
2889
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2919
+
2920
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2921
+
2890
2922
  :param str code: unified currency code
2891
2923
  :param dict [params]: extra parameters specific to the exchange API endpoint
2892
2924
  :returns dict: a `borrow rate structure <https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure>`
@@ -2923,7 +2955,9 @@ class digifinex(Exchange, ImplicitAPI):
2923
2955
  async def fetch_cross_borrow_rates(self, params={}) -> CrossBorrowRates:
2924
2956
  """
2925
2957
  fetch the borrow interest rates of all currencies
2926
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2958
+
2959
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-assets
2960
+
2927
2961
  :param dict [params]: extra parameters specific to the exchange API endpoint
2928
2962
  :returns dict: a list of `borrow rate structures <https://docs.ccxt.com/#/?id=borrow-rate-structure>`
2929
2963
  """
@@ -2990,7 +3024,9 @@ class digifinex(Exchange, ImplicitAPI):
2990
3024
  async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
2991
3025
  """
2992
3026
  fetch the current funding rate
2993
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3027
+
3028
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3029
+
2994
3030
  :param str symbol: unified market symbol
2995
3031
  :param dict [params]: extra parameters specific to the exchange API endpoint
2996
3032
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -3021,7 +3057,9 @@ class digifinex(Exchange, ImplicitAPI):
3021
3057
  async def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
3022
3058
  """
3023
3059
  fetch the current funding rate interval
3024
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3060
+
3061
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#currentfundingrate
3062
+
3025
3063
  :param str symbol: unified market symbol
3026
3064
  :param dict [params]: extra parameters specific to the exchange API endpoint
3027
3065
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -3134,7 +3172,9 @@ class digifinex(Exchange, ImplicitAPI):
3134
3172
  async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
3135
3173
  """
3136
3174
  fetch the trading fees for a market
3137
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
3175
+
3176
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#tradingfee
3177
+
3138
3178
  :param str symbol: unified market symbol
3139
3179
  :param dict [params]: extra parameters specific to the exchange API endpoint
3140
3180
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -3182,8 +3222,10 @@ class digifinex(Exchange, ImplicitAPI):
3182
3222
  async def fetch_positions(self, symbols: Strings = None, params={}):
3183
3223
  """
3184
3224
  fetch all open positions
3185
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3186
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3225
+
3226
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3227
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3228
+
3187
3229
  :param str[]|None symbols: list of unified market symbols
3188
3230
  :param dict [params]: extra parameters specific to the exchange API endpoint
3189
3231
  :returns dict[]: a list of `position structures <https://docs.ccxt.com/#/?id=position-structure>`
@@ -3279,8 +3321,10 @@ class digifinex(Exchange, ImplicitAPI):
3279
3321
 
3280
3322
  async def fetch_position(self, symbol: str, params={}):
3281
3323
  """
3282
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3283
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3324
+
3325
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-positions
3326
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positions
3327
+
3284
3328
  fetch data on a single open contract trade position
3285
3329
  :param str symbol: unified market symbol of the market the position is held in
3286
3330
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3448,7 +3492,9 @@ class digifinex(Exchange, ImplicitAPI):
3448
3492
  async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
3449
3493
  """
3450
3494
  set the level of leverage for a market
3451
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
3495
+
3496
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#setleverage
3497
+
3452
3498
  :param float leverage: the rate of leverage
3453
3499
  :param str symbol: unified market symbol
3454
3500
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3497,7 +3543,9 @@ class digifinex(Exchange, ImplicitAPI):
3497
3543
  async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
3498
3544
  """
3499
3545
  fetch the transfer history, only transfers between spot and swap accounts are supported
3500
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#transferrecord
3546
+
3547
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#transferrecord
3548
+
3501
3549
  :param str code: unified currency code of the currency transferred
3502
3550
  :param int [since]: the earliest time in ms to fetch transfers for
3503
3551
  :param int [limit]: the maximum number of transfers to retrieve
@@ -3535,7 +3583,9 @@ class digifinex(Exchange, ImplicitAPI):
3535
3583
 
3536
3584
  async def fetch_leverage_tiers(self, symbols: Strings = None, params={}) -> LeverageTiers:
3537
3585
  """
3538
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
3586
+
3587
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
3588
+
3539
3589
  retrieve information on the maximum leverage, for different trade sizes
3540
3590
  :param str[]|None symbols: a list of unified market symbols
3541
3591
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3578,8 +3628,10 @@ class digifinex(Exchange, ImplicitAPI):
3578
3628
 
3579
3629
  async def fetch_market_leverage_tiers(self, symbol: str, params={}) -> List[LeverageTier]:
3580
3630
  """
3581
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
3582
3631
  retrieve information on the maximum leverage, for different trade sizes for a single market
3632
+
3633
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#instrument
3634
+
3583
3635
  :param str symbol: unified market symbol
3584
3636
  :param dict [params]: extra parameters specific to the exchange API endpoint
3585
3637
  :returns dict: a `leverage tiers structure <https://docs.ccxt.com/#/?id=leverage-tiers-structure>`
@@ -3652,9 +3704,10 @@ class digifinex(Exchange, ImplicitAPI):
3652
3704
  for i in range(0, len(brackets)):
3653
3705
  tier = brackets[i]
3654
3706
  marketId = self.safe_string(info, 'instrument_id')
3655
- market = self.safe_market(marketId)
3707
+ market = self.safe_market(marketId, market)
3656
3708
  tiers.append({
3657
3709
  'tier': self.sum(i, 1),
3710
+ 'symbol': self.safe_symbol(marketId, market, None, 'swap'),
3658
3711
  'currency': market['settle'],
3659
3712
  'minNotional': None,
3660
3713
  'maxNotional': self.safe_number(tier, 'max_limit'),
@@ -3666,7 +3719,7 @@ class digifinex(Exchange, ImplicitAPI):
3666
3719
 
3667
3720
  def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
3668
3721
  """
3669
- * @ignore
3722
+ @ignore
3670
3723
  marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
3671
3724
  :param dict [params]: extra parameters specific to the exchange API endpoint
3672
3725
  :returns Array: the marginMode in lowercase
@@ -3686,7 +3739,9 @@ class digifinex(Exchange, ImplicitAPI):
3686
3739
  async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
3687
3740
  """
3688
3741
  fetch deposit and withdraw fees
3689
- :see: https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
3742
+
3743
+ https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
3744
+
3690
3745
  :param str[]|None codes: not used by fetchDepositWithdrawFees()
3691
3746
  :param dict [params]: extra parameters specific to the exchange API endpoint
3692
3747
  :returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -3793,7 +3848,9 @@ class digifinex(Exchange, ImplicitAPI):
3793
3848
  async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3794
3849
  """
3795
3850
  add margin to a position
3796
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3851
+
3852
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3853
+
3797
3854
  :param str symbol: unified market symbol
3798
3855
  :param float amount: amount of margin to add
3799
3856
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3807,7 +3864,9 @@ class digifinex(Exchange, ImplicitAPI):
3807
3864
  async def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3808
3865
  """
3809
3866
  remove margin from a position
3810
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3867
+
3868
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmargin
3869
+
3811
3870
  :param str symbol: unified market symbol
3812
3871
  :param float amount: the amount of margin to remove
3813
3872
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3874,7 +3933,9 @@ class digifinex(Exchange, ImplicitAPI):
3874
3933
  async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3875
3934
  """
3876
3935
  fetch the history of funding payments paid and received on self account
3877
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#funding-fee
3936
+
3937
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#funding-fee
3938
+
3878
3939
  :param str [symbol]: unified market symbol
3879
3940
  :param int [since]: the earliest time in ms to fetch funding history for
3880
3941
  :param int [limit]: the maximum number of funding history structures to retrieve
@@ -3935,7 +3996,9 @@ class digifinex(Exchange, ImplicitAPI):
3935
3996
  async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
3936
3997
  """
3937
3998
  set margin mode to 'cross' or 'isolated'
3938
- :see: https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmode
3999
+
4000
+ https://docs.digifinex.com/en-ww/swap/v2/rest.html#positionmode
4001
+
3939
4002
  :param str marginMode: 'cross' or 'isolated'
3940
4003
  :param str symbol: unified market symbol
3941
4004
  :param dict [params]: extra parameters specific to the exchange API endpoint