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
@@ -32,7 +32,7 @@ export default class cryptocom extends Exchange {
32
32
  'future': true,
33
33
  'option': true,
34
34
  'addMargin': false,
35
- 'borrowMargin': true,
35
+ 'borrowMargin': false,
36
36
  'cancelAllOrders': true,
37
37
  'cancelOrder': true,
38
38
  'cancelOrders': true,
@@ -42,11 +42,11 @@ export default class cryptocom extends Exchange {
42
42
  'fetchBalance': true,
43
43
  'fetchBidsAsks': false,
44
44
  'fetchBorrowInterest': false,
45
- 'fetchBorrowRate': false,
46
45
  'fetchBorrowRateHistories': false,
47
46
  'fetchBorrowRateHistory': false,
48
- 'fetchBorrowRates': false,
49
47
  'fetchClosedOrders': 'emulated',
48
+ 'fetchCrossBorrowRate': false,
49
+ 'fetchCrossBorrowRates': false,
50
50
  'fetchCurrencies': false,
51
51
  'fetchDepositAddress': true,
52
52
  'fetchDepositAddressesByNetwork': true,
@@ -60,6 +60,8 @@ export default class cryptocom extends Exchange {
60
60
  'fetchFundingRates': false,
61
61
  'fetchGreeks': false,
62
62
  'fetchIndexOHLCV': false,
63
+ 'fetchIsolatedBorrowRate': false,
64
+ 'fetchIsolatedBorrowRates': false,
63
65
  'fetchLedger': true,
64
66
  'fetchLeverage': false,
65
67
  'fetchLeverageTiers': false,
@@ -93,7 +95,7 @@ export default class cryptocom extends Exchange {
93
95
  'fetchVolatilityHistory': false,
94
96
  'fetchWithdrawals': true,
95
97
  'reduceMargin': false,
96
- 'repayMargin': true,
98
+ 'repayMargin': false,
97
99
  'setLeverage': false,
98
100
  'setMarginMode': false,
99
101
  'setPositionMode': false,
@@ -213,26 +215,6 @@ export default class cryptocom extends Exchange {
213
215
  'private/get-open-orders': 10 / 3,
214
216
  'private/get-order-detail': 1 / 3,
215
217
  'private/get-trades': 100,
216
- 'private/margin/get-user-config': 10 / 3,
217
- 'private/margin/get-account-summary': 10 / 3,
218
- 'private/margin/transfer': 10 / 3,
219
- 'private/margin/borrow': 10 / 3,
220
- 'private/margin/repay': 10 / 3,
221
- 'private/margin/get-transfer-history': 10 / 3,
222
- 'private/margin/get-borrow-history': 10 / 3,
223
- 'private/margin/get-interest-history': 10 / 3,
224
- 'private/margin/get-repay-history': 10 / 3,
225
- 'private/margin/get-liquidation-history': 10 / 3,
226
- 'private/margin/get-liquidation-orders': 10 / 3,
227
- 'private/margin/create-order': 2 / 3,
228
- 'private/margin/cancel-order': 2 / 3,
229
- 'private/margin/cancel-all-orders': 2 / 3,
230
- 'private/margin/get-order-history': 10 / 3,
231
- 'private/margin/get-open-orders': 10 / 3,
232
- 'private/margin/get-order-detail': 1 / 3,
233
- 'private/margin/get-trades': 100,
234
- 'private/deriv/transfer': 10 / 3,
235
- 'private/deriv/get-transfer-history': 10 / 3,
236
218
  'private/get-accounts': 10 / 3,
237
219
  'private/get-subaccount-balances': 10 / 3,
238
220
  'private/create-subaccount-transfer': 10 / 3,
@@ -586,7 +568,7 @@ export default class cryptocom extends Exchange {
586
568
  * @see https://exchange-docs.crypto.com/derivatives/index.html#public-get-tickers
587
569
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
588
570
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
589
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
571
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
590
572
  */
591
573
  await this.loadMarkets();
592
574
  let market = undefined;
@@ -643,7 +625,7 @@ export default class cryptocom extends Exchange {
643
625
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
644
626
  * @param {string} symbol unified symbol of the market to fetch the ticker for
645
627
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
646
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
628
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
647
629
  */
648
630
  await this.loadMarkets();
649
631
  symbol = this.symbol(symbol);
@@ -662,7 +644,7 @@ export default class cryptocom extends Exchange {
662
644
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
663
645
  * @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
664
646
  * @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)
665
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
647
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
666
648
  */
667
649
  await this.loadMarkets();
668
650
  let paginate = false;
@@ -743,7 +725,7 @@ export default class cryptocom extends Exchange {
743
725
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
744
726
  * @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
745
727
  * @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)
746
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
728
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
747
729
  */
748
730
  await this.loadMarkets();
749
731
  let paginate = false;
@@ -862,7 +844,7 @@ export default class cryptocom extends Exchange {
862
844
  * @param {string} symbol unified symbol of the market to fetch the order book for
863
845
  * @param {int} [limit] the number of order book entries to return, max 50
864
846
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
865
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
847
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
866
848
  */
867
849
  await this.loadMarkets();
868
850
  const market = this.market(symbol);
@@ -920,7 +902,7 @@ export default class cryptocom extends Exchange {
920
902
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
921
903
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-user-balance
922
904
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
923
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
905
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
924
906
  */
925
907
  await this.loadMarkets();
926
908
  const response = await this.v1PrivatePostPrivateUserBalance(params);
@@ -977,7 +959,7 @@ export default class cryptocom extends Exchange {
977
959
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-detail
978
960
  * @param {string} symbol unified symbol of the market the order was made in
979
961
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
980
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
962
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
981
963
  */
982
964
  await this.loadMarkets();
983
965
  let market = undefined;
@@ -1154,7 +1136,7 @@ export default class cryptocom extends Exchange {
1154
1136
  * @param {float} [params.stopPrice] price to trigger a stop order
1155
1137
  * @param {float} [params.stopLossPrice] price to trigger a stop-loss trigger order
1156
1138
  * @param {float} [params.takeProfitPrice] price to trigger a take-profit trigger order
1157
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1139
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1158
1140
  */
1159
1141
  await this.loadMarkets();
1160
1142
  const market = this.market(symbol);
@@ -1182,7 +1164,7 @@ export default class cryptocom extends Exchange {
1182
1164
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order-list-list
1183
1165
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order-list-oco
1184
1166
  * @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
1185
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1167
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1186
1168
  */
1187
1169
  await this.loadMarkets();
1188
1170
  const ordersRequests = [];
@@ -1386,7 +1368,7 @@ export default class cryptocom extends Exchange {
1386
1368
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
1387
1369
  * @param {string} symbol unified market symbol of the orders to cancel
1388
1370
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1389
- * @returns {object} Returns exchange raw message{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1371
+ * @returns {object} Returns exchange raw message{@link https://docs.ccxt.com/#/?id=order-structure}
1390
1372
  */
1391
1373
  await this.loadMarkets();
1392
1374
  let market = undefined;
@@ -1406,7 +1388,7 @@ export default class cryptocom extends Exchange {
1406
1388
  * @param {string} id the order id of the order to cancel
1407
1389
  * @param {string} [symbol] unified symbol of the market the order was made in
1408
1390
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1409
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1391
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1410
1392
  */
1411
1393
  await this.loadMarkets();
1412
1394
  let market = undefined;
@@ -1441,9 +1423,11 @@ export default class cryptocom extends Exchange {
1441
1423
  * @param {string[]} ids order ids
1442
1424
  * @param {string} symbol unified market symbol
1443
1425
  * @param {object} [params] extra parameters specific to the okx api endpoint
1444
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1426
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1445
1427
  */
1446
- this.checkRequiredSymbol('cancelOrders', symbol);
1428
+ if (symbol === undefined) {
1429
+ throw new ArgumentsRequired(this.id + ' cancelOrders() requires a symbol argument');
1430
+ }
1447
1431
  await this.loadMarkets();
1448
1432
  const market = this.market(symbol);
1449
1433
  const orderRequests = [];
@@ -1473,7 +1457,7 @@ export default class cryptocom extends Exchange {
1473
1457
  * @param {int} [since] the earliest time in ms to fetch open orders for
1474
1458
  * @param {int} [limit] the maximum number of open order structures to retrieve
1475
1459
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1476
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1460
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1477
1461
  */
1478
1462
  await this.loadMarkets();
1479
1463
  let market = undefined;
@@ -1536,7 +1520,7 @@ export default class cryptocom extends Exchange {
1536
1520
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1537
1521
  * @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
1538
1522
  * @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)
1539
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1523
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1540
1524
  */
1541
1525
  await this.loadMarkets();
1542
1526
  let paginate = false;
@@ -1620,7 +1604,7 @@ export default class cryptocom extends Exchange {
1620
1604
  * @param {string} address the address to withdraw to
1621
1605
  * @param {string} tag
1622
1606
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1623
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1607
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1624
1608
  */
1625
1609
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1626
1610
  await this.loadMarkets();
@@ -1667,7 +1651,7 @@ export default class cryptocom extends Exchange {
1667
1651
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address
1668
1652
  * @param {string} code unified currency code of the currency for the deposit address
1669
1653
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1670
- * @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
1654
+ * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
1671
1655
  */
1672
1656
  await this.loadMarkets();
1673
1657
  const currency = this.currency(code);
@@ -1727,7 +1711,7 @@ export default class cryptocom extends Exchange {
1727
1711
  * @description fetch the deposit address for a currency associated with this account
1728
1712
  * @param {string} code unified currency code
1729
1713
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1730
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1714
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1731
1715
  */
1732
1716
  const network = this.safeStringUpper(params, 'network');
1733
1717
  params = this.omit(params, ['network']);
@@ -1763,7 +1747,7 @@ export default class cryptocom extends Exchange {
1763
1747
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1764
1748
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1765
1749
  * @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
1766
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1750
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1767
1751
  */
1768
1752
  await this.loadMarkets();
1769
1753
  let currency = undefined;
@@ -1822,7 +1806,7 @@ export default class cryptocom extends Exchange {
1822
1806
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
1823
1807
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1824
1808
  * @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
1825
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1809
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1826
1810
  */
1827
1811
  await this.loadMarkets();
1828
1812
  let currency = undefined;
@@ -1882,7 +1866,7 @@ export default class cryptocom extends Exchange {
1882
1866
  * @param {string} fromAccount account to transfer from
1883
1867
  * @param {string} toAccount account to transfer to
1884
1868
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1885
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1869
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1886
1870
  */
1887
1871
  await this.loadMarkets();
1888
1872
  const currency = this.currency(code);
@@ -1920,7 +1904,7 @@ export default class cryptocom extends Exchange {
1920
1904
  * @param {int} [since] the earliest time in ms to fetch transfers for
1921
1905
  * @param {int} [limit] the maximum number of transfers structures to retrieve
1922
1906
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
1923
- * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1907
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1924
1908
  */
1925
1909
  if (!('direction' in params)) {
1926
1910
  throw new ArgumentsRequired(this.id + ' fetchTransfers() requires a direction param to be either "IN" or "OUT"');
@@ -2418,154 +2402,6 @@ export default class cryptocom extends Exchange {
2418
2402
  'fee': fee,
2419
2403
  };
2420
2404
  }
2421
- async repayMargin(code, amount, symbol = undefined, params = {}) {
2422
- /**
2423
- * @method
2424
- * @name cryptocom#repayMargin
2425
- * @description repay borrowed margin and interest
2426
- * @see https://exchange-docs.crypto.com/spot/index.html#private-margin-repay
2427
- * @param {string} code unified currency code of the currency to repay
2428
- * @param {float} amount the amount to repay
2429
- * @param {string} symbol unified market symbol, not used by cryptocom.repayMargin ()
2430
- * @param {object} [params] extra parameters specific to the cryptocom api endpoint
2431
- * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
2432
- */
2433
- await this.loadMarkets();
2434
- const currency = this.currency(code);
2435
- const request = {
2436
- 'currency': currency['id'],
2437
- 'amount': this.currencyToPrecision(code, amount),
2438
- };
2439
- const response = await this.v2PrivatePostPrivateMarginRepay(this.extend(request, params));
2440
- //
2441
- // {
2442
- // "id": 1656620104211,
2443
- // "method": "private/margin/repay",
2444
- // "code": 0,
2445
- // "result": {
2446
- // "badDebt": 0
2447
- // }
2448
- // }
2449
- //
2450
- const transaction = this.parseMarginLoan(response, currency);
2451
- return this.extend(transaction, {
2452
- 'amount': amount,
2453
- });
2454
- }
2455
- async borrowMargin(code, amount, symbol = undefined, params = {}) {
2456
- /**
2457
- * @method
2458
- * @name cryptocom#borrowMargin
2459
- * @description create a loan to borrow margin
2460
- * @see https://exchange-docs.crypto.com/spot/index.html#private-margin-borrow
2461
- * @param {string} code unified currency code of the currency to borrow
2462
- * @param {float} amount the amount to borrow
2463
- * @param {string} symbol unified market symbol, not used by cryptocom.repayMargin ()
2464
- * @param {object} [params] extra parameters specific to the cryptocom api endpoint
2465
- * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
2466
- */
2467
- await this.loadMarkets();
2468
- const currency = this.currency(code);
2469
- const request = {
2470
- 'currency': currency['id'],
2471
- 'amount': this.currencyToPrecision(code, amount),
2472
- };
2473
- const response = await this.v2PrivatePostPrivateMarginBorrow(this.extend(request, params));
2474
- //
2475
- // {
2476
- // "id": 1656619578559,
2477
- // "method": "private/margin/borrow",
2478
- // "code": 0
2479
- // }
2480
- //
2481
- const transaction = this.parseMarginLoan(response, currency);
2482
- return this.extend(transaction, {
2483
- 'amount': amount,
2484
- });
2485
- }
2486
- parseMarginLoan(info, currency = undefined) {
2487
- //
2488
- // borrowMargin
2489
- //
2490
- // {
2491
- // "id": 1656619578559,
2492
- // "method": "private/margin/borrow",
2493
- // "code": 0
2494
- // }
2495
- //
2496
- // repayMargin
2497
- //
2498
- // {
2499
- // "id": 1656620104211,
2500
- // "method": "private/margin/repay",
2501
- // "code": 0,
2502
- // "result": {
2503
- // "badDebt": 0
2504
- // }
2505
- // }
2506
- //
2507
- return {
2508
- 'id': this.safeInteger(info, 'id'),
2509
- 'currency': this.safeCurrencyCode(undefined, currency),
2510
- 'amount': undefined,
2511
- 'symbol': undefined,
2512
- 'timestamp': undefined,
2513
- 'datetime': undefined,
2514
- 'info': info,
2515
- };
2516
- }
2517
- parseBorrowInterest(info, market = undefined) {
2518
- //
2519
- // {
2520
- // "loan_id": "2643528867803765921",
2521
- // "currency": "USDT",
2522
- // "interest": 0.00000004,
2523
- // "time": 1656702899559,
2524
- // "stake_amount": 6,
2525
- // "interest_rate": 0.000025
2526
- // },
2527
- //
2528
- const timestamp = this.safeInteger(info, 'time');
2529
- let symbol = undefined;
2530
- if (market !== undefined) {
2531
- symbol = market['symbol'];
2532
- }
2533
- return {
2534
- 'symbol': symbol,
2535
- 'marginMode': undefined,
2536
- 'currency': this.safeCurrencyCode(this.safeString(info, 'currency')),
2537
- 'interest': this.safeNumber(info, 'interest'),
2538
- 'interestRate': this.safeNumber(info, 'interest_rate'),
2539
- 'amountBorrowed': undefined,
2540
- 'timestamp': timestamp,
2541
- 'datetime': this.iso8601(timestamp),
2542
- 'info': info,
2543
- };
2544
- }
2545
- parseBorrowRates(info, codeKey) {
2546
- //
2547
- // {
2548
- // "currency": "AGLD",
2549
- // "hourly_rate": 0.00003334,
2550
- // "max_borrow_limit": 342.4032393,
2551
- // "min_borrow_limit": 30
2552
- // },
2553
- //
2554
- const timestamp = this.milliseconds();
2555
- const rates = [];
2556
- for (let i = 0; i < info.length; i++) {
2557
- const entry = info[i];
2558
- rates.push({
2559
- 'currency': this.safeCurrencyCode(this.safeString(entry, 'currency')),
2560
- 'rate': this.safeNumber(entry, 'hourly_rate'),
2561
- 'period': 3600000,
2562
- 'timestamp': timestamp,
2563
- 'datetime': this.iso8601(timestamp),
2564
- 'info': entry,
2565
- });
2566
- }
2567
- return rates;
2568
- }
2569
2405
  customHandleMarginModeAndParams(methodName, params = {}) {
2570
2406
  /**
2571
2407
  * @ignore
@@ -2648,7 +2484,7 @@ export default class cryptocom extends Exchange {
2648
2484
  * @see https://exchange-docs.crypto.com/spot/index.html#private-get-currency-networks
2649
2485
  * @param {string[]|undefined} codes list of unified currency codes
2650
2486
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
2651
- * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2487
+ * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
2652
2488
  */
2653
2489
  await this.loadMarkets();
2654
2490
  const response = await this.v2PrivatePostPrivateGetCurrencyNetworks(params);
@@ -2667,7 +2503,7 @@ export default class cryptocom extends Exchange {
2667
2503
  * @param {int} [limit] max number of ledger entries to return
2668
2504
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
2669
2505
  * @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
2670
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
2506
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
2671
2507
  */
2672
2508
  await this.loadMarkets();
2673
2509
  const request = {};
@@ -2806,7 +2642,7 @@ export default class cryptocom extends Exchange {
2806
2642
  * @description fetch all the accounts associated with a profile
2807
2643
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-accounts
2808
2644
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
2809
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
2645
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
2810
2646
  */
2811
2647
  await this.loadMarkets();
2812
2648
  const response = await this.v1PrivatePostPrivateGetAccounts(params);
@@ -2891,7 +2727,7 @@ export default class cryptocom extends Exchange {
2891
2727
  * @param {int} [limit] number of records
2892
2728
  * @param {object} [params] exchange specific params
2893
2729
  * @param {int} [params.type] 'future', 'option'
2894
- * @returns {object[]} a list of [settlement history objects]{@link https://github.com/ccxt/ccxt/wiki/Manual#settlement-history-structure}
2730
+ * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
2895
2731
  */
2896
2732
  await this.loadMarkets();
2897
2733
  let market = undefined;
@@ -2979,9 +2815,11 @@ export default class cryptocom extends Exchange {
2979
2815
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
2980
2816
  * @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
2981
2817
  * @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)
2982
- * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
2818
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
2983
2819
  */
2984
- this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
2820
+ if (symbol === undefined) {
2821
+ throw new ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
2822
+ }
2985
2823
  await this.loadMarkets();
2986
2824
  let paginate = false;
2987
2825
  [paginate, params] = this.handleOptionAndParams(params, 'fetchFundingRateHistory', 'paginate');
@@ -3050,7 +2888,7 @@ export default class cryptocom extends Exchange {
3050
2888
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
3051
2889
  * @param {string} symbol unified market symbol of the market the position is held in
3052
2890
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
3053
- * @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
2891
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
3054
2892
  */
3055
2893
  await this.loadMarkets();
3056
2894
  const market = this.market(symbol);
@@ -3092,7 +2930,7 @@ export default class cryptocom extends Exchange {
3092
2930
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
3093
2931
  * @param {string[]|undefined} symbols list of unified market symbols
3094
2932
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
3095
- * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
2933
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
3096
2934
  */
3097
2935
  await this.loadMarkets();
3098
2936
  symbols = this.marketSymbols(symbols);