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/hitbtc.py CHANGED
@@ -672,7 +672,9 @@ class hitbtc(Exchange, ImplicitAPI):
672
672
  def fetch_markets(self, params={}) -> List[Market]:
673
673
  """
674
674
  retrieves data on all markets for hitbtc
675
- :see: https://api.hitbtc.com/#symbols
675
+
676
+ https://api.hitbtc.com/#symbols
677
+
676
678
  :param dict [params]: extra parameters specific to the exchange API endpoint
677
679
  :returns dict[]: an array of objects representing market data
678
680
  """
@@ -809,7 +811,9 @@ class hitbtc(Exchange, ImplicitAPI):
809
811
  def fetch_currencies(self, params={}) -> Currencies:
810
812
  """
811
813
  fetches all available currencies on an exchange
812
- :see: https://api.hitbtc.com/#currencies
814
+
815
+ https://api.hitbtc.com/#currencies
816
+
813
817
  :param dict [params]: extra parameters specific to the exchange API endpoint
814
818
  :returns dict: an associative dictionary of currencies
815
819
  """
@@ -915,7 +919,9 @@ class hitbtc(Exchange, ImplicitAPI):
915
919
  def create_deposit_address(self, code: str, params={}):
916
920
  """
917
921
  create a currency deposit address
918
- :see: https://api.hitbtc.com/#generate-deposit-crypto-address
922
+
923
+ https://api.hitbtc.com/#generate-deposit-crypto-address
924
+
919
925
  :param str code: unified currency code of the currency for the deposit address
920
926
  :param dict [params]: extra parameters specific to the exchange API endpoint
921
927
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -948,7 +954,9 @@ class hitbtc(Exchange, ImplicitAPI):
948
954
  def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
949
955
  """
950
956
  fetch the deposit address for a currency associated with self account
951
- :see: https://api.hitbtc.com/#get-deposit-crypto-address
957
+
958
+ https://api.hitbtc.com/#get-deposit-crypto-address
959
+
952
960
  :param str code: unified currency code
953
961
  :param dict [params]: extra parameters specific to the exchange API endpoint
954
962
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -997,9 +1005,11 @@ class hitbtc(Exchange, ImplicitAPI):
997
1005
  def fetch_balance(self, params={}) -> Balances:
998
1006
  """
999
1007
  query for balance and get the amount of funds available for trading or funds locked in orders
1000
- :see: https://api.hitbtc.com/#wallet-balance
1001
- :see: https://api.hitbtc.com/#get-spot-trading-balance
1002
- :see: https://api.hitbtc.com/#get-trading-balance
1008
+
1009
+ https://api.hitbtc.com/#wallet-balance
1010
+ https://api.hitbtc.com/#get-spot-trading-balance
1011
+ https://api.hitbtc.com/#get-trading-balance
1012
+
1003
1013
  :param dict [params]: extra parameters specific to the exchange API endpoint
1004
1014
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
1005
1015
  """
@@ -1033,7 +1043,9 @@ class hitbtc(Exchange, ImplicitAPI):
1033
1043
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
1034
1044
  """
1035
1045
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1036
- :see: https://api.hitbtc.com/#tickers
1046
+
1047
+ https://api.hitbtc.com/#tickers
1048
+
1037
1049
  :param str symbol: unified symbol of the market to fetch the ticker for
1038
1050
  :param dict [params]: extra parameters specific to the exchange API endpoint
1039
1051
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1062,7 +1074,9 @@ class hitbtc(Exchange, ImplicitAPI):
1062
1074
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
1063
1075
  """
1064
1076
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1065
- :see: https://api.hitbtc.com/#tickers
1077
+
1078
+ https://api.hitbtc.com/#tickers
1079
+
1066
1080
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1067
1081
  :param dict [params]: extra parameters specific to the exchange API endpoint
1068
1082
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1146,7 +1160,9 @@ class hitbtc(Exchange, ImplicitAPI):
1146
1160
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1147
1161
  """
1148
1162
  get the list of most recent trades for a particular symbol
1149
- :see: https://api.hitbtc.com/#trades
1163
+
1164
+ https://api.hitbtc.com/#trades
1165
+
1150
1166
  :param str symbol: unified symbol of the market to fetch trades for
1151
1167
  :param int [since]: timestamp in ms of the earliest trade to fetch
1152
1168
  :param int [limit]: the maximum amount of trades to fetch
@@ -1182,9 +1198,11 @@ class hitbtc(Exchange, ImplicitAPI):
1182
1198
  def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1183
1199
  """
1184
1200
  fetch all trades made by the user
1185
- :see: https://api.hitbtc.com/#spot-trades-history
1186
- :see: https://api.hitbtc.com/#futures-trades-history
1187
- :see: https://api.hitbtc.com/#margin-trades-history
1201
+
1202
+ https://api.hitbtc.com/#spot-trades-history
1203
+ https://api.hitbtc.com/#futures-trades-history
1204
+ https://api.hitbtc.com/#margin-trades-history
1205
+
1188
1206
  :param str symbol: unified market symbol
1189
1207
  :param int [since]: the earliest time in ms to fetch trades for
1190
1208
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -1467,7 +1485,9 @@ class hitbtc(Exchange, ImplicitAPI):
1467
1485
  def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1468
1486
  """
1469
1487
  fetch history of deposits and withdrawals
1470
- :see: https://api.hitbtc.com/#get-transactions-history
1488
+
1489
+ https://api.hitbtc.com/#get-transactions-history
1490
+
1471
1491
  :param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
1472
1492
  :param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
1473
1493
  :param int [limit]: max number of deposit/withdrawals to return, default is None
@@ -1479,7 +1499,9 @@ class hitbtc(Exchange, ImplicitAPI):
1479
1499
  def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1480
1500
  """
1481
1501
  fetch all deposits made to an account
1482
- :see: https://api.hitbtc.com/#get-transactions-history
1502
+
1503
+ https://api.hitbtc.com/#get-transactions-history
1504
+
1483
1505
  :param str code: unified currency code
1484
1506
  :param int [since]: the earliest time in ms to fetch deposits for
1485
1507
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -1491,7 +1513,9 @@ class hitbtc(Exchange, ImplicitAPI):
1491
1513
  def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1492
1514
  """
1493
1515
  fetch all withdrawals made from an account
1494
- :see: https://api.hitbtc.com/#get-transactions-history
1516
+
1517
+ https://api.hitbtc.com/#get-transactions-history
1518
+
1495
1519
  :param str code: unified currency code
1496
1520
  :param int [since]: the earliest time in ms to fetch withdrawals for
1497
1521
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -1503,7 +1527,9 @@ class hitbtc(Exchange, ImplicitAPI):
1503
1527
  def fetch_order_books(self, symbols: Strings = None, limit: Int = None, params={}):
1504
1528
  """
1505
1529
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
1506
- :see: https://api.hitbtc.com/#order-books
1530
+
1531
+ https://api.hitbtc.com/#order-books
1532
+
1507
1533
  :param str[]|None symbols: list of unified market symbols, all symbols fetched if None, default is None
1508
1534
  :param int [limit]: max number of entries per orderbook to return, default is None
1509
1535
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1530,7 +1556,9 @@ class hitbtc(Exchange, ImplicitAPI):
1530
1556
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
1531
1557
  """
1532
1558
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
1533
- :see: https://api.hitbtc.com/#order-books
1559
+
1560
+ https://api.hitbtc.com/#order-books
1561
+
1534
1562
  :param str symbol: unified symbol of the market to fetch the order book for
1535
1563
  :param int [limit]: the maximum amount of order book entries to return
1536
1564
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1571,8 +1599,10 @@ class hitbtc(Exchange, ImplicitAPI):
1571
1599
  def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
1572
1600
  """
1573
1601
  fetch the trading fees for a market
1574
- :see: https://api.hitbtc.com/#get-trading-commission
1575
- :see: https://api.hitbtc.com/#get-trading-commission-2
1602
+
1603
+ https://api.hitbtc.com/#get-trading-commission
1604
+ https://api.hitbtc.com/#get-trading-commission-2
1605
+
1576
1606
  :param str symbol: unified market symbol
1577
1607
  :param dict [params]: extra parameters specific to the exchange API endpoint
1578
1608
  :returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -1600,8 +1630,10 @@ class hitbtc(Exchange, ImplicitAPI):
1600
1630
  def fetch_trading_fees(self, params={}) -> TradingFees:
1601
1631
  """
1602
1632
  fetch the trading fees for multiple markets
1603
- :see: https://api.hitbtc.com/#get-all-trading-commissions
1604
- :see: https://api.hitbtc.com/#get-all-trading-commissions-2
1633
+
1634
+ https://api.hitbtc.com/#get-all-trading-commissions
1635
+ https://api.hitbtc.com/#get-all-trading-commissions-2
1636
+
1605
1637
  :param dict [params]: extra parameters specific to the exchange API endpoint
1606
1638
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
1607
1639
  """
@@ -1633,10 +1665,12 @@ class hitbtc(Exchange, ImplicitAPI):
1633
1665
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1634
1666
  """
1635
1667
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1636
- :see: https://api.hitbtc.com/#candles
1637
- :see: https://api.hitbtc.com/#futures-index-price-candles
1638
- :see: https://api.hitbtc.com/#futures-mark-price-candles
1639
- :see: https://api.hitbtc.com/#futures-premium-index-candles
1668
+
1669
+ https://api.hitbtc.com/#candles
1670
+ https://api.hitbtc.com/#futures-index-price-candles
1671
+ https://api.hitbtc.com/#futures-mark-price-candles
1672
+ https://api.hitbtc.com/#futures-premium-index-candles
1673
+
1640
1674
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1641
1675
  :param str timeframe: the length of time each candle represents
1642
1676
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1737,9 +1771,11 @@ class hitbtc(Exchange, ImplicitAPI):
1737
1771
  def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1738
1772
  """
1739
1773
  fetches information on multiple closed orders made by the user
1740
- :see: https://api.hitbtc.com/#spot-orders-history
1741
- :see: https://api.hitbtc.com/#futures-orders-history
1742
- :see: https://api.hitbtc.com/#margin-orders-history
1774
+
1775
+ https://api.hitbtc.com/#spot-orders-history
1776
+ https://api.hitbtc.com/#futures-orders-history
1777
+ https://api.hitbtc.com/#margin-orders-history
1778
+
1743
1779
  :param str symbol: unified market symbol of the market orders were made in
1744
1780
  :param int [since]: the earliest time in ms to fetch orders for
1745
1781
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1781,9 +1817,12 @@ class hitbtc(Exchange, ImplicitAPI):
1781
1817
  def fetch_order(self, id: str, symbol: Str = None, params={}):
1782
1818
  """
1783
1819
  fetches information on an order made by the user
1784
- :see: https://api.hitbtc.com/#spot-orders-history
1785
- :see: https://api.hitbtc.com/#futures-orders-history
1786
- :see: https://api.hitbtc.com/#margin-orders-history
1820
+
1821
+ https://api.hitbtc.com/#spot-orders-history
1822
+ https://api.hitbtc.com/#futures-orders-history
1823
+ https://api.hitbtc.com/#margin-orders-history
1824
+
1825
+ :param str id: order id
1787
1826
  :param str symbol: unified symbol of the market the order was made in
1788
1827
  :param dict [params]: extra parameters specific to the exchange API endpoint
1789
1828
  :param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported
@@ -1839,9 +1878,11 @@ class hitbtc(Exchange, ImplicitAPI):
1839
1878
  def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1840
1879
  """
1841
1880
  fetch all the trades made from a single order
1842
- :see: https://api.hitbtc.com/#spot-trades-history
1843
- :see: https://api.hitbtc.com/#futures-trades-history
1844
- :see: https://api.hitbtc.com/#margin-trades-history
1881
+
1882
+ https://api.hitbtc.com/#spot-trades-history
1883
+ https://api.hitbtc.com/#futures-trades-history
1884
+ https://api.hitbtc.com/#margin-trades-history
1885
+
1845
1886
  :param str id: order id
1846
1887
  :param str symbol: unified market symbol
1847
1888
  :param int [since]: the earliest time in ms to fetch trades for
@@ -1918,9 +1959,11 @@ class hitbtc(Exchange, ImplicitAPI):
1918
1959
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1919
1960
  """
1920
1961
  fetch all unfilled currently open orders
1921
- :see: https://api.hitbtc.com/#get-all-active-spot-orders
1922
- :see: https://api.hitbtc.com/#get-active-futures-orders
1923
- :see: https://api.hitbtc.com/#get-active-margin-orders
1962
+
1963
+ https://api.hitbtc.com/#get-all-active-spot-orders
1964
+ https://api.hitbtc.com/#get-active-futures-orders
1965
+ https://api.hitbtc.com/#get-active-margin-orders
1966
+
1924
1967
  :param str symbol: unified market symbol
1925
1968
  :param int [since]: the earliest time in ms to fetch open orders for
1926
1969
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -1976,9 +2019,11 @@ class hitbtc(Exchange, ImplicitAPI):
1976
2019
  def fetch_open_order(self, id: str, symbol: Str = None, params={}):
1977
2020
  """
1978
2021
  fetch an open order by it's id
1979
- :see: https://api.hitbtc.com/#get-active-spot-order
1980
- :see: https://api.hitbtc.com/#get-active-futures-order
1981
- :see: https://api.hitbtc.com/#get-active-margin-order
2022
+
2023
+ https://api.hitbtc.com/#get-active-spot-order
2024
+ https://api.hitbtc.com/#get-active-futures-order
2025
+ https://api.hitbtc.com/#get-active-margin-order
2026
+
1982
2027
  :param str id: order id
1983
2028
  :param str symbol: unified market symbol, default is None
1984
2029
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2015,9 +2060,11 @@ class hitbtc(Exchange, ImplicitAPI):
2015
2060
  def cancel_all_orders(self, symbol: Str = None, params={}):
2016
2061
  """
2017
2062
  cancel all open orders
2018
- :see: https://api.hitbtc.com/#cancel-all-spot-orders
2019
- :see: https://api.hitbtc.com/#cancel-futures-orders
2020
- :see: https://api.hitbtc.com/#cancel-all-margin-orders
2063
+
2064
+ https://api.hitbtc.com/#cancel-all-spot-orders
2065
+ https://api.hitbtc.com/#cancel-futures-orders
2066
+ https://api.hitbtc.com/#cancel-all-margin-orders
2067
+
2021
2068
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
2022
2069
  :param dict [params]: extra parameters specific to the exchange API endpoint
2023
2070
  :param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported
@@ -2052,9 +2099,11 @@ class hitbtc(Exchange, ImplicitAPI):
2052
2099
  def cancel_order(self, id: str, symbol: Str = None, params={}):
2053
2100
  """
2054
2101
  cancels an open order
2055
- :see: https://api.hitbtc.com/#cancel-spot-order
2056
- :see: https://api.hitbtc.com/#cancel-futures-order
2057
- :see: https://api.hitbtc.com/#cancel-margin-order
2102
+
2103
+ https://api.hitbtc.com/#cancel-spot-order
2104
+ https://api.hitbtc.com/#cancel-futures-order
2105
+ https://api.hitbtc.com/#cancel-margin-order
2106
+
2058
2107
  :param str id: order id
2059
2108
  :param str symbol: unified symbol of the market the order was made in
2060
2109
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2123,9 +2172,11 @@ class hitbtc(Exchange, ImplicitAPI):
2123
2172
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
2124
2173
  """
2125
2174
  create a trade order
2126
- :see: https://api.hitbtc.com/#create-new-spot-order
2127
- :see: https://api.hitbtc.com/#create-margin-order
2128
- :see: https://api.hitbtc.com/#create-futures-order
2175
+
2176
+ https://api.hitbtc.com/#create-new-spot-order
2177
+ https://api.hitbtc.com/#create-margin-order
2178
+ https://api.hitbtc.com/#create-futures-order
2179
+
2129
2180
  :param str symbol: unified symbol of the market to create an order in
2130
2181
  :param str type: 'market' or 'limit'
2131
2182
  :param str side: 'buy' or 'sell'
@@ -2345,9 +2396,11 @@ class hitbtc(Exchange, ImplicitAPI):
2345
2396
  def fetch_margin_modes(self, symbols: List[Str] = None, params={}) -> MarginModes:
2346
2397
  """
2347
2398
  fetches margin mode of the user
2348
- :see: https://api.hitbtc.com/#get-margin-position-parameters
2349
- :see: https://api.hitbtc.com/#get-futures-position-parameters
2350
- :param str symbol: unified symbol of the market the order was made in
2399
+
2400
+ https://api.hitbtc.com/#get-margin-position-parameters
2401
+ https://api.hitbtc.com/#get-futures-position-parameters
2402
+
2403
+ :param str[] symbols: unified market symbols
2351
2404
  :param dict [params]: extra parameters specific to the exchange API endpoint
2352
2405
  :returns dict: a list of `margin mode structures <https://docs.ccxt.com/#/?id=margin-mode-structure>`
2353
2406
  """
@@ -2413,7 +2466,9 @@ class hitbtc(Exchange, ImplicitAPI):
2413
2466
  def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
2414
2467
  """
2415
2468
  transfer currency internally between wallets on the same account
2416
- :see: https://api.hitbtc.com/#transfer-between-wallet-and-exchange
2469
+
2470
+ https://api.hitbtc.com/#transfer-between-wallet-and-exchange
2471
+
2417
2472
  :param str code: unified currency code
2418
2473
  :param float amount: amount to transfer
2419
2474
  :param str fromAccount: account to transfer from
@@ -2494,7 +2549,9 @@ class hitbtc(Exchange, ImplicitAPI):
2494
2549
  def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2495
2550
  """
2496
2551
  make a withdrawal
2497
- :see: https://api.hitbtc.com/#withdraw-crypto
2552
+
2553
+ https://api.hitbtc.com/#withdraw-crypto
2554
+
2498
2555
  :param str code: unified currency code
2499
2556
  :param float amount: the amount to withdraw
2500
2557
  :param str address: the address to withdraw to
@@ -2535,7 +2592,9 @@ class hitbtc(Exchange, ImplicitAPI):
2535
2592
  def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
2536
2593
  """
2537
2594
  fetches funding rates for multiple markets
2538
- :see: https://api.hitbtc.com/#futures-info
2595
+
2596
+ https://api.hitbtc.com/#futures-info
2597
+
2539
2598
  :param str[] symbols: unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
2540
2599
  :param dict [params]: extra parameters specific to the exchange API endpoint
2541
2600
  :returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -2583,7 +2642,9 @@ class hitbtc(Exchange, ImplicitAPI):
2583
2642
 
2584
2643
  def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2585
2644
  """
2586
- :see: https://api.hitbtc.com/#funding-history
2645
+
2646
+ https://api.hitbtc.com/#funding-history
2647
+
2587
2648
  fetches historical funding rate prices
2588
2649
  :param str symbol: unified symbol of the market to fetch the funding rate history for
2589
2650
  :param int [since]: timestamp in ms of the earliest funding rate to fetch
@@ -2657,8 +2718,10 @@ class hitbtc(Exchange, ImplicitAPI):
2657
2718
  def fetch_positions(self, symbols: Strings = None, params={}):
2658
2719
  """
2659
2720
  fetch all open positions
2660
- :see: https://api.hitbtc.com/#get-futures-margin-accounts
2661
- :see: https://api.hitbtc.com/#get-all-margin-accounts
2721
+
2722
+ https://api.hitbtc.com/#get-futures-margin-accounts
2723
+ https://api.hitbtc.com/#get-all-margin-accounts
2724
+
2662
2725
  :param str[]|None symbols: not used by hitbtc fetchPositions()
2663
2726
  :param dict [params]: extra parameters specific to the exchange API endpoint
2664
2727
  :param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if self is set
@@ -2724,8 +2787,10 @@ class hitbtc(Exchange, ImplicitAPI):
2724
2787
  def fetch_position(self, symbol: str, params={}):
2725
2788
  """
2726
2789
  fetch data on a single open contract trade position
2727
- :see: https://api.hitbtc.com/#get-futures-margin-account
2728
- :see: https://api.hitbtc.com/#get-isolated-margin-account
2790
+
2791
+ https://api.hitbtc.com/#get-futures-margin-account
2792
+ https://api.hitbtc.com/#get-isolated-margin-account
2793
+
2729
2794
  :param str symbol: unified market symbol of the market the position is held in, default is None
2730
2795
  :param dict [params]: extra parameters specific to the exchange API endpoint
2731
2796
  :param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if self is set
@@ -2900,7 +2965,9 @@ class hitbtc(Exchange, ImplicitAPI):
2900
2965
  def fetch_open_interest(self, symbol: str, params={}):
2901
2966
  """
2902
2967
  Retrieves the open interest of a derivative trading pair
2903
- :see: https://api.hitbtc.com/#futures-info
2968
+
2969
+ https://api.hitbtc.com/#futures-info
2970
+
2904
2971
  :param str symbol: Unified CCXT market symbol
2905
2972
  :param dict [params]: exchange specific parameters
2906
2973
  :returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure:
@@ -2933,7 +3000,9 @@ class hitbtc(Exchange, ImplicitAPI):
2933
3000
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
2934
3001
  """
2935
3002
  fetch the current funding rate
2936
- :see: https://api.hitbtc.com/#futures-info
3003
+
3004
+ https://api.hitbtc.com/#futures-info
3005
+
2937
3006
  :param str symbol: unified market symbol
2938
3007
  :param dict [params]: extra parameters specific to the exchange API endpoint
2939
3008
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -3096,8 +3165,10 @@ class hitbtc(Exchange, ImplicitAPI):
3096
3165
  def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3097
3166
  """
3098
3167
  remove margin from a position
3099
- :see: https://api.hitbtc.com/#create-update-margin-account-2
3100
- :see: https://api.hitbtc.com/#create-update-margin-account
3168
+
3169
+ https://api.hitbtc.com/#create-update-margin-account-2
3170
+ https://api.hitbtc.com/#create-update-margin-account
3171
+
3101
3172
  :param str symbol: unified market symbol
3102
3173
  :param float amount: the amount of margin to remove
3103
3174
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3112,8 +3183,10 @@ class hitbtc(Exchange, ImplicitAPI):
3112
3183
  def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3113
3184
  """
3114
3185
  add margin
3115
- :see: https://api.hitbtc.com/#create-update-margin-account-2
3116
- :see: https://api.hitbtc.com/#create-update-margin-account
3186
+
3187
+ https://api.hitbtc.com/#create-update-margin-account-2
3188
+ https://api.hitbtc.com/#create-update-margin-account
3189
+
3117
3190
  :param str symbol: unified market symbol
3118
3191
  :param float amount: amount of margin to add
3119
3192
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3126,8 +3199,10 @@ class hitbtc(Exchange, ImplicitAPI):
3126
3199
  def fetch_leverage(self, symbol: str, params={}) -> Leverage:
3127
3200
  """
3128
3201
  fetch the set leverage for a market
3129
- :see: https://api.hitbtc.com/#get-futures-margin-account
3130
- :see: https://api.hitbtc.com/#get-isolated-margin-account
3202
+
3203
+ https://api.hitbtc.com/#get-futures-margin-account
3204
+ https://api.hitbtc.com/#get-isolated-margin-account
3205
+
3131
3206
  :param str symbol: unified market symbol
3132
3207
  :param dict [params]: extra parameters specific to the exchange API endpoint
3133
3208
  :param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if self is set
@@ -3200,7 +3275,9 @@ class hitbtc(Exchange, ImplicitAPI):
3200
3275
  def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
3201
3276
  """
3202
3277
  set the level of leverage for a market
3203
- :see: https://api.hitbtc.com/#create-update-margin-account-2
3278
+
3279
+ https://api.hitbtc.com/#create-update-margin-account-2
3280
+
3204
3281
  :param float leverage: the rate of leverage
3205
3282
  :param str symbol: unified market symbol
3206
3283
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -3229,7 +3306,9 @@ class hitbtc(Exchange, ImplicitAPI):
3229
3306
  def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
3230
3307
  """
3231
3308
  fetch deposit and withdraw fees
3232
- :see: https://api.hitbtc.com/#currencies
3309
+
3310
+ https://api.hitbtc.com/#currencies
3311
+
3233
3312
  :param str[]|None codes: list of unified currency codes
3234
3313
  :param dict [params]: extra parameters specific to the exchange API endpoint
3235
3314
  :returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -3314,7 +3393,11 @@ class hitbtc(Exchange, ImplicitAPI):
3314
3393
  def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
3315
3394
  """
3316
3395
  closes open positions for a market
3317
- :see: https://api.hitbtc.com/#close-all-futures-margin-positions
3396
+
3397
+ https://api.hitbtc.com/#close-all-futures-margin-positions
3398
+
3399
+ @param symbol
3400
+ @param side
3318
3401
  :param dict [params]: extra parameters specific to the okx api endpoint
3319
3402
  :param str [params.symbol]: *required* unified market symbol
3320
3403
  :param str [params.marginMode]: 'cross' or 'isolated', default is 'cross'
@@ -3348,7 +3431,7 @@ class hitbtc(Exchange, ImplicitAPI):
3348
3431
 
3349
3432
  def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
3350
3433
  """
3351
- * @ignore
3434
+ @ignore
3352
3435
  marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
3353
3436
  :param dict [params]: extra parameters specific to the exchange API endpoint
3354
3437
  :returns Array: the marginMode in lowercase