ccxt 4.1.55 → 4.1.57

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 (328) hide show
  1. package/.git-templates/hooks/pre-push +2 -2
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +6 -6
  4. package/build.sh +30 -8
  5. package/dist/ccxt.browser.js +5592 -4907
  6. package/dist/ccxt.browser.min.js +13 -13
  7. package/dist/cjs/ccxt.js +1 -1
  8. package/dist/cjs/src/ace.js +17 -13
  9. package/dist/cjs/src/alpaca.js +6 -6
  10. package/dist/cjs/src/ascendex.js +35 -29
  11. package/dist/cjs/src/base/Exchange.js +39 -26
  12. package/dist/cjs/src/base/Precise.js +1 -3
  13. package/dist/cjs/src/bigone.js +24 -20
  14. package/dist/cjs/src/binance.js +97 -76
  15. package/dist/cjs/src/bingx.js +63 -44
  16. package/dist/cjs/src/bit2c.js +18 -15
  17. package/dist/cjs/src/bitbank.js +17 -15
  18. package/dist/cjs/src/bitbns.js +28 -18
  19. package/dist/cjs/src/bitfinex.js +23 -21
  20. package/dist/cjs/src/bitfinex2.js +32 -28
  21. package/dist/cjs/src/bitflyer.js +28 -20
  22. package/dist/cjs/src/bitforex.js +25 -18
  23. package/dist/cjs/src/bitget.js +184 -147
  24. package/dist/cjs/src/bithumb.js +23 -16
  25. package/dist/cjs/src/bitmart.js +129 -94
  26. package/dist/cjs/src/bitmex.js +104 -64
  27. package/dist/cjs/src/bitopro.js +38 -26
  28. package/dist/cjs/src/bitpanda.js +24 -23
  29. package/dist/cjs/src/bitrue.js +33 -24
  30. package/dist/cjs/src/bitso.js +24 -23
  31. package/dist/cjs/src/bitstamp.js +24 -23
  32. package/dist/cjs/src/bittrex.js +30 -29
  33. package/dist/cjs/src/bitvavo.js +38 -30
  34. package/dist/cjs/src/bl3p.js +11 -10
  35. package/dist/cjs/src/blockchaincom.js +20 -20
  36. package/dist/cjs/src/btcalpha.js +18 -17
  37. package/dist/cjs/src/btcbox.js +13 -12
  38. package/dist/cjs/src/btcmarkets.js +20 -19
  39. package/dist/cjs/src/btcturk.js +14 -13
  40. package/dist/cjs/src/bybit.js +84 -54
  41. package/dist/cjs/src/cex.js +16 -14
  42. package/dist/cjs/src/coinbase.js +29 -27
  43. package/dist/cjs/src/coinbasepro.js +27 -25
  44. package/dist/cjs/src/coincheck.js +15 -14
  45. package/dist/cjs/src/coinex.js +101 -78
  46. package/dist/cjs/src/coinlist.js +28 -27
  47. package/dist/cjs/src/coinmate.js +20 -17
  48. package/dist/cjs/src/coinone.js +21 -16
  49. package/dist/cjs/src/coinsph.js +37 -28
  50. package/dist/cjs/src/coinspot.js +12 -11
  51. package/dist/cjs/src/cryptocom.js +40 -202
  52. package/dist/cjs/src/currencycom.js +32 -25
  53. package/dist/cjs/src/delta.js +34 -28
  54. package/dist/cjs/src/deribit.js +39 -36
  55. package/dist/cjs/src/digifinex.js +64 -44
  56. package/dist/cjs/src/exmo.js +29 -27
  57. package/dist/cjs/src/gate.js +67 -53
  58. package/dist/cjs/src/gemini.js +23 -20
  59. package/dist/cjs/src/hitbtc.js +65 -56
  60. package/dist/cjs/src/hollaex.js +30 -27
  61. package/dist/cjs/src/htx.js +135 -143
  62. package/dist/cjs/src/huobijp.js +22 -20
  63. package/dist/cjs/src/idex.js +22 -21
  64. package/dist/cjs/src/independentreserve.js +15 -14
  65. package/dist/cjs/src/indodax.js +30 -26
  66. package/dist/cjs/src/kraken.js +29 -27
  67. package/dist/cjs/src/krakenfutures.js +29 -22
  68. package/dist/cjs/src/kucoin.js +48 -43
  69. package/dist/cjs/src/kucoinfutures.js +33 -28
  70. package/dist/cjs/src/kuna.js +25 -24
  71. package/dist/cjs/src/latoken.js +24 -22
  72. package/dist/cjs/src/lbank.js +45 -30
  73. package/dist/cjs/src/luno.js +22 -19
  74. package/dist/cjs/src/lykke.js +19 -17
  75. package/dist/cjs/src/mercado.js +30 -19
  76. package/dist/cjs/src/mexc.js +60 -49
  77. package/dist/cjs/src/ndax.js +23 -22
  78. package/dist/cjs/src/novadax.js +23 -22
  79. package/dist/cjs/src/oceanex.js +22 -19
  80. package/dist/cjs/src/okcoin.js +29 -23
  81. package/dist/cjs/src/okx.js +92 -84
  82. package/dist/cjs/src/p2b.js +80 -83
  83. package/dist/cjs/src/paymium.js +10 -10
  84. package/dist/cjs/src/phemex.js +63 -40
  85. package/dist/cjs/src/poloniex.js +22 -22
  86. package/dist/cjs/src/poloniexfutures.js +23 -19
  87. package/dist/cjs/src/pro/alpaca.js +5 -5
  88. package/dist/cjs/src/pro/ascendex.js +4 -4
  89. package/dist/cjs/src/pro/binance.js +16 -16
  90. package/dist/cjs/src/pro/bingx.js +1 -1
  91. package/dist/cjs/src/pro/bitfinex.js +4 -4
  92. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  93. package/dist/cjs/src/pro/bitget.js +7 -7
  94. package/dist/cjs/src/pro/bitmart.js +7 -5
  95. package/dist/cjs/src/pro/bitmex.js +6 -6
  96. package/dist/cjs/src/pro/bitopro.js +4 -4
  97. package/dist/cjs/src/pro/bitpanda.js +6 -6
  98. package/dist/cjs/src/pro/bitrue.js +2 -2
  99. package/dist/cjs/src/pro/bitstamp.js +6 -4
  100. package/dist/cjs/src/pro/bittrex.js +6 -6
  101. package/dist/cjs/src/pro/bitvavo.js +11 -7
  102. package/dist/cjs/src/pro/blockchaincom.js +8 -8
  103. package/dist/cjs/src/pro/bybit.js +7 -7
  104. package/dist/cjs/src/pro/cex.js +13 -9
  105. package/dist/cjs/src/pro/coinbase.js +5 -5
  106. package/dist/cjs/src/pro/coinbasepro.js +11 -10
  107. package/dist/cjs/src/pro/coinex.js +7 -9
  108. package/dist/cjs/src/pro/cryptocom.js +9 -9
  109. package/dist/cjs/src/pro/currencycom.js +4 -4
  110. package/dist/cjs/src/pro/deribit.js +6 -6
  111. package/dist/cjs/src/pro/exmo.js +12 -14
  112. package/dist/cjs/src/pro/gate.js +7 -7
  113. package/dist/cjs/src/pro/gemini.js +3 -3
  114. package/dist/cjs/src/pro/hitbtc.js +263 -4
  115. package/dist/cjs/src/pro/hollaex.js +5 -5
  116. package/dist/cjs/src/pro/htx.js +6 -6
  117. package/dist/cjs/src/pro/huobijp.js +3 -3
  118. package/dist/cjs/src/pro/idex.js +4 -4
  119. package/dist/cjs/src/pro/independentreserve.js +2 -2
  120. package/dist/cjs/src/pro/kraken.js +10 -10
  121. package/dist/cjs/src/pro/krakenfutures.js +41 -17
  122. package/dist/cjs/src/pro/kucoin.js +7 -7
  123. package/dist/cjs/src/pro/kucoinfutures.js +8 -6
  124. package/dist/cjs/src/pro/luno.js +2 -2
  125. package/dist/cjs/src/pro/mexc.js +6 -6
  126. package/dist/cjs/src/pro/ndax.js +3 -3
  127. package/dist/cjs/src/pro/okcoin.js +5 -5
  128. package/dist/cjs/src/pro/okx.js +12 -12
  129. package/dist/cjs/src/pro/phemex.js +6 -6
  130. package/dist/cjs/src/pro/poloniex.js +7 -7
  131. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  132. package/dist/cjs/src/pro/probit.js +6 -6
  133. package/dist/cjs/src/pro/upbit.js +3 -3
  134. package/dist/cjs/src/pro/wazirx.js +8 -8
  135. package/dist/cjs/src/pro/whitebit.js +12 -8
  136. package/dist/cjs/src/pro/woo.js +1 -1
  137. package/dist/cjs/src/probit.js +28 -23
  138. package/dist/cjs/src/tidex.js +16 -15
  139. package/dist/cjs/src/timex.js +19 -18
  140. package/dist/cjs/src/tokocrypto.js +27 -22
  141. package/dist/cjs/src/upbit.js +19 -19
  142. package/dist/cjs/src/wavesexchange.js +22 -19
  143. package/dist/cjs/src/wazirx.js +24 -17
  144. package/dist/cjs/src/whitebit.js +33 -27
  145. package/dist/cjs/src/woo.js +44 -34
  146. package/dist/cjs/src/yobit.js +25 -20
  147. package/dist/cjs/src/zaif.js +9 -9
  148. package/dist/cjs/src/zonda.js +18 -17
  149. package/js/ccxt.d.ts +1 -1
  150. package/js/ccxt.js +1 -1
  151. package/js/src/abstract/bitbank.d.ts +1 -0
  152. package/js/src/abstract/bybit.d.ts +1 -0
  153. package/js/src/abstract/cryptocom.d.ts +0 -20
  154. package/js/src/abstract/htx.d.ts +3 -0
  155. package/js/src/abstract/huobi.d.ts +3 -0
  156. package/js/src/abstract/huobipro.d.ts +3 -0
  157. package/js/src/abstract/okex.d.ts +3 -1
  158. package/js/src/abstract/okex5.d.ts +3 -1
  159. package/js/src/abstract/okx.d.ts +3 -1
  160. package/js/src/ace.js +18 -14
  161. package/js/src/alpaca.js +6 -6
  162. package/js/src/ascendex.js +35 -29
  163. package/js/src/base/Exchange.d.ts +37 -34
  164. package/js/src/base/Exchange.js +39 -26
  165. package/js/src/base/Precise.d.ts +4 -4
  166. package/js/src/base/Precise.js +1 -3
  167. package/js/src/base/functions/type.d.ts +25 -25
  168. package/js/src/base/types.d.ts +21 -14
  169. package/js/src/bigone.js +25 -21
  170. package/js/src/binance.d.ts +2 -2
  171. package/js/src/binance.js +97 -76
  172. package/js/src/bingx.js +63 -44
  173. package/js/src/bit2c.js +19 -16
  174. package/js/src/bitbank.js +17 -15
  175. package/js/src/bitbns.js +28 -18
  176. package/js/src/bitfinex.js +23 -21
  177. package/js/src/bitfinex2.js +32 -28
  178. package/js/src/bitflyer.js +28 -20
  179. package/js/src/bitforex.js +26 -19
  180. package/js/src/bitget.d.ts +25 -3
  181. package/js/src/bitget.js +184 -147
  182. package/js/src/bithumb.js +23 -16
  183. package/js/src/bitmart.d.ts +1 -1
  184. package/js/src/bitmart.js +129 -94
  185. package/js/src/bitmex.d.ts +2 -2
  186. package/js/src/bitmex.js +104 -64
  187. package/js/src/bitopro.js +38 -26
  188. package/js/src/bitpanda.js +24 -23
  189. package/js/src/bitrue.js +33 -24
  190. package/js/src/bitso.js +24 -23
  191. package/js/src/bitstamp.d.ts +2 -2
  192. package/js/src/bitstamp.js +24 -23
  193. package/js/src/bittrex.js +30 -29
  194. package/js/src/bitvavo.js +38 -30
  195. package/js/src/bl3p.js +11 -10
  196. package/js/src/blockchaincom.js +20 -20
  197. package/js/src/btcalpha.js +18 -17
  198. package/js/src/btcbox.js +13 -12
  199. package/js/src/btcmarkets.js +20 -19
  200. package/js/src/btcturk.js +14 -13
  201. package/js/src/bybit.d.ts +1 -1
  202. package/js/src/bybit.js +84 -54
  203. package/js/src/cex.js +16 -14
  204. package/js/src/coinbase.js +29 -27
  205. package/js/src/coinbasepro.js +27 -25
  206. package/js/src/coincheck.js +15 -14
  207. package/js/src/coinex.d.ts +1 -1
  208. package/js/src/coinex.js +101 -78
  209. package/js/src/coinlist.js +28 -27
  210. package/js/src/coinmate.js +21 -18
  211. package/js/src/coinone.js +21 -16
  212. package/js/src/coinsph.js +37 -28
  213. package/js/src/coinspot.js +12 -11
  214. package/js/src/cryptocom.d.ts +0 -23
  215. package/js/src/cryptocom.js +40 -202
  216. package/js/src/currencycom.js +32 -25
  217. package/js/src/delta.js +35 -29
  218. package/js/src/deribit.js +39 -36
  219. package/js/src/digifinex.d.ts +2 -2
  220. package/js/src/digifinex.js +65 -45
  221. package/js/src/exmo.js +29 -27
  222. package/js/src/gate.d.ts +1 -1
  223. package/js/src/gate.js +67 -53
  224. package/js/src/gemini.js +23 -20
  225. package/js/src/hitbtc.d.ts +1 -0
  226. package/js/src/hitbtc.js +65 -56
  227. package/js/src/hollaex.js +30 -27
  228. package/js/src/htx.d.ts +11 -3
  229. package/js/src/htx.js +135 -143
  230. package/js/src/huobijp.js +23 -21
  231. package/js/src/idex.js +22 -21
  232. package/js/src/independentreserve.js +15 -14
  233. package/js/src/indodax.js +30 -26
  234. package/js/src/kraken.js +29 -27
  235. package/js/src/krakenfutures.js +29 -22
  236. package/js/src/kucoin.d.ts +1 -1
  237. package/js/src/kucoin.js +48 -43
  238. package/js/src/kucoinfutures.js +33 -28
  239. package/js/src/kuna.js +25 -24
  240. package/js/src/latoken.js +25 -23
  241. package/js/src/lbank.js +46 -31
  242. package/js/src/luno.js +22 -19
  243. package/js/src/lykke.js +19 -17
  244. package/js/src/mercado.js +30 -19
  245. package/js/src/mexc.d.ts +1 -1
  246. package/js/src/mexc.js +60 -49
  247. package/js/src/ndax.js +23 -22
  248. package/js/src/novadax.js +23 -22
  249. package/js/src/oceanex.js +22 -19
  250. package/js/src/okcoin.js +29 -23
  251. package/js/src/okx.d.ts +2 -2
  252. package/js/src/okx.js +92 -84
  253. package/js/src/p2b.d.ts +8 -7
  254. package/js/src/p2b.js +80 -82
  255. package/js/src/paymium.js +10 -10
  256. package/js/src/phemex.js +63 -40
  257. package/js/src/poloniex.js +22 -22
  258. package/js/src/poloniexfutures.js +23 -19
  259. package/js/src/pro/alpaca.js +5 -5
  260. package/js/src/pro/ascendex.js +4 -4
  261. package/js/src/pro/binance.js +16 -16
  262. package/js/src/pro/bingx.js +1 -1
  263. package/js/src/pro/bitfinex.js +4 -4
  264. package/js/src/pro/bitfinex2.d.ts +1 -1
  265. package/js/src/pro/bitfinex2.js +6 -6
  266. package/js/src/pro/bitget.js +7 -7
  267. package/js/src/pro/bitmart.js +7 -5
  268. package/js/src/pro/bitmex.js +6 -6
  269. package/js/src/pro/bitopro.js +4 -4
  270. package/js/src/pro/bitpanda.js +6 -6
  271. package/js/src/pro/bitrue.js +2 -2
  272. package/js/src/pro/bitstamp.js +7 -5
  273. package/js/src/pro/bittrex.js +6 -6
  274. package/js/src/pro/bitvavo.js +12 -8
  275. package/js/src/pro/blockchaincom.js +8 -8
  276. package/js/src/pro/bybit.js +7 -7
  277. package/js/src/pro/cex.js +14 -10
  278. package/js/src/pro/coinbase.js +5 -5
  279. package/js/src/pro/coinbasepro.js +12 -11
  280. package/js/src/pro/coinex.js +7 -9
  281. package/js/src/pro/cryptocom.js +9 -9
  282. package/js/src/pro/currencycom.js +4 -4
  283. package/js/src/pro/deribit.js +6 -6
  284. package/js/src/pro/exmo.js +12 -14
  285. package/js/src/pro/gate.js +7 -7
  286. package/js/src/pro/gemini.js +3 -3
  287. package/js/src/pro/hitbtc.d.ts +8 -1
  288. package/js/src/pro/hitbtc.js +264 -5
  289. package/js/src/pro/hollaex.js +5 -5
  290. package/js/src/pro/htx.js +6 -6
  291. package/js/src/pro/huobijp.js +3 -3
  292. package/js/src/pro/idex.js +4 -4
  293. package/js/src/pro/independentreserve.js +2 -2
  294. package/js/src/pro/kraken.js +10 -10
  295. package/js/src/pro/krakenfutures.d.ts +1 -0
  296. package/js/src/pro/krakenfutures.js +42 -18
  297. package/js/src/pro/kucoin.js +7 -7
  298. package/js/src/pro/kucoinfutures.js +8 -6
  299. package/js/src/pro/luno.js +2 -2
  300. package/js/src/pro/mexc.js +6 -6
  301. package/js/src/pro/ndax.js +3 -3
  302. package/js/src/pro/okcoin.js +5 -5
  303. package/js/src/pro/okx.js +12 -12
  304. package/js/src/pro/phemex.js +6 -6
  305. package/js/src/pro/poloniex.js +7 -7
  306. package/js/src/pro/poloniexfutures.js +5 -5
  307. package/js/src/pro/probit.js +6 -6
  308. package/js/src/pro/upbit.js +3 -3
  309. package/js/src/pro/wazirx.js +8 -8
  310. package/js/src/pro/whitebit.js +13 -9
  311. package/js/src/pro/woo.js +1 -1
  312. package/js/src/probit.js +29 -24
  313. package/js/src/tidex.js +16 -15
  314. package/js/src/timex.js +19 -18
  315. package/js/src/tokocrypto.js +28 -23
  316. package/js/src/upbit.js +19 -19
  317. package/js/src/wavesexchange.js +23 -20
  318. package/js/src/wazirx.js +25 -18
  319. package/js/src/whitebit.js +33 -27
  320. package/js/src/woo.js +45 -35
  321. package/js/src/yobit.js +25 -20
  322. package/js/src/zaif.js +9 -9
  323. package/js/src/zonda.js +18 -17
  324. package/package.json +2 -2
  325. package/js/src/bitstamp1.d.ts +0 -28
  326. package/js/src/bitstamp1.js +0 -430
  327. package/js/src/lbank2.d.ts +0 -90
  328. package/js/src/lbank2.js +0 -2779
@@ -40,12 +40,11 @@ class phemex extends phemex$1 {
40
40
  'createStopOrder': true,
41
41
  'editOrder': true,
42
42
  'fetchBalance': true,
43
- 'fetchBorrowRate': false,
44
43
  'fetchBorrowRateHistories': false,
45
44
  'fetchBorrowRateHistory': false,
46
- 'fetchBorrowRates': false,
47
- 'fetchBorrowRatesPerSymbol': false,
48
45
  'fetchClosedOrders': true,
46
+ 'fetchCrossBorrowRate': false,
47
+ 'fetchCrossBorrowRates': false,
49
48
  'fetchCurrencies': true,
50
49
  'fetchDepositAddress': true,
51
50
  'fetchDeposits': true,
@@ -55,6 +54,8 @@ class phemex extends phemex$1 {
55
54
  'fetchFundingRateHistory': true,
56
55
  'fetchFundingRates': false,
57
56
  'fetchIndexOHLCV': false,
57
+ 'fetchIsolatedBorrowRate': false,
58
+ 'fetchIsolatedBorrowRates': false,
58
59
  'fetchLeverage': false,
59
60
  'fetchLeverageTiers': true,
60
61
  'fetchMarketLeverageTiers': 'emulated',
@@ -977,7 +978,7 @@ class phemex extends phemex$1 {
977
978
  * @param {string} symbol unified symbol of the market to fetch the order book for
978
979
  * @param {int} [limit] the maximum amount of order book entries to return
979
980
  * @param {object} [params] extra parameters specific to the phemex api endpoint
980
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
981
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
981
982
  */
982
983
  await this.loadMarkets();
983
984
  const market = this.market(symbol);
@@ -1286,7 +1287,7 @@ class phemex extends phemex$1 {
1286
1287
  * @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query24hrsticker
1287
1288
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1288
1289
  * @param {object} [params] extra parameters specific to the phemex api endpoint
1289
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1290
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1290
1291
  */
1291
1292
  await this.loadMarkets();
1292
1293
  const market = this.market(symbol);
@@ -1361,7 +1362,7 @@ class phemex extends phemex$1 {
1361
1362
  * @see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols // inverse
1362
1363
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1363
1364
  * @param {object} [params] extra parameters specific to the phemex api endpoint
1364
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1365
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1365
1366
  */
1366
1367
  await this.loadMarkets();
1367
1368
  let market = undefined;
@@ -1399,7 +1400,7 @@ class phemex extends phemex$1 {
1399
1400
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1400
1401
  * @param {int} [limit] the maximum amount of trades to fetch
1401
1402
  * @param {object} [params] extra parameters specific to the phemex api endpoint
1402
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1403
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1403
1404
  */
1404
1405
  await this.loadMarkets();
1405
1406
  const market = this.market(symbol);
@@ -1808,7 +1809,7 @@ class phemex extends phemex$1 {
1808
1809
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1809
1810
  * @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
1810
1811
  * @param {object} [params] extra parameters specific to the phemex api endpoint
1811
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1812
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1812
1813
  */
1813
1814
  await this.loadMarkets();
1814
1815
  let type = undefined;
@@ -2324,7 +2325,7 @@ class phemex extends phemex$1 {
2324
2325
  * @param {float} [params.takeProfit.triggerPrice] take profit trigger price
2325
2326
  * @param {object} [params.stopLoss] *swap only* *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
2326
2327
  * @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
2327
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2328
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2328
2329
  */
2329
2330
  await this.loadMarkets();
2330
2331
  const market = this.market(symbol);
@@ -2621,7 +2622,7 @@ class phemex extends phemex$1 {
2621
2622
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
2622
2623
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2623
2624
  * @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
2624
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2625
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2625
2626
  */
2626
2627
  await this.loadMarkets();
2627
2628
  const market = this.market(symbol);
@@ -2694,9 +2695,11 @@ class phemex extends phemex$1 {
2694
2695
  * @param {string} symbol unified symbol of the market the order was made in
2695
2696
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2696
2697
  * @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
2697
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2698
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2698
2699
  */
2699
- this.checkRequiredSymbol('cancelOrder', symbol);
2700
+ if (symbol === undefined) {
2701
+ throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
2702
+ }
2700
2703
  await this.loadMarkets();
2701
2704
  const market = this.market(symbol);
2702
2705
  const request = {
@@ -2733,9 +2736,11 @@ class phemex extends phemex$1 {
2733
2736
  * @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancelall
2734
2737
  * @param {string} symbol unified market symbol of the market to cancel orders in
2735
2738
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2736
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2739
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2737
2740
  */
2738
- this.checkRequiredSymbol('cancelAllOrders', symbol);
2741
+ if (symbol === undefined) {
2742
+ throw new errors.ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
2743
+ }
2739
2744
  await this.loadMarkets();
2740
2745
  const request = {
2741
2746
  // 'symbol': market['id'],
@@ -2760,9 +2765,11 @@ class phemex extends phemex$1 {
2760
2765
  * @description fetches information on an order made by the user
2761
2766
  * @param {string} symbol unified symbol of the market the order was made in
2762
2767
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2763
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2768
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2764
2769
  */
2765
- this.checkRequiredSymbol('fetchOrder', symbol);
2770
+ if (symbol === undefined) {
2771
+ throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
2772
+ }
2766
2773
  await this.loadMarkets();
2767
2774
  const market = this.market(symbol);
2768
2775
  if (market['settle'] === 'USDT') {
@@ -2807,9 +2814,11 @@ class phemex extends phemex$1 {
2807
2814
  * @param {int} [since] the earliest time in ms to fetch orders for
2808
2815
  * @param {int} [limit] the maximum number of order structures to retrieve
2809
2816
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2810
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2817
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2811
2818
  */
2812
- this.checkRequiredSymbol('fetchOrders', symbol);
2819
+ if (symbol === undefined) {
2820
+ throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
2821
+ }
2813
2822
  await this.loadMarkets();
2814
2823
  const market = this.market(symbol);
2815
2824
  const request = {
@@ -2845,9 +2854,11 @@ class phemex extends phemex$1 {
2845
2854
  * @param {int} [since] the earliest time in ms to fetch open orders for
2846
2855
  * @param {int} [limit] the maximum number of open order structures to retrieve
2847
2856
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2848
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2857
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2849
2858
  */
2850
- this.checkRequiredSymbol('fetchOpenOrders', symbol);
2859
+ if (symbol === undefined) {
2860
+ throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
2861
+ }
2851
2862
  await this.loadMarkets();
2852
2863
  const market = this.market(symbol);
2853
2864
  let method = 'privateGetSpotOrders';
@@ -2889,9 +2900,11 @@ class phemex extends phemex$1 {
2889
2900
  * @param {int} [since] the earliest time in ms to fetch orders for
2890
2901
  * @param {int} [limit] the maximum number of order structures to retrieve
2891
2902
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2892
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2903
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2893
2904
  */
2894
- this.checkRequiredSymbol('fetchClosedOrders', symbol);
2905
+ if (symbol === undefined) {
2906
+ throw new errors.ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
2907
+ }
2895
2908
  await this.loadMarkets();
2896
2909
  const market = this.market(symbol);
2897
2910
  const request = {
@@ -2968,9 +2981,11 @@ class phemex extends phemex$1 {
2968
2981
  * @param {int} [since] the earliest time in ms to fetch trades for
2969
2982
  * @param {int} [limit] the maximum number of trades structures to retrieve
2970
2983
  * @param {object} [params] extra parameters specific to the phemex api endpoint
2971
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
2984
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
2972
2985
  */
2973
- this.checkRequiredSymbol('fetchMyTrades', symbol);
2986
+ if (symbol === undefined) {
2987
+ throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
2988
+ }
2974
2989
  await this.loadMarkets();
2975
2990
  const market = this.market(symbol);
2976
2991
  let method = 'privateGetExchangeSpotOrderTrades';
@@ -3120,7 +3135,7 @@ class phemex extends phemex$1 {
3120
3135
  * @description fetch the deposit address for a currency associated with this account
3121
3136
  * @param {string} code unified currency code
3122
3137
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3123
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
3138
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
3124
3139
  */
3125
3140
  await this.loadMarkets();
3126
3141
  const currency = this.currency(code);
@@ -3170,7 +3185,7 @@ class phemex extends phemex$1 {
3170
3185
  * @param {int} [since] the earliest time in ms to fetch deposits for
3171
3186
  * @param {int} [limit] the maximum number of deposits structures to retrieve
3172
3187
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3173
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
3188
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
3174
3189
  */
3175
3190
  await this.loadMarkets();
3176
3191
  let currency = undefined;
@@ -3210,7 +3225,7 @@ class phemex extends phemex$1 {
3210
3225
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
3211
3226
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
3212
3227
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3213
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
3228
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
3214
3229
  */
3215
3230
  await this.loadMarkets();
3216
3231
  let currency = undefined;
@@ -3336,7 +3351,7 @@ class phemex extends phemex$1 {
3336
3351
  * @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
3337
3352
  * @param {string[]|undefined} symbols list of unified market symbols
3338
3353
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3339
- * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
3354
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
3340
3355
  */
3341
3356
  await this.loadMarkets();
3342
3357
  symbols = this.marketSymbols(symbols);
@@ -3610,9 +3625,11 @@ class phemex extends phemex$1 {
3610
3625
  * @param {int} [since] the earliest time in ms to fetch funding history for
3611
3626
  * @param {int} [limit] the maximum number of funding history structures to retrieve
3612
3627
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3613
- * @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
3628
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
3614
3629
  */
3615
- this.checkRequiredSymbol('fetchFundingHistory', symbol);
3630
+ if (symbol === undefined) {
3631
+ throw new errors.ArgumentsRequired(this.id + ' fetchFundingHistory() requires a symbol argument');
3632
+ }
3616
3633
  await this.loadMarkets();
3617
3634
  const market = this.market(symbol);
3618
3635
  const request = {
@@ -3680,7 +3697,7 @@ class phemex extends phemex$1 {
3680
3697
  * @description fetch the current funding rate
3681
3698
  * @param {string} symbol unified market symbol
3682
3699
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3683
- * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
3700
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
3684
3701
  */
3685
3702
  await this.loadMarkets();
3686
3703
  const market = this.market(symbol);
@@ -3793,7 +3810,7 @@ class phemex extends phemex$1 {
3793
3810
  * @param {string} symbol unified market symbol of the market to set margin in
3794
3811
  * @param {float} amount the amount to set the margin to
3795
3812
  * @param {object} [params] parameters specific to the phemex api endpoint
3796
- * @returns {object} A [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
3813
+ * @returns {object} A [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
3797
3814
  */
3798
3815
  await this.loadMarkets();
3799
3816
  const market = this.market(symbol);
@@ -3850,7 +3867,9 @@ class phemex extends phemex$1 {
3850
3867
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3851
3868
  * @returns {object} response from the exchange
3852
3869
  */
3853
- this.checkRequiredSymbol('setMarginMode', symbol);
3870
+ if (symbol === undefined) {
3871
+ throw new errors.ArgumentsRequired(this.id + ' setMarginMode() requires a symbol argument');
3872
+ }
3854
3873
  await this.loadMarkets();
3855
3874
  const market = this.market(symbol);
3856
3875
  if (!market['swap'] || market['settle'] === 'USDT') {
@@ -3908,7 +3927,7 @@ class phemex extends phemex$1 {
3908
3927
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
3909
3928
  * @param {string[]|undefined} symbols list of unified market symbols
3910
3929
  * @param {object} [params] extra parameters specific to the phemex api endpoint
3911
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
3930
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
3912
3931
  */
3913
3932
  await this.loadMarkets();
3914
3933
  if (symbols !== undefined) {
@@ -4086,7 +4105,9 @@ class phemex extends phemex$1 {
4086
4105
  */
4087
4106
  // WARNING: THIS WILL INCREASE LIQUIDATION PRICE FOR OPEN ISOLATED LONG POSITIONS
4088
4107
  // AND DECREASE LIQUIDATION PRICE FOR OPEN ISOLATED SHORT POSITIONS
4089
- this.checkRequiredSymbol('setLeverage', symbol);
4108
+ if (symbol === undefined) {
4109
+ throw new errors.ArgumentsRequired(this.id + ' setLeverage() requires a symbol argument');
4110
+ }
4090
4111
  if ((leverage < 1) || (leverage > 100)) {
4091
4112
  throw new errors.BadRequest(this.id + ' setLeverage() leverage should be between 1 and 100');
4092
4113
  }
@@ -4128,7 +4149,7 @@ class phemex extends phemex$1 {
4128
4149
  * @param {string} toAccount account to transfer to
4129
4150
  * @param {object} [params] extra parameters specific to the phemex api endpoint
4130
4151
  * @param {string} [params.bizType] for transferring between main and sub-acounts either 'SPOT' or 'PERPETUAL' default is 'SPOT'
4131
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4152
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4132
4153
  */
4133
4154
  await this.loadMarkets();
4134
4155
  const currency = this.currency(code);
@@ -4213,7 +4234,7 @@ class phemex extends phemex$1 {
4213
4234
  * @param {int} [since] the earliest time in ms to fetch transfers for
4214
4235
  * @param {int} [limit] the maximum number of transfers structures to retrieve
4215
4236
  * @param {object} [params] extra parameters specific to the phemex api endpoint
4216
- * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4237
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4217
4238
  */
4218
4239
  await this.loadMarkets();
4219
4240
  if (code === undefined) {
@@ -4327,13 +4348,15 @@ class phemex extends phemex$1 {
4327
4348
  * @see https://phemex-docs.github.io/#query-funding-rate-history-2
4328
4349
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
4329
4350
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
4330
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
4351
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
4331
4352
  * @param {object} [params] extra parameters specific to the phemex api endpoint
4332
4353
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4333
4354
  * @param {int} [params.until] timestamp in ms of the latest funding rate
4334
- * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
4355
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
4335
4356
  */
4336
- this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
4357
+ if (symbol === undefined) {
4358
+ throw new errors.ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
4359
+ }
4337
4360
  await this.loadMarkets();
4338
4361
  const market = this.market(symbol);
4339
4362
  const isUsdtSettled = market['settle'] === 'USDT';
@@ -631,7 +631,7 @@ class poloniex extends poloniex$1 {
631
631
  * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
632
632
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
633
633
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
634
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
634
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
635
635
  */
636
636
  await this.loadMarkets();
637
637
  symbols = this.marketSymbols(symbols);
@@ -803,7 +803,7 @@ class poloniex extends poloniex$1 {
803
803
  * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
804
804
  * @param {string} symbol unified symbol of the market to fetch the ticker for
805
805
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
806
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
806
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
807
807
  */
808
808
  await this.loadMarkets();
809
809
  const market = this.market(symbol);
@@ -936,7 +936,7 @@ class poloniex extends poloniex$1 {
936
936
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
937
937
  * @param {int} [limit] the maximum amount of trades to fetch
938
938
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
939
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
939
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
940
940
  */
941
941
  await this.loadMarkets();
942
942
  const market = this.market(symbol);
@@ -974,7 +974,7 @@ class poloniex extends poloniex$1 {
974
974
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
975
975
  * @param {int} [params.until] the latest time in ms to fetch entries for
976
976
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
977
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
977
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
978
978
  */
979
979
  await this.loadMarkets();
980
980
  let paginate = false;
@@ -1185,7 +1185,7 @@ class poloniex extends poloniex$1 {
1185
1185
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1186
1186
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1187
1187
  * @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
1188
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1188
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1189
1189
  */
1190
1190
  await this.loadMarkets();
1191
1191
  let market = undefined;
@@ -1246,7 +1246,7 @@ class poloniex extends poloniex$1 {
1246
1246
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1247
1247
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1248
1248
  * @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
1249
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1249
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1250
1250
  */
1251
1251
  await this.loadMarkets();
1252
1252
  const market = this.market(symbol);
@@ -1330,7 +1330,7 @@ class poloniex extends poloniex$1 {
1330
1330
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1331
1331
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1332
1332
  * @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
1333
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1333
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1334
1334
  */
1335
1335
  await this.loadMarkets();
1336
1336
  const market = this.market(symbol);
@@ -1372,7 +1372,7 @@ class poloniex extends poloniex$1 {
1372
1372
  // @param {string} symbol unified symbol of the market the order was made in
1373
1373
  // @param {object} [params] extra parameters specific to the poloniex api endpoint
1374
1374
  // @param {boolean} [params.trigger] true if canceling a trigger order
1375
- // @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1375
+ // @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1376
1376
  //
1377
1377
  await this.loadMarkets();
1378
1378
  const request = {};
@@ -1411,7 +1411,7 @@ class poloniex extends poloniex$1 {
1411
1411
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1412
1412
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1413
1413
  * @param {boolean} [params.trigger] true if canceling trigger orders
1414
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1414
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1415
1415
  */
1416
1416
  await this.loadMarkets();
1417
1417
  const request = {
@@ -1464,7 +1464,7 @@ class poloniex extends poloniex$1 {
1464
1464
  * @param {string} symbol unified market symbol, default is undefined
1465
1465
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1466
1466
  * @param {boolean} [params.trigger] true if fetching a trigger order
1467
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1467
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1468
1468
  */
1469
1469
  await this.loadMarkets();
1470
1470
  id = id.toString();
@@ -1523,7 +1523,7 @@ class poloniex extends poloniex$1 {
1523
1523
  * @param {int} [since] the earliest time in ms to fetch trades for
1524
1524
  * @param {int} [limit] the maximum number of trades to retrieve
1525
1525
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1526
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1526
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1527
1527
  */
1528
1528
  await this.loadMarkets();
1529
1529
  const request = {
@@ -1581,7 +1581,7 @@ class poloniex extends poloniex$1 {
1581
1581
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1582
1582
  * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
1583
1583
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1584
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1584
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1585
1585
  */
1586
1586
  await this.loadMarkets();
1587
1587
  const request = {
@@ -1613,7 +1613,7 @@ class poloniex extends poloniex$1 {
1613
1613
  * @description fetch the trading fees for multiple markets
1614
1614
  * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
1615
1615
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1616
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
1616
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1617
1617
  */
1618
1618
  await this.loadMarkets();
1619
1619
  const response = await this.privateGetFeeinfo(params);
@@ -1648,7 +1648,7 @@ class poloniex extends poloniex$1 {
1648
1648
  * @param {string} symbol unified symbol of the market to fetch the order book for
1649
1649
  * @param {int} [limit] the maximum amount of order book entries to return
1650
1650
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1651
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1651
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1652
1652
  */
1653
1653
  await this.loadMarkets();
1654
1654
  const market = this.market(symbol);
@@ -1704,7 +1704,7 @@ class poloniex extends poloniex$1 {
1704
1704
  * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1705
1705
  * @param {string} code unified currency code of the currency for the deposit address
1706
1706
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1707
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1707
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1708
1708
  */
1709
1709
  await this.loadMarkets();
1710
1710
  const currency = this.currency(code);
@@ -1755,7 +1755,7 @@ class poloniex extends poloniex$1 {
1755
1755
  * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1756
1756
  * @param {string} code unified currency code
1757
1757
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1758
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1758
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1759
1759
  */
1760
1760
  await this.loadMarkets();
1761
1761
  const currency = this.currency(code);
@@ -1809,7 +1809,7 @@ class poloniex extends poloniex$1 {
1809
1809
  * @param {string} fromAccount account to transfer from
1810
1810
  * @param {string} toAccount account to transfer to
1811
1811
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1812
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1812
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1813
1813
  */
1814
1814
  await this.loadMarkets();
1815
1815
  const currency = this.currency(code);
@@ -1860,7 +1860,7 @@ class poloniex extends poloniex$1 {
1860
1860
  * @param {string} address the address to withdraw to
1861
1861
  * @param {string} tag
1862
1862
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1863
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1863
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1864
1864
  */
1865
1865
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1866
1866
  this.checkAddress(address);
@@ -1984,7 +1984,7 @@ class poloniex extends poloniex$1 {
1984
1984
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1985
1985
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1986
1986
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1987
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1987
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1988
1988
  */
1989
1989
  await this.loadMarkets();
1990
1990
  const response = await this.fetchTransactionsHelper(code, since, limit, params);
@@ -2009,7 +2009,7 @@ class poloniex extends poloniex$1 {
2009
2009
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2010
2010
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2011
2011
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
2012
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2012
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2013
2013
  */
2014
2014
  const response = await this.fetchTransactionsHelper(code, since, limit, params);
2015
2015
  let currency = undefined;
@@ -2028,7 +2028,7 @@ class poloniex extends poloniex$1 {
2028
2028
  * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
2029
2029
  * @param {string[]|undefined} codes list of unified currency codes
2030
2030
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
2031
- * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2031
+ * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
2032
2032
  */
2033
2033
  await this.loadMarkets();
2034
2034
  const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
@@ -2155,7 +2155,7 @@ class poloniex extends poloniex$1 {
2155
2155
  * @param {int} [since] the earliest time in ms to fetch deposits for
2156
2156
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2157
2157
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
2158
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2158
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2159
2159
  */
2160
2160
  const response = await this.fetchTransactionsHelper(code, since, limit, params);
2161
2161
  let currency = undefined;