ccxt 4.0.74 → 4.0.75

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 (282) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2047 -1932
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +9 -9
  6. package/dist/cjs/src/alpaca.js +6 -6
  7. package/dist/cjs/src/ascendex.js +22 -22
  8. package/dist/cjs/src/base/Exchange.js +2 -2
  9. package/dist/cjs/src/bigone.js +17 -17
  10. package/dist/cjs/src/binance.js +51 -51
  11. package/dist/cjs/src/bingx.js +21 -21
  12. package/dist/cjs/src/bit2c.js +10 -10
  13. package/dist/cjs/src/bitbank.js +11 -11
  14. package/dist/cjs/src/bitbns.js +12 -12
  15. package/dist/cjs/src/bitfinex.js +19 -19
  16. package/dist/cjs/src/bitfinex2.js +25 -25
  17. package/dist/cjs/src/bitflyer.js +15 -15
  18. package/dist/cjs/src/bitforex.js +9 -9
  19. package/dist/cjs/src/bitget.js +34 -34
  20. package/dist/cjs/src/bithumb.js +9 -9
  21. package/dist/cjs/src/bitmart.js +42 -29
  22. package/dist/cjs/src/bitmex.js +19 -19
  23. package/dist/cjs/src/bitopro.js +18 -18
  24. package/dist/cjs/src/bitpanda.js +19 -19
  25. package/dist/cjs/src/bitrue.js +15 -15
  26. package/dist/cjs/src/bitso.js +19 -19
  27. package/dist/cjs/src/bitstamp.js +19 -19
  28. package/dist/cjs/src/bitstamp1.js +6 -6
  29. package/dist/cjs/src/bittrex.js +24 -24
  30. package/dist/cjs/src/bitvavo.js +16 -16
  31. package/dist/cjs/src/bkex.js +17 -17
  32. package/dist/cjs/src/bl3p.js +6 -6
  33. package/dist/cjs/src/blockchaincom.js +20 -20
  34. package/dist/cjs/src/btcalpha.js +13 -13
  35. package/dist/cjs/src/btcbox.js +8 -8
  36. package/dist/cjs/src/btcmarkets.js +15 -15
  37. package/dist/cjs/src/btctradeua.js +6 -6
  38. package/dist/cjs/src/btcturk.js +9 -9
  39. package/dist/cjs/src/bybit.js +148 -116
  40. package/dist/cjs/src/cex.js +12 -12
  41. package/dist/cjs/src/coinbase.js +20 -20
  42. package/dist/cjs/src/coinbasepro.js +22 -22
  43. package/dist/cjs/src/coincheck.js +10 -10
  44. package/dist/cjs/src/coinex.js +81 -35
  45. package/dist/cjs/src/coinfalcon.js +14 -14
  46. package/dist/cjs/src/coinmate.js +12 -12
  47. package/dist/cjs/src/coinone.js +10 -10
  48. package/dist/cjs/src/coinsph.js +20 -20
  49. package/dist/cjs/src/coinspot.js +6 -6
  50. package/dist/cjs/src/cryptocom.js +24 -24
  51. package/dist/cjs/src/currencycom.js +18 -18
  52. package/dist/cjs/src/delta.js +23 -23
  53. package/dist/cjs/src/deribit.js +27 -27
  54. package/dist/cjs/src/digifinex.js +27 -27
  55. package/dist/cjs/src/exmo.js +24 -24
  56. package/dist/cjs/src/gate.js +34 -34
  57. package/dist/cjs/src/gemini.js +14 -14
  58. package/dist/cjs/src/hitbtc.js +30 -30
  59. package/dist/cjs/src/hollaex.js +20 -20
  60. package/dist/cjs/src/huobi.js +40 -40
  61. package/dist/cjs/src/huobijp.js +18 -18
  62. package/dist/cjs/src/idex.js +17 -17
  63. package/dist/cjs/src/independentreserve.js +10 -10
  64. package/dist/cjs/src/indodax.js +12 -12
  65. package/dist/cjs/src/kraken.js +25 -25
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +29 -29
  68. package/dist/cjs/src/kucoinfutures.js +19 -19
  69. package/dist/cjs/src/kuna.js +10 -10
  70. package/dist/cjs/src/latoken.js +15 -15
  71. package/dist/cjs/src/lbank.js +10 -10
  72. package/dist/cjs/src/lbank2.js +21 -21
  73. package/dist/cjs/src/luno.js +14 -14
  74. package/dist/cjs/src/lykke.js +14 -14
  75. package/dist/cjs/src/mercado.js +10 -10
  76. package/dist/cjs/src/mexc.js +38 -38
  77. package/dist/cjs/src/ndax.js +18 -18
  78. package/dist/cjs/src/novadax.js +18 -18
  79. package/dist/cjs/src/oceanex.js +14 -14
  80. package/dist/cjs/src/okcoin.js +19 -19
  81. package/dist/cjs/src/okx.js +48 -48
  82. package/dist/cjs/src/paymium.js +9 -9
  83. package/dist/cjs/src/phemex.js +24 -24
  84. package/dist/cjs/src/poloniex.js +77 -60
  85. package/dist/cjs/src/poloniexfutures.js +16 -16
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +2 -2
  88. package/dist/cjs/src/pro/binance.js +10 -10
  89. package/dist/cjs/src/pro/bitfinex.js +3 -3
  90. package/dist/cjs/src/pro/bitfinex2.js +4 -4
  91. package/dist/cjs/src/pro/bitget.js +4 -4
  92. package/dist/cjs/src/pro/bitmart.js +3 -3
  93. package/dist/cjs/src/pro/bitmex.js +4 -4
  94. package/dist/cjs/src/pro/bitopro.js +2 -2
  95. package/dist/cjs/src/pro/bitrue.js +1 -1
  96. package/dist/cjs/src/pro/bitstamp.js +2 -2
  97. package/dist/cjs/src/pro/bittrex.js +4 -4
  98. package/dist/cjs/src/pro/bitvavo.js +4 -4
  99. package/dist/cjs/src/pro/bybit.js +5 -5
  100. package/dist/cjs/src/pro/cex.js +3 -3
  101. package/dist/cjs/src/pro/coinbasepro.js +5 -5
  102. package/dist/cjs/src/pro/coinex.js +3 -3
  103. package/dist/cjs/src/pro/cryptocom.js +7 -7
  104. package/dist/cjs/src/pro/currencycom.js +2 -2
  105. package/dist/cjs/src/pro/deribit.js +3 -3
  106. package/dist/cjs/src/pro/exmo.js +2 -2
  107. package/dist/cjs/src/pro/gate.js +5 -5
  108. package/dist/cjs/src/pro/gemini.js +2 -2
  109. package/dist/cjs/src/pro/hitbtc.js +2 -2
  110. package/dist/cjs/src/pro/hollaex.js +3 -3
  111. package/dist/cjs/src/pro/huobi.js +4 -4
  112. package/dist/cjs/src/pro/huobijp.js +2 -2
  113. package/dist/cjs/src/pro/idex.js +3 -3
  114. package/dist/cjs/src/pro/independentreserve.js +1 -1
  115. package/dist/cjs/src/pro/kraken.js +6 -6
  116. package/dist/cjs/src/pro/krakenfutures.js +2 -2
  117. package/dist/cjs/src/pro/kucoin.js +4 -4
  118. package/dist/cjs/src/pro/kucoinfutures.js +3 -3
  119. package/dist/cjs/src/pro/luno.js +1 -1
  120. package/dist/cjs/src/pro/ndax.js +2 -2
  121. package/dist/cjs/src/pro/okcoin.js +3 -3
  122. package/dist/cjs/src/pro/okx.js +12 -11
  123. package/dist/cjs/src/pro/phemex.js +4 -4
  124. package/dist/cjs/src/pro/poloniex.js +1 -1
  125. package/dist/cjs/src/pro/upbit.js +2 -2
  126. package/dist/cjs/src/pro/wazirx.js +3 -3
  127. package/dist/cjs/src/pro/whitebit.js +4 -4
  128. package/dist/cjs/src/probit.js +17 -17
  129. package/dist/cjs/src/tidex.js +11 -11
  130. package/dist/cjs/src/timex.js +14 -14
  131. package/dist/cjs/src/tokocrypto.js +16 -16
  132. package/dist/cjs/src/upbit.js +18 -18
  133. package/dist/cjs/src/wavesexchange.js +13 -13
  134. package/dist/cjs/src/wazirx.js +10 -10
  135. package/dist/cjs/src/whitebit.js +21 -21
  136. package/dist/cjs/src/woo.js +28 -22
  137. package/dist/cjs/src/yobit.js +14 -14
  138. package/dist/cjs/src/zaif.js +8 -8
  139. package/dist/cjs/src/zonda.js +13 -13
  140. package/js/ccxt.d.ts +1 -1
  141. package/js/ccxt.js +1 -1
  142. package/js/src/abstract/bitmart.d.ts +13 -0
  143. package/js/src/abstract/bybit.d.ts +33 -21
  144. package/js/src/abstract/woo.d.ts +6 -0
  145. package/js/src/ace.js +9 -9
  146. package/js/src/alpaca.js +6 -6
  147. package/js/src/ascendex.js +22 -22
  148. package/js/src/base/Exchange.js +2 -2
  149. package/js/src/bigone.js +17 -17
  150. package/js/src/binance.js +51 -51
  151. package/js/src/bingx.js +21 -21
  152. package/js/src/bit2c.js +10 -10
  153. package/js/src/bitbank.js +11 -11
  154. package/js/src/bitbns.js +12 -12
  155. package/js/src/bitfinex.js +19 -19
  156. package/js/src/bitfinex2.js +25 -25
  157. package/js/src/bitflyer.js +15 -15
  158. package/js/src/bitforex.js +9 -9
  159. package/js/src/bitget.js +34 -34
  160. package/js/src/bithumb.js +9 -9
  161. package/js/src/bitmart.js +42 -29
  162. package/js/src/bitmex.js +19 -19
  163. package/js/src/bitopro.js +18 -18
  164. package/js/src/bitpanda.js +19 -19
  165. package/js/src/bitrue.js +15 -15
  166. package/js/src/bitso.js +19 -19
  167. package/js/src/bitstamp.js +19 -19
  168. package/js/src/bitstamp1.js +6 -6
  169. package/js/src/bittrex.js +24 -24
  170. package/js/src/bitvavo.js +16 -16
  171. package/js/src/bkex.js +17 -17
  172. package/js/src/bl3p.js +6 -6
  173. package/js/src/blockchaincom.js +20 -20
  174. package/js/src/btcalpha.js +13 -13
  175. package/js/src/btcbox.js +8 -8
  176. package/js/src/btcmarkets.js +15 -15
  177. package/js/src/btctradeua.js +6 -6
  178. package/js/src/btcturk.js +9 -9
  179. package/js/src/bybit.js +148 -116
  180. package/js/src/cex.js +12 -12
  181. package/js/src/coinbase.js +20 -20
  182. package/js/src/coinbasepro.js +22 -22
  183. package/js/src/coincheck.js +10 -10
  184. package/js/src/coinex.d.ts +1 -0
  185. package/js/src/coinex.js +81 -35
  186. package/js/src/coinfalcon.js +14 -14
  187. package/js/src/coinmate.js +12 -12
  188. package/js/src/coinone.js +10 -10
  189. package/js/src/coinsph.js +20 -20
  190. package/js/src/coinspot.js +6 -6
  191. package/js/src/cryptocom.js +24 -24
  192. package/js/src/currencycom.js +18 -18
  193. package/js/src/delta.js +23 -23
  194. package/js/src/deribit.js +27 -27
  195. package/js/src/digifinex.js +27 -27
  196. package/js/src/exmo.js +24 -24
  197. package/js/src/gate.js +34 -34
  198. package/js/src/gemini.js +14 -14
  199. package/js/src/hitbtc.js +30 -30
  200. package/js/src/hollaex.js +20 -20
  201. package/js/src/huobi.js +40 -40
  202. package/js/src/huobijp.js +18 -18
  203. package/js/src/idex.js +17 -17
  204. package/js/src/independentreserve.js +10 -10
  205. package/js/src/indodax.js +12 -12
  206. package/js/src/kraken.js +25 -25
  207. package/js/src/krakenfutures.js +12 -12
  208. package/js/src/kucoin.js +29 -29
  209. package/js/src/kucoinfutures.js +19 -19
  210. package/js/src/kuna.js +10 -10
  211. package/js/src/latoken.js +15 -15
  212. package/js/src/lbank.js +10 -10
  213. package/js/src/lbank2.js +21 -21
  214. package/js/src/luno.js +14 -14
  215. package/js/src/lykke.js +14 -14
  216. package/js/src/mercado.js +10 -10
  217. package/js/src/mexc.js +38 -38
  218. package/js/src/ndax.js +18 -18
  219. package/js/src/novadax.js +18 -18
  220. package/js/src/oceanex.js +14 -14
  221. package/js/src/okcoin.js +19 -19
  222. package/js/src/okx.js +48 -48
  223. package/js/src/paymium.js +9 -9
  224. package/js/src/phemex.js +24 -24
  225. package/js/src/poloniex.js +77 -60
  226. package/js/src/poloniexfutures.js +16 -16
  227. package/js/src/pro/alpaca.js +5 -5
  228. package/js/src/pro/ascendex.js +2 -2
  229. package/js/src/pro/binance.js +10 -10
  230. package/js/src/pro/bitfinex.js +3 -3
  231. package/js/src/pro/bitfinex2.js +4 -4
  232. package/js/src/pro/bitget.js +4 -4
  233. package/js/src/pro/bitmart.js +3 -3
  234. package/js/src/pro/bitmex.js +4 -4
  235. package/js/src/pro/bitopro.js +2 -2
  236. package/js/src/pro/bitrue.js +1 -1
  237. package/js/src/pro/bitstamp.js +2 -2
  238. package/js/src/pro/bittrex.js +4 -4
  239. package/js/src/pro/bitvavo.js +4 -4
  240. package/js/src/pro/bybit.js +5 -5
  241. package/js/src/pro/cex.js +3 -3
  242. package/js/src/pro/coinbasepro.js +5 -5
  243. package/js/src/pro/coinex.js +3 -3
  244. package/js/src/pro/cryptocom.js +7 -7
  245. package/js/src/pro/currencycom.js +2 -2
  246. package/js/src/pro/deribit.js +3 -3
  247. package/js/src/pro/exmo.js +2 -2
  248. package/js/src/pro/gate.js +5 -5
  249. package/js/src/pro/gemini.js +2 -2
  250. package/js/src/pro/hitbtc.js +2 -2
  251. package/js/src/pro/hollaex.js +3 -3
  252. package/js/src/pro/huobi.js +4 -4
  253. package/js/src/pro/huobijp.js +2 -2
  254. package/js/src/pro/idex.js +3 -3
  255. package/js/src/pro/independentreserve.js +1 -1
  256. package/js/src/pro/kraken.js +6 -6
  257. package/js/src/pro/krakenfutures.js +2 -2
  258. package/js/src/pro/kucoin.js +4 -4
  259. package/js/src/pro/kucoinfutures.js +3 -3
  260. package/js/src/pro/luno.js +1 -1
  261. package/js/src/pro/ndax.js +2 -2
  262. package/js/src/pro/okcoin.js +3 -3
  263. package/js/src/pro/okx.d.ts +1 -1
  264. package/js/src/pro/okx.js +12 -11
  265. package/js/src/pro/phemex.js +4 -4
  266. package/js/src/pro/poloniex.js +1 -1
  267. package/js/src/pro/upbit.js +2 -2
  268. package/js/src/pro/wazirx.js +3 -3
  269. package/js/src/pro/whitebit.js +4 -4
  270. package/js/src/probit.js +17 -17
  271. package/js/src/tidex.js +11 -11
  272. package/js/src/timex.js +14 -14
  273. package/js/src/tokocrypto.js +16 -16
  274. package/js/src/upbit.js +18 -18
  275. package/js/src/wavesexchange.js +13 -13
  276. package/js/src/wazirx.js +10 -10
  277. package/js/src/whitebit.js +21 -21
  278. package/js/src/woo.js +28 -22
  279. package/js/src/yobit.js +14 -14
  280. package/js/src/zaif.js +8 -8
  281. package/js/src/zonda.js +13 -13
  282. package/package.json +1 -1
package/js/src/latoken.js CHANGED
@@ -540,7 +540,7 @@ export default class latoken extends Exchange {
540
540
  * @param {string} symbol unified symbol of the market to fetch the order book for
541
541
  * @param {int} [limit] the maximum amount of order book entries to return
542
542
  * @param {object} [params] extra parameters specific to the latoken api endpoint
543
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
543
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
544
544
  */
545
545
  await this.loadMarkets();
546
546
  const market = this.market(symbol);
@@ -618,7 +618,7 @@ export default class latoken extends Exchange {
618
618
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
619
619
  * @param {string} symbol unified symbol of the market to fetch the ticker for
620
620
  * @param {object} [params] extra parameters specific to the latoken api endpoint
621
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
621
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
622
622
  */
623
623
  await this.loadMarkets();
624
624
  const market = this.market(symbol);
@@ -648,7 +648,7 @@ export default class latoken extends Exchange {
648
648
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
649
649
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
650
650
  * @param {object} [params] extra parameters specific to the latoken api endpoint
651
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
651
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
652
652
  */
653
653
  await this.loadMarkets();
654
654
  const response = await this.publicGetTicker(params);
@@ -794,7 +794,7 @@ export default class latoken extends Exchange {
794
794
  * @description fetch the trading fees for a market
795
795
  * @param {string} symbol unified market symbol
796
796
  * @param {object} [params] extra parameters specific to the latoken api endpoint
797
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
797
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
798
798
  */
799
799
  let method = this.safeString(params, 'method');
800
800
  params = this.omit(params, 'method');
@@ -859,7 +859,7 @@ export default class latoken extends Exchange {
859
859
  * @param {int} [since] the earliest time in ms to fetch trades for
860
860
  * @param {int} [limit] the maximum number of trades structures to retrieve
861
861
  * @param {object} [params] extra parameters specific to the latoken api endpoint
862
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
862
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
863
863
  */
864
864
  await this.loadMarkets();
865
865
  const request = {
@@ -1038,7 +1038,7 @@ export default class latoken extends Exchange {
1038
1038
  * @param {int} [since] the earliest time in ms to fetch open orders for
1039
1039
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1040
1040
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1041
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1041
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1042
1042
  */
1043
1043
  if (symbol === undefined) {
1044
1044
  throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
@@ -1083,7 +1083,7 @@ export default class latoken extends Exchange {
1083
1083
  * @param {int} [since] the earliest time in ms to fetch orders for
1084
1084
  * @param {int} [limit] the maximum number of orde structures to retrieve
1085
1085
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1086
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1086
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1087
1087
  */
1088
1088
  await this.loadMarkets();
1089
1089
  const request = {
@@ -1135,7 +1135,7 @@ export default class latoken extends Exchange {
1135
1135
  * @description fetches information on an order made by the user
1136
1136
  * @param {string} symbol not used by latoken fetchOrder
1137
1137
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1138
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1138
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1139
1139
  */
1140
1140
  await this.loadMarkets();
1141
1141
  const request = {
@@ -1173,9 +1173,9 @@ export default class latoken extends Exchange {
1173
1173
  * @param {string} type 'market' or 'limit'
1174
1174
  * @param {string} side 'buy' or 'sell'
1175
1175
  * @param {float} amount how much of currency you want to trade in units of base currency
1176
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1176
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1177
1177
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1178
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1178
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1179
1179
  */
1180
1180
  await this.loadMarkets();
1181
1181
  const market = this.market(symbol);
@@ -1218,7 +1218,7 @@ export default class latoken extends Exchange {
1218
1218
  * @param {string} id order id
1219
1219
  * @param {string} symbol not used by latoken cancelOrder ()
1220
1220
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1221
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1221
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1222
1222
  */
1223
1223
  await this.loadMarkets();
1224
1224
  const request = {
@@ -1243,7 +1243,7 @@ export default class latoken extends Exchange {
1243
1243
  * @description cancel all open orders in a market
1244
1244
  * @param {string} symbol unified market symbol of the market to cancel orders in
1245
1245
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1246
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1246
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1247
1247
  */
1248
1248
  await this.loadMarkets();
1249
1249
  const request = {
@@ -1277,7 +1277,7 @@ export default class latoken extends Exchange {
1277
1277
  * @param {int} [since] timestamp in ms of the earliest transaction, default is undefined
1278
1278
  * @param {int} [limit] max number of transactions to return, default is undefined
1279
1279
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1280
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1280
+ * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1281
1281
  */
1282
1282
  await this.loadMarkets();
1283
1283
  const request = {
@@ -1404,7 +1404,7 @@ export default class latoken extends Exchange {
1404
1404
  * @param {int} [since] the earliest time in ms to fetch transfers for
1405
1405
  * @param {int} [limit] the maximum number of transfers structures to retrieve
1406
1406
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1407
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1407
+ * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1408
1408
  */
1409
1409
  await this.loadMarkets();
1410
1410
  const currency = this.currency(code);
@@ -1453,7 +1453,7 @@ export default class latoken extends Exchange {
1453
1453
  * @param {string} fromAccount account to transfer from
1454
1454
  * @param {string} toAccount account to transfer to
1455
1455
  * @param {object} [params] extra parameters specific to the latoken api endpoint
1456
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1456
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1457
1457
  */
1458
1458
  await this.loadMarkets();
1459
1459
  const currency = this.currency(code);
package/js/src/lbank.js CHANGED
@@ -290,7 +290,7 @@ export default class lbank extends Exchange {
290
290
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
291
291
  * @param {string} symbol unified symbol of the market to fetch the ticker for
292
292
  * @param {object} [params] extra parameters specific to the lbank api endpoint
293
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
293
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
294
294
  */
295
295
  await this.loadMarkets();
296
296
  const market = this.market(symbol);
@@ -319,7 +319,7 @@ export default class lbank extends Exchange {
319
319
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
320
320
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
321
321
  * @param {object} [params] extra parameters specific to the lbank api endpoint
322
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
322
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
323
323
  */
324
324
  await this.loadMarkets();
325
325
  symbols = this.marketSymbols(symbols);
@@ -343,7 +343,7 @@ export default class lbank extends Exchange {
343
343
  * @param {string} symbol unified symbol of the market to fetch the order book for
344
344
  * @param {int} [limit] the maximum amount of order book entries to return
345
345
  * @param {object} [params] extra parameters specific to the lbank api endpoint
346
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
346
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
347
347
  */
348
348
  await this.loadMarkets();
349
349
  let size = 60;
@@ -598,9 +598,9 @@ export default class lbank extends Exchange {
598
598
  * @param {string} type 'market' or 'limit'
599
599
  * @param {string} side 'buy' or 'sell'
600
600
  * @param {float} amount how much of currency you want to trade in units of base currency
601
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
601
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
602
602
  * @param {object} [params] extra parameters specific to the lbank api endpoint
603
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
603
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
604
604
  */
605
605
  await this.loadMarkets();
606
606
  const market = this.market(symbol);
@@ -632,7 +632,7 @@ export default class lbank extends Exchange {
632
632
  * @param {string} id order id
633
633
  * @param {string} symbol unified symbol of the market the order was made in
634
634
  * @param {object} [params] extra parameters specific to the lbank api endpoint
635
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
635
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
636
636
  */
637
637
  await this.loadMarkets();
638
638
  const market = this.market(symbol);
@@ -650,7 +650,7 @@ export default class lbank extends Exchange {
650
650
  * @description fetches information on an order made by the user
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 lbank 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
  // Id can be a list of ids delimited by a comma
656
656
  await this.loadMarkets();
@@ -679,7 +679,7 @@ export default class lbank extends Exchange {
679
679
  * @param {int} [since] the earliest time in ms to fetch orders for
680
680
  * @param {int} [limit] the maximum number of orde structures to retrieve
681
681
  * @param {object} [params] extra parameters specific to the lbank api endpoint
682
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
682
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
683
683
  */
684
684
  await this.loadMarkets();
685
685
  if (limit === undefined) {
@@ -704,7 +704,7 @@ export default class lbank extends Exchange {
704
704
  * @param {int} [since] the earliest time in ms to fetch orders for
705
705
  * @param {int} [limit] the maximum number of orde structures to retrieve
706
706
  * @param {object} [params] extra parameters specific to the lbank api endpoint
707
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
707
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
708
708
  */
709
709
  await this.loadMarkets();
710
710
  if (symbol !== undefined) {
@@ -727,7 +727,7 @@ export default class lbank extends Exchange {
727
727
  * @param {string} address the address to withdraw to
728
728
  * @param {string} tag
729
729
  * @param {object} [params] extra parameters specific to the lbank api endpoint
730
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
730
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
731
731
  */
732
732
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
733
733
  // mark and fee are optional params, mark is a note and must be less than 255 characters
package/js/src/lbank2.js CHANGED
@@ -593,7 +593,7 @@ export default class lbank2 extends Exchange {
593
593
  * @see https://www.lbank.info/en-US/docs/index.html#query-current-market-data-new
594
594
  * @param {string} symbol unified symbol of the market to fetch the ticker for
595
595
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
596
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
596
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
597
597
  */
598
598
  await this.loadMarkets();
599
599
  const market = this.market(symbol);
@@ -639,7 +639,7 @@ export default class lbank2 extends Exchange {
639
639
  * @see https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
640
640
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
641
641
  * @param {object} [params] extra parameters specific to the lbank api endpoint
642
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
642
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
643
643
  */
644
644
  await this.loadMarkets();
645
645
  let market = undefined;
@@ -720,7 +720,7 @@ export default class lbank2 extends Exchange {
720
720
  * @param {string} symbol unified symbol of the market to fetch the order book for
721
721
  * @param {int} [limit] the maximum amount of order book entries to return
722
722
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
723
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
723
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
724
724
  */
725
725
  await this.loadMarkets();
726
726
  const market = this.market(symbol);
@@ -1232,7 +1232,7 @@ export default class lbank2 extends Exchange {
1232
1232
  * @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
1233
1233
  * @param {string} symbol unified market symbol
1234
1234
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1235
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
1235
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1236
1236
  */
1237
1237
  const market = this.market(symbol);
1238
1238
  const result = await this.fetchTradingFees(this.extend(params, { 'category': market['id'] }));
@@ -1245,7 +1245,7 @@ export default class lbank2 extends Exchange {
1245
1245
  * @description fetch the trading fees for multiple markets
1246
1246
  * @see https://www.lbank.info/en-US/docs/index.html#transaction-fee-rate-query
1247
1247
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1248
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1248
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
1249
1249
  */
1250
1250
  await this.loadMarkets();
1251
1251
  const request = {};
@@ -1270,9 +1270,9 @@ export default class lbank2 extends Exchange {
1270
1270
  * @param {string} type 'market' or 'limit'
1271
1271
  * @param {string} side 'buy' or 'sell'
1272
1272
  * @param {float} amount how much of currency you want to trade in units of base currency
1273
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1273
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1274
1274
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1275
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1275
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1276
1276
  */
1277
1277
  await this.loadMarkets();
1278
1278
  const market = this.market(symbol);
@@ -1500,7 +1500,7 @@ export default class lbank2 extends Exchange {
1500
1500
  * @see https://www.lbank.info/en-US/docs/index.html#query-order-new
1501
1501
  * @param {string} symbol unified symbol of the market the order was made in
1502
1502
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1503
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1503
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1504
1504
  */
1505
1505
  await this.loadMarkets();
1506
1506
  let method = this.safeString(params, 'method');
@@ -1598,7 +1598,7 @@ export default class lbank2 extends Exchange {
1598
1598
  * @param {int} [since] the earliest time in ms to fetch trades for
1599
1599
  * @param {int} [limit] the maximum number of trade structures to retrieve
1600
1600
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1601
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1601
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1602
1602
  */
1603
1603
  this.checkRequiredSymbol('fetchMyTrades', symbol);
1604
1604
  await this.loadMarkets();
@@ -1655,7 +1655,7 @@ export default class lbank2 extends Exchange {
1655
1655
  * @param {int} [since] the earliest time in ms to fetch orders for
1656
1656
  * @param {int} [limit] the maximum number of order structures to retrieve
1657
1657
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1658
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1658
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1659
1659
  */
1660
1660
  // default query is for canceled and completely filled orders
1661
1661
  // does not return open orders unless specified explicitly
@@ -1713,7 +1713,7 @@ export default class lbank2 extends Exchange {
1713
1713
  * @param {int} [since] the earliest time in ms to fetch open orders for
1714
1714
  * @param {int} [limit] the maximum number of open order structures to retrieve
1715
1715
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1716
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1716
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1717
1717
  */
1718
1718
  this.checkRequiredSymbol('fetchOpenOrders', symbol);
1719
1719
  await this.loadMarkets();
@@ -1767,7 +1767,7 @@ export default class lbank2 extends Exchange {
1767
1767
  * @param {string} id order id
1768
1768
  * @param {string} symbol unified symbol of the market the order was made in
1769
1769
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1770
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1770
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1771
1771
  */
1772
1772
  this.checkRequiredSymbol('cancelOrder', symbol);
1773
1773
  await this.loadMarkets();
@@ -1806,7 +1806,7 @@ export default class lbank2 extends Exchange {
1806
1806
  * @see https://www.lbank.info/en-US/docs/index.html#cancel-all-pending-orders-for-a-single-trading-pair
1807
1807
  * @param {string} symbol unified market symbol of the market to cancel orders in
1808
1808
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1809
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1809
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1810
1810
  */
1811
1811
  this.checkRequiredSymbol('cancelAllOrders', symbol);
1812
1812
  await this.loadMarkets();
@@ -1852,7 +1852,7 @@ export default class lbank2 extends Exchange {
1852
1852
  * @see https://www.lbank.info/en-US/docs/index.html#the-user-obtains-the-deposit-address
1853
1853
  * @param {string} code unified currency code
1854
1854
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1855
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1855
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1856
1856
  */
1857
1857
  await this.loadMarkets();
1858
1858
  let method = this.safeString(params, 'method');
@@ -1953,7 +1953,7 @@ export default class lbank2 extends Exchange {
1953
1953
  * @param {string} address the address to withdraw to
1954
1954
  * @param {string} tag
1955
1955
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
1956
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1956
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1957
1957
  */
1958
1958
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1959
1959
  this.checkAddress(address);
@@ -2118,7 +2118,7 @@ export default class lbank2 extends Exchange {
2118
2118
  * @param {int} [since] the earliest time in ms to fetch deposits for
2119
2119
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2120
2120
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
2121
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2121
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2122
2122
  */
2123
2123
  await this.loadMarkets();
2124
2124
  const request = {
@@ -2171,7 +2171,7 @@ export default class lbank2 extends Exchange {
2171
2171
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2172
2172
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2173
2173
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
2174
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2174
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2175
2175
  */
2176
2176
  await this.loadMarkets();
2177
2177
  const request = {
@@ -2226,7 +2226,7 @@ export default class lbank2 extends Exchange {
2226
2226
  * @description please use fetchDepositWithdrawFees instead
2227
2227
  * @param {string[]|undefined} codes not used by lbank2 fetchTransactionFees ()
2228
2228
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
2229
- * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
2229
+ * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2230
2230
  */
2231
2231
  // private only returns information for currencies with non-zero balance
2232
2232
  await this.loadMarkets();
@@ -2373,7 +2373,7 @@ export default class lbank2 extends Exchange {
2373
2373
  * @see https://www.lbank.info/en-US/docs/index.html#withdrawal-configurations
2374
2374
  * @param {string[]|undefined} codes array of unified currency codes
2375
2375
  * @param {object} [params] extra parameters specific to the lbank2 api endpoint
2376
- * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
2376
+ * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2377
2377
  */
2378
2378
  await this.loadMarkets();
2379
2379
  const isAuthorized = this.checkRequiredCredentials(false);
@@ -2659,8 +2659,8 @@ export default class lbank2 extends Exchange {
2659
2659
  if (response === undefined) {
2660
2660
  return undefined;
2661
2661
  }
2662
- const success = this.safeString(response, 'result');
2663
- if (success === 'false') {
2662
+ const success = this.safeValue(response, 'result');
2663
+ if (success === 'false' || !success) {
2664
2664
  const errorCode = this.safeString(response, 'error_code');
2665
2665
  const message = this.safeString({
2666
2666
  '10000': 'Internal error',
package/js/src/luno.js CHANGED
@@ -254,7 +254,7 @@ export default class luno extends Exchange {
254
254
  * @name luno#fetchAccounts
255
255
  * @description fetch all the accounts associated with a profile
256
256
  * @param {object} [params] extra parameters specific to the luno api endpoint
257
- * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
257
+ * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
258
258
  */
259
259
  const response = await this.privateGetBalance(params);
260
260
  const wallets = this.safeValue(response, 'balance', []);
@@ -332,7 +332,7 @@ export default class luno extends Exchange {
332
332
  * @param {string} symbol unified symbol of the market to fetch the order book for
333
333
  * @param {int} [limit] the maximum amount of order book entries to return
334
334
  * @param {object} [params] extra parameters specific to the luno api endpoint
335
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
335
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
336
336
  */
337
337
  await this.loadMarkets();
338
338
  let method = 'publicGetOrderbook';
@@ -439,7 +439,7 @@ export default class luno extends Exchange {
439
439
  * @description fetches information on an order made by the user
440
440
  * @param {string} symbol not used by luno fetchOrder
441
441
  * @param {object} [params] extra parameters specific to the luno api endpoint
442
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
442
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
443
443
  */
444
444
  await this.loadMarkets();
445
445
  const request = {
@@ -472,7 +472,7 @@ export default class luno extends Exchange {
472
472
  * @param {int} [since] the earliest time in ms to fetch orders for
473
473
  * @param {int} [limit] the maximum number of orde structures to retrieve
474
474
  * @param {object} [params] extra parameters specific to the luno api endpoint
475
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
475
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
476
476
  */
477
477
  return await this.fetchOrdersByState(undefined, symbol, since, limit, params);
478
478
  }
@@ -485,7 +485,7 @@ export default class luno extends Exchange {
485
485
  * @param {int} [since] the earliest time in ms to fetch open orders for
486
486
  * @param {int} [limit] the maximum number of open orders structures to retrieve
487
487
  * @param {object} [params] extra parameters specific to the luno api endpoint
488
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
488
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
489
489
  */
490
490
  return await this.fetchOrdersByState('PENDING', symbol, since, limit, params);
491
491
  }
@@ -498,7 +498,7 @@ export default class luno extends Exchange {
498
498
  * @param {int} [since] the earliest time in ms to fetch orders for
499
499
  * @param {int} [limit] the maximum number of orde structures to retrieve
500
500
  * @param {object} [params] extra parameters specific to the luno api endpoint
501
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
501
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
502
502
  */
503
503
  return await this.fetchOrdersByState('COMPLETE', symbol, since, limit, params);
504
504
  }
@@ -546,7 +546,7 @@ export default class luno extends Exchange {
546
546
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
547
547
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
548
548
  * @param {object} [params] extra parameters specific to the luno api endpoint
549
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
549
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
550
550
  */
551
551
  await this.loadMarkets();
552
552
  symbols = this.marketSymbols(symbols);
@@ -570,7 +570,7 @@ export default class luno extends Exchange {
570
570
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
571
571
  * @param {string} symbol unified symbol of the market to fetch the ticker for
572
572
  * @param {object} [params] extra parameters specific to the luno api endpoint
573
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
573
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
574
574
  */
575
575
  await this.loadMarkets();
576
576
  const market = this.market(symbol);
@@ -729,7 +729,7 @@ export default class luno extends Exchange {
729
729
  * @param {int} [since] the earliest time in ms to fetch trades for
730
730
  * @param {int} [limit] the maximum number of trades structures to retrieve
731
731
  * @param {object} [params] extra parameters specific to the luno api endpoint
732
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
732
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
733
733
  */
734
734
  if (symbol === undefined) {
735
735
  throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
@@ -777,7 +777,7 @@ export default class luno extends Exchange {
777
777
  * @description fetch the trading fees for a market
778
778
  * @param {string} symbol unified market symbol
779
779
  * @param {object} [params] extra parameters specific to the luno api endpoint
780
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
780
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
781
781
  */
782
782
  await this.loadMarkets();
783
783
  const market = this.market(symbol);
@@ -808,9 +808,9 @@ export default class luno extends Exchange {
808
808
  * @param {string} type 'market' or 'limit'
809
809
  * @param {string} side 'buy' or 'sell'
810
810
  * @param {float} amount how much of currency you want to trade in units of base currency
811
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
811
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
812
812
  * @param {object} [params] extra parameters specific to the luno api endpoint
813
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
813
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
814
814
  */
815
815
  await this.loadMarkets();
816
816
  let method = 'privatePost';
@@ -849,7 +849,7 @@ export default class luno extends Exchange {
849
849
  * @param {string} id order id
850
850
  * @param {string} symbol unified symbol of the market the order was made in
851
851
  * @param {object} [params] extra parameters specific to the luno api endpoint
852
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
852
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
853
853
  */
854
854
  await this.loadMarkets();
855
855
  const request = {
@@ -881,7 +881,7 @@ export default class luno extends Exchange {
881
881
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
882
882
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
883
883
  * @param {object} [params] extra parameters specific to the luno api endpoint
884
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
884
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
885
885
  */
886
886
  await this.loadMarkets();
887
887
  await this.loadAccounts();
package/js/src/lykke.js CHANGED
@@ -422,7 +422,7 @@ export default class lykke extends Exchange {
422
422
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
423
423
  * @param {string} symbol unified symbol of the market to fetch the ticker for
424
424
  * @param {object} [params] extra parameters specific to the lykke api endpoint
425
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
425
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
426
426
  */
427
427
  await this.loadMarkets();
428
428
  const market = this.market(symbol);
@@ -475,7 +475,7 @@ export default class lykke extends Exchange {
475
475
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
476
476
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
477
477
  * @param {object} [params] extra parameters specific to the lykke api endpoint
478
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
478
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
479
479
  */
480
480
  await this.loadMarkets();
481
481
  const response = await this.publicGetTickers(params);
@@ -507,7 +507,7 @@ export default class lykke extends Exchange {
507
507
  * @param {string} symbol unified symbol of the market to fetch the order book for
508
508
  * @param {int} [limit] the maximum amount of order book entries to return
509
509
  * @param {object} [params] extra parameters specific to the lykke api endpoint
510
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
510
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
511
511
  */
512
512
  await this.loadMarkets();
513
513
  const market = this.market(symbol);
@@ -771,9 +771,9 @@ export default class lykke extends Exchange {
771
771
  * @param {string} type 'market' or 'limit'
772
772
  * @param {string} side 'buy' or 'sell'
773
773
  * @param {float} amount how much of currency you want to trade in units of base currency
774
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
774
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
775
775
  * @param {object} [params] extra parameters specific to the lykke api endpoint
776
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
776
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
777
777
  */
778
778
  await this.loadMarkets();
779
779
  const market = this.market(symbol);
@@ -841,7 +841,7 @@ export default class lykke extends Exchange {
841
841
  * @param {string} id order id
842
842
  * @param {string} symbol unified symbol of the market the order was made in
843
843
  * @param {object} [params] extra parameters specific to the lykke api endpoint
844
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
844
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
845
845
  */
846
846
  const request = {
847
847
  'orderId': id,
@@ -861,7 +861,7 @@ export default class lykke extends Exchange {
861
861
  * @description cancel all open orders
862
862
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
863
863
  * @param {object} [params] extra parameters specific to the lykke api endpoint
864
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
864
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
865
865
  */
866
866
  await this.loadMarkets();
867
867
  const request = {
@@ -887,7 +887,7 @@ export default class lykke extends Exchange {
887
887
  * @description fetches information on an order made by the user
888
888
  * @param {string} symbol not used by lykke fetchOrder
889
889
  * @param {object} [params] extra parameters specific to the lykke api endpoint
890
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
890
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
891
891
  */
892
892
  await this.loadMarkets();
893
893
  const request = {
@@ -925,7 +925,7 @@ export default class lykke extends Exchange {
925
925
  * @param {int} [since] the earliest time in ms to fetch open orders for
926
926
  * @param {int} [limit] the maximum number of open orders structures to retrieve
927
927
  * @param {object} [params] extra parameters specific to the lykke api endpoint
928
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
928
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
929
929
  */
930
930
  await this.loadMarkets();
931
931
  let market = undefined;
@@ -973,7 +973,7 @@ export default class lykke extends Exchange {
973
973
  * @param {int} [since] the earliest time in ms to fetch orders for
974
974
  * @param {int} [limit] the maximum number of orde structures to retrieve
975
975
  * @param {object} [params] extra parameters specific to the lykke api endpoint
976
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
976
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
977
977
  */
978
978
  await this.loadMarkets();
979
979
  let market = undefined;
@@ -1021,7 +1021,7 @@ export default class lykke extends Exchange {
1021
1021
  * @param {int} [since] the earliest time in ms to fetch trades for
1022
1022
  * @param {int} [limit] the maximum number of trades structures to retrieve
1023
1023
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1024
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1024
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1025
1025
  */
1026
1026
  await this.loadMarkets();
1027
1027
  const request = {
@@ -1078,7 +1078,7 @@ export default class lykke extends Exchange {
1078
1078
  * @description fetch the deposit address for a currency associated with this account
1079
1079
  * @param {string} code unified currency code
1080
1080
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1081
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1081
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1082
1082
  */
1083
1083
  await this.loadMarkets();
1084
1084
  const currency = this.currency(code);
@@ -1175,7 +1175,7 @@ export default class lykke extends Exchange {
1175
1175
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1176
1176
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1177
1177
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1178
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1178
+ * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1179
1179
  */
1180
1180
  await this.loadMarkets();
1181
1181
  const request = {
@@ -1218,7 +1218,7 @@ export default class lykke extends Exchange {
1218
1218
  * @param {string} address the address to withdraw to
1219
1219
  * @param {string} tag
1220
1220
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1221
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1221
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1222
1222
  */
1223
1223
  await this.loadMarkets();
1224
1224
  this.checkAddress(address);