ccxt 4.0.74 → 4.0.76

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 (299) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2635 -2383
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +11 -11
  6. package/dist/cjs/src/alpaca.js +7 -7
  7. package/dist/cjs/src/ascendex.js +25 -25
  8. package/dist/cjs/src/base/Exchange.js +4 -4
  9. package/dist/cjs/src/bigone.js +19 -19
  10. package/dist/cjs/src/binance.js +56 -56
  11. package/dist/cjs/src/bingx.js +85 -40
  12. package/dist/cjs/src/bit2c.js +12 -12
  13. package/dist/cjs/src/bitbank.js +13 -13
  14. package/dist/cjs/src/bitbns.js +14 -14
  15. package/dist/cjs/src/bitfinex.js +21 -21
  16. package/dist/cjs/src/bitfinex2.js +29 -29
  17. package/dist/cjs/src/bitflyer.js +17 -17
  18. package/dist/cjs/src/bitforex.js +11 -11
  19. package/dist/cjs/src/bitget.js +39 -39
  20. package/dist/cjs/src/bithumb.js +11 -11
  21. package/dist/cjs/src/bitmart.js +44 -31
  22. package/dist/cjs/src/bitmex.js +24 -24
  23. package/dist/cjs/src/bitopro.js +21 -21
  24. package/dist/cjs/src/bitpanda.js +21 -21
  25. package/dist/cjs/src/bitrue.js +18 -18
  26. package/dist/cjs/src/bitso.js +21 -21
  27. package/dist/cjs/src/bitstamp.js +21 -21
  28. package/dist/cjs/src/bitstamp1.js +8 -8
  29. package/dist/cjs/src/bittrex.js +27 -27
  30. package/dist/cjs/src/bitvavo.js +19 -19
  31. package/dist/cjs/src/bkex.js +21 -21
  32. package/dist/cjs/src/bl3p.js +8 -8
  33. package/dist/cjs/src/blockchaincom.js +21 -21
  34. package/dist/cjs/src/btcalpha.js +15 -15
  35. package/dist/cjs/src/btcbox.js +10 -10
  36. package/dist/cjs/src/btcmarkets.js +17 -17
  37. package/dist/cjs/src/btctradeua.js +8 -8
  38. package/dist/cjs/src/btcturk.js +11 -11
  39. package/dist/cjs/src/bybit.js +153 -121
  40. package/dist/cjs/src/cex.js +14 -14
  41. package/dist/cjs/src/coinbase.js +23 -23
  42. package/dist/cjs/src/coinbasepro.js +24 -24
  43. package/dist/cjs/src/coincheck.js +12 -12
  44. package/dist/cjs/src/coinex.js +87 -41
  45. package/dist/cjs/src/coinfalcon.js +16 -16
  46. package/dist/cjs/src/coinmate.js +14 -14
  47. package/dist/cjs/src/coinone.js +12 -12
  48. package/dist/cjs/src/coinsph.js +27 -22
  49. package/dist/cjs/src/coinspot.js +8 -8
  50. package/dist/cjs/src/cryptocom.js +29 -29
  51. package/dist/cjs/src/currencycom.js +20 -20
  52. package/dist/cjs/src/delta.js +25 -25
  53. package/dist/cjs/src/deribit.js +30 -30
  54. package/dist/cjs/src/digifinex.js +31 -31
  55. package/dist/cjs/src/exmo.js +26 -26
  56. package/dist/cjs/src/gate.js +38 -38
  57. package/dist/cjs/src/gemini.js +17 -17
  58. package/dist/cjs/src/hitbtc.js +34 -34
  59. package/dist/cjs/src/hollaex.js +23 -23
  60. package/dist/cjs/src/huobi.js +45 -45
  61. package/dist/cjs/src/huobijp.js +20 -20
  62. package/dist/cjs/src/idex.js +19 -19
  63. package/dist/cjs/src/independentreserve.js +12 -12
  64. package/dist/cjs/src/indodax.js +14 -14
  65. package/dist/cjs/src/kraken.js +27 -27
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +33 -33
  68. package/dist/cjs/src/kucoinfutures.js +24 -24
  69. package/dist/cjs/src/kuna.js +12 -12
  70. package/dist/cjs/src/latoken.js +17 -17
  71. package/dist/cjs/src/lbank.js +12 -12
  72. package/dist/cjs/src/lbank2.js +23 -23
  73. package/dist/cjs/src/luno.js +16 -16
  74. package/dist/cjs/src/lykke.js +16 -16
  75. package/dist/cjs/src/mercado.js +12 -12
  76. package/dist/cjs/src/mexc.js +44 -42
  77. package/dist/cjs/src/ndax.js +20 -20
  78. package/dist/cjs/src/novadax.js +20 -20
  79. package/dist/cjs/src/oceanex.js +16 -16
  80. package/dist/cjs/src/okcoin.js +21 -21
  81. package/dist/cjs/src/okx.js +52 -52
  82. package/dist/cjs/src/paymium.js +11 -11
  83. package/dist/cjs/src/phemex.js +26 -26
  84. package/dist/cjs/src/poloniex.js +237 -136
  85. package/dist/cjs/src/poloniexfutures.js +18 -18
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +4 -4
  88. package/dist/cjs/src/pro/binance.js +16 -16
  89. package/dist/cjs/src/pro/bitfinex.js +4 -4
  90. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  91. package/dist/cjs/src/pro/bitget.js +6 -6
  92. package/dist/cjs/src/pro/bitmart.js +4 -4
  93. package/dist/cjs/src/pro/bitmex.js +6 -6
  94. package/dist/cjs/src/pro/bitopro.js +4 -4
  95. package/dist/cjs/src/pro/bitpanda.js +6 -6
  96. package/dist/cjs/src/pro/bitrue.js +2 -2
  97. package/dist/cjs/src/pro/bitstamp.js +3 -3
  98. package/dist/cjs/src/pro/bittrex.js +6 -6
  99. package/dist/cjs/src/pro/bitvavo.js +5 -5
  100. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  101. package/dist/cjs/src/pro/bybit.js +6 -6
  102. package/dist/cjs/src/pro/cex.js +7 -7
  103. package/dist/cjs/src/pro/coinbase.js +5 -5
  104. package/dist/cjs/src/pro/coinbasepro.js +6 -6
  105. package/dist/cjs/src/pro/coinex.js +5 -5
  106. package/dist/cjs/src/pro/cryptocom.js +10 -10
  107. package/dist/cjs/src/pro/currencycom.js +4 -4
  108. package/dist/cjs/src/pro/deribit.js +6 -6
  109. package/dist/cjs/src/pro/exmo.js +5 -5
  110. package/dist/cjs/src/pro/gate.js +7 -7
  111. package/dist/cjs/src/pro/gemini.js +3 -3
  112. package/dist/cjs/src/pro/hitbtc.js +3 -3
  113. package/dist/cjs/src/pro/hollaex.js +5 -5
  114. package/dist/cjs/src/pro/huobi.js +6 -6
  115. package/dist/cjs/src/pro/huobijp.js +3 -3
  116. package/dist/cjs/src/pro/idex.js +4 -4
  117. package/dist/cjs/src/pro/independentreserve.js +2 -2
  118. package/dist/cjs/src/pro/kraken.js +12 -12
  119. package/dist/cjs/src/pro/krakenfutures.js +7 -7
  120. package/dist/cjs/src/pro/kucoin.js +6 -6
  121. package/dist/cjs/src/pro/kucoinfutures.js +6 -5
  122. package/dist/cjs/src/pro/luno.js +2 -2
  123. package/dist/cjs/src/pro/mexc.js +6 -6
  124. package/dist/cjs/src/pro/ndax.js +3 -3
  125. package/dist/cjs/src/pro/okcoin.js +5 -5
  126. package/dist/cjs/src/pro/okx.js +19 -18
  127. package/dist/cjs/src/pro/phemex.js +6 -6
  128. package/dist/cjs/src/pro/poloniex.js +7 -7
  129. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  130. package/dist/cjs/src/pro/probit.js +6 -6
  131. package/dist/cjs/src/pro/upbit.js +3 -3
  132. package/dist/cjs/src/pro/wazirx.js +6 -6
  133. package/dist/cjs/src/pro/whitebit.js +6 -6
  134. package/dist/cjs/src/probit.js +19 -19
  135. package/dist/cjs/src/tidex.js +13 -13
  136. package/dist/cjs/src/timex.js +16 -16
  137. package/dist/cjs/src/tokocrypto.js +18 -18
  138. package/dist/cjs/src/upbit.js +20 -20
  139. package/dist/cjs/src/wavesexchange.js +16 -16
  140. package/dist/cjs/src/wazirx.js +12 -12
  141. package/dist/cjs/src/whitebit.js +24 -24
  142. package/dist/cjs/src/woo.js +30 -24
  143. package/dist/cjs/src/yobit.js +16 -16
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +15 -15
  146. package/js/ccxt.d.ts +1 -1
  147. package/js/ccxt.js +1 -1
  148. package/js/src/abstract/bingx.d.ts +2 -0
  149. package/js/src/abstract/bitmart.d.ts +13 -0
  150. package/js/src/abstract/bybit.d.ts +33 -21
  151. package/js/src/abstract/coinsph.d.ts +5 -0
  152. package/js/src/abstract/woo.d.ts +6 -0
  153. package/js/src/ace.js +11 -11
  154. package/js/src/alpaca.js +7 -7
  155. package/js/src/ascendex.js +25 -25
  156. package/js/src/base/Exchange.js +4 -4
  157. package/js/src/bigone.js +19 -19
  158. package/js/src/binance.js +56 -56
  159. package/js/src/bingx.d.ts +1 -0
  160. package/js/src/bingx.js +85 -40
  161. package/js/src/bit2c.js +12 -12
  162. package/js/src/bitbank.js +13 -13
  163. package/js/src/bitbns.js +14 -14
  164. package/js/src/bitfinex.js +21 -21
  165. package/js/src/bitfinex2.js +29 -29
  166. package/js/src/bitflyer.js +17 -17
  167. package/js/src/bitforex.js +11 -11
  168. package/js/src/bitget.js +39 -39
  169. package/js/src/bithumb.js +11 -11
  170. package/js/src/bitmart.js +44 -31
  171. package/js/src/bitmex.js +24 -24
  172. package/js/src/bitopro.js +21 -21
  173. package/js/src/bitpanda.js +21 -21
  174. package/js/src/bitrue.js +18 -18
  175. package/js/src/bitso.js +21 -21
  176. package/js/src/bitstamp.js +21 -21
  177. package/js/src/bitstamp1.js +8 -8
  178. package/js/src/bittrex.js +27 -27
  179. package/js/src/bitvavo.js +19 -19
  180. package/js/src/bkex.js +21 -21
  181. package/js/src/bl3p.js +8 -8
  182. package/js/src/blockchaincom.js +21 -21
  183. package/js/src/btcalpha.js +15 -15
  184. package/js/src/btcbox.js +10 -10
  185. package/js/src/btcmarkets.js +17 -17
  186. package/js/src/btctradeua.js +8 -8
  187. package/js/src/btcturk.js +11 -11
  188. package/js/src/bybit.js +153 -121
  189. package/js/src/cex.js +14 -14
  190. package/js/src/coinbase.js +23 -23
  191. package/js/src/coinbasepro.js +24 -24
  192. package/js/src/coincheck.js +12 -12
  193. package/js/src/coinex.d.ts +1 -0
  194. package/js/src/coinex.js +87 -41
  195. package/js/src/coinfalcon.js +16 -16
  196. package/js/src/coinmate.js +14 -14
  197. package/js/src/coinone.js +12 -12
  198. package/js/src/coinsph.js +27 -22
  199. package/js/src/coinspot.js +8 -8
  200. package/js/src/cryptocom.js +29 -29
  201. package/js/src/currencycom.js +20 -20
  202. package/js/src/delta.js +25 -25
  203. package/js/src/deribit.js +30 -30
  204. package/js/src/digifinex.js +31 -31
  205. package/js/src/exmo.js +26 -26
  206. package/js/src/gate.js +38 -38
  207. package/js/src/gemini.js +17 -17
  208. package/js/src/hitbtc.js +34 -34
  209. package/js/src/hollaex.js +23 -23
  210. package/js/src/huobi.js +45 -45
  211. package/js/src/huobijp.js +20 -20
  212. package/js/src/idex.js +19 -19
  213. package/js/src/independentreserve.js +12 -12
  214. package/js/src/indodax.js +14 -14
  215. package/js/src/kraken.js +27 -27
  216. package/js/src/krakenfutures.js +12 -12
  217. package/js/src/kucoin.js +33 -33
  218. package/js/src/kucoinfutures.js +24 -24
  219. package/js/src/kuna.js +12 -12
  220. package/js/src/latoken.js +17 -17
  221. package/js/src/lbank.js +12 -12
  222. package/js/src/lbank2.js +23 -23
  223. package/js/src/luno.js +16 -16
  224. package/js/src/lykke.js +16 -16
  225. package/js/src/mercado.js +12 -12
  226. package/js/src/mexc.js +45 -43
  227. package/js/src/ndax.js +20 -20
  228. package/js/src/novadax.js +20 -20
  229. package/js/src/oceanex.js +16 -16
  230. package/js/src/okcoin.js +21 -21
  231. package/js/src/okx.js +52 -52
  232. package/js/src/paymium.js +11 -11
  233. package/js/src/phemex.js +26 -26
  234. package/js/src/poloniex.d.ts +1 -1
  235. package/js/src/poloniex.js +237 -136
  236. package/js/src/poloniexfutures.js +18 -18
  237. package/js/src/pro/alpaca.js +5 -5
  238. package/js/src/pro/ascendex.js +4 -4
  239. package/js/src/pro/binance.js +16 -16
  240. package/js/src/pro/bitfinex.js +4 -4
  241. package/js/src/pro/bitfinex2.js +6 -6
  242. package/js/src/pro/bitget.js +6 -6
  243. package/js/src/pro/bitmart.js +4 -4
  244. package/js/src/pro/bitmex.js +6 -6
  245. package/js/src/pro/bitopro.js +4 -4
  246. package/js/src/pro/bitpanda.js +6 -6
  247. package/js/src/pro/bitrue.js +2 -2
  248. package/js/src/pro/bitstamp.js +3 -3
  249. package/js/src/pro/bittrex.js +6 -6
  250. package/js/src/pro/bitvavo.js +5 -5
  251. package/js/src/pro/blockchaincom.js +5 -5
  252. package/js/src/pro/bybit.js +6 -6
  253. package/js/src/pro/cex.js +7 -7
  254. package/js/src/pro/coinbase.js +5 -5
  255. package/js/src/pro/coinbasepro.js +6 -6
  256. package/js/src/pro/coinex.js +5 -5
  257. package/js/src/pro/cryptocom.js +10 -10
  258. package/js/src/pro/currencycom.js +4 -4
  259. package/js/src/pro/deribit.js +6 -6
  260. package/js/src/pro/exmo.js +5 -5
  261. package/js/src/pro/gate.js +7 -7
  262. package/js/src/pro/gemini.js +3 -3
  263. package/js/src/pro/hitbtc.js +3 -3
  264. package/js/src/pro/hollaex.js +5 -5
  265. package/js/src/pro/huobi.js +6 -6
  266. package/js/src/pro/huobijp.js +3 -3
  267. package/js/src/pro/idex.js +4 -4
  268. package/js/src/pro/independentreserve.js +2 -2
  269. package/js/src/pro/kraken.js +12 -12
  270. package/js/src/pro/krakenfutures.js +7 -7
  271. package/js/src/pro/kucoin.js +6 -6
  272. package/js/src/pro/kucoinfutures.js +6 -5
  273. package/js/src/pro/luno.js +2 -2
  274. package/js/src/pro/mexc.js +6 -6
  275. package/js/src/pro/ndax.js +3 -3
  276. package/js/src/pro/okcoin.js +5 -5
  277. package/js/src/pro/okx.d.ts +1 -1
  278. package/js/src/pro/okx.js +19 -18
  279. package/js/src/pro/phemex.js +6 -6
  280. package/js/src/pro/poloniex.js +7 -7
  281. package/js/src/pro/poloniexfutures.js +5 -5
  282. package/js/src/pro/probit.js +6 -6
  283. package/js/src/pro/upbit.js +3 -3
  284. package/js/src/pro/wazirx.js +6 -6
  285. package/js/src/pro/whitebit.js +6 -6
  286. package/js/src/probit.js +19 -19
  287. package/js/src/tidex.js +13 -13
  288. package/js/src/timex.js +16 -16
  289. package/js/src/tokocrypto.js +18 -18
  290. package/js/src/upbit.js +20 -20
  291. package/js/src/wavesexchange.js +16 -16
  292. package/js/src/wazirx.js +12 -12
  293. package/js/src/whitebit.js +24 -24
  294. package/js/src/woo.js +30 -24
  295. package/js/src/yobit.js +16 -16
  296. package/js/src/zaif.js +10 -10
  297. package/js/src/zonda.js +15 -15
  298. package/package.json +1 -1
  299. package/skip-tests.json +2 -0
package/js/src/bingx.js CHANGED
@@ -101,11 +101,13 @@ export default class bingx extends Exchange {
101
101
  'trade/openOrders': 3,
102
102
  'trade/historyOrders': 3,
103
103
  'account/balance': 3,
104
+ 'ticker/24hr': 1,
104
105
  },
105
106
  'post': {
106
107
  'trade/order': 3,
107
108
  'trade/cancel': 3,
108
109
  'trade/batchOrders': 3,
110
+ 'trade/cancelOrders': 3,
109
111
  },
110
112
  },
111
113
  },
@@ -685,7 +687,7 @@ export default class bingx extends Exchange {
685
687
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
686
688
  * @param {int} [limit] the maximum amount of trades to fetch
687
689
  * @param {object} [params] extra parameters specific to the bingx api endpoint
688
- * @returns {[object]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
690
+ * @returns {[object]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
689
691
  */
690
692
  await this.loadMarkets();
691
693
  const market = this.market(symbol);
@@ -825,7 +827,7 @@ export default class bingx extends Exchange {
825
827
  * @param {string} symbol unified symbol of the market to fetch the order book for
826
828
  * @param {int} [limit] the maximum amount of order book entries to return
827
829
  * @param {object} [params] extra parameters specific to the bingx api endpoint
828
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
830
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
829
831
  */
830
832
  await this.loadMarkets();
831
833
  const market = this.market(symbol);
@@ -913,7 +915,7 @@ export default class bingx extends Exchange {
913
915
  * @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
914
916
  * @param {string} symbol unified market symbol
915
917
  * @param {object} [params] extra parameters specific to the bingx api endpoint
916
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
918
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
917
919
  */
918
920
  await this.loadMarkets();
919
921
  const market = this.market(symbol);
@@ -980,9 +982,9 @@ export default class bingx extends Exchange {
980
982
  * @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
981
983
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
982
984
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
983
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure} to fetch
985
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
984
986
  * @param {object} [params] extra parameters specific to the bingx api endpoint
985
- * @returns {[object]} a list of [funding rate structures]{@link https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure}
987
+ * @returns {[object]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
986
988
  */
987
989
  this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
988
990
  await this.loadMarkets();
@@ -1037,7 +1039,7 @@ export default class bingx extends Exchange {
1037
1039
  * @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
1038
1040
  * @param {string} symbol Unified CCXT market symbol
1039
1041
  * @param {object} [params] exchange specific parameters
1040
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure}
1042
+ * @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
1041
1043
  */
1042
1044
  await this.loadMarkets();
1043
1045
  const market = this.market(symbol);
@@ -1086,19 +1088,23 @@ export default class bingx extends Exchange {
1086
1088
  * @name bingx#fetchTicker
1087
1089
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1088
1090
  * @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
1091
+ * @see https://bingx-api.github.io/docs/#/spot/market-api.html#24%E5%B0%8F%E6%97%B6%E4%BB%B7%E6%A0%BC%E5%8F%98%E5%8A%A8%E6%83%85%E5%86%B5
1089
1092
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1090
1093
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1091
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1094
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1092
1095
  */
1093
1096
  await this.loadMarkets();
1094
1097
  const market = this.market(symbol);
1095
- if (!market['swap']) {
1096
- throw new BadRequest(this.id + ' fetchTicker is only supported for swap markets.');
1097
- }
1098
1098
  const request = {
1099
1099
  'symbol': market['id'],
1100
1100
  };
1101
- const response = await this.swapV2PublicGetQuoteTicker(this.extend(request, params));
1101
+ let response = undefined;
1102
+ if (market['spot']) {
1103
+ response = await this.swapV2PublicGetQuoteTicker(this.extend(request, params));
1104
+ }
1105
+ else {
1106
+ response = await this.spotV1PublicGetCommonSymbols(this.extend(request, params));
1107
+ }
1102
1108
  //
1103
1109
  // {
1104
1110
  // "code": 0,
@@ -1130,7 +1136,7 @@ export default class bingx extends Exchange {
1130
1136
  * @see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
1131
1137
  * @param {[string]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1132
1138
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1133
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1139
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1134
1140
  */
1135
1141
  await this.loadMarkets();
1136
1142
  if (symbols !== undefined) {
@@ -1195,10 +1201,12 @@ export default class bingx extends Exchange {
1195
1201
  const baseVolume = this.safeString(ticker, 'volume');
1196
1202
  const change = this.safeString(ticker, 'chapriceChangenge');
1197
1203
  const percentage = this.safeString(ticker, 'priceChangePercent');
1204
+ const ts = this.safeInteger(ticker, 'closeTime');
1205
+ const datetime = this.iso8601(ts);
1198
1206
  return this.safeTicker({
1199
1207
  'symbol': symbol,
1200
- 'timestamp': undefined,
1201
- 'datetime': undefined,
1208
+ 'timestamp': ts,
1209
+ 'datetime': datetime,
1202
1210
  'high': high,
1203
1211
  'low': low,
1204
1212
  'bid': undefined,
@@ -1228,7 +1236,7 @@ export default class bingx extends Exchange {
1228
1236
  * @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
1229
1237
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1230
1238
  * @param {boolean} [params.standard] whether to fetch standard contract balances
1231
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
1239
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1232
1240
  */
1233
1241
  await this.loadMarkets();
1234
1242
  let response = undefined;
@@ -1346,7 +1354,7 @@ export default class bingx extends Exchange {
1346
1354
  * @param {[string]|undefined} symbols list of unified market symbols
1347
1355
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1348
1356
  * @param {boolean} [params.standard] whether to fetch standard contract positions
1349
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
1357
+ * @returns {[object]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
1350
1358
  */
1351
1359
  await this.loadMarkets();
1352
1360
  symbols = this.marketSymbols(symbols);
@@ -1462,7 +1470,7 @@ export default class bingx extends Exchange {
1462
1470
  * @param {object} [params.triggerPrice] triggerPrice at which the attached take profit / stop loss order will be triggered (swap markets only)
1463
1471
  * @param {float} [params.stopLossPrice] stop loss trigger price (swap markets only)
1464
1472
  * @param {float} [params.takeProfitPrice] take profit trigger price (swap markets only)
1465
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1473
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1466
1474
  */
1467
1475
  await this.loadMarkets();
1468
1476
  const market = this.market(symbol);
@@ -1754,7 +1762,7 @@ export default class bingx extends Exchange {
1754
1762
  * @param {string} id order id
1755
1763
  * @param {string} symbol unified symbol of the market the order was made in
1756
1764
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1757
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1765
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1758
1766
  */
1759
1767
  this.checkRequiredSymbol('cancelOrder', symbol);
1760
1768
  await this.loadMarkets();
@@ -1829,7 +1837,7 @@ export default class bingx extends Exchange {
1829
1837
  * @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
1830
1838
  * @param {string} [symbol] unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1831
1839
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1832
- * @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1840
+ * @returns {[object]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1833
1841
  */
1834
1842
  this.checkRequiredSymbol('cancelAllOrders', symbol);
1835
1843
  await this.loadMarkets();
@@ -1878,22 +1886,33 @@ export default class bingx extends Exchange {
1878
1886
  * @name bingx#cancelOrders
1879
1887
  * @description cancel multiple orders
1880
1888
  * @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
1889
+ * @see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
1881
1890
  * @param {[string]} ids order ids
1882
1891
  * @param {string} symbol unified market symbol, default is undefined
1883
1892
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1884
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1893
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1885
1894
  */
1886
1895
  this.checkRequiredSymbol('cancelOrders', symbol);
1887
1896
  await this.loadMarkets();
1888
1897
  const market = this.market(symbol);
1889
- if (market['type'] !== 'swap') {
1890
- throw new BadRequest(this.id + ' cancelOrders is only supported for swap markets.');
1891
- }
1892
1898
  const request = {
1893
1899
  'symbol': market['id'],
1894
- 'ids': ids,
1895
1900
  };
1896
- const response = await this.swapV2PrivateDeleteTradeBatchOrders(this.extend(request, params));
1901
+ const parsedIds = [];
1902
+ for (let i = 0; i < ids.length; i++) {
1903
+ const id = ids[i];
1904
+ const stringId = id.toString();
1905
+ parsedIds.push(stringId);
1906
+ }
1907
+ let response = undefined;
1908
+ if (market['spot']) {
1909
+ request['orderIds'] = parsedIds.join(',');
1910
+ response = await this.spotV1PrivatePostTradeCancelOrders(this.extend(request, params));
1911
+ }
1912
+ else {
1913
+ request['orderIdList'] = parsedIds;
1914
+ response = await this.swapV2PrivateDeleteTradeBatchOrders(this.extend(request, params));
1915
+ }
1897
1916
  //
1898
1917
  // {
1899
1918
  // "code": 0,
@@ -1934,7 +1953,7 @@ export default class bingx extends Exchange {
1934
1953
  * @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
1935
1954
  * @param {string} symbol unified symbol of the market the order was made in
1936
1955
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1937
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1956
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1938
1957
  */
1939
1958
  this.checkRequiredSymbol('fetchOrders', symbol);
1940
1959
  await this.loadMarkets();
@@ -2017,7 +2036,7 @@ export default class bingx extends Exchange {
2017
2036
  * @param {int} [since] the earliest time in ms to fetch open orders for
2018
2037
  * @param {int} [limit] the maximum number of open order structures to retrieve
2019
2038
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2020
- * @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2039
+ * @returns {[object]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2021
2040
  */
2022
2041
  this.checkRequiredSymbol('fetchOrders', symbol);
2023
2042
  await this.loadMarkets();
@@ -2106,7 +2125,7 @@ export default class bingx extends Exchange {
2106
2125
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2107
2126
  * @param {int} [params.until] the latest time in ms to fetch orders for
2108
2127
  * @param {boolean} [params.standard] whether to fetch standard contract orders
2109
- * @returns {[object]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2128
+ * @returns {[object]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2110
2129
  */
2111
2130
  this.checkRequiredSymbol('fetchClosedOrders', symbol);
2112
2131
  await this.loadMarkets();
@@ -2197,7 +2216,7 @@ export default class bingx extends Exchange {
2197
2216
  * @param {string} fromAccount account to transfer from
2198
2217
  * @param {string} toAccount account to transfer to
2199
2218
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2200
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2219
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2201
2220
  */
2202
2221
  await this.loadMarkets();
2203
2222
  const currency = this.currency(code);
@@ -2237,7 +2256,7 @@ export default class bingx extends Exchange {
2237
2256
  * @param {int} [since] the earliest time in ms to fetch transfers for
2238
2257
  * @param {int} [limit] the maximum number of transfers structures to retrieve
2239
2258
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2240
- * @returns {[object]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2259
+ * @returns {[object]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2241
2260
  */
2242
2261
  await this.loadMarkets();
2243
2262
  let currency = undefined;
@@ -2314,7 +2333,7 @@ export default class bingx extends Exchange {
2314
2333
  * @param {int} [since] the earliest time in ms to fetch deposits for
2315
2334
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2316
2335
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2317
- * @returns {[object]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2336
+ * @returns {[object]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2318
2337
  */
2319
2338
  await this.loadMarkets();
2320
2339
  const request = {};
@@ -2359,7 +2378,7 @@ export default class bingx extends Exchange {
2359
2378
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2360
2379
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2361
2380
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2362
- * @returns {[object]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2381
+ * @returns {[object]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2363
2382
  */
2364
2383
  await this.loadMarkets();
2365
2384
  const request = {};
@@ -2531,7 +2550,7 @@ export default class bingx extends Exchange {
2531
2550
  * @param {string} symbol unified market symbol of the market to set margin in
2532
2551
  * @param {float} amount the amount to set the margin to
2533
2552
  * @param {object} [params] parameters specific to the bingx api endpoint
2534
- * @returns {object} A [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
2553
+ * @returns {object} A [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
2535
2554
  */
2536
2555
  const type = this.safeInteger(params, 'type'); // 1 increase margin 2 decrease margin
2537
2556
  if (type === undefined) {
@@ -2566,7 +2585,7 @@ export default class bingx extends Exchange {
2566
2585
  * @see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
2567
2586
  * @param {string} symbol unified market symbol
2568
2587
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2569
- * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
2588
+ * @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
2570
2589
  */
2571
2590
  await this.loadMarkets();
2572
2591
  const market = this.market(symbol);
@@ -2630,7 +2649,7 @@ export default class bingx extends Exchange {
2630
2649
  * @param {int} [limit] the maximum number of trades structures to retrieve
2631
2650
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2632
2651
  * @param {string} params.trandingUnit COIN (directly represent assets such as BTC and ETH) or CONT (represents the number of contract sheets)
2633
- * @returns {[object]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
2652
+ * @returns {[object]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
2634
2653
  */
2635
2654
  this.checkRequiredArgument('fetchMyTrades', symbol, 'symbol');
2636
2655
  this.checkRequiredArgument('fetchMyTrades', since, 'since');
@@ -2742,7 +2761,7 @@ export default class bingx extends Exchange {
2742
2761
  * @see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
2743
2762
  * @param {[string]|undefined} codes list of unified currency codes
2744
2763
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2745
- * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/en/latest/manual.html#fee-structure}
2764
+ * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2746
2765
  */
2747
2766
  await this.loadMarkets();
2748
2767
  const response = await this.walletsV1PrivateGetCapitalConfigGetall(params);
@@ -2761,7 +2780,7 @@ export default class bingx extends Exchange {
2761
2780
  * @param {string} [tag]
2762
2781
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2763
2782
  * @param {int} [params.walletType] 1 fund account, 2 standard account, 3 perpetual account
2764
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2783
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2765
2784
  */
2766
2785
  await this.loadMarkets();
2767
2786
  const currency = this.currency(code);
@@ -2794,6 +2813,33 @@ export default class bingx extends Exchange {
2794
2813
  // }
2795
2814
  this.parseTransaction(data);
2796
2815
  }
2816
+ parseParams(params) {
2817
+ let result = '';
2818
+ const sortedParams = this.keysort(params);
2819
+ const keys = Object.keys(sortedParams);
2820
+ for (let i = 0; i < keys.length; i++) {
2821
+ const key = keys[i];
2822
+ if (i > 0) {
2823
+ result += '&';
2824
+ }
2825
+ const value = sortedParams[key];
2826
+ if (Array.isArray(value)) {
2827
+ result += key + '=[';
2828
+ for (let j = 0; j < value.length; j++) {
2829
+ const arrayElement = value[j];
2830
+ if (j > 0) {
2831
+ result += ',';
2832
+ }
2833
+ result += arrayElement.toString();
2834
+ }
2835
+ result += ']';
2836
+ }
2837
+ else {
2838
+ result += key + '=' + value.toString();
2839
+ }
2840
+ }
2841
+ return result;
2842
+ }
2797
2843
  sign(path, section = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
2798
2844
  const type = section[0];
2799
2845
  const version = section[1];
@@ -2818,9 +2864,8 @@ export default class bingx extends Exchange {
2818
2864
  else if (access === 'private') {
2819
2865
  this.checkRequiredCredentials();
2820
2866
  params['timestamp'] = this.nonce();
2821
- let query = this.urlencode(params);
2822
- const rawQuery = this.rawencode(params);
2823
- const signature = this.hmac(this.encode(rawQuery), this.encode(this.secret), sha256);
2867
+ let query = this.parseParams(params);
2868
+ const signature = this.hmac(this.encode(query), this.encode(this.secret), sha256);
2824
2869
  if (Object.keys(params).length) {
2825
2870
  query = '?' + query + '&';
2826
2871
  }
package/js/src/bit2c.js CHANGED
@@ -208,7 +208,7 @@ export default class bit2c extends Exchange {
208
208
  * @name bit2c#fetchBalance
209
209
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
210
210
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
211
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
211
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
212
212
  */
213
213
  await this.loadMarkets();
214
214
  const response = await this.privateGetAccountBalanceV2(params);
@@ -264,7 +264,7 @@ export default class bit2c extends Exchange {
264
264
  * @param {string} symbol unified symbol of the market to fetch the order book for
265
265
  * @param {int} [limit] the maximum amount of order book entries to return
266
266
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
267
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
267
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
268
268
  */
269
269
  await this.loadMarkets();
270
270
  const market = this.market(symbol);
@@ -310,7 +310,7 @@ export default class bit2c extends Exchange {
310
310
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
311
311
  * @param {string} symbol unified symbol of the market to fetch the ticker for
312
312
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
313
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
313
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
314
314
  */
315
315
  await this.loadMarkets();
316
316
  const market = this.market(symbol);
@@ -329,7 +329,7 @@ export default class bit2c extends Exchange {
329
329
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
330
330
  * @param {int} [limit] the maximum amount of trades to fetch
331
331
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
332
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
332
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
333
333
  */
334
334
  await this.loadMarkets();
335
335
  const market = this.market(symbol);
@@ -362,7 +362,7 @@ export default class bit2c extends Exchange {
362
362
  * @name bit2c#fetchTradingFees
363
363
  * @description fetch the trading fees for multiple markets
364
364
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
365
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
365
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
366
366
  */
367
367
  await this.loadMarkets();
368
368
  const response = await this.privateGetAccountBalance(params);
@@ -413,9 +413,9 @@ export default class bit2c extends Exchange {
413
413
  * @param {string} type 'market' or 'limit'
414
414
  * @param {string} side 'buy' or 'sell'
415
415
  * @param {float} amount how much of currency you want to trade in units of base currency
416
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
416
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
417
417
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
418
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
418
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
419
419
  */
420
420
  await this.loadMarkets();
421
421
  let method = 'privatePostOrderAddOrder';
@@ -445,7 +445,7 @@ export default class bit2c extends Exchange {
445
445
  * @param {string} id order id
446
446
  * @param {string} symbol Not used by bit2c cancelOrder ()
447
447
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
448
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
448
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
449
449
  */
450
450
  const request = {
451
451
  'id': id,
@@ -461,7 +461,7 @@ export default class bit2c extends Exchange {
461
461
  * @param {int} [since] the earliest time in ms to fetch open orders for
462
462
  * @param {int} [limit] the maximum number of open orders structures to retrieve
463
463
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
464
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
464
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
465
465
  */
466
466
  if (symbol === undefined) {
467
467
  throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
@@ -484,7 +484,7 @@ export default class bit2c extends Exchange {
484
484
  * @description fetches information on an order made by the user
485
485
  * @param {string} symbol unified market symbol
486
486
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
487
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
487
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
488
488
  */
489
489
  await this.loadMarkets();
490
490
  const market = this.market(symbol);
@@ -638,7 +638,7 @@ export default class bit2c extends Exchange {
638
638
  * @param {int} [since] the earliest time in ms to fetch trades for
639
639
  * @param {int} [limit] the maximum number of trades structures to retrieve
640
640
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
641
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
641
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
642
642
  */
643
643
  await this.loadMarkets();
644
644
  let market = undefined;
@@ -816,7 +816,7 @@ export default class bit2c extends Exchange {
816
816
  * @description fetch the deposit address for a currency associated with this account
817
817
  * @param {string} code unified currency code
818
818
  * @param {object} [params] extra parameters specific to the bit2c api endpoint
819
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
819
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
820
820
  */
821
821
  await this.loadMarkets();
822
822
  const currency = this.currency(code);
package/js/src/bitbank.js CHANGED
@@ -287,7 +287,7 @@ export default class bitbank extends Exchange {
287
287
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
288
288
  * @param {string} symbol unified symbol of the market to fetch the ticker for
289
289
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
290
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
290
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
291
291
  */
292
292
  await this.loadMarkets();
293
293
  const market = this.market(symbol);
@@ -306,7 +306,7 @@ export default class bitbank extends Exchange {
306
306
  * @param {string} symbol unified symbol of the market to fetch the order book for
307
307
  * @param {int} [limit] the maximum amount of order book entries to return
308
308
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
309
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
309
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
310
310
  */
311
311
  await this.loadMarkets();
312
312
  const market = this.market(symbol);
@@ -361,7 +361,7 @@ export default class bitbank extends Exchange {
361
361
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
362
362
  * @param {int} [limit] the maximum amount of trades to fetch
363
363
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
364
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
364
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
365
365
  */
366
366
  await this.loadMarkets();
367
367
  const market = this.market(symbol);
@@ -379,7 +379,7 @@ export default class bitbank extends Exchange {
379
379
  * @name bitbank#fetchTradingFees
380
380
  * @description fetch the trading fees for multiple markets
381
381
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
382
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
382
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
383
383
  */
384
384
  await this.loadMarkets();
385
385
  const response = await this.marketsGetSpotPairs(params);
@@ -527,7 +527,7 @@ export default class bitbank extends Exchange {
527
527
  * @name bitbank#fetchBalance
528
528
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
529
529
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
530
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
530
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
531
531
  */
532
532
  await this.loadMarkets();
533
533
  const response = await this.privateGetUserAssets(params);
@@ -623,9 +623,9 @@ export default class bitbank extends Exchange {
623
623
  * @param {string} type 'market' or 'limit'
624
624
  * @param {string} side 'buy' or 'sell'
625
625
  * @param {float} amount how much of currency you want to trade in units of base currency
626
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
626
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
627
627
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
628
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
628
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
629
629
  */
630
630
  await this.loadMarkets();
631
631
  const market = this.market(symbol);
@@ -650,7 +650,7 @@ export default class bitbank extends Exchange {
650
650
  * @param {string} id order id
651
651
  * @param {string} symbol unified symbol of the market the order was made in
652
652
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
653
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
653
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
654
654
  */
655
655
  await this.loadMarkets();
656
656
  const market = this.market(symbol);
@@ -669,7 +669,7 @@ export default class bitbank extends Exchange {
669
669
  * @description fetches information on an order made by the user
670
670
  * @param {string} symbol unified symbol of the market the order was made in
671
671
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
672
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
672
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
673
673
  */
674
674
  await this.loadMarkets();
675
675
  const market = this.market(symbol);
@@ -690,7 +690,7 @@ export default class bitbank extends Exchange {
690
690
  * @param {int} [since] the earliest time in ms to fetch open orders for
691
691
  * @param {int} [limit] the maximum number of open orders structures to retrieve
692
692
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
693
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
693
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
694
694
  */
695
695
  await this.loadMarkets();
696
696
  const market = this.market(symbol);
@@ -717,7 +717,7 @@ export default class bitbank extends Exchange {
717
717
  * @param {int} [since] the earliest time in ms to fetch trades for
718
718
  * @param {int} [limit] the maximum number of trades structures to retrieve
719
719
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
720
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
720
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
721
721
  */
722
722
  await this.loadMarkets();
723
723
  const request = {};
@@ -744,7 +744,7 @@ export default class bitbank extends Exchange {
744
744
  * @description fetch the deposit address for a currency associated with this account
745
745
  * @param {string} code unified currency code
746
746
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
747
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
747
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
748
748
  */
749
749
  await this.loadMarkets();
750
750
  const currency = this.currency(code);
@@ -775,7 +775,7 @@ export default class bitbank extends Exchange {
775
775
  * @param {string} address the address to withdraw to
776
776
  * @param {string} tag
777
777
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
778
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
778
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
779
779
  */
780
780
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
781
781
  if (!('uuid' in params)) {