ccxt 4.0.74 → 4.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2635 -2383
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +11 -11
  6. package/dist/cjs/src/alpaca.js +7 -7
  7. package/dist/cjs/src/ascendex.js +25 -25
  8. package/dist/cjs/src/base/Exchange.js +4 -4
  9. package/dist/cjs/src/bigone.js +19 -19
  10. package/dist/cjs/src/binance.js +56 -56
  11. package/dist/cjs/src/bingx.js +85 -40
  12. package/dist/cjs/src/bit2c.js +12 -12
  13. package/dist/cjs/src/bitbank.js +13 -13
  14. package/dist/cjs/src/bitbns.js +14 -14
  15. package/dist/cjs/src/bitfinex.js +21 -21
  16. package/dist/cjs/src/bitfinex2.js +29 -29
  17. package/dist/cjs/src/bitflyer.js +17 -17
  18. package/dist/cjs/src/bitforex.js +11 -11
  19. package/dist/cjs/src/bitget.js +39 -39
  20. package/dist/cjs/src/bithumb.js +11 -11
  21. package/dist/cjs/src/bitmart.js +44 -31
  22. package/dist/cjs/src/bitmex.js +24 -24
  23. package/dist/cjs/src/bitopro.js +21 -21
  24. package/dist/cjs/src/bitpanda.js +21 -21
  25. package/dist/cjs/src/bitrue.js +18 -18
  26. package/dist/cjs/src/bitso.js +21 -21
  27. package/dist/cjs/src/bitstamp.js +21 -21
  28. package/dist/cjs/src/bitstamp1.js +8 -8
  29. package/dist/cjs/src/bittrex.js +27 -27
  30. package/dist/cjs/src/bitvavo.js +19 -19
  31. package/dist/cjs/src/bkex.js +21 -21
  32. package/dist/cjs/src/bl3p.js +8 -8
  33. package/dist/cjs/src/blockchaincom.js +21 -21
  34. package/dist/cjs/src/btcalpha.js +15 -15
  35. package/dist/cjs/src/btcbox.js +10 -10
  36. package/dist/cjs/src/btcmarkets.js +17 -17
  37. package/dist/cjs/src/btctradeua.js +8 -8
  38. package/dist/cjs/src/btcturk.js +11 -11
  39. package/dist/cjs/src/bybit.js +153 -121
  40. package/dist/cjs/src/cex.js +14 -14
  41. package/dist/cjs/src/coinbase.js +23 -23
  42. package/dist/cjs/src/coinbasepro.js +24 -24
  43. package/dist/cjs/src/coincheck.js +12 -12
  44. package/dist/cjs/src/coinex.js +87 -41
  45. package/dist/cjs/src/coinfalcon.js +16 -16
  46. package/dist/cjs/src/coinmate.js +14 -14
  47. package/dist/cjs/src/coinone.js +12 -12
  48. package/dist/cjs/src/coinsph.js +27 -22
  49. package/dist/cjs/src/coinspot.js +8 -8
  50. package/dist/cjs/src/cryptocom.js +29 -29
  51. package/dist/cjs/src/currencycom.js +20 -20
  52. package/dist/cjs/src/delta.js +25 -25
  53. package/dist/cjs/src/deribit.js +30 -30
  54. package/dist/cjs/src/digifinex.js +31 -31
  55. package/dist/cjs/src/exmo.js +26 -26
  56. package/dist/cjs/src/gate.js +38 -38
  57. package/dist/cjs/src/gemini.js +17 -17
  58. package/dist/cjs/src/hitbtc.js +34 -34
  59. package/dist/cjs/src/hollaex.js +23 -23
  60. package/dist/cjs/src/huobi.js +45 -45
  61. package/dist/cjs/src/huobijp.js +20 -20
  62. package/dist/cjs/src/idex.js +19 -19
  63. package/dist/cjs/src/independentreserve.js +12 -12
  64. package/dist/cjs/src/indodax.js +14 -14
  65. package/dist/cjs/src/kraken.js +27 -27
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +33 -33
  68. package/dist/cjs/src/kucoinfutures.js +24 -24
  69. package/dist/cjs/src/kuna.js +12 -12
  70. package/dist/cjs/src/latoken.js +17 -17
  71. package/dist/cjs/src/lbank.js +12 -12
  72. package/dist/cjs/src/lbank2.js +23 -23
  73. package/dist/cjs/src/luno.js +16 -16
  74. package/dist/cjs/src/lykke.js +16 -16
  75. package/dist/cjs/src/mercado.js +12 -12
  76. package/dist/cjs/src/mexc.js +44 -42
  77. package/dist/cjs/src/ndax.js +20 -20
  78. package/dist/cjs/src/novadax.js +20 -20
  79. package/dist/cjs/src/oceanex.js +16 -16
  80. package/dist/cjs/src/okcoin.js +21 -21
  81. package/dist/cjs/src/okx.js +52 -52
  82. package/dist/cjs/src/paymium.js +11 -11
  83. package/dist/cjs/src/phemex.js +26 -26
  84. package/dist/cjs/src/poloniex.js +237 -136
  85. package/dist/cjs/src/poloniexfutures.js +18 -18
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +4 -4
  88. package/dist/cjs/src/pro/binance.js +16 -16
  89. package/dist/cjs/src/pro/bitfinex.js +4 -4
  90. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  91. package/dist/cjs/src/pro/bitget.js +6 -6
  92. package/dist/cjs/src/pro/bitmart.js +4 -4
  93. package/dist/cjs/src/pro/bitmex.js +6 -6
  94. package/dist/cjs/src/pro/bitopro.js +4 -4
  95. package/dist/cjs/src/pro/bitpanda.js +6 -6
  96. package/dist/cjs/src/pro/bitrue.js +2 -2
  97. package/dist/cjs/src/pro/bitstamp.js +3 -3
  98. package/dist/cjs/src/pro/bittrex.js +6 -6
  99. package/dist/cjs/src/pro/bitvavo.js +5 -5
  100. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  101. package/dist/cjs/src/pro/bybit.js +6 -6
  102. package/dist/cjs/src/pro/cex.js +7 -7
  103. package/dist/cjs/src/pro/coinbase.js +5 -5
  104. package/dist/cjs/src/pro/coinbasepro.js +6 -6
  105. package/dist/cjs/src/pro/coinex.js +5 -5
  106. package/dist/cjs/src/pro/cryptocom.js +10 -10
  107. package/dist/cjs/src/pro/currencycom.js +4 -4
  108. package/dist/cjs/src/pro/deribit.js +6 -6
  109. package/dist/cjs/src/pro/exmo.js +5 -5
  110. package/dist/cjs/src/pro/gate.js +7 -7
  111. package/dist/cjs/src/pro/gemini.js +3 -3
  112. package/dist/cjs/src/pro/hitbtc.js +3 -3
  113. package/dist/cjs/src/pro/hollaex.js +5 -5
  114. package/dist/cjs/src/pro/huobi.js +6 -6
  115. package/dist/cjs/src/pro/huobijp.js +3 -3
  116. package/dist/cjs/src/pro/idex.js +4 -4
  117. package/dist/cjs/src/pro/independentreserve.js +2 -2
  118. package/dist/cjs/src/pro/kraken.js +12 -12
  119. package/dist/cjs/src/pro/krakenfutures.js +7 -7
  120. package/dist/cjs/src/pro/kucoin.js +6 -6
  121. package/dist/cjs/src/pro/kucoinfutures.js +6 -5
  122. package/dist/cjs/src/pro/luno.js +2 -2
  123. package/dist/cjs/src/pro/mexc.js +6 -6
  124. package/dist/cjs/src/pro/ndax.js +3 -3
  125. package/dist/cjs/src/pro/okcoin.js +5 -5
  126. package/dist/cjs/src/pro/okx.js +19 -18
  127. package/dist/cjs/src/pro/phemex.js +6 -6
  128. package/dist/cjs/src/pro/poloniex.js +7 -7
  129. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  130. package/dist/cjs/src/pro/probit.js +6 -6
  131. package/dist/cjs/src/pro/upbit.js +3 -3
  132. package/dist/cjs/src/pro/wazirx.js +6 -6
  133. package/dist/cjs/src/pro/whitebit.js +6 -6
  134. package/dist/cjs/src/probit.js +19 -19
  135. package/dist/cjs/src/tidex.js +13 -13
  136. package/dist/cjs/src/timex.js +16 -16
  137. package/dist/cjs/src/tokocrypto.js +18 -18
  138. package/dist/cjs/src/upbit.js +20 -20
  139. package/dist/cjs/src/wavesexchange.js +16 -16
  140. package/dist/cjs/src/wazirx.js +12 -12
  141. package/dist/cjs/src/whitebit.js +24 -24
  142. package/dist/cjs/src/woo.js +30 -24
  143. package/dist/cjs/src/yobit.js +16 -16
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +15 -15
  146. package/js/ccxt.d.ts +1 -1
  147. package/js/ccxt.js +1 -1
  148. package/js/src/abstract/bingx.d.ts +2 -0
  149. package/js/src/abstract/bitmart.d.ts +13 -0
  150. package/js/src/abstract/bybit.d.ts +33 -21
  151. package/js/src/abstract/coinsph.d.ts +5 -0
  152. package/js/src/abstract/woo.d.ts +6 -0
  153. package/js/src/ace.js +11 -11
  154. package/js/src/alpaca.js +7 -7
  155. package/js/src/ascendex.js +25 -25
  156. package/js/src/base/Exchange.js +4 -4
  157. package/js/src/bigone.js +19 -19
  158. package/js/src/binance.js +56 -56
  159. package/js/src/bingx.d.ts +1 -0
  160. package/js/src/bingx.js +85 -40
  161. package/js/src/bit2c.js +12 -12
  162. package/js/src/bitbank.js +13 -13
  163. package/js/src/bitbns.js +14 -14
  164. package/js/src/bitfinex.js +21 -21
  165. package/js/src/bitfinex2.js +29 -29
  166. package/js/src/bitflyer.js +17 -17
  167. package/js/src/bitforex.js +11 -11
  168. package/js/src/bitget.js +39 -39
  169. package/js/src/bithumb.js +11 -11
  170. package/js/src/bitmart.js +44 -31
  171. package/js/src/bitmex.js +24 -24
  172. package/js/src/bitopro.js +21 -21
  173. package/js/src/bitpanda.js +21 -21
  174. package/js/src/bitrue.js +18 -18
  175. package/js/src/bitso.js +21 -21
  176. package/js/src/bitstamp.js +21 -21
  177. package/js/src/bitstamp1.js +8 -8
  178. package/js/src/bittrex.js +27 -27
  179. package/js/src/bitvavo.js +19 -19
  180. package/js/src/bkex.js +21 -21
  181. package/js/src/bl3p.js +8 -8
  182. package/js/src/blockchaincom.js +21 -21
  183. package/js/src/btcalpha.js +15 -15
  184. package/js/src/btcbox.js +10 -10
  185. package/js/src/btcmarkets.js +17 -17
  186. package/js/src/btctradeua.js +8 -8
  187. package/js/src/btcturk.js +11 -11
  188. package/js/src/bybit.js +153 -121
  189. package/js/src/cex.js +14 -14
  190. package/js/src/coinbase.js +23 -23
  191. package/js/src/coinbasepro.js +24 -24
  192. package/js/src/coincheck.js +12 -12
  193. package/js/src/coinex.d.ts +1 -0
  194. package/js/src/coinex.js +87 -41
  195. package/js/src/coinfalcon.js +16 -16
  196. package/js/src/coinmate.js +14 -14
  197. package/js/src/coinone.js +12 -12
  198. package/js/src/coinsph.js +27 -22
  199. package/js/src/coinspot.js +8 -8
  200. package/js/src/cryptocom.js +29 -29
  201. package/js/src/currencycom.js +20 -20
  202. package/js/src/delta.js +25 -25
  203. package/js/src/deribit.js +30 -30
  204. package/js/src/digifinex.js +31 -31
  205. package/js/src/exmo.js +26 -26
  206. package/js/src/gate.js +38 -38
  207. package/js/src/gemini.js +17 -17
  208. package/js/src/hitbtc.js +34 -34
  209. package/js/src/hollaex.js +23 -23
  210. package/js/src/huobi.js +45 -45
  211. package/js/src/huobijp.js +20 -20
  212. package/js/src/idex.js +19 -19
  213. package/js/src/independentreserve.js +12 -12
  214. package/js/src/indodax.js +14 -14
  215. package/js/src/kraken.js +27 -27
  216. package/js/src/krakenfutures.js +12 -12
  217. package/js/src/kucoin.js +33 -33
  218. package/js/src/kucoinfutures.js +24 -24
  219. package/js/src/kuna.js +12 -12
  220. package/js/src/latoken.js +17 -17
  221. package/js/src/lbank.js +12 -12
  222. package/js/src/lbank2.js +23 -23
  223. package/js/src/luno.js +16 -16
  224. package/js/src/lykke.js +16 -16
  225. package/js/src/mercado.js +12 -12
  226. package/js/src/mexc.js +45 -43
  227. package/js/src/ndax.js +20 -20
  228. package/js/src/novadax.js +20 -20
  229. package/js/src/oceanex.js +16 -16
  230. package/js/src/okcoin.js +21 -21
  231. package/js/src/okx.js +52 -52
  232. package/js/src/paymium.js +11 -11
  233. package/js/src/phemex.js +26 -26
  234. package/js/src/poloniex.d.ts +1 -1
  235. package/js/src/poloniex.js +237 -136
  236. package/js/src/poloniexfutures.js +18 -18
  237. package/js/src/pro/alpaca.js +5 -5
  238. package/js/src/pro/ascendex.js +4 -4
  239. package/js/src/pro/binance.js +16 -16
  240. package/js/src/pro/bitfinex.js +4 -4
  241. package/js/src/pro/bitfinex2.js +6 -6
  242. package/js/src/pro/bitget.js +6 -6
  243. package/js/src/pro/bitmart.js +4 -4
  244. package/js/src/pro/bitmex.js +6 -6
  245. package/js/src/pro/bitopro.js +4 -4
  246. package/js/src/pro/bitpanda.js +6 -6
  247. package/js/src/pro/bitrue.js +2 -2
  248. package/js/src/pro/bitstamp.js +3 -3
  249. package/js/src/pro/bittrex.js +6 -6
  250. package/js/src/pro/bitvavo.js +5 -5
  251. package/js/src/pro/blockchaincom.js +5 -5
  252. package/js/src/pro/bybit.js +6 -6
  253. package/js/src/pro/cex.js +7 -7
  254. package/js/src/pro/coinbase.js +5 -5
  255. package/js/src/pro/coinbasepro.js +6 -6
  256. package/js/src/pro/coinex.js +5 -5
  257. package/js/src/pro/cryptocom.js +10 -10
  258. package/js/src/pro/currencycom.js +4 -4
  259. package/js/src/pro/deribit.js +6 -6
  260. package/js/src/pro/exmo.js +5 -5
  261. package/js/src/pro/gate.js +7 -7
  262. package/js/src/pro/gemini.js +3 -3
  263. package/js/src/pro/hitbtc.js +3 -3
  264. package/js/src/pro/hollaex.js +5 -5
  265. package/js/src/pro/huobi.js +6 -6
  266. package/js/src/pro/huobijp.js +3 -3
  267. package/js/src/pro/idex.js +4 -4
  268. package/js/src/pro/independentreserve.js +2 -2
  269. package/js/src/pro/kraken.js +12 -12
  270. package/js/src/pro/krakenfutures.js +7 -7
  271. package/js/src/pro/kucoin.js +6 -6
  272. package/js/src/pro/kucoinfutures.js +6 -5
  273. package/js/src/pro/luno.js +2 -2
  274. package/js/src/pro/mexc.js +6 -6
  275. package/js/src/pro/ndax.js +3 -3
  276. package/js/src/pro/okcoin.js +5 -5
  277. package/js/src/pro/okx.d.ts +1 -1
  278. package/js/src/pro/okx.js +19 -18
  279. package/js/src/pro/phemex.js +6 -6
  280. package/js/src/pro/poloniex.js +7 -7
  281. package/js/src/pro/poloniexfutures.js +5 -5
  282. package/js/src/pro/probit.js +6 -6
  283. package/js/src/pro/upbit.js +3 -3
  284. package/js/src/pro/wazirx.js +6 -6
  285. package/js/src/pro/whitebit.js +6 -6
  286. package/js/src/probit.js +19 -19
  287. package/js/src/tidex.js +13 -13
  288. package/js/src/timex.js +16 -16
  289. package/js/src/tokocrypto.js +18 -18
  290. package/js/src/upbit.js +20 -20
  291. package/js/src/wavesexchange.js +16 -16
  292. package/js/src/wazirx.js +12 -12
  293. package/js/src/whitebit.js +24 -24
  294. package/js/src/woo.js +30 -24
  295. package/js/src/yobit.js +16 -16
  296. package/js/src/zaif.js +10 -10
  297. package/js/src/zonda.js +15 -15
  298. package/package.json +1 -1
  299. package/skip-tests.json +2 -0
@@ -26,9 +26,9 @@ class poloniex extends poloniex$1 {
26
26
  'CORS': undefined,
27
27
  'spot': true,
28
28
  'margin': undefined,
29
- 'swap': undefined,
30
- 'future': undefined,
31
- 'option': undefined,
29
+ 'swap': false,
30
+ 'future': false,
31
+ 'option': false,
32
32
  'cancelAllOrders': true,
33
33
  'cancelOrder': true,
34
34
  'createDepositAddress': true,
@@ -551,26 +551,33 @@ class poloniex extends poloniex$1 {
551
551
  //
552
552
  // {
553
553
  // "symbol" : "BTC_USDT",
554
- // "open" : "22814.93",
555
- // "low" : "22441.90",
556
- // "high" : "23413.00",
557
- // "close" : "23148.66",
558
- // "quantity" : "71.743706",
559
- // "amount" : "1638994.52683452",
560
- // "tradeCount" : 3893,
561
- // "startTime" : 1659605760000,
562
- // "closeTime" : 1659692161077,
554
+ // "open" : "26053.33",
555
+ // "low" : "26053.33",
556
+ // "high" : "26798.02",
557
+ // "close" : "26447.58",
558
+ // "quantity" : "6116.210188",
559
+ // "amount" : "161082122.88450926",
560
+ // "tradeCount" : "134709",
561
+ // "startTime" : "1692784440000",
562
+ // "closeTime" : "1692870839630",
563
563
  // "displayName" : "BTC/USDT",
564
- // "dailyChange" : "0.0152",
565
- // "ts" : 1659692169838
564
+ // "dailyChange" : "0.0151",
565
+ // "bid" : "26447.57",
566
+ // "bidQuantity" : "0.016313",
567
+ // "ask" : "26447.58",
568
+ // "askQuantity" : "0.068307",
569
+ // "ts" : "1692870845446",
570
+ // "markPrice" : "26444.11"
566
571
  // }
567
572
  //
568
573
  const timestamp = this.safeInteger(ticker, 'ts');
569
574
  const marketId = this.safeString(ticker, 'symbol');
570
575
  market = this.safeMarket(marketId);
571
576
  const close = this.safeString(ticker, 'close');
572
- const relativeChange = this.safeString(ticker, 'percentChange');
577
+ const relativeChange = this.safeString(ticker, 'dailyChange');
573
578
  const percentage = Precise["default"].stringMul(relativeChange, '100');
579
+ const bidVolume = this.safeString(ticker, 'bidQuantity');
580
+ const askVolume = this.safeString(ticker, 'askQuantity');
574
581
  return this.safeTicker({
575
582
  'id': marketId,
576
583
  'symbol': market['symbol'],
@@ -578,10 +585,10 @@ class poloniex extends poloniex$1 {
578
585
  'datetime': this.iso8601(timestamp),
579
586
  'high': this.safeString(ticker, 'high'),
580
587
  'low': this.safeString(ticker, 'low'),
581
- 'bid': undefined,
582
- 'bidVolume': undefined,
583
- 'ask': undefined,
584
- 'askVolume': undefined,
588
+ 'bid': this.safeString(ticker, 'bid'),
589
+ 'bidVolume': bidVolume,
590
+ 'ask': this.safeString(ticker, 'ask'),
591
+ 'askVolume': askVolume,
585
592
  'vwap': undefined,
586
593
  'open': this.safeString(ticker, 'open'),
587
594
  'close': close,
@@ -603,7 +610,7 @@ class poloniex extends poloniex$1 {
603
610
  * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
604
611
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
605
612
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
606
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
613
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
607
614
  */
608
615
  await this.loadMarkets();
609
616
  symbols = this.marketSymbols(symbols);
@@ -611,19 +618,24 @@ class poloniex extends poloniex$1 {
611
618
  //
612
619
  // [
613
620
  // {
614
- // "symbol" : "KUB_USDD",
615
- // "open" : "0",
616
- // "low" : "0",
617
- // "high" : "0",
618
- // "close" : "0",
619
- // "quantity" : "0",
620
- // "amount" : "0",
621
- // "tradeCount" : 0,
622
- // "startTime" : 1659606240000,
623
- // "closeTime" : 1659692648742,
624
- // "displayName" : "KUB/USDD",
625
- // "dailyChange" : "0.00",
626
- // "ts" : 1659692648742
621
+ // "symbol" : "BTC_USDT",
622
+ // "open" : "26053.33",
623
+ // "low" : "26053.33",
624
+ // "high" : "26798.02",
625
+ // "close" : "26447.58",
626
+ // "quantity" : "6116.210188",
627
+ // "amount" : "161082122.88450926",
628
+ // "tradeCount" : "134709",
629
+ // "startTime" : "1692784440000",
630
+ // "closeTime" : "1692870839630",
631
+ // "displayName" : "BTC/USDT",
632
+ // "dailyChange" : "0.0151",
633
+ // "bid" : "26447.57",
634
+ // "bidQuantity" : "0.016313",
635
+ // "ask" : "26447.58",
636
+ // "askQuantity" : "0.068307",
637
+ // "ts" : "1692870845446",
638
+ // "markPrice" : "26444.11"
627
639
  // }
628
640
  // ]
629
641
  //
@@ -770,7 +782,7 @@ class poloniex extends poloniex$1 {
770
782
  * @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
771
783
  * @param {string} symbol unified symbol of the market to fetch the ticker for
772
784
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
773
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
785
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
774
786
  */
775
787
  await this.loadMarkets();
776
788
  const market = this.market(symbol);
@@ -781,18 +793,23 @@ class poloniex extends poloniex$1 {
781
793
  //
782
794
  // {
783
795
  // "symbol" : "BTC_USDT",
784
- // "open" : "22814.93",
785
- // "low" : "22441.90",
786
- // "high" : "23413.00",
787
- // "close" : "23148.66",
788
- // "quantity" : "71.743706",
789
- // "amount" : "1638994.52683452",
790
- // "tradeCount" : 3893,
791
- // "startTime" : 1659605760000,
792
- // "closeTime" : 1659692161077,
796
+ // "open" : "26053.33",
797
+ // "low" : "26053.33",
798
+ // "high" : "26798.02",
799
+ // "close" : "26447.58",
800
+ // "quantity" : "6116.210188",
801
+ // "amount" : "161082122.88450926",
802
+ // "tradeCount" : "134709",
803
+ // "startTime" : "1692784440000",
804
+ // "closeTime" : "1692870839630",
793
805
  // "displayName" : "BTC/USDT",
794
- // "dailyChange" : "0.0152",
795
- // "ts" : 1659692169838
806
+ // "dailyChange" : "0.0151",
807
+ // "bid" : "26447.57",
808
+ // "bidQuantity" : "0.016313",
809
+ // "ask" : "26447.58",
810
+ // "askQuantity" : "0.068307",
811
+ // "ts" : "1692870845446",
812
+ // "markPrice" : "26444.11"
796
813
  // }
797
814
  //
798
815
  return this.parseTicker(response, market);
@@ -898,7 +915,7 @@ class poloniex extends poloniex$1 {
898
915
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
899
916
  * @param {int} [limit] the maximum amount of trades to fetch
900
917
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
901
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
918
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
902
919
  */
903
920
  await this.loadMarkets();
904
921
  const market = this.market(symbol);
@@ -934,7 +951,7 @@ class poloniex extends poloniex$1 {
934
951
  * @param {int} [since] the earliest time in ms to fetch trades for
935
952
  * @param {int} [limit] the maximum number of trades structures to retrieve
936
953
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
937
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
954
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
938
955
  */
939
956
  await this.loadMarkets();
940
957
  let market = undefined;
@@ -1079,6 +1096,7 @@ class poloniex extends poloniex$1 {
1079
1096
  };
1080
1097
  }
1081
1098
  const clientOrderId = this.safeString(order, 'clientOrderId');
1099
+ const triggerPrice = this.safeString2(order, 'triggerPrice', 'stopPrice');
1082
1100
  return this.safeOrder({
1083
1101
  'info': order,
1084
1102
  'id': id,
@@ -1093,8 +1111,8 @@ class poloniex extends poloniex$1 {
1093
1111
  'postOnly': undefined,
1094
1112
  'side': side,
1095
1113
  'price': price,
1096
- 'stopPrice': undefined,
1097
- 'triggerPrice': undefined,
1114
+ 'stopPrice': triggerPrice,
1115
+ 'triggerPrice': triggerPrice,
1098
1116
  'cost': undefined,
1099
1117
  'average': this.safeString(order, 'avgPrice'),
1100
1118
  'amount': amount,
@@ -1132,11 +1150,13 @@ class poloniex extends poloniex$1 {
1132
1150
  * @name poloniex#fetchOpenOrders
1133
1151
  * @description fetch all unfilled currently open orders
1134
1152
  * @see https://docs.poloniex.com/#authenticated-endpoints-orders-open-orders
1153
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1135
1154
  * @param {string} symbol unified market symbol
1136
1155
  * @param {int} [since] the earliest time in ms to fetch open orders for
1137
1156
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1138
1157
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1139
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1158
+ * @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
1159
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1140
1160
  */
1141
1161
  await this.loadMarkets();
1142
1162
  let market = undefined;
@@ -1148,7 +1168,15 @@ class poloniex extends poloniex$1 {
1148
1168
  if (limit !== undefined) {
1149
1169
  request['limit'] = limit;
1150
1170
  }
1151
- const response = await this.privateGetOrders(this.extend(request, params));
1171
+ const isTrigger = this.safeValue2(params, 'trigger', 'stop');
1172
+ params = this.omit(params, ['trigger', 'stop']);
1173
+ let response = undefined;
1174
+ if (isTrigger) {
1175
+ response = await this.privateGetSmartorders(this.extend(request, params));
1176
+ }
1177
+ else {
1178
+ response = await this.privateGetOrders(this.extend(request, params));
1179
+ }
1152
1180
  //
1153
1181
  // [
1154
1182
  // {
@@ -1166,6 +1194,7 @@ class poloniex extends poloniex$1 {
1166
1194
  // "amount" : "0",
1167
1195
  // "filledQuantity" : "0",
1168
1196
  // "filledAmount" : "0",
1197
+ // "stopPrice": "3750.00", // for trigger orders
1169
1198
  // "createTime" : 16xxxxxxxxx26,
1170
1199
  // "updateTime" : 16xxxxxxxxx36
1171
1200
  // }
@@ -1175,36 +1204,46 @@ class poloniex extends poloniex$1 {
1175
1204
  return this.parseOrders(response, market, since, limit, extension);
1176
1205
  }
1177
1206
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
1178
- /**
1179
- * @method
1180
- * @name poloniex#createOrder
1181
- * @description create a trade order
1182
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
1183
- * @param {string} symbol unified symbol of the market to create an order in
1184
- * @param {string} type 'market' or 'limit'
1185
- * @param {string} side 'buy' or 'sell'
1186
- * @param {float} amount how much of currency you want to trade in units of base currency
1187
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1188
- * @param {object} [params] extra parameters specific to the poloniex api endpoint
1189
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1190
- */
1191
- // if (type === 'market') {
1192
- // throw new ExchangeError (this.id + ' createOrder() does not accept market orders');
1193
- // }
1207
+ //
1208
+ // @method
1209
+ // @name poloniex#createOrder
1210
+ // @description create a trade order
1211
+ // @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
1212
+ // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order // trigger orders
1213
+ // @param {string} symbol unified symbol of the market to create an order in
1214
+ // @param {string} type 'market' or 'limit'
1215
+ // @param {string} side 'buy' or 'sell'
1216
+ // @param {float} amount how much of currency you want to trade in units of base currency
1217
+ // @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1218
+ // @param {object} [params] extra parameters specific to the poloniex api endpoint
1219
+ // <<<<<<< HEAD
1220
+ // @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
1221
+ // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1222
+ // =======
1223
+ // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1224
+ // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1225
+ //
1194
1226
  await this.loadMarkets();
1195
1227
  const market = this.market(symbol);
1196
1228
  if (!market['spot']) {
1197
1229
  throw new errors.NotSupported(this.id + ' createOrder() does not support ' + market['type'] + ' orders, only spot orders are accepted');
1198
1230
  }
1199
- const request = {
1231
+ let request = {
1200
1232
  'symbol': market['id'],
1201
1233
  'side': side,
1202
1234
  // 'timeInForce': timeInForce,
1203
1235
  // 'accountType': 'SPOT',
1204
1236
  // 'amount': amount,
1205
1237
  };
1206
- const orderRequest = this.orderRequest(symbol, type, side, amount, request, price, params);
1207
- let response = await this.privatePostOrders(this.extend(orderRequest[0], orderRequest[1]));
1238
+ const triggerPrice = this.safeNumber2(params, 'stopPrice', 'triggerPrice');
1239
+ [request, params] = this.orderRequest(symbol, type, side, amount, request, price, params);
1240
+ let response = undefined;
1241
+ if (triggerPrice !== undefined) {
1242
+ response = await this.privatePostSmartorders(this.extend(request, params));
1243
+ }
1244
+ else {
1245
+ response = await this.privatePostOrders(this.extend(request, params));
1246
+ }
1208
1247
  //
1209
1248
  // {
1210
1249
  // "id" : "78923648051920896",
@@ -1221,9 +1260,14 @@ class poloniex extends poloniex$1 {
1221
1260
  let upperCaseType = type.toUpperCase();
1222
1261
  const isMarket = upperCaseType === 'MARKET';
1223
1262
  const isPostOnly = this.isPostOnly(isMarket, upperCaseType === 'LIMIT_MAKER', params);
1224
- if (isPostOnly) {
1263
+ const triggerPrice = this.safeNumber2(params, 'stopPrice', 'triggerPrice');
1264
+ params = this.omit(params, ['postOnly', 'triggerPrice', 'stopPrice']);
1265
+ if (triggerPrice !== undefined) {
1266
+ upperCaseType = (price === undefined) ? 'STOP' : 'STOP_LIMIT';
1267
+ request['stopPrice'] = triggerPrice;
1268
+ }
1269
+ else if (isPostOnly) {
1225
1270
  upperCaseType = 'LIMIT_MAKER';
1226
- params = this.omit(params, 'postOnly');
1227
1271
  }
1228
1272
  request['type'] = upperCaseType;
1229
1273
  if (isMarket) {
@@ -1247,31 +1291,44 @@ class poloniex extends poloniex$1 {
1247
1291
  return [request, params];
1248
1292
  }
1249
1293
  async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
1250
- /**
1251
- * @method
1252
- * @name poloniex#editOrder
1253
- * @description edit a trade order
1254
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
1255
- * @param {string} id order id
1256
- * @param {string} symbol unified symbol of the market to create an order in
1257
- * @param {string} type 'market' or 'limit'
1258
- * @param {string} side 'buy' or 'sell'
1259
- * @param {float} amount how much of the currency you want to trade in units of the base currency
1260
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1261
- * @param {object} [params] extra parameters specific to the poloniex api endpoint
1262
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1263
- */
1294
+ //
1295
+ // @method
1296
+ // @name poloniex#editOrder
1297
+ // @description edit a trade order
1298
+ // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
1299
+ // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
1300
+ // @param {string} id order id
1301
+ // @param {string} symbol unified symbol of the market to create an order in
1302
+ // @param {string} type 'market' or 'limit'
1303
+ // @param {string} side 'buy' or 'sell'
1304
+ // @param {float} [amount] how much of the currency you want to trade in units of the base currency
1305
+ // @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1306
+ // @param {object} [params] extra parameters specific to the poloniex api endpoint
1307
+ // <<<<<<< HEAD
1308
+ // @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
1309
+ // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1310
+ // =======
1311
+ // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1312
+ // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1313
+ //
1264
1314
  await this.loadMarkets();
1265
1315
  const market = this.market(symbol);
1266
1316
  if (!market['spot']) {
1267
1317
  throw new errors.NotSupported(this.id + ' editOrder() does not support ' + market['type'] + ' orders, only spot orders are accepted');
1268
1318
  }
1269
- const request = {
1319
+ let request = {
1270
1320
  'id': id,
1271
1321
  // 'timeInForce': timeInForce,
1272
1322
  };
1273
- const orderRequest = this.orderRequest(symbol, type, side, amount, request, price, params);
1274
- let response = await this.privatePutOrdersId(this.extend(orderRequest[0], orderRequest[1]));
1323
+ const triggerPrice = this.safeNumber2(params, 'stopPrice', 'triggerPrice');
1324
+ [request, params] = this.orderRequest(symbol, type, side, amount, request, price, params);
1325
+ let response = undefined;
1326
+ if (triggerPrice !== undefined) {
1327
+ response = await this.privatePutSmartordersId(this.extend(request, params));
1328
+ }
1329
+ else {
1330
+ response = await this.privatePutOrdersId(this.extend(request, params));
1331
+ }
1275
1332
  //
1276
1333
  // {
1277
1334
  // "id" : "78923648051920896",
@@ -1284,16 +1341,22 @@ class poloniex extends poloniex$1 {
1284
1341
  return this.parseOrder(response, market);
1285
1342
  }
1286
1343
  async cancelOrder(id, symbol = undefined, params = {}) {
1287
- /**
1288
- * @method
1289
- * @name poloniex#cancelOrder
1290
- * @description cancels an open order
1291
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-order-by-id
1292
- * @param {string} id order id
1293
- * @param {string} symbol unified symbol of the market the order was made in
1294
- * @param {object} [params] extra parameters specific to the poloniex api endpoint
1295
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1296
- */
1344
+ //
1345
+ // @method
1346
+ // @name poloniex#cancelOrder
1347
+ // @description cancels an open order
1348
+ // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-order-by-id
1349
+ // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-order-by-id // trigger orders
1350
+ // @param {string} id order id
1351
+ // @param {string} symbol unified symbol of the market the order was made in
1352
+ // @param {object} [params] extra parameters specific to the poloniex api endpoint
1353
+ // <<<<<<< HEAD
1354
+ // @param {boolean} [params.trigger] true if canceling a trigger order
1355
+ // @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1356
+ // =======
1357
+ // @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1358
+ // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1359
+ //
1297
1360
  await this.loadMarkets();
1298
1361
  const request = {};
1299
1362
  const clientOrderId = this.safeValue(params, 'clientOrderId');
@@ -1301,8 +1364,15 @@ class poloniex extends poloniex$1 {
1301
1364
  id = clientOrderId;
1302
1365
  }
1303
1366
  request['id'] = id;
1304
- params = this.omit(params, 'clientOrderId');
1305
- const response = await this.privateDeleteOrdersId(this.extend(request, params));
1367
+ const isTrigger = this.safeValue2(params, 'trigger', 'stop');
1368
+ params = this.omit(params, ['clientOrderId', 'trigger', 'stop']);
1369
+ let response = undefined;
1370
+ if (isTrigger) {
1371
+ response = await this.privateDeleteSmartordersId(this.extend(request, params));
1372
+ }
1373
+ else {
1374
+ response = await this.privateDeleteOrdersId(this.extend(request, params));
1375
+ }
1306
1376
  //
1307
1377
  // {
1308
1378
  // "orderId":"210832697138888704",
@@ -1315,18 +1385,25 @@ class poloniex extends poloniex$1 {
1315
1385
  return this.parseOrder(response);
1316
1386
  }
1317
1387
  async cancelAllOrders(symbol = undefined, params = {}) {
1318
- /**
1319
- * @method
1320
- * @name poloniex#cancelAllOrders
1321
- * @description cancel all open orders
1322
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1323
- * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1324
- * @param {object} [params] extra parameters specific to the poloniex api endpoint
1325
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1326
- */
1388
+ //
1389
+ // @method
1390
+ // @name poloniex#cancelAllOrders
1391
+ // @description cancel all open orders
1392
+ // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1393
+ // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
1394
+ // @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1395
+ // @param {object} [params] extra parameters specific to the poloniex api endpoint
1396
+ // <<<<<<< HEAD
1397
+ // @param {boolean} [params.trigger] true if canceling trigger orders
1398
+ // @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1399
+ // =======
1400
+ // @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1401
+ // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1402
+ //
1327
1403
  await this.loadMarkets();
1328
1404
  const request = {
1329
- // 'accountTypes': 'SPOT',
1405
+ // 'accountTypes': 'SPOT',
1406
+ 'symbols': [],
1330
1407
  };
1331
1408
  let market = undefined;
1332
1409
  if (symbol !== undefined) {
@@ -1335,7 +1412,15 @@ class poloniex extends poloniex$1 {
1335
1412
  market['id'],
1336
1413
  ];
1337
1414
  }
1338
- const response = await this.privateDeleteOrders(this.extend(request, params));
1415
+ const isTrigger = this.safeValue2(params, 'trigger', 'stop');
1416
+ params = this.omit(params, ['trigger', 'stop']);
1417
+ let response = undefined;
1418
+ if (isTrigger) {
1419
+ response = await this.privateDeleteSmartorders(this.extend(request, params));
1420
+ }
1421
+ else {
1422
+ response = await this.privateDeleteOrders(this.extend(request, params));
1423
+ }
1339
1424
  //
1340
1425
  // [
1341
1426
  // {
@@ -1353,25 +1438,40 @@ class poloniex extends poloniex$1 {
1353
1438
  // }
1354
1439
  // ]
1355
1440
  //
1356
- return response;
1441
+ return this.parseOrders(response, market);
1357
1442
  }
1358
1443
  async fetchOrder(id, symbol = undefined, params = {}) {
1359
- /**
1360
- * @method
1361
- * @name poloniex#fetchOrder
1362
- * @description fetch an order by it's id
1363
- * @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
1364
- * @param {string} id order id
1365
- * @param {string} symbol unified market symbol, default is undefined
1366
- * @param {object} [params] extra parameters specific to the poloniex api endpoint
1367
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1368
- */
1444
+ //
1445
+ // @method
1446
+ // @name poloniex#fetchOrder
1447
+ // @description fetch an order by it's id
1448
+ // @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
1449
+ // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1450
+ // @param {string} id order id
1451
+ // @param {string} symbol unified market symbol, default is undefined
1452
+ // @param {object} [params] extra parameters specific to the poloniex api endpoint
1453
+ // <<<<<<< HEAD
1454
+ // @param {boolean} [params.trigger] true if fetching a trigger order
1455
+ // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1456
+ // =======
1457
+ // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1458
+ // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1459
+ //
1369
1460
  await this.loadMarkets();
1370
1461
  id = id.toString();
1371
1462
  const request = {
1372
1463
  'id': id,
1373
1464
  };
1374
- const response = await this.privateGetOrdersId(this.extend(request, params));
1465
+ const isTrigger = this.safeValue2(params, 'trigger', 'stop');
1466
+ params = this.omit(params, ['trigger', 'stop']);
1467
+ let response = undefined;
1468
+ if (isTrigger) {
1469
+ response = await this.privateGetSmartordersId(this.extend(request, params));
1470
+ response = this.safeValue(response, 0);
1471
+ }
1472
+ else {
1473
+ response = await this.privateGetOrdersId(this.extend(request, params));
1474
+ }
1375
1475
  //
1376
1476
  // {
1377
1477
  // "id": "21934611974062080",
@@ -1388,6 +1488,7 @@ class poloniex extends poloniex$1 {
1388
1488
  // "amount": "0.00",
1389
1489
  // "filledQuantity": "0.00",
1390
1490
  // "filledAmount": "0.00",
1491
+ // "stopPrice": "3750.00", // for trigger orders
1391
1492
  // "createTime": 1646196019020,
1392
1493
  // "updateTime": 1646196019020
1393
1494
  // }
@@ -1413,7 +1514,7 @@ class poloniex extends poloniex$1 {
1413
1514
  * @param {int} [since] the earliest time in ms to fetch trades for
1414
1515
  * @param {int} [limit] the maximum number of trades to retrieve
1415
1516
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1416
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1517
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1417
1518
  */
1418
1519
  await this.loadMarkets();
1419
1520
  const request = {
@@ -1471,7 +1572,7 @@ class poloniex extends poloniex$1 {
1471
1572
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1472
1573
  * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
1473
1574
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1474
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
1575
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1475
1576
  */
1476
1577
  await this.loadMarkets();
1477
1578
  const request = {
@@ -1503,7 +1604,7 @@ class poloniex extends poloniex$1 {
1503
1604
  * @description fetch the trading fees for multiple markets
1504
1605
  * @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
1505
1606
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1506
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1607
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
1507
1608
  */
1508
1609
  await this.loadMarkets();
1509
1610
  const response = await this.privateGetFeeinfo(params);
@@ -1538,7 +1639,7 @@ class poloniex extends poloniex$1 {
1538
1639
  * @param {string} symbol unified symbol of the market to fetch the order book for
1539
1640
  * @param {int} [limit] the maximum amount of order book entries to return
1540
1641
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1541
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1642
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1542
1643
  */
1543
1644
  await this.loadMarkets();
1544
1645
  const market = this.market(symbol);
@@ -1594,7 +1695,7 @@ class poloniex extends poloniex$1 {
1594
1695
  * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1595
1696
  * @param {string} code unified currency code of the currency for the deposit address
1596
1697
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1597
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1698
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1598
1699
  */
1599
1700
  await this.loadMarkets();
1600
1701
  const currency = this.currency(code);
@@ -1645,7 +1746,7 @@ class poloniex extends poloniex$1 {
1645
1746
  * @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1646
1747
  * @param {string} code unified currency code
1647
1748
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1648
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1749
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1649
1750
  */
1650
1751
  await this.loadMarkets();
1651
1752
  const currency = this.currency(code);
@@ -1699,7 +1800,7 @@ class poloniex extends poloniex$1 {
1699
1800
  * @param {string} fromAccount account to transfer from
1700
1801
  * @param {string} toAccount account to transfer to
1701
1802
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1702
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1803
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1703
1804
  */
1704
1805
  await this.loadMarkets();
1705
1806
  const currency = this.currency(code);
@@ -1750,7 +1851,7 @@ class poloniex extends poloniex$1 {
1750
1851
  * @param {string} address the address to withdraw to
1751
1852
  * @param {string} tag
1752
1853
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1753
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1854
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1754
1855
  */
1755
1856
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1756
1857
  this.checkAddress(address);
@@ -1874,7 +1975,7 @@ class poloniex extends poloniex$1 {
1874
1975
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1875
1976
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1876
1977
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1877
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1978
+ * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1878
1979
  */
1879
1980
  await this.loadMarkets();
1880
1981
  const response = await this.fetchTransactionsHelper(code, since, limit, params);
@@ -1899,7 +2000,7 @@ class poloniex extends poloniex$1 {
1899
2000
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1900
2001
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
1901
2002
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1902
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2003
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1903
2004
  */
1904
2005
  const response = await this.fetchTransactionsHelper(code, since, limit, params);
1905
2006
  let currency = undefined;
@@ -1918,7 +2019,7 @@ class poloniex extends poloniex$1 {
1918
2019
  * @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
1919
2020
  * @param {string[]|undefined} codes list of unified currency codes
1920
2021
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1921
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
2022
+ * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1922
2023
  */
1923
2024
  await this.loadMarkets();
1924
2025
  const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
@@ -2044,7 +2145,7 @@ class poloniex extends poloniex$1 {
2044
2145
  * @param {int} [since] the earliest time in ms to fetch deposits for
2045
2146
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2046
2147
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
2047
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2148
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2048
2149
  */
2049
2150
  const response = await this.fetchTransactionsHelper(code, since, limit, params);
2050
2151
  let currency = undefined;