ccxt 4.0.73 → 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 (283) hide show
  1. package/README.md +11 -11
  2. package/dist/ccxt.browser.js +2058 -1943
  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 +25 -26
  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 +12 -11
  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 +25 -26
  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.d.ts +1 -1
  241. package/js/src/pro/bybit.js +12 -11
  242. package/js/src/pro/cex.js +3 -3
  243. package/js/src/pro/coinbasepro.js +5 -5
  244. package/js/src/pro/coinex.js +3 -3
  245. package/js/src/pro/cryptocom.js +7 -7
  246. package/js/src/pro/currencycom.js +2 -2
  247. package/js/src/pro/deribit.js +3 -3
  248. package/js/src/pro/exmo.js +2 -2
  249. package/js/src/pro/gate.js +5 -5
  250. package/js/src/pro/gemini.js +2 -2
  251. package/js/src/pro/hitbtc.js +2 -2
  252. package/js/src/pro/hollaex.js +3 -3
  253. package/js/src/pro/huobi.js +4 -4
  254. package/js/src/pro/huobijp.js +2 -2
  255. package/js/src/pro/idex.js +3 -3
  256. package/js/src/pro/independentreserve.js +1 -1
  257. package/js/src/pro/kraken.js +6 -6
  258. package/js/src/pro/krakenfutures.js +2 -2
  259. package/js/src/pro/kucoin.js +4 -4
  260. package/js/src/pro/kucoinfutures.js +3 -3
  261. package/js/src/pro/luno.js +1 -1
  262. package/js/src/pro/ndax.js +2 -2
  263. package/js/src/pro/okcoin.js +3 -3
  264. package/js/src/pro/okx.d.ts +1 -1
  265. package/js/src/pro/okx.js +12 -11
  266. package/js/src/pro/phemex.js +4 -4
  267. package/js/src/pro/poloniex.js +1 -1
  268. package/js/src/pro/upbit.js +2 -2
  269. package/js/src/pro/wazirx.js +3 -3
  270. package/js/src/pro/whitebit.js +4 -4
  271. package/js/src/probit.js +17 -17
  272. package/js/src/tidex.js +11 -11
  273. package/js/src/timex.js +14 -14
  274. package/js/src/tokocrypto.js +16 -16
  275. package/js/src/upbit.js +18 -18
  276. package/js/src/wavesexchange.js +13 -13
  277. package/js/src/wazirx.js +10 -10
  278. package/js/src/whitebit.js +21 -21
  279. package/js/src/woo.js +28 -22
  280. package/js/src/yobit.js +14 -14
  281. package/js/src/zaif.js +8 -8
  282. package/js/src/zonda.js +13 -13
  283. package/package.json +1 -1
package/js/src/okx.js CHANGED
@@ -1133,7 +1133,7 @@ export default class okx extends Exchange {
1133
1133
  * @name okx#fetchStatus
1134
1134
  * @description the latest known information on the availability of the exchange API
1135
1135
  * @param {object} [params] extra parameters specific to the okx api endpoint
1136
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
1136
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
1137
1137
  */
1138
1138
  const response = await this.publicGetSystemStatus(params);
1139
1139
  //
@@ -1203,7 +1203,7 @@ export default class okx extends Exchange {
1203
1203
  * @name okx#fetchAccounts
1204
1204
  * @description fetch all the accounts associated with a profile
1205
1205
  * @param {object} [params] extra parameters specific to the okx api endpoint
1206
- * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1206
+ * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
1207
1207
  */
1208
1208
  const response = await this.privateGetAccountConfig(params);
1209
1209
  //
@@ -1629,7 +1629,7 @@ export default class okx extends Exchange {
1629
1629
  * @param {string} symbol unified symbol of the market to fetch the order book for
1630
1630
  * @param {int} [limit] the maximum amount of order book entries to return
1631
1631
  * @param {object} [params] extra parameters specific to the okx api endpoint
1632
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1632
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1633
1633
  */
1634
1634
  await this.loadMarkets();
1635
1635
  const market = this.market(symbol);
@@ -1729,7 +1729,7 @@ export default class okx extends Exchange {
1729
1729
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1730
1730
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1731
1731
  * @param {object} [params] extra parameters specific to the okx api endpoint
1732
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1732
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1733
1733
  */
1734
1734
  await this.loadMarkets();
1735
1735
  const market = this.market(symbol);
@@ -1819,7 +1819,7 @@ export default class okx extends Exchange {
1819
1819
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1820
1820
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1821
1821
  * @param {object} [params] extra parameters specific to the okx api endpoint
1822
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1822
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1823
1823
  */
1824
1824
  await this.loadMarkets();
1825
1825
  symbols = this.marketSymbols(symbols);
@@ -2252,7 +2252,7 @@ export default class okx extends Exchange {
2252
2252
  * @description fetch the trading fees for a market
2253
2253
  * @param {string} symbol unified market symbol
2254
2254
  * @param {object} [params] extra parameters specific to the okx api endpoint
2255
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
2255
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2256
2256
  */
2257
2257
  await this.loadMarkets();
2258
2258
  const market = this.market(symbol);
@@ -2676,7 +2676,7 @@ export default class okx extends Exchange {
2676
2676
  * @param {string} type 'market' or 'limit'
2677
2677
  * @param {string} side 'buy' or 'sell'
2678
2678
  * @param {float} amount how much of currency you want to trade in units of base currency
2679
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2679
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2680
2680
  * @param {object} [params] extra parameters specific to the okx api endpoint
2681
2681
  * @param {bool} [params.reduceOnly] MARGIN orders only, or swap/future orders in net mode
2682
2682
  * @param {bool} [params.postOnly] true to place a post only order
@@ -2688,7 +2688,7 @@ export default class okx extends Exchange {
2688
2688
  * @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
2689
2689
  * @param {float} [params.stopLoss.price] used for stop loss limit orders, not used for stop loss market price orders
2690
2690
  * @param {string} [params.stopLoss.type] 'market' or 'limit' used to specify the stop loss price type
2691
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2691
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2692
2692
  */
2693
2693
  await this.loadMarkets();
2694
2694
  const market = this.market(symbol);
@@ -2784,7 +2784,7 @@ export default class okx extends Exchange {
2784
2784
  * @param {string} type 'market' or 'limit'
2785
2785
  * @param {string} side 'buy' or 'sell'
2786
2786
  * @param {float} amount how much of the currency you want to trade in units of the base currency
2787
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2787
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2788
2788
  * @param {object} [params] extra parameters specific to the okx api endpoint
2789
2789
  * @param {string} [params.clientOrderId] client order id, uses id if not passed
2790
2790
  * @param {float} [params.stopLossPrice] stop loss trigger price
@@ -2801,7 +2801,7 @@ export default class okx extends Exchange {
2801
2801
  * @param {float} [params.takeProfit.triggerPrice] take profit trigger price
2802
2802
  * @param {float} [params.takeProfit.price] used for take profit limit orders, not used for take profit market price orders
2803
2803
  * @param {string} [params.takeProfit.type] 'market' or 'limit' used to specify the take profit price type
2804
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2804
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2805
2805
  */
2806
2806
  await this.loadMarkets();
2807
2807
  const market = this.market(symbol);
@@ -2838,7 +2838,7 @@ export default class okx extends Exchange {
2838
2838
  * @param {string} id order id
2839
2839
  * @param {string} symbol unified symbol of the market the order was made in
2840
2840
  * @param {object} [params] extra parameters specific to the okx api endpoint
2841
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2841
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2842
2842
  */
2843
2843
  const stop = this.safeValue(params, 'stop');
2844
2844
  if (stop) {
@@ -2892,7 +2892,7 @@ export default class okx extends Exchange {
2892
2892
  * @param {string[]} ids order ids
2893
2893
  * @param {string} symbol unified market symbol
2894
2894
  * @param {object} [params] extra parameters specific to the okx api endpoint
2895
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2895
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2896
2896
  */
2897
2897
  // TODO : the original endpoint signature differs, according to that you can skip individual symbol and assign ids in batch. At this moment, `params` is not being used too.
2898
2898
  if (symbol === undefined) {
@@ -3194,7 +3194,7 @@ export default class okx extends Exchange {
3194
3194
  * @param {string} id the order id
3195
3195
  * @param {string} symbol unified market symbol
3196
3196
  * @param {object} [params] extra and exchange specific parameters
3197
- * @returns [an order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3197
+ * @returns [an order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3198
3198
  */
3199
3199
  if (symbol === undefined) {
3200
3200
  throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
@@ -3345,7 +3345,7 @@ export default class okx extends Exchange {
3345
3345
  * @param {bool} [params.stop] True if fetching trigger or conditional orders
3346
3346
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3347
3347
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
3348
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3348
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3349
3349
  */
3350
3350
  await this.loadMarkets();
3351
3351
  const request = {
@@ -3493,7 +3493,7 @@ export default class okx extends Exchange {
3493
3493
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3494
3494
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
3495
3495
  * @param {int} [params.until] timestamp in ms to fetch orders for
3496
- * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3496
+ * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3497
3497
  */
3498
3498
  await this.loadMarkets();
3499
3499
  const request = {
@@ -3667,7 +3667,7 @@ export default class okx extends Exchange {
3667
3667
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3668
3668
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
3669
3669
  * @param {int} [params.until] timestamp in ms to fetch orders for
3670
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3670
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3671
3671
  */
3672
3672
  await this.loadMarkets();
3673
3673
  const request = {
@@ -3828,7 +3828,7 @@ export default class okx extends Exchange {
3828
3828
  * @param {int} [since] the earliest time in ms to fetch trades for
3829
3829
  * @param {int} [limit] the maximum number of trades structures to retrieve
3830
3830
  * @param {object} [params] extra parameters specific to the okx api endpoint
3831
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3831
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3832
3832
  */
3833
3833
  await this.loadMarkets();
3834
3834
  const request = {
@@ -3889,7 +3889,7 @@ export default class okx extends Exchange {
3889
3889
  * @param {int} [since] the earliest time in ms to fetch trades for
3890
3890
  * @param {int} [limit] the maximum number of trades to retrieve
3891
3891
  * @param {object} [params] extra parameters specific to the okx api endpoint
3892
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3892
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3893
3893
  */
3894
3894
  const request = {
3895
3895
  // 'instrument_id': market['id'],
@@ -3913,7 +3913,7 @@ export default class okx extends Exchange {
3913
3913
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
3914
3914
  * @param {object} [params] extra parameters specific to the okx api endpoint
3915
3915
  * @param {string} [params.marginMode] 'cross' or 'isolated'
3916
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
3916
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
3917
3917
  */
3918
3918
  await this.loadMarkets();
3919
3919
  const options = this.safeValue(this.options, 'fetchLedger', {});
@@ -4204,7 +4204,7 @@ export default class okx extends Exchange {
4204
4204
  * @description fetch a dictionary of addresses for a currency, indexed by network
4205
4205
  * @param {string} code unified currency code of the currency for the deposit address
4206
4206
  * @param {object} [params] extra parameters specific to the okx api endpoint
4207
- * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
4207
+ * @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
4208
4208
  */
4209
4209
  await this.loadMarkets();
4210
4210
  const currency = this.currency(code);
@@ -4245,7 +4245,7 @@ export default class okx extends Exchange {
4245
4245
  * @description fetch the deposit address for a currency associated with this account
4246
4246
  * @param {string} code unified currency code
4247
4247
  * @param {object} [params] extra parameters specific to the okx api endpoint
4248
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
4248
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
4249
4249
  */
4250
4250
  const rawNetwork = this.safeStringUpper(params, 'network');
4251
4251
  const networks = this.safeValue(this.options, 'networks', {});
@@ -4288,7 +4288,7 @@ export default class okx extends Exchange {
4288
4288
  * @param {string} address the address to withdraw to
4289
4289
  * @param {string} tag
4290
4290
  * @param {object} [params] extra parameters specific to the okx api endpoint
4291
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4291
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4292
4292
  */
4293
4293
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
4294
4294
  this.checkAddress(address);
@@ -4366,7 +4366,7 @@ export default class okx extends Exchange {
4366
4366
  * @param {int} [since] the earliest time in ms to fetch deposits for
4367
4367
  * @param {int} [limit] the maximum number of deposits structures to retrieve
4368
4368
  * @param {object} [params] extra parameters specific to the okx api endpoint
4369
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4369
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4370
4370
  */
4371
4371
  await this.loadMarkets();
4372
4372
  const request = {
@@ -4438,7 +4438,7 @@ export default class okx extends Exchange {
4438
4438
  * @param {string} id deposit id
4439
4439
  * @param {string} code filter by currency code
4440
4440
  * @param {object} [params] extra parameters specific to the okx api endpoint
4441
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4441
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4442
4442
  */
4443
4443
  await this.loadMarkets();
4444
4444
  const request = {
@@ -4464,7 +4464,7 @@ export default class okx extends Exchange {
4464
4464
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
4465
4465
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
4466
4466
  * @param {object} [params] extra parameters specific to the okx api endpoint
4467
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4467
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4468
4468
  */
4469
4469
  await this.loadMarkets();
4470
4470
  const request = {
@@ -4528,7 +4528,7 @@ export default class okx extends Exchange {
4528
4528
  * @param {string} id withdrawal id
4529
4529
  * @param {string} code unified currency code of the currency withdrawn, default is undefined
4530
4530
  * @param {object} [params] extra parameters specific to the okx api endpoint
4531
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4531
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4532
4532
  */
4533
4533
  await this.loadMarkets();
4534
4534
  const request = {
@@ -4706,7 +4706,7 @@ export default class okx extends Exchange {
4706
4706
  * @param {string} symbol unified market symbol
4707
4707
  * @param {object} [params] extra parameters specific to the okx api endpoint
4708
4708
  * @param {string} [params.marginMode] 'cross' or 'isolated'
4709
- * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
4709
+ * @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
4710
4710
  */
4711
4711
  await this.loadMarkets();
4712
4712
  let marginMode = undefined;
@@ -4748,7 +4748,7 @@ export default class okx extends Exchange {
4748
4748
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
4749
4749
  * @param {object} [params] extra parameters specific to the okx api endpoint
4750
4750
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
4751
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
4751
+ * @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
4752
4752
  */
4753
4753
  await this.loadMarkets();
4754
4754
  const market = this.market(symbol);
@@ -4824,7 +4824,7 @@ export default class okx extends Exchange {
4824
4824
  * @param {string[]|undefined} symbols list of unified market symbols
4825
4825
  * @param {object} [params] extra parameters specific to the okx api endpoint
4826
4826
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
4827
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
4827
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
4828
4828
  */
4829
4829
  await this.loadMarkets();
4830
4830
  const request = {
@@ -5058,7 +5058,7 @@ export default class okx extends Exchange {
5058
5058
  * @param {string} fromAccount account to transfer from
5059
5059
  * @param {string} toAccount account to transfer to
5060
5060
  * @param {object} [params] extra parameters specific to the okx api endpoint
5061
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5061
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
5062
5062
  */
5063
5063
  await this.loadMarkets();
5064
5064
  const currency = this.currency(code);
@@ -5231,7 +5231,7 @@ export default class okx extends Exchange {
5231
5231
  * @param {int} [since] the earliest time in ms to fetch transfers for
5232
5232
  * @param {int} [limit] the maximum number of transfers structures to retrieve
5233
5233
  * @param {object} [params] extra parameters specific to the okx api endpoint
5234
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5234
+ * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
5235
5235
  */
5236
5236
  await this.loadMarkets();
5237
5237
  let currency = undefined;
@@ -5395,7 +5395,7 @@ export default class okx extends Exchange {
5395
5395
  * @description fetch the current funding rate
5396
5396
  * @param {string} symbol unified market symbol
5397
5397
  * @param {object} [params] extra parameters specific to the okx api endpoint
5398
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
5398
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
5399
5399
  */
5400
5400
  await this.loadMarkets();
5401
5401
  const market = this.market(symbol);
@@ -5435,7 +5435,7 @@ export default class okx extends Exchange {
5435
5435
  * @param {int} [since] the earliest time in ms to fetch funding history for
5436
5436
  * @param {int} [limit] the maximum number of funding history structures to retrieve
5437
5437
  * @param {object} [params] extra parameters specific to the okx api endpoint
5438
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
5438
+ * @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
5439
5439
  */
5440
5440
  await this.loadMarkets();
5441
5441
  const request = {
@@ -5734,7 +5734,7 @@ export default class okx extends Exchange {
5734
5734
  * @name okx#fetchBorrowRates
5735
5735
  * @description fetch the borrow interest rates of all currencies
5736
5736
  * @param {object} [params] extra parameters specific to the okx api endpoint
5737
- * @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
5737
+ * @returns {object} a list of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
5738
5738
  */
5739
5739
  await this.loadMarkets();
5740
5740
  const response = await this.privateGetAccountInterestRate(params);
@@ -5774,7 +5774,7 @@ export default class okx extends Exchange {
5774
5774
  * @description fetch the rate of interest to borrow a currency for margin trading
5775
5775
  * @param {string} code unified currency code
5776
5776
  * @param {object} [params] extra parameters specific to the okx api endpoint
5777
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
5777
+ * @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
5778
5778
  */
5779
5779
  await this.loadMarkets();
5780
5780
  const currency = this.currency(code);
@@ -5869,7 +5869,7 @@ export default class okx extends Exchange {
5869
5869
  * @param {int} [since] timestamp in ms of the earliest borrowRate, default is undefined
5870
5870
  * @param {int} [limit] max number of borrow rate prices to return, default is undefined
5871
5871
  * @param {object} [params] extra parameters specific to the okx api endpoint
5872
- * @returns {object} a dictionary of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} indexed by the market symbol
5872
+ * @returns {object} a dictionary of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure} indexed by the market symbol
5873
5873
  */
5874
5874
  await this.loadMarkets();
5875
5875
  const request = {
@@ -5909,9 +5909,9 @@ export default class okx extends Exchange {
5909
5909
  * @description retrieves a history of a currencies borrow interest rate at specific time slots
5910
5910
  * @param {string} code unified currency code
5911
5911
  * @param {int} [since] timestamp for the earliest borrow rate
5912
- * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
5912
+ * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure} to retrieve
5913
5913
  * @param {object} [params] extra parameters specific to the exchange api endpoint
5914
- * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
5914
+ * @returns {object[]} an array of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
5915
5915
  */
5916
5916
  await this.loadMarkets();
5917
5917
  const currency = this.currency(code);
@@ -6001,7 +6001,7 @@ export default class okx extends Exchange {
6001
6001
  * @param {string} symbol unified market symbol
6002
6002
  * @param {float} amount the amount of margin to remove
6003
6003
  * @param {object} [params] extra parameters specific to the okx api endpoint
6004
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
6004
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
6005
6005
  */
6006
6006
  return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
6007
6007
  }
@@ -6013,7 +6013,7 @@ export default class okx extends Exchange {
6013
6013
  * @param {string} symbol unified market symbol
6014
6014
  * @param {float} amount amount of margin to add
6015
6015
  * @param {object} [params] extra parameters specific to the okx api endpoint
6016
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
6016
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
6017
6017
  */
6018
6018
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
6019
6019
  }
@@ -6026,7 +6026,7 @@ export default class okx extends Exchange {
6026
6026
  * @param {string} symbol unified market symbol
6027
6027
  * @param {object} [params] extra parameters specific to the okx api endpoint
6028
6028
  * @param {string} [params.marginMode] 'cross' or 'isolated'
6029
- * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
6029
+ * @returns {object} a [leverage tiers structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}
6030
6030
  */
6031
6031
  await this.loadMarkets();
6032
6032
  const market = this.market(symbol);
@@ -6124,11 +6124,11 @@ export default class okx extends Exchange {
6124
6124
  * @param {string} code the unified currency code for the currency of the interest
6125
6125
  * @param {string} symbol the market symbol of an isolated margin market, if undefined, the interest for cross margin markets is returned
6126
6126
  * @param {int} [since] timestamp in ms of the earliest time to receive interest records for
6127
- * @param {int} [limit] the number of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure} to retrieve
6127
+ * @param {int} [limit] the number of [borrow interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-interest-structure} to retrieve
6128
6128
  * @param {object} [params] exchange specific parameters
6129
6129
  * @param {int} [params.type] Loan type 1 - VIP loans 2 - Market loans *Default is Market loans*
6130
6130
  * @param {string} [params.marginMode] 'cross' or 'isolated'
6131
- * @returns {object[]} An list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
6131
+ * @returns {object[]} An list of [borrow interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-interest-structure}
6132
6132
  */
6133
6133
  await this.loadMarkets();
6134
6134
  let marginMode = undefined;
@@ -6206,7 +6206,7 @@ export default class okx extends Exchange {
6206
6206
  * @param {float} amount the amount to borrow
6207
6207
  * @param {string} symbol not used by okx.borrowMargin ()
6208
6208
  * @param {object} [params] extra parameters specific to the okx api endpoint
6209
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
6209
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
6210
6210
  */
6211
6211
  await this.loadMarkets();
6212
6212
  const currency = this.currency(code);
@@ -6250,7 +6250,7 @@ export default class okx extends Exchange {
6250
6250
  * @param {float} amount the amount to repay
6251
6251
  * @param {string} symbol not used by okx.repayMargin ()
6252
6252
  * @param {object} [params] extra parameters specific to the okx api endpoint
6253
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
6253
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
6254
6254
  */
6255
6255
  await this.loadMarkets();
6256
6256
  const currency = this.currency(code);
@@ -6315,7 +6315,7 @@ export default class okx extends Exchange {
6315
6315
  * @see https://www.okx.com/docs-v5/en/#rest-api-public-data-get-open-interest
6316
6316
  * @param {string} symbol Unified CCXT market symbol
6317
6317
  * @param {object} [params] exchange specific parameters
6318
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure}
6318
+ * @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
6319
6319
  */
6320
6320
  await this.loadMarkets();
6321
6321
  const market = this.market(symbol);
@@ -6361,7 +6361,7 @@ export default class okx extends Exchange {
6361
6361
  * @param {int} [limit] Not used by okx, but parsed internally by CCXT
6362
6362
  * @param {object} [params] Exchange specific parameters
6363
6363
  * @param {int} [params.until] The time in ms of the latest record to retrieve as a unix timestamp
6364
- * @returns An array of [open interest structures]{@link https://docs.ccxt.com/#/?id=interest-history-structure}
6364
+ * @returns An array of [open interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
6365
6365
  */
6366
6366
  const options = this.safeValue(this.options, 'fetchOpenInterestHistory', {});
6367
6367
  const timeframes = this.safeValue(options, 'timeframes', {});
@@ -6492,7 +6492,7 @@ export default class okx extends Exchange {
6492
6492
  * @see https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies
6493
6493
  * @param {string[]|undefined} codes list of unified currency codes
6494
6494
  * @param {object} [params] extra parameters specific to the okx api endpoint
6495
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
6495
+ * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
6496
6496
  */
6497
6497
  await this.loadMarkets();
6498
6498
  const response = await this.privateGetAssetCurrencies(params);
package/js/src/paymium.js CHANGED
@@ -155,7 +155,7 @@ export default class paymium extends Exchange {
155
155
  * @param {string} symbol unified symbol of the market to fetch the order book for
156
156
  * @param {int} [limit] the maximum amount of order book entries to return
157
157
  * @param {object} [params] extra parameters specific to the paymium api endpoint
158
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
158
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
159
159
  */
160
160
  await this.loadMarkets();
161
161
  const market = this.market(symbol);
@@ -221,7 +221,7 @@ export default class paymium extends Exchange {
221
221
  * @see https://paymium.github.io/api-documentation/#tag/Public-data/paths/~1data~1%7Bcurrency%7D~1ticker/get
222
222
  * @param {string} symbol unified symbol of the market to fetch the ticker for
223
223
  * @param {object} [params] extra parameters specific to the paymium api endpoint
224
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
224
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
225
225
  */
226
226
  await this.loadMarkets();
227
227
  const market = this.market(symbol);
@@ -301,7 +301,7 @@ export default class paymium extends Exchange {
301
301
  * @see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/post
302
302
  * @param {string} code unified currency code of the currency for the deposit address
303
303
  * @param {object} [params] extra parameters specific to the paymium api endpoint
304
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
304
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
305
305
  */
306
306
  await this.loadMarkets();
307
307
  const response = await this.privatePostUserAddresses(params);
@@ -323,7 +323,7 @@ export default class paymium extends Exchange {
323
323
  * @see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses~1%7Baddress%7D/get
324
324
  * @param {string} code unified currency code
325
325
  * @param {object} [params] extra parameters specific to the paymium api endpoint
326
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
326
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
327
327
  */
328
328
  await this.loadMarkets();
329
329
  const request = {
@@ -348,7 +348,7 @@ export default class paymium extends Exchange {
348
348
  * @see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/get
349
349
  * @param {string[]|undefined} codes list of unified currency codes, default is undefined
350
350
  * @param {object} [params] extra parameters specific to the paymium api endpoint
351
- * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
351
+ * @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
352
352
  */
353
353
  await this.loadMarkets();
354
354
  const response = await this.privateGetUserAddresses(params);
@@ -393,9 +393,9 @@ export default class paymium extends Exchange {
393
393
  * @param {string} type 'market' or 'limit'
394
394
  * @param {string} side 'buy' or 'sell'
395
395
  * @param {float} amount how much of currency you want to trade in units of base currency
396
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
396
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
397
397
  * @param {object} [params] extra parameters specific to the paymium api endpoint
398
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
398
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
399
399
  */
400
400
  await this.loadMarkets();
401
401
  const market = this.market(symbol);
@@ -424,7 +424,7 @@ export default class paymium extends Exchange {
424
424
  * @param {string} id order id
425
425
  * @param {string} symbol not used by paymium cancelOrder ()
426
426
  * @param {object} [params] extra parameters specific to the paymium api endpoint
427
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
427
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
428
428
  */
429
429
  const request = {
430
430
  'uuid': id,
@@ -442,7 +442,7 @@ export default class paymium extends Exchange {
442
442
  * @param {string} fromAccount account to transfer from
443
443
  * @param {string} toAccount account to transfer to
444
444
  * @param {object} [params] extra parameters specific to the paymium api endpoint
445
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
445
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
446
446
  */
447
447
  await this.loadMarkets();
448
448
  const currency = this.currency(code);