ccxt 4.4.30 → 4.4.32

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 (496) hide show
  1. package/README.md +9 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/ace.js +123 -123
  5. package/dist/cjs/src/alpaca.js +237 -237
  6. package/dist/cjs/src/ascendex.js +342 -341
  7. package/dist/cjs/src/bigone.js +242 -242
  8. package/dist/cjs/src/binance.js +1339 -1291
  9. package/dist/cjs/src/bingx.js +639 -639
  10. package/dist/cjs/src/bit2c.js +111 -111
  11. package/dist/cjs/src/bitbank.js +142 -142
  12. package/dist/cjs/src/bitbns.js +140 -140
  13. package/dist/cjs/src/bitfinex.js +231 -231
  14. package/dist/cjs/src/bitfinex2.js +403 -403
  15. package/dist/cjs/src/bitflyer.js +184 -184
  16. package/dist/cjs/src/bitget.js +848 -846
  17. package/dist/cjs/src/bithumb.js +125 -124
  18. package/dist/cjs/src/bitmart.js +525 -525
  19. package/dist/cjs/src/bitmex.js +317 -317
  20. package/dist/cjs/src/bitopro.js +221 -221
  21. package/dist/cjs/src/bitrue.js +315 -315
  22. package/dist/cjs/src/bitso.js +220 -220
  23. package/dist/cjs/src/bitstamp.js +251 -251
  24. package/dist/cjs/src/bitteam.js +183 -183
  25. package/dist/cjs/src/bitvavo.js +247 -251
  26. package/dist/cjs/src/bl3p.js +82 -82
  27. package/dist/cjs/src/blockchaincom.js +211 -211
  28. package/dist/cjs/src/blofin.js +332 -331
  29. package/dist/cjs/src/btcalpha.js +166 -166
  30. package/dist/cjs/src/btcbox.js +108 -108
  31. package/dist/cjs/src/btcmarkets.js +198 -198
  32. package/dist/cjs/src/btcturk.js +124 -124
  33. package/dist/cjs/src/bybit.js +906 -900
  34. package/dist/cjs/src/cex.js +227 -226
  35. package/dist/cjs/src/coinbase.js +481 -481
  36. package/dist/cjs/src/coinbaseexchange.js +274 -274
  37. package/dist/cjs/src/coinbaseinternational.js +304 -304
  38. package/dist/cjs/src/coincatch.js +650 -650
  39. package/dist/cjs/src/coincheck.js +113 -113
  40. package/dist/cjs/src/coinex.js +611 -601
  41. package/dist/cjs/src/coinlist.js +304 -303
  42. package/dist/cjs/src/coinmate.js +162 -161
  43. package/dist/cjs/src/coinmetro.js +187 -187
  44. package/dist/cjs/src/coinone.js +124 -123
  45. package/dist/cjs/src/coinsph.js +237 -237
  46. package/dist/cjs/src/coinspot.js +82 -82
  47. package/dist/cjs/src/cryptocom.js +342 -341
  48. package/dist/cjs/src/currencycom.js +225 -224
  49. package/dist/cjs/src/delta.js +320 -320
  50. package/dist/cjs/src/deribit.js +411 -408
  51. package/dist/cjs/src/digifinex.js +432 -431
  52. package/dist/cjs/src/exmo.js +328 -327
  53. package/dist/cjs/src/gate.js +830 -791
  54. package/dist/cjs/src/gemini.js +199 -198
  55. package/dist/cjs/src/hashkey.js +520 -517
  56. package/dist/cjs/src/hitbtc.js +465 -462
  57. package/dist/cjs/src/hollaex.js +253 -252
  58. package/dist/cjs/src/htx.js +791 -848
  59. package/dist/cjs/src/huobijp.js +219 -218
  60. package/dist/cjs/src/hyperliquid.js +421 -417
  61. package/dist/cjs/src/idex.js +238 -237
  62. package/dist/cjs/src/independentreserve.js +133 -132
  63. package/dist/cjs/src/indodax.js +177 -171
  64. package/dist/cjs/src/kraken.js +381 -377
  65. package/dist/cjs/src/krakenfutures.js +285 -279
  66. package/dist/cjs/src/kucoin.js +632 -622
  67. package/dist/cjs/src/kucoinfutures.js +533 -457
  68. package/dist/cjs/src/kuna.js +283 -282
  69. package/dist/cjs/src/latoken.js +211 -210
  70. package/dist/cjs/src/lbank.js +268 -267
  71. package/dist/cjs/src/luno.js +174 -173
  72. package/dist/cjs/src/lykke.js +172 -171
  73. package/dist/cjs/src/mercado.js +123 -122
  74. package/dist/cjs/src/mexc.js +650 -646
  75. package/dist/cjs/src/ndax.js +229 -228
  76. package/dist/cjs/src/novadax.js +230 -229
  77. package/dist/cjs/src/oceanex.js +187 -186
  78. package/dist/cjs/src/okcoin.js +286 -285
  79. package/dist/cjs/src/okx.js +909 -904
  80. package/dist/cjs/src/onetrading.js +218 -218
  81. package/dist/cjs/src/oxfun.js +335 -334
  82. package/dist/cjs/src/p2b.js +154 -154
  83. package/dist/cjs/src/paradex.js +249 -244
  84. package/dist/cjs/src/paymium.js +101 -101
  85. package/dist/cjs/src/phemex.js +388 -390
  86. package/dist/cjs/src/poloniex.js +270 -270
  87. package/dist/cjs/src/poloniexfutures.js +250 -250
  88. package/dist/cjs/src/pro/alpaca.js +64 -64
  89. package/dist/cjs/src/pro/ascendex.js +64 -64
  90. package/dist/cjs/src/pro/binance.js +546 -543
  91. package/dist/cjs/src/pro/bingx.js +116 -116
  92. package/dist/cjs/src/pro/bitfinex.js +42 -42
  93. package/dist/cjs/src/pro/bitfinex2.js +66 -66
  94. package/dist/cjs/src/pro/bitget.js +188 -181
  95. package/dist/cjs/src/pro/bithumb.js +40 -40
  96. package/dist/cjs/src/pro/bitmart.js +121 -119
  97. package/dist/cjs/src/pro/bitmex.js +135 -133
  98. package/dist/cjs/src/pro/bitopro.js +49 -49
  99. package/dist/cjs/src/pro/bitrue.js +19 -19
  100. package/dist/cjs/src/pro/bitstamp.js +29 -29
  101. package/dist/cjs/src/pro/bitvavo.js +299 -301
  102. package/dist/cjs/src/pro/blockchaincom.js +62 -62
  103. package/dist/cjs/src/pro/blofin.js +132 -130
  104. package/dist/cjs/src/pro/bybit.js +317 -313
  105. package/dist/cjs/src/pro/cex.js +168 -168
  106. package/dist/cjs/src/pro/coinbase.js +93 -91
  107. package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
  108. package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
  109. package/dist/cjs/src/pro/coincatch.js +150 -143
  110. package/dist/cjs/src/pro/coincheck.js +21 -21
  111. package/dist/cjs/src/pro/coinex.js +110 -110
  112. package/dist/cjs/src/pro/coinone.js +30 -30
  113. package/dist/cjs/src/pro/cryptocom.js +227 -227
  114. package/dist/cjs/src/pro/currencycom.js +45 -45
  115. package/dist/cjs/src/pro/deribit.js +127 -127
  116. package/dist/cjs/src/pro/exmo.js +66 -66
  117. package/dist/cjs/src/pro/gate.js +287 -283
  118. package/dist/cjs/src/pro/gemini.js +74 -74
  119. package/dist/cjs/src/pro/hashkey.js +87 -85
  120. package/dist/cjs/src/pro/hitbtc.js +190 -190
  121. package/dist/cjs/src/pro/hollaex.js +51 -51
  122. package/dist/cjs/src/pro/htx.js +96 -94
  123. package/dist/cjs/src/pro/huobijp.js +38 -38
  124. package/dist/cjs/src/pro/hyperliquid.js +151 -150
  125. package/dist/cjs/src/pro/idex.js +48 -48
  126. package/dist/cjs/src/pro/independentreserve.js +19 -19
  127. package/dist/cjs/src/pro/kraken.js +167 -167
  128. package/dist/cjs/src/pro/krakenfutures.js +137 -138
  129. package/dist/cjs/src/pro/kucoin.js +167 -168
  130. package/dist/cjs/src/pro/kucoinfutures.js +147 -147
  131. package/dist/cjs/src/pro/lbank.js +95 -95
  132. package/dist/cjs/src/pro/luno.js +21 -21
  133. package/dist/cjs/src/pro/mexc.js +102 -103
  134. package/dist/cjs/src/pro/ndax.js +42 -42
  135. package/dist/cjs/src/pro/okcoin.js +61 -61
  136. package/dist/cjs/src/pro/okx.js +332 -330
  137. package/dist/cjs/src/pro/onetrading.js +71 -71
  138. package/dist/cjs/src/pro/oxfun.js +193 -191
  139. package/dist/cjs/src/pro/p2b.js +77 -77
  140. package/dist/cjs/src/pro/paradex.js +39 -39
  141. package/dist/cjs/src/pro/phemex.js +94 -94
  142. package/dist/cjs/src/pro/poloniex.js +171 -171
  143. package/dist/cjs/src/pro/poloniexfutures.js +62 -62
  144. package/dist/cjs/src/pro/probit.js +63 -63
  145. package/dist/cjs/src/pro/upbit.js +80 -80
  146. package/dist/cjs/src/pro/vertex.js +65 -63
  147. package/dist/cjs/src/pro/wazirx.js +70 -70
  148. package/dist/cjs/src/pro/whitebit.js +83 -83
  149. package/dist/cjs/src/pro/woo.js +106 -104
  150. package/dist/cjs/src/pro/woofipro.js +105 -103
  151. package/dist/cjs/src/pro/xt.js +119 -119
  152. package/dist/cjs/src/probit.js +229 -229
  153. package/dist/cjs/src/timex.js +198 -197
  154. package/dist/cjs/src/tokocrypto.js +214 -213
  155. package/dist/cjs/src/tradeogre.js +92 -91
  156. package/dist/cjs/src/upbit.js +243 -242
  157. package/dist/cjs/src/vertex.js +258 -258
  158. package/dist/cjs/src/wavesexchange.js +176 -172
  159. package/dist/cjs/src/wazirx.js +168 -168
  160. package/dist/cjs/src/whitebit.js +361 -361
  161. package/dist/cjs/src/woo.js +571 -572
  162. package/dist/cjs/src/woofipro.js +392 -391
  163. package/dist/cjs/src/xt.js +436 -435
  164. package/dist/cjs/src/yobit.js +159 -158
  165. package/dist/cjs/src/zaif.js +103 -103
  166. package/dist/cjs/src/zonda.js +168 -168
  167. package/js/ccxt.d.ts +1 -1
  168. package/js/ccxt.js +1 -1
  169. package/js/src/ace.d.ts +123 -0
  170. package/js/src/ace.js +123 -123
  171. package/js/src/alpaca.d.ts +237 -0
  172. package/js/src/alpaca.js +237 -237
  173. package/js/src/ascendex.d.ts +339 -0
  174. package/js/src/ascendex.js +342 -341
  175. package/js/src/base/types.d.ts +1 -0
  176. package/js/src/bigone.d.ts +242 -0
  177. package/js/src/bigone.js +242 -242
  178. package/js/src/binance.d.ts +1306 -0
  179. package/js/src/binance.js +1339 -1291
  180. package/js/src/bingx.d.ts +639 -0
  181. package/js/src/bingx.js +639 -639
  182. package/js/src/bit2c.d.ts +111 -0
  183. package/js/src/bit2c.js +111 -111
  184. package/js/src/bitbank.d.ts +142 -0
  185. package/js/src/bitbank.js +142 -142
  186. package/js/src/bitbns.d.ts +140 -0
  187. package/js/src/bitbns.js +140 -140
  188. package/js/src/bitfinex.d.ts +231 -0
  189. package/js/src/bitfinex.js +231 -231
  190. package/js/src/bitfinex2.d.ts +403 -0
  191. package/js/src/bitfinex2.js +403 -403
  192. package/js/src/bitflyer.d.ts +184 -0
  193. package/js/src/bitflyer.js +184 -184
  194. package/js/src/bitget.d.ts +846 -0
  195. package/js/src/bitget.js +848 -846
  196. package/js/src/bithumb.d.ts +125 -0
  197. package/js/src/bithumb.js +125 -124
  198. package/js/src/bitmart.d.ts +525 -0
  199. package/js/src/bitmart.js +525 -525
  200. package/js/src/bitmex.d.ts +317 -0
  201. package/js/src/bitmex.js +317 -317
  202. package/js/src/bitopro.d.ts +221 -0
  203. package/js/src/bitopro.js +221 -221
  204. package/js/src/bitrue.d.ts +315 -0
  205. package/js/src/bitrue.js +315 -315
  206. package/js/src/bitso.d.ts +220 -0
  207. package/js/src/bitso.js +220 -220
  208. package/js/src/bitstamp.d.ts +251 -0
  209. package/js/src/bitstamp.js +251 -251
  210. package/js/src/bitteam.d.ts +183 -0
  211. package/js/src/bitteam.js +183 -183
  212. package/js/src/bitvavo.d.ts +247 -0
  213. package/js/src/bitvavo.js +247 -251
  214. package/js/src/bl3p.d.ts +82 -0
  215. package/js/src/bl3p.js +82 -82
  216. package/js/src/blockchaincom.d.ts +211 -0
  217. package/js/src/blockchaincom.js +211 -211
  218. package/js/src/blofin.d.ts +332 -0
  219. package/js/src/blofin.js +332 -331
  220. package/js/src/btcalpha.d.ts +166 -0
  221. package/js/src/btcalpha.js +166 -166
  222. package/js/src/btcbox.d.ts +108 -0
  223. package/js/src/btcbox.js +108 -108
  224. package/js/src/btcmarkets.d.ts +198 -0
  225. package/js/src/btcmarkets.js +198 -198
  226. package/js/src/btcturk.d.ts +124 -0
  227. package/js/src/btcturk.js +124 -124
  228. package/js/src/bybit.d.ts +906 -1
  229. package/js/src/bybit.js +906 -900
  230. package/js/src/cex.d.ts +227 -0
  231. package/js/src/cex.js +227 -226
  232. package/js/src/coinbase.d.ts +481 -0
  233. package/js/src/coinbase.js +481 -481
  234. package/js/src/coinbaseexchange.d.ts +274 -0
  235. package/js/src/coinbaseexchange.js +274 -274
  236. package/js/src/coinbaseinternational.d.ts +304 -0
  237. package/js/src/coinbaseinternational.js +304 -304
  238. package/js/src/coincatch.d.ts +646 -0
  239. package/js/src/coincatch.js +650 -650
  240. package/js/src/coincheck.d.ts +113 -0
  241. package/js/src/coincheck.js +113 -113
  242. package/js/src/coinex.d.ts +603 -0
  243. package/js/src/coinex.js +611 -601
  244. package/js/src/coinlist.d.ts +304 -0
  245. package/js/src/coinlist.js +304 -303
  246. package/js/src/coinmate.d.ts +162 -0
  247. package/js/src/coinmate.js +162 -161
  248. package/js/src/coinmetro.d.ts +187 -0
  249. package/js/src/coinmetro.js +187 -187
  250. package/js/src/coinone.d.ts +124 -0
  251. package/js/src/coinone.js +124 -123
  252. package/js/src/coinsph.d.ts +237 -0
  253. package/js/src/coinsph.js +237 -237
  254. package/js/src/coinspot.d.ts +82 -0
  255. package/js/src/coinspot.js +82 -82
  256. package/js/src/cryptocom.d.ts +342 -0
  257. package/js/src/cryptocom.js +342 -341
  258. package/js/src/currencycom.d.ts +225 -0
  259. package/js/src/currencycom.js +225 -224
  260. package/js/src/delta.d.ts +320 -0
  261. package/js/src/delta.js +320 -320
  262. package/js/src/deribit.d.ts +411 -0
  263. package/js/src/deribit.js +411 -408
  264. package/js/src/digifinex.d.ts +430 -0
  265. package/js/src/digifinex.js +432 -431
  266. package/js/src/exmo.d.ts +328 -0
  267. package/js/src/exmo.js +328 -327
  268. package/js/src/gate.d.ts +803 -1
  269. package/js/src/gate.js +830 -791
  270. package/js/src/gemini.d.ts +199 -0
  271. package/js/src/gemini.js +199 -198
  272. package/js/src/hashkey.d.ts +516 -0
  273. package/js/src/hashkey.js +520 -517
  274. package/js/src/hitbtc.d.ts +465 -0
  275. package/js/src/hitbtc.js +465 -462
  276. package/js/src/hollaex.d.ts +253 -0
  277. package/js/src/hollaex.js +253 -252
  278. package/js/src/htx.d.ts +765 -2
  279. package/js/src/htx.js +791 -848
  280. package/js/src/huobijp.d.ts +219 -0
  281. package/js/src/huobijp.js +219 -218
  282. package/js/src/hyperliquid.d.ts +419 -0
  283. package/js/src/hyperliquid.js +421 -417
  284. package/js/src/idex.d.ts +238 -0
  285. package/js/src/idex.js +238 -237
  286. package/js/src/independentreserve.d.ts +133 -0
  287. package/js/src/independentreserve.js +133 -132
  288. package/js/src/indodax.d.ts +171 -0
  289. package/js/src/indodax.js +177 -171
  290. package/js/src/kraken.d.ts +381 -0
  291. package/js/src/kraken.js +381 -377
  292. package/js/src/krakenfutures.d.ts +282 -0
  293. package/js/src/krakenfutures.js +285 -279
  294. package/js/src/kucoin.d.ts +613 -0
  295. package/js/src/kucoin.js +632 -622
  296. package/js/src/kucoinfutures.d.ts +441 -0
  297. package/js/src/kucoinfutures.js +533 -457
  298. package/js/src/kuna.d.ts +283 -0
  299. package/js/src/kuna.js +283 -282
  300. package/js/src/latoken.d.ts +211 -0
  301. package/js/src/latoken.js +211 -210
  302. package/js/src/lbank.d.ts +268 -0
  303. package/js/src/lbank.js +268 -267
  304. package/js/src/luno.d.ts +174 -0
  305. package/js/src/luno.js +174 -173
  306. package/js/src/lykke.d.ts +172 -0
  307. package/js/src/lykke.js +172 -171
  308. package/js/src/mercado.d.ts +123 -0
  309. package/js/src/mercado.js +123 -122
  310. package/js/src/mexc.d.ts +647 -0
  311. package/js/src/mexc.js +650 -646
  312. package/js/src/ndax.d.ts +229 -0
  313. package/js/src/ndax.js +229 -228
  314. package/js/src/novadax.d.ts +230 -0
  315. package/js/src/novadax.js +230 -229
  316. package/js/src/oceanex.d.ts +187 -0
  317. package/js/src/oceanex.js +187 -186
  318. package/js/src/okcoin.d.ts +286 -0
  319. package/js/src/okcoin.js +286 -285
  320. package/js/src/okx.d.ts +907 -0
  321. package/js/src/okx.js +909 -904
  322. package/js/src/onetrading.d.ts +218 -0
  323. package/js/src/onetrading.js +218 -218
  324. package/js/src/oxfun.d.ts +336 -3
  325. package/js/src/oxfun.js +335 -334
  326. package/js/src/p2b.d.ts +154 -0
  327. package/js/src/p2b.js +154 -154
  328. package/js/src/paradex.d.ts +241 -0
  329. package/js/src/paradex.js +249 -244
  330. package/js/src/paymium.d.ts +101 -0
  331. package/js/src/paymium.js +101 -101
  332. package/js/src/phemex.d.ts +366 -0
  333. package/js/src/phemex.js +388 -390
  334. package/js/src/poloniex.d.ts +270 -0
  335. package/js/src/poloniex.js +270 -270
  336. package/js/src/poloniexfutures.d.ts +250 -0
  337. package/js/src/poloniexfutures.js +250 -250
  338. package/js/src/pro/alpaca.d.ts +64 -0
  339. package/js/src/pro/alpaca.js +64 -64
  340. package/js/src/pro/ascendex.d.ts +64 -0
  341. package/js/src/pro/ascendex.js +64 -64
  342. package/js/src/pro/binance.d.ts +546 -0
  343. package/js/src/pro/binance.js +546 -543
  344. package/js/src/pro/bingx.d.ts +116 -0
  345. package/js/src/pro/bingx.js +116 -116
  346. package/js/src/pro/bitfinex.d.ts +42 -0
  347. package/js/src/pro/bitfinex.js +42 -42
  348. package/js/src/pro/bitfinex2.d.ts +66 -0
  349. package/js/src/pro/bitfinex2.js +66 -66
  350. package/js/src/pro/bitget.d.ts +187 -0
  351. package/js/src/pro/bitget.js +188 -181
  352. package/js/src/pro/bithumb.d.ts +40 -0
  353. package/js/src/pro/bithumb.js +40 -40
  354. package/js/src/pro/bitmart.d.ts +121 -0
  355. package/js/src/pro/bitmart.js +121 -119
  356. package/js/src/pro/bitmex.d.ts +135 -0
  357. package/js/src/pro/bitmex.js +135 -133
  358. package/js/src/pro/bitopro.d.ts +49 -0
  359. package/js/src/pro/bitopro.js +49 -49
  360. package/js/src/pro/bitrue.d.ts +19 -0
  361. package/js/src/pro/bitrue.js +19 -19
  362. package/js/src/pro/bitstamp.d.ts +29 -0
  363. package/js/src/pro/bitstamp.js +29 -29
  364. package/js/src/pro/bitvavo.d.ts +254 -1
  365. package/js/src/pro/bitvavo.js +299 -301
  366. package/js/src/pro/blockchaincom.d.ts +62 -0
  367. package/js/src/pro/blockchaincom.js +62 -62
  368. package/js/src/pro/blofin.d.ts +132 -0
  369. package/js/src/pro/blofin.js +132 -130
  370. package/js/src/pro/bybit.d.ts +317 -0
  371. package/js/src/pro/bybit.js +317 -313
  372. package/js/src/pro/cex.d.ts +168 -0
  373. package/js/src/pro/cex.js +168 -168
  374. package/js/src/pro/coinbase.d.ts +93 -0
  375. package/js/src/pro/coinbase.js +93 -91
  376. package/js/src/pro/coinbaseexchange.d.ts +95 -0
  377. package/js/src/pro/coinbaseexchange.js +95 -95
  378. package/js/src/pro/coinbaseinternational.d.ts +111 -0
  379. package/js/src/pro/coinbaseinternational.js +111 -111
  380. package/js/src/pro/coincatch.d.ts +150 -0
  381. package/js/src/pro/coincatch.js +150 -143
  382. package/js/src/pro/coincheck.d.ts +21 -0
  383. package/js/src/pro/coincheck.js +21 -21
  384. package/js/src/pro/coinex.d.ts +110 -0
  385. package/js/src/pro/coinex.js +110 -110
  386. package/js/src/pro/coinone.d.ts +30 -0
  387. package/js/src/pro/coinone.js +30 -30
  388. package/js/src/pro/cryptocom.d.ts +227 -0
  389. package/js/src/pro/cryptocom.js +227 -227
  390. package/js/src/pro/currencycom.d.ts +45 -0
  391. package/js/src/pro/currencycom.js +45 -45
  392. package/js/src/pro/deribit.d.ts +127 -0
  393. package/js/src/pro/deribit.js +127 -127
  394. package/js/src/pro/exmo.d.ts +66 -0
  395. package/js/src/pro/exmo.js +66 -66
  396. package/js/src/pro/gate.d.ts +287 -0
  397. package/js/src/pro/gate.js +287 -283
  398. package/js/src/pro/gemini.d.ts +74 -0
  399. package/js/src/pro/gemini.js +74 -74
  400. package/js/src/pro/hashkey.d.ts +87 -0
  401. package/js/src/pro/hashkey.js +87 -85
  402. package/js/src/pro/hitbtc.d.ts +190 -0
  403. package/js/src/pro/hitbtc.js +190 -190
  404. package/js/src/pro/hollaex.d.ts +51 -0
  405. package/js/src/pro/hollaex.js +51 -51
  406. package/js/src/pro/htx.d.ts +96 -0
  407. package/js/src/pro/htx.js +96 -94
  408. package/js/src/pro/huobijp.d.ts +38 -0
  409. package/js/src/pro/huobijp.js +38 -38
  410. package/js/src/pro/hyperliquid.d.ts +151 -0
  411. package/js/src/pro/hyperliquid.js +151 -150
  412. package/js/src/pro/idex.d.ts +48 -0
  413. package/js/src/pro/idex.js +48 -48
  414. package/js/src/pro/independentreserve.d.ts +19 -0
  415. package/js/src/pro/independentreserve.js +19 -19
  416. package/js/src/pro/kraken.d.ts +167 -0
  417. package/js/src/pro/kraken.js +167 -167
  418. package/js/src/pro/krakenfutures.d.ts +137 -0
  419. package/js/src/pro/krakenfutures.js +137 -138
  420. package/js/src/pro/kucoin.d.ts +167 -0
  421. package/js/src/pro/kucoin.js +167 -168
  422. package/js/src/pro/kucoinfutures.d.ts +147 -0
  423. package/js/src/pro/kucoinfutures.js +147 -147
  424. package/js/src/pro/lbank.d.ts +95 -0
  425. package/js/src/pro/lbank.js +95 -95
  426. package/js/src/pro/luno.d.ts +21 -0
  427. package/js/src/pro/luno.js +21 -21
  428. package/js/src/pro/mexc.d.ts +101 -0
  429. package/js/src/pro/mexc.js +102 -103
  430. package/js/src/pro/ndax.d.ts +42 -0
  431. package/js/src/pro/ndax.js +42 -42
  432. package/js/src/pro/okcoin.d.ts +61 -0
  433. package/js/src/pro/okcoin.js +61 -61
  434. package/js/src/pro/okx.d.ts +332 -0
  435. package/js/src/pro/okx.js +332 -330
  436. package/js/src/pro/onetrading.d.ts +71 -0
  437. package/js/src/pro/onetrading.js +71 -71
  438. package/js/src/pro/oxfun.d.ts +193 -0
  439. package/js/src/pro/oxfun.js +193 -191
  440. package/js/src/pro/p2b.d.ts +77 -0
  441. package/js/src/pro/p2b.js +77 -77
  442. package/js/src/pro/paradex.d.ts +39 -0
  443. package/js/src/pro/paradex.js +39 -39
  444. package/js/src/pro/phemex.d.ts +94 -0
  445. package/js/src/pro/phemex.js +94 -94
  446. package/js/src/pro/poloniex.d.ts +171 -0
  447. package/js/src/pro/poloniex.js +171 -171
  448. package/js/src/pro/poloniexfutures.d.ts +62 -0
  449. package/js/src/pro/poloniexfutures.js +62 -62
  450. package/js/src/pro/probit.d.ts +63 -0
  451. package/js/src/pro/probit.js +63 -63
  452. package/js/src/pro/upbit.d.ts +80 -0
  453. package/js/src/pro/upbit.js +80 -80
  454. package/js/src/pro/vertex.d.ts +65 -0
  455. package/js/src/pro/vertex.js +65 -63
  456. package/js/src/pro/wazirx.d.ts +70 -0
  457. package/js/src/pro/wazirx.js +70 -70
  458. package/js/src/pro/whitebit.d.ts +83 -0
  459. package/js/src/pro/whitebit.js +83 -83
  460. package/js/src/pro/woo.d.ts +106 -0
  461. package/js/src/pro/woo.js +106 -104
  462. package/js/src/pro/woofipro.d.ts +105 -0
  463. package/js/src/pro/woofipro.js +105 -103
  464. package/js/src/pro/xt.d.ts +119 -0
  465. package/js/src/pro/xt.js +119 -119
  466. package/js/src/probit.d.ts +229 -0
  467. package/js/src/probit.js +229 -229
  468. package/js/src/timex.d.ts +198 -0
  469. package/js/src/timex.js +198 -197
  470. package/js/src/tokocrypto.d.ts +214 -0
  471. package/js/src/tokocrypto.js +214 -213
  472. package/js/src/tradeogre.d.ts +92 -0
  473. package/js/src/tradeogre.js +92 -91
  474. package/js/src/upbit.d.ts +243 -0
  475. package/js/src/upbit.js +243 -242
  476. package/js/src/vertex.d.ts +258 -0
  477. package/js/src/vertex.js +258 -258
  478. package/js/src/wavesexchange.d.ts +176 -0
  479. package/js/src/wavesexchange.js +176 -172
  480. package/js/src/wazirx.d.ts +168 -0
  481. package/js/src/wazirx.js +168 -168
  482. package/js/src/whitebit.d.ts +361 -0
  483. package/js/src/whitebit.js +361 -361
  484. package/js/src/woo.d.ts +571 -0
  485. package/js/src/woo.js +571 -572
  486. package/js/src/woofipro.d.ts +392 -0
  487. package/js/src/woofipro.js +392 -391
  488. package/js/src/xt.d.ts +439 -4
  489. package/js/src/xt.js +436 -435
  490. package/js/src/yobit.d.ts +159 -0
  491. package/js/src/yobit.js +159 -158
  492. package/js/src/zaif.d.ts +103 -0
  493. package/js/src/zaif.js +103 -103
  494. package/js/src/zonda.d.ts +168 -0
  495. package/js/src/zonda.js +168 -168
  496. package/package.json +1 -1
@@ -197,34 +197,34 @@ class binance extends binance$1 {
197
197
  }
198
198
  return stream;
199
199
  }
200
+ /**
201
+ * @method
202
+ * @name binance#watchLiquidations
203
+ * @description watch the public liquidations of a trading pair
204
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Liquidation-Order-Streams
205
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Liquidation-Order-Streams
206
+ * @param {string} symbol unified CCXT market symbol
207
+ * @param {int} [since] the earliest time in ms to fetch liquidations for
208
+ * @param {int} [limit] the maximum number of liquidation structures to retrieve
209
+ * @param {object} [params] exchange specific parameters for the bitmex api endpoint
210
+ * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
211
+ */
200
212
  async watchLiquidations(symbol, since = undefined, limit = undefined, params = {}) {
201
- /**
202
- * @method
203
- * @name binance#watchLiquidations
204
- * @description watch the public liquidations of a trading pair
205
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Liquidation-Order-Streams
206
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Liquidation-Order-Streams
207
- * @param {string} symbol unified CCXT market symbol
208
- * @param {int} [since] the earliest time in ms to fetch liquidations for
209
- * @param {int} [limit] the maximum number of liquidation structures to retrieve
210
- * @param {object} [params] exchange specific parameters for the bitmex api endpoint
211
- * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
212
- */
213
213
  return await this.watchLiquidationsForSymbols([symbol], since, limit, params);
214
214
  }
215
+ /**
216
+ * @method
217
+ * @name binance#watchLiquidationsForSymbols
218
+ * @description watch the public liquidations of a trading pair
219
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams
220
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams
221
+ * @param {string[]} symbols list of unified market symbols
222
+ * @param {int} [since] the earliest time in ms to fetch liquidations for
223
+ * @param {int} [limit] the maximum number of liquidation structures to retrieve
224
+ * @param {object} [params] exchange specific parameters for the bitmex api endpoint
225
+ * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
226
+ */
215
227
  async watchLiquidationsForSymbols(symbols = undefined, since = undefined, limit = undefined, params = {}) {
216
- /**
217
- * @method
218
- * @name binance#watchLiquidationsForSymbols
219
- * @description watch the public liquidations of a trading pair
220
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams
221
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Liquidation-Order-Streams
222
- * @param {string} symbol unified CCXT market symbol
223
- * @param {int} [since] the earliest time in ms to fetch liquidations for
224
- * @param {int} [limit] the maximum number of liquidation structures to retrieve
225
- * @param {object} [params] exchange specific parameters for the bitmex api endpoint
226
- * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
227
- */
228
228
  await this.loadMarkets();
229
229
  const subscriptionHashes = [];
230
230
  const messageHashes = [];
@@ -418,34 +418,34 @@ class binance extends binance$1 {
418
418
  'datetime': this.iso8601(timestamp),
419
419
  });
420
420
  }
421
+ /**
422
+ * @method
423
+ * @name binance#watchMyLiquidations
424
+ * @description watch the private liquidations of a trading pair
425
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
426
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Event-Order-Update
427
+ * @param {string} symbol unified CCXT market symbol
428
+ * @param {int} [since] the earliest time in ms to fetch liquidations for
429
+ * @param {int} [limit] the maximum number of liquidation structures to retrieve
430
+ * @param {object} [params] exchange specific parameters for the bitmex api endpoint
431
+ * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
432
+ */
421
433
  async watchMyLiquidations(symbol, since = undefined, limit = undefined, params = {}) {
422
- /**
423
- * @method
424
- * @name binance#watchMyLiquidations
425
- * @description watch the private liquidations of a trading pair
426
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
427
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Event-Order-Update
428
- * @param {string} symbol unified CCXT market symbol
429
- * @param {int} [since] the earliest time in ms to fetch liquidations for
430
- * @param {int} [limit] the maximum number of liquidation structures to retrieve
431
- * @param {object} [params] exchange specific parameters for the bitmex api endpoint
432
- * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
433
- */
434
434
  return this.watchMyLiquidationsForSymbols([symbol], since, limit, params);
435
435
  }
436
+ /**
437
+ * @method
438
+ * @name binance#watchMyLiquidationsForSymbols
439
+ * @description watch the private liquidations of a trading pair
440
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
441
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Event-Order-Update
442
+ * @param {string[]} symbols list of unified market symbols
443
+ * @param {int} [since] the earliest time in ms to fetch liquidations for
444
+ * @param {int} [limit] the maximum number of liquidation structures to retrieve
445
+ * @param {object} [params] exchange specific parameters for the bitmex api endpoint
446
+ * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
447
+ */
436
448
  async watchMyLiquidationsForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
437
- /**
438
- * @method
439
- * @name binance#watchMyLiquidationsForSymbols
440
- * @description watch the private liquidations of a trading pair
441
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
442
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/user-data-streams/Event-Order-Update
443
- * @param {string} symbol unified CCXT market symbol
444
- * @param {int} [since] the earliest time in ms to fetch liquidations for
445
- * @param {int} [limit] the maximum number of liquidation structures to retrieve
446
- * @param {object} [params] exchange specific parameters for the bitmex api endpoint
447
- * @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
448
- */
449
449
  await this.loadMarkets();
450
450
  symbols = this.marketSymbols(symbols, undefined, true, true, true);
451
451
  const market = this.getMarketFromSymbols(symbols);
@@ -538,22 +538,22 @@ class binance extends binance$1 {
538
538
  client.resolve([liquidation], 'myLiquidations');
539
539
  client.resolve([liquidation], 'myLiquidations::' + symbol);
540
540
  }
541
+ /**
542
+ * @method
543
+ * @name binance#watchOrderBook
544
+ * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
545
+ * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
546
+ * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
547
+ * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
548
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
549
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
550
+ * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
551
+ * @param {string} symbol unified symbol of the market to fetch the order book for
552
+ * @param {int} [limit] the maximum amount of order book entries to return
553
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
554
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
555
+ */
541
556
  async watchOrderBook(symbol, limit = undefined, params = {}) {
542
- /**
543
- * @method
544
- * @name binance#watchOrderBook
545
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
546
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
547
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
548
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
549
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
550
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
551
- * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
552
- * @param {string} symbol unified symbol of the market to fetch the order book for
553
- * @param {int} [limit] the maximum amount of order book entries to return
554
- * @param {object} [params] extra parameters specific to the exchange API endpoint
555
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
556
- */
557
557
  //
558
558
  // todo add support for <levels>-snapshots (depth)
559
559
  // https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#partial-book-depth-streams // <symbol>@depth<levels>@100ms or <symbol>@depth<levels> (1000ms)
@@ -593,22 +593,22 @@ class binance extends binance$1 {
593
593
  //
594
594
  return await this.watchOrderBookForSymbols([symbol], limit, params);
595
595
  }
596
+ /**
597
+ * @method
598
+ * @name binance#watchOrderBookForSymbols
599
+ * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
600
+ * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
601
+ * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
602
+ * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
603
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
604
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
605
+ * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
606
+ * @param {string[]} symbols unified array of symbols
607
+ * @param {int} [limit] the maximum amount of order book entries to return
608
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
609
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
610
+ */
596
611
  async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
597
- /**
598
- * @method
599
- * @name binance#watchOrderBookForSymbols
600
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
601
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
602
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
603
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
604
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
605
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
606
- * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
607
- * @param {string[]} symbols unified array of symbols
608
- * @param {int} [limit] the maximum amount of order book entries to return
609
- * @param {object} [params] extra parameters specific to the exchange API endpoint
610
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
611
- */
612
612
  await this.loadMarkets();
613
613
  symbols = this.marketSymbols(symbols, undefined, false, true, true);
614
614
  const firstMarket = this.market(symbols[0]);
@@ -656,21 +656,21 @@ class binance extends binance$1 {
656
656
  const orderbook = await this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes, subscription);
657
657
  return orderbook.limit();
658
658
  }
659
+ /**
660
+ * @method
661
+ * @name binance#unWatchOrderBookForSymbols
662
+ * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
663
+ * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
664
+ * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
665
+ * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
666
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
667
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
668
+ * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
669
+ * @param {string[]} symbols unified array of symbols
670
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
671
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
672
+ */
659
673
  async unWatchOrderBookForSymbols(symbols, params = {}) {
660
- /**
661
- * @method
662
- * @name binance#unWatchOrderBookForSymbols
663
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
664
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
665
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
666
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
667
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
668
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
669
- * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
670
- * @param {string[]} symbols unified array of symbols
671
- * @param {object} [params] extra parameters specific to the exchange API endpoint
672
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
673
- */
674
674
  await this.loadMarkets();
675
675
  symbols = this.marketSymbols(symbols, undefined, false, true, true);
676
676
  const firstMarket = this.market(symbols[0]);
@@ -714,35 +714,35 @@ class binance extends binance$1 {
714
714
  };
715
715
  return await this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes, subscription);
716
716
  }
717
+ /**
718
+ * @method
719
+ * @name binance#unWatchOrderBook
720
+ * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
721
+ * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
722
+ * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
723
+ * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
724
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
725
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
726
+ * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
727
+ * @param {string} symbol unified array of symbols
728
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
729
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
730
+ */
717
731
  async unWatchOrderBook(symbol, params = {}) {
718
- /**
719
- * @method
720
- * @name binance#unWatchOrderBook
721
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
722
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
723
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
724
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
725
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
726
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
727
- * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
728
- * @param {string} symbol unified array of symbols
729
- * @param {object} [params] extra parameters specific to the exchange API endpoint
730
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
731
- */
732
732
  return await this.unWatchOrderBookForSymbols([symbol], params);
733
733
  }
734
+ /**
735
+ * @method
736
+ * @name binance#fetchOrderBookWs
737
+ * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
738
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#order-book
739
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/Order-Book
740
+ * @param {string} symbol unified symbol of the market to fetch the order book for
741
+ * @param {int} [limit] the maximum amount of order book entries to return
742
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
743
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
744
+ */
734
745
  async fetchOrderBookWs(symbol, limit = undefined, params = {}) {
735
- /**
736
- * @method
737
- * @name binance#fetchOrderBookWs
738
- * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
739
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#order-book
740
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/Order-Book
741
- * @param {string} symbol unified symbol of the market to fetch the order book for
742
- * @param {int} [limit] the maximum amount of order book entries to return
743
- * @param {object} [params] extra parameters specific to the exchange API endpoint
744
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
745
- */
746
746
  await this.loadMarkets();
747
747
  const market = this.market(symbol);
748
748
  const payload = {
@@ -1034,22 +1034,22 @@ class binance extends binance$1 {
1034
1034
  }
1035
1035
  this.cleanCache(subscription);
1036
1036
  }
1037
+ /**
1038
+ * @method
1039
+ * @name binance#watchTradesForSymbols
1040
+ * @description get the list of most recent trades for a list of symbols
1041
+ * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1042
+ * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1043
+ * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1044
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1045
+ * @param {string[]} symbols unified symbol of the market to fetch trades for
1046
+ * @param {int} [since] timestamp in ms of the earliest trade to fetch
1047
+ * @param {int} [limit] the maximum amount of trades to fetch
1048
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1049
+ * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1050
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1051
+ */
1037
1052
  async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
1038
- /**
1039
- * @method
1040
- * @name binance#watchTradesForSymbols
1041
- * @description get the list of most recent trades for a list of symbols
1042
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1043
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1044
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1045
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1046
- * @param {string[]} symbols unified symbol of the market to fetch trades for
1047
- * @param {int} [since] timestamp in ms of the earliest trade to fetch
1048
- * @param {int} [limit] the maximum amount of trades to fetch
1049
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1050
- * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1051
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1052
- */
1053
1053
  await this.loadMarkets();
1054
1054
  symbols = this.marketSymbols(symbols, undefined, false, true, true);
1055
1055
  let streamHash = 'multipleTrades';
@@ -1097,20 +1097,20 @@ class binance extends binance$1 {
1097
1097
  }
1098
1098
  return this.filterBySinceLimit(trades, since, limit, 'timestamp', true);
1099
1099
  }
1100
+ /**
1101
+ * @method
1102
+ * @name binance#unWatchTradesForSymbols
1103
+ * @description unsubscribes from the trades channel
1104
+ * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1105
+ * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1106
+ * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1107
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1108
+ * @param {string[]} symbols unified symbol of the market to fetch trades for
1109
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1110
+ * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1111
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1112
+ */
1100
1113
  async unWatchTradesForSymbols(symbols, params = {}) {
1101
- /**
1102
- * @method
1103
- * @name binance#unWatchTradesForSymbols
1104
- * @description unsubscribes from the trades channel
1105
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1106
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1107
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1108
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1109
- * @param {string[]} symbols unified symbol of the market to fetch trades for
1110
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1111
- * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1112
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1113
- */
1114
1114
  await this.loadMarkets();
1115
1115
  symbols = this.marketSymbols(symbols, undefined, false, true, true);
1116
1116
  let streamHash = 'multipleTrades';
@@ -1159,39 +1159,39 @@ class binance extends binance$1 {
1159
1159
  };
1160
1160
  return await this.watchMultiple(url, messageHashes, this.extend(request, query), messageHashes, subscription);
1161
1161
  }
1162
+ /**
1163
+ * @method
1164
+ * @name binance#unWatchTrades
1165
+ * @description unsubscribes from the trades channel
1166
+ * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1167
+ * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1168
+ * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1169
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1170
+ * @param {string} symbol unified symbol of the market to fetch trades for
1171
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1172
+ * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1173
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1174
+ */
1162
1175
  async unWatchTrades(symbol, params = {}) {
1163
- /**
1164
- * @method
1165
- * @name binance#unWatchTrades
1166
- * @description unsubscribes from the trades channel
1167
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1168
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1169
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1170
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1171
- * @param {string} symbol unified symbol of the market to fetch trades for
1172
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1173
- * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1174
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1175
- */
1176
1176
  await this.loadMarkets();
1177
1177
  return await this.unWatchTradesForSymbols([symbol], params);
1178
1178
  }
1179
+ /**
1180
+ * @method
1181
+ * @name binance#watchTrades
1182
+ * @description get the list of most recent trades for a particular symbol
1183
+ * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1184
+ * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1185
+ * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1186
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1187
+ * @param {string} symbol unified symbol of the market to fetch trades for
1188
+ * @param {int} [since] timestamp in ms of the earliest trade to fetch
1189
+ * @param {int} [limit] the maximum amount of trades to fetch
1190
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1191
+ * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1192
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1193
+ */
1179
1194
  async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
1180
- /**
1181
- * @method
1182
- * @name binance#watchTrades
1183
- * @description get the list of most recent trades for a particular symbol
1184
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
1185
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
1186
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
1187
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
1188
- * @param {string} symbol unified symbol of the market to fetch trades for
1189
- * @param {int} [since] timestamp in ms of the earliest trade to fetch
1190
- * @param {int} [limit] the maximum amount of trades to fetch
1191
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1192
- * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1193
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1194
- */
1195
1195
  params['callerMethodName'] = 'watchTrades';
1196
1196
  return await this.watchTradesForSymbols([symbol], since, limit, params);
1197
1197
  }
@@ -1376,22 +1376,22 @@ class binance extends binance$1 {
1376
1376
  this.trades[symbol] = tradesArray;
1377
1377
  client.resolve(tradesArray, messageHash);
1378
1378
  }
1379
+ /**
1380
+ * @method
1381
+ * @name binance#watchOHLCV
1382
+ * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1383
+ * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1384
+ * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1385
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1386
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1387
+ * @param {string} timeframe the length of time each candle represents
1388
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
1389
+ * @param {int} [limit] the maximum amount of candles to fetch
1390
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1391
+ * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1392
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1393
+ */
1379
1394
  async watchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
1380
- /**
1381
- * @method
1382
- * @name binance#watchOHLCV
1383
- * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1384
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1385
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1386
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1387
- * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1388
- * @param {string} timeframe the length of time each candle represents
1389
- * @param {int} [since] timestamp in ms of the earliest candle to fetch
1390
- * @param {int} [limit] the maximum amount of candles to fetch
1391
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1392
- * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1393
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1394
- */
1395
1395
  await this.loadMarkets();
1396
1396
  const market = this.market(symbol);
1397
1397
  symbol = market['symbol'];
@@ -1399,21 +1399,21 @@ class binance extends binance$1 {
1399
1399
  const result = await this.watchOHLCVForSymbols([[symbol, timeframe]], since, limit, params);
1400
1400
  return result[symbol][timeframe];
1401
1401
  }
1402
+ /**
1403
+ * @method
1404
+ * @name binance#watchOHLCVForSymbols
1405
+ * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1406
+ * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1407
+ * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1408
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1409
+ * @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
1410
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
1411
+ * @param {int} [limit] the maximum amount of candles to fetch
1412
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1413
+ * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1414
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1415
+ */
1402
1416
  async watchOHLCVForSymbols(symbolsAndTimeframes, since = undefined, limit = undefined, params = {}) {
1403
- /**
1404
- * @method
1405
- * @name binance#watchOHLCVForSymbols
1406
- * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1407
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1408
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1409
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1410
- * @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
1411
- * @param {int} [since] timestamp in ms of the earliest candle to fetch
1412
- * @param {int} [limit] the maximum amount of candles to fetch
1413
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1414
- * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1415
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1416
- */
1417
1417
  await this.loadMarkets();
1418
1418
  let klineType = undefined;
1419
1419
  [klineType, params] = this.handleParamString2(params, 'channel', 'name', 'kline');
@@ -1465,19 +1465,19 @@ class binance extends binance$1 {
1465
1465
  const filtered = this.filterBySinceLimit(candles, since, limit, 0, true);
1466
1466
  return this.createOHLCVObject(symbol, timeframe, filtered);
1467
1467
  }
1468
+ /**
1469
+ * @method
1470
+ * @name binance#unWatchOHLCVForSymbols
1471
+ * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1472
+ * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1473
+ * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1474
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1475
+ * @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
1476
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1477
+ * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1478
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1479
+ */
1468
1480
  async unWatchOHLCVForSymbols(symbolsAndTimeframes, params = {}) {
1469
- /**
1470
- * @method
1471
- * @name binance#unWatchOHLCVForSymbols
1472
- * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1473
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1474
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1475
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1476
- * @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
1477
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1478
- * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1479
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1480
- */
1481
1481
  await this.loadMarkets();
1482
1482
  let klineType = undefined;
1483
1483
  [klineType, params] = this.handleParamString2(params, 'channel', 'name', 'kline');
@@ -1532,20 +1532,20 @@ class binance extends binance$1 {
1532
1532
  params = this.omit(params, 'callerMethodName');
1533
1533
  return await this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes, subscribe);
1534
1534
  }
1535
+ /**
1536
+ * @method
1537
+ * @name binance#unWatchOHLCV
1538
+ * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1539
+ * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1540
+ * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1541
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1542
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1543
+ * @param {string} timeframe the length of time each candle represents
1544
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1545
+ * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1546
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1547
+ */
1535
1548
  async unWatchOHLCV(symbol, timeframe = '1m', params = {}) {
1536
- /**
1537
- * @method
1538
- * @name binance#unWatchOHLCV
1539
- * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1540
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
1541
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
1542
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
1543
- * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1544
- * @param {string} timeframe the length of time each candle represents
1545
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1546
- * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1547
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1548
- */
1549
1549
  await this.loadMarkets();
1550
1550
  const market = this.market(symbol);
1551
1551
  symbol = market['symbol'];
@@ -1617,17 +1617,17 @@ class binance extends binance$1 {
1617
1617
  const resolveData = [symbol, unifiedTimeframe, stored];
1618
1618
  client.resolve(resolveData, messageHash);
1619
1619
  }
1620
+ /**
1621
+ * @method
1622
+ * @name binance#fetchTickerWs
1623
+ * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1624
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
1625
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1626
+ * @param {string} [params.method] method to use can be ticker.price or ticker.book
1627
+ * @param {boolean} [params.returnRateLimits] return the rate limits for the exchange
1628
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1629
+ */
1620
1630
  async fetchTickerWs(symbol, params = {}) {
1621
- /**
1622
- * @method
1623
- * @name binance#fetchTickerWs
1624
- * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1625
- * @param {string} symbol unified symbol of the market to fetch the ticker for
1626
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1627
- * @param {string} [params.method] method to use can be ticker.price or ticker.book
1628
- * @param {boolean} [params.returnRateLimits] return the rate limits for the exchange
1629
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1630
- */
1631
1631
  await this.loadMarkets();
1632
1632
  const market = this.market(symbol);
1633
1633
  const payload = {
@@ -1657,23 +1657,23 @@ class binance extends binance$1 {
1657
1657
  const ticker = await this.watch(url, messageHash, message, messageHash, subscription);
1658
1658
  return ticker;
1659
1659
  }
1660
+ /**
1661
+ * @method
1662
+ * @name binance#fetchOHLCVWs
1663
+ * @description query historical candlestick data containing the open, high, low, and close price, and the volume of a market
1664
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#klines
1665
+ * @param {string} symbol unified symbol of the market to query OHLCV data for
1666
+ * @param {string} timeframe the length of time each candle represents
1667
+ * @param {int} since timestamp in ms of the earliest candle to fetch
1668
+ * @param {int} limit the maximum amount of candles to fetch
1669
+ * @param {object} params extra parameters specific to the exchange API endpoint
1670
+ * @param {int} params.until timestamp in ms of the earliest candle to fetch
1671
+ *
1672
+ * EXCHANGE SPECIFIC PARAMETERS
1673
+ * @param {string} params.timeZone default=0 (UTC)
1674
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1675
+ */
1660
1676
  async fetchOHLCVWs(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
1661
- /**
1662
- * @method
1663
- * @name binance#fetchOHLCVWs
1664
- * @description query historical candlestick data containing the open, high, low, and close price, and the volume of a market
1665
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#klines
1666
- * @param {string} symbol unified symbol of the market to query OHLCV data for
1667
- * @param {string} timeframe the length of time each candle represents
1668
- * @param {int} since timestamp in ms of the earliest candle to fetch
1669
- * @param {int} limit the maximum amount of candles to fetch
1670
- * @param {object} params extra parameters specific to the exchange API endpoint
1671
- * @param {int} params.until timestamp in ms of the earliest candle to fetch
1672
- *
1673
- * EXCHANGE SPECIFIC PARAMETERS
1674
- * @param {string} params.timeZone default=0 (UTC)
1675
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1676
- */
1677
1677
  await this.loadMarkets();
1678
1678
  const market = this.market(symbol);
1679
1679
  const marketType = this.getMarketType('fetchOHLCVWs', market, params);
@@ -1749,54 +1749,54 @@ class binance extends binance$1 {
1749
1749
  const messageHash = this.safeString(message, 'id');
1750
1750
  client.resolve(parsed, messageHash);
1751
1751
  }
1752
+ /**
1753
+ * @method
1754
+ * @name binance#watchTicker
1755
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1756
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1757
+ * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1758
+ * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1759
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1760
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1761
+ * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1762
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
1763
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1764
+ * @param {string} [params.name] stream to use can be ticker or miniTicker
1765
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1766
+ */
1752
1767
  async watchTicker(symbol, params = {}) {
1753
- /**
1754
- * @method
1755
- * @name binance#watchTicker
1756
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1757
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1758
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1759
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1760
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1761
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1762
- * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1763
- * @param {string} symbol unified symbol of the market to fetch the ticker for
1764
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1765
- * @param {string} [params.name] stream to use can be ticker or miniTicker
1766
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1767
- */
1768
1768
  await this.loadMarkets();
1769
1769
  symbol = this.symbol(symbol);
1770
1770
  const tickers = await this.watchTickers([symbol], this.extend(params, { 'callerMethodName': 'watchTicker' }));
1771
1771
  return tickers[symbol];
1772
1772
  }
1773
+ /**
1774
+ * @method
1775
+ * @name binance#watchMarkPrice
1776
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream
1777
+ * @description watches a mark price for a specific market
1778
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
1779
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1780
+ * @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
1781
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1782
+ */
1773
1783
  async watchMarkPrice(symbol, params = {}) {
1774
- /**
1775
- * @method
1776
- * @name binance#watchMarkPrice
1777
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream
1778
- * @description watches a mark price for a specific market
1779
- * @param {string} symbol unified symbol of the market to fetch the ticker for
1780
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1781
- * @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
1782
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1783
- */
1784
1784
  await this.loadMarkets();
1785
1785
  symbol = this.symbol(symbol);
1786
1786
  const tickers = await this.watchMarkPrices([symbol], this.extend(params, { 'callerMethodName': 'watchMarkPrice' }));
1787
1787
  return tickers[symbol];
1788
1788
  }
1789
+ /**
1790
+ * @method
1791
+ * @name binance#watchMarkPrices
1792
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream-for-All-market
1793
+ * @description watches the mark price for all markets
1794
+ * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1795
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1796
+ * @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
1797
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1798
+ */
1789
1799
  async watchMarkPrices(symbols = undefined, params = {}) {
1790
- /**
1791
- * @method
1792
- * @name binance#watchMarkPrices
1793
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream-for-All-market
1794
- * @description watches the mark price for all markets
1795
- * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1796
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1797
- * @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
1798
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1799
- */
1800
1800
  let channelName = undefined;
1801
1801
  // for now watchmarkPrice uses the same messageHash as watchTicker
1802
1802
  // so it's impossible to watch both at the same time
@@ -1808,21 +1808,21 @@ class binance extends binance$1 {
1808
1808
  }
1809
1809
  return this.filterByArray(this.tickers, 'symbol', symbols);
1810
1810
  }
1811
+ /**
1812
+ * @method
1813
+ * @name binance#watchTickers
1814
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1815
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1816
+ * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1817
+ * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1818
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1819
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1820
+ * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1821
+ * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1822
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1823
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1824
+ */
1811
1825
  async watchTickers(symbols = undefined, params = {}) {
1812
- /**
1813
- * @method
1814
- * @name binance#watchTickers
1815
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1816
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1817
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1818
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1819
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1820
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1821
- * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1822
- * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1823
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1824
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1825
- */
1826
1826
  let channelName = undefined;
1827
1827
  [channelName, params] = this.handleOptionAndParams(params, 'watchTickers', 'name', 'ticker');
1828
1828
  if (channelName === 'bookTicker') {
@@ -1834,21 +1834,21 @@ class binance extends binance$1 {
1834
1834
  }
1835
1835
  return this.filterByArray(this.tickers, 'symbol', symbols);
1836
1836
  }
1837
+ /**
1838
+ * @method
1839
+ * @name binance#unWatchTickers
1840
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1841
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1842
+ * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1843
+ * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1844
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1845
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1846
+ * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1847
+ * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1848
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1849
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1850
+ */
1837
1851
  async unWatchTickers(symbols = undefined, params = {}) {
1838
- /**
1839
- * @method
1840
- * @name binance#unWatchTickers
1841
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1842
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1843
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1844
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1845
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1846
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1847
- * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1848
- * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1849
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1850
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1851
- */
1852
1852
  let channelName = undefined;
1853
1853
  [channelName, params] = this.handleOptionAndParams(params, 'watchTickers', 'name', 'ticker');
1854
1854
  if (channelName === 'bookTicker') {
@@ -1923,35 +1923,35 @@ class binance extends binance$1 {
1923
1923
  };
1924
1924
  return await this.watchMultiple(url, subMessageHashes, this.extend(request, params), subMessageHashes, subscription);
1925
1925
  }
1926
+ /**
1927
+ * @method
1928
+ * @name binance#unWatchTicker
1929
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1930
+ * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1931
+ * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1932
+ * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1933
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1934
+ * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1935
+ * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1936
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
1937
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1938
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1939
+ */
1926
1940
  async unWatchTicker(symbol, params = {}) {
1927
- /**
1928
- * @method
1929
- * @name binance#unWatchTicker
1930
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
1931
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
1932
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
1933
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
1934
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
1935
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
1936
- * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1937
- * @param {string} symbol unified symbol of the market to fetch the ticker for
1938
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1939
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1940
- */
1941
1941
  return await this.unWatchTickers([symbol], params);
1942
1942
  }
1943
+ /**
1944
+ * @method
1945
+ * @name binance#watchBidsAsks
1946
+ * @description watches best bid & ask for symbols
1947
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#symbol-order-book-ticker
1948
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
1949
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
1950
+ * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1951
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1952
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1953
+ */
1943
1954
  async watchBidsAsks(symbols = undefined, params = {}) {
1944
- /**
1945
- * @method
1946
- * @name binance#watchBidsAsks
1947
- * @description watches best bid & ask for symbols
1948
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#symbol-order-book-ticker
1949
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
1950
- * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
1951
- * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1952
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1953
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1954
- */
1955
1955
  await this.loadMarkets();
1956
1956
  symbols = this.marketSymbols(symbols, undefined, true, false, true);
1957
1957
  const result = await this.watchMultiTickerHelper('watchBidsAsks', 'bookTicker', symbols, params);
@@ -2496,20 +2496,20 @@ class binance extends binance$1 {
2496
2496
  future.resolve();
2497
2497
  client.resolve(this.balance[type], type + ':balance');
2498
2498
  }
2499
+ /**
2500
+ * @method
2501
+ * @name binance#fetchBalanceWs
2502
+ * @description fetch balance and get the amount of funds available for trading or funds locked in orders
2503
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Futures-Account-Balance
2504
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-information-user_data
2505
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2506
+ * @param {string|undefined} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
2507
+ * @param {string|undefined} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
2508
+ * @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
2509
+ * @param {string|undefined} [params.method] method to use. Can be account.balance, account.status, v2/account.balance or v2/account.status
2510
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
2511
+ */
2499
2512
  async fetchBalanceWs(params = {}) {
2500
- /**
2501
- * @method
2502
- * @name binance#fetchBalanceWs
2503
- * @description fetch balance and get the amount of funds available for trading or funds locked in orders
2504
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Futures-Account-Balance
2505
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-information-user_data
2506
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2507
- * @param {string|undefined} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
2508
- * @param {string|undefined} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
2509
- * @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
2510
- * @param {string|undefined} [params.method] method to use. Can be account.balance, account.status, v2/account.balance or v2/account.status
2511
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
2512
- */
2513
2513
  await this.loadMarkets();
2514
2514
  const type = this.getMarketType('fetchBalanceWs', undefined, params);
2515
2515
  if (type !== 'spot' && type !== 'future') {
@@ -2604,30 +2604,30 @@ class binance extends binance$1 {
2604
2604
  const parsedBalances = this.parseBalanceCustom(result);
2605
2605
  client.resolve(parsedBalances, messageHash);
2606
2606
  }
2607
+ /**
2608
+ * @method
2609
+ * @name binance#fetchPositionWs
2610
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
2611
+ * @description fetch data on an open position
2612
+ * @param {string} symbol unified market symbol of the market the position is held in
2613
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2614
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2615
+ */
2607
2616
  async fetchPositionWs(symbol, params = {}) {
2608
- /**
2609
- * @method
2610
- * @name binance#fetchPositionWs
2611
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
2612
- * @description fetch data on an open position
2613
- * @param {string} symbol unified market symbol of the market the position is held in
2614
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2615
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2616
- */
2617
2617
  return await this.fetchPositionsWs([symbol], params);
2618
2618
  }
2619
+ /**
2620
+ * @method
2621
+ * @name binance#fetchPositionsWs
2622
+ * @description fetch all open positions
2623
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
2624
+ * @param {string[]} [symbols] list of unified market symbols
2625
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2626
+ * @param {boolean} [params.returnRateLimits] set to true to return rate limit informations, defaults to false.
2627
+ * @param {string|undefined} [params.method] method to use. Can be account.position or v2/account.position
2628
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2629
+ */
2619
2630
  async fetchPositionsWs(symbols = undefined, params = {}) {
2620
- /**
2621
- * @method
2622
- * @name binance#fetchPositionsWs
2623
- * @description fetch all open positions
2624
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
2625
- * @param {string[]} [symbols] list of unified market symbols
2626
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2627
- * @param {boolean} [params.returnRateLimits] set to true to return rate limit informations, defaults to false.
2628
- * @param {string|undefined} [params.method] method to use. Can be account.position or v2/account.position
2629
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2630
- */
2631
2631
  await this.loadMarkets();
2632
2632
  symbols = this.marketSymbols(symbols, 'swap', true, true, true);
2633
2633
  const url = this.urls['api']['ws']['ws-api']['future'];
@@ -2699,15 +2699,15 @@ class binance extends binance$1 {
2699
2699
  }
2700
2700
  client.resolve(positions, messageHash);
2701
2701
  }
2702
+ /**
2703
+ * @method
2704
+ * @name binance#watchBalance
2705
+ * @description watch balance and get the amount of funds available for trading or funds locked in orders
2706
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2707
+ * @param {boolean} [params.portfolioMargin] set to true if you would like to watch the balance of a portfolio margin account
2708
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
2709
+ */
2702
2710
  async watchBalance(params = {}) {
2703
- /**
2704
- * @method
2705
- * @name binance#watchBalance
2706
- * @description watch balance and get the amount of funds available for trading or funds locked in orders
2707
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2708
- * @param {boolean} [params.portfolioMargin] set to true if you would like to watch the balance of a portfolio margin account
2709
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
2710
- */
2711
2711
  await this.loadMarkets();
2712
2712
  await this.authenticate(params);
2713
2713
  const defaultType = this.safeString(this.options, 'defaultType', 'spot');
@@ -2859,23 +2859,23 @@ class binance extends binance$1 {
2859
2859
  }
2860
2860
  return type;
2861
2861
  }
2862
+ /**
2863
+ * @method
2864
+ * @name binance#createOrderWs
2865
+ * @description create a trade order
2866
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#place-new-order-trade
2867
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/New-Order
2868
+ * @param {string} symbol unified symbol of the market to create an order in
2869
+ * @param {string} type 'market' or 'limit'
2870
+ * @param {string} side 'buy' or 'sell'
2871
+ * @param {float} amount how much of currency you want to trade in units of base currency
2872
+ * @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2873
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2874
+ * @param {boolean} params.test test order, default false
2875
+ * @param {boolean} params.returnRateLimits set to true to return rate limit information, default false
2876
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2877
+ */
2862
2878
  async createOrderWs(symbol, type, side, amount, price = undefined, params = {}) {
2863
- /**
2864
- * @method
2865
- * @name binance#createOrderWs
2866
- * @description create a trade order
2867
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#place-new-order-trade
2868
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/New-Order
2869
- * @param {string} symbol unified symbol of the market to create an order in
2870
- * @param {string} type 'market' or 'limit'
2871
- * @param {string} side 'buy' or 'sell'
2872
- * @param {float} amount how much of currency you want to trade in units of base currency
2873
- * @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2874
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2875
- * @param {boolean} params.test test order, default false
2876
- * @param {boolean} params.returnRateLimits set to true to return rate limit information, default false
2877
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2878
- */
2879
2879
  await this.loadMarkets();
2880
2880
  const market = this.market(symbol);
2881
2881
  const marketType = this.getMarketType('createOrderWs', market, params);
@@ -3007,22 +3007,22 @@ class binance extends binance$1 {
3007
3007
  const orders = this.parseOrders(result);
3008
3008
  client.resolve(orders, messageHash);
3009
3009
  }
3010
+ /**
3011
+ * @method
3012
+ * @name binance#editOrderWs
3013
+ * @description edit a trade order
3014
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-and-replace-order-trade
3015
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Modify-Order
3016
+ * @param {string} id order id
3017
+ * @param {string} symbol unified symbol of the market to create an order in
3018
+ * @param {string} type 'market' or 'limit'
3019
+ * @param {string} side 'buy' or 'sell'
3020
+ * @param {float} amount how much of the currency you want to trade in units of the base currency
3021
+ * @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
3022
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3023
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3024
+ */
3010
3025
  async editOrderWs(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
3011
- /**
3012
- * @method
3013
- * @name binance#editOrderWs
3014
- * @description edit a trade order
3015
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-and-replace-order-trade
3016
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Modify-Order
3017
- * @param {string} id order id
3018
- * @param {string} symbol unified symbol of the market to create an order in
3019
- * @param {string} type 'market' or 'limit'
3020
- * @param {string} side 'buy' or 'sell'
3021
- * @param {float} amount how much of the currency you want to trade in units of the base currency
3022
- * @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
3023
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3024
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3025
- */
3026
3026
  await this.loadMarkets();
3027
3027
  const market = this.market(symbol);
3028
3028
  const marketType = this.getMarketType('editOrderWs', market, params);
@@ -3163,19 +3163,19 @@ class binance extends binance$1 {
3163
3163
  }
3164
3164
  client.resolve(order, messageHash);
3165
3165
  }
3166
+ /**
3167
+ * @method
3168
+ * @name binance#cancelOrderWs
3169
+ * @description cancel multiple orders
3170
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-order-trade
3171
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Cancel-Order
3172
+ * @param {string} id order id
3173
+ * @param {string} [symbol] unified market symbol, default is undefined
3174
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3175
+ * @param {string|undefined} [params.cancelRestrictions] Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW. ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED.
3176
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3177
+ */
3166
3178
  async cancelOrderWs(id, symbol = undefined, params = {}) {
3167
- /**
3168
- * @method
3169
- * @name binance#cancelOrderWs
3170
- * @description cancel multiple orders
3171
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-order-trade
3172
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Cancel-Order
3173
- * @param {string} id order id
3174
- * @param {string} symbol unified market symbol, default is undefined
3175
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3176
- * @param {string|undefined} [params.cancelRestrictions] Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW. ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED.
3177
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3178
- */
3179
3179
  await this.loadMarkets();
3180
3180
  if (symbol === undefined) {
3181
3181
  throw new errors.BadRequest(this.id + ' cancelOrderWs requires a symbol');
@@ -3209,16 +3209,16 @@ class binance extends binance$1 {
3209
3209
  };
3210
3210
  return await this.watch(url, messageHash, message, messageHash, subscription);
3211
3211
  }
3212
+ /**
3213
+ * @method
3214
+ * @name binance#cancelAllOrdersWs
3215
+ * @description cancel all open orders in a market
3216
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-open-orders-trade
3217
+ * @param {string} [symbol] unified market symbol of the market to cancel orders in
3218
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3219
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3220
+ */
3212
3221
  async cancelAllOrdersWs(symbol = undefined, params = {}) {
3213
- /**
3214
- * @method
3215
- * @name binance#cancelAllOrdersWs
3216
- * @description cancel all open orders in a market
3217
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-open-orders-trade
3218
- * @param {string} symbol unified market symbol of the market to cancel orders in
3219
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3220
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3221
- */
3222
3222
  await this.loadMarkets();
3223
3223
  const market = this.market(symbol);
3224
3224
  const type = this.getMarketType('cancelAllOrdersWs', market, params);
@@ -3244,17 +3244,18 @@ class binance extends binance$1 {
3244
3244
  };
3245
3245
  return await this.watch(url, messageHash, message, messageHash, subscription);
3246
3246
  }
3247
+ /**
3248
+ * @method
3249
+ * @name binance#fetchOrderWs
3250
+ * @description fetches information on an order made by the user
3251
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-user_data
3252
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Query-Order
3253
+ * @param {string} id order id
3254
+ * @param {string} [symbol] unified symbol of the market the order was made in
3255
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3256
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3257
+ */
3247
3258
  async fetchOrderWs(id, symbol = undefined, params = {}) {
3248
- /**
3249
- * @method
3250
- * @name binance#fetchOrderWs
3251
- * @description fetches information on an order made by the user
3252
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-user_data
3253
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Query-Order
3254
- * @param {string} symbol unified symbol of the market the order was made in
3255
- * @param {object} params extra parameters specific to the exchange API endpoint
3256
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3257
- */
3258
3259
  await this.loadMarkets();
3259
3260
  if (symbol === undefined) {
3260
3261
  throw new errors.BadRequest(this.id + ' cancelOrderWs requires a symbol');
@@ -3290,22 +3291,22 @@ class binance extends binance$1 {
3290
3291
  };
3291
3292
  return await this.watch(url, messageHash, message, messageHash, subscription);
3292
3293
  }
3294
+ /**
3295
+ * @method
3296
+ * @name binance#fetchOrdersWs
3297
+ * @description fetches information on multiple orders made by the user
3298
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
3299
+ * @param {string} symbol unified market symbol of the market orders were made in
3300
+ * @param {int|undefined} [since] the earliest time in ms to fetch orders for
3301
+ * @param {int|undefined} [limit] the maximum number of order structures to retrieve
3302
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3303
+ * @param {int} [params.orderId] order id to begin at
3304
+ * @param {int} [params.startTime] earliest time in ms to retrieve orders for
3305
+ * @param {int} [params.endTime] latest time in ms to retrieve orders for
3306
+ * @param {int} [params.limit] the maximum number of order structures to retrieve
3307
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3308
+ */
3293
3309
  async fetchOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
3294
- /**
3295
- * @method
3296
- * @name binance#fetchOrdersWs
3297
- * @description fetches information on multiple orders made by the user
3298
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
3299
- * @param {string} symbol unified market symbol of the market orders were made in
3300
- * @param {int|undefined} [since] the earliest time in ms to fetch orders for
3301
- * @param {int|undefined} [limit] the maximum number of order structures to retrieve
3302
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3303
- * @param {int} [params.orderId] order id to begin at
3304
- * @param {int} [params.startTime] earliest time in ms to retrieve orders for
3305
- * @param {int} [params.endTime] latest time in ms to retrieve orders for
3306
- * @param {int} [params.limit] the maximum number of order structures to retrieve
3307
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3308
- */
3309
3310
  await this.loadMarkets();
3310
3311
  if (symbol === undefined) {
3311
3312
  throw new errors.BadRequest(this.id + ' fetchOrdersWs requires a symbol');
@@ -3335,18 +3336,18 @@ class binance extends binance$1 {
3335
3336
  const orders = await this.watch(url, messageHash, message, messageHash, subscription);
3336
3337
  return this.filterBySymbolSinceLimit(orders, symbol, since, limit);
3337
3338
  }
3339
+ /**
3340
+ * @method
3341
+ * @name binance#fetchClosedOrdersWs
3342
+ * @description fetch closed orders
3343
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
3344
+ * @param {string} symbol unified market symbol
3345
+ * @param {int} [since] the earliest time in ms to fetch open orders for
3346
+ * @param {int} [limit] the maximum number of open orders structures to retrieve
3347
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3348
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3349
+ */
3338
3350
  async fetchClosedOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
3339
- /**
3340
- * @method
3341
- * @name binance#fetchClosedOrdersWs
3342
- * @description fetch closed orders
3343
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
3344
- * @param {string} symbol unified market symbol
3345
- * @param {int} [since] the earliest time in ms to fetch open orders for
3346
- * @param {int} [limit] the maximum number of open orders structures to retrieve
3347
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3348
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3349
- */
3350
3351
  const orders = await this.fetchOrdersWs(symbol, since, limit, params);
3351
3352
  const closedOrders = [];
3352
3353
  for (let i = 0; i < orders.length; i++) {
@@ -3357,18 +3358,18 @@ class binance extends binance$1 {
3357
3358
  }
3358
3359
  return closedOrders;
3359
3360
  }
3361
+ /**
3362
+ * @method
3363
+ * @name binance#fetchOpenOrdersWs
3364
+ * @description fetch all unfilled currently open orders
3365
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#current-open-orders-user_data
3366
+ * @param {string} symbol unified market symbol
3367
+ * @param {int|undefined} [since] the earliest time in ms to fetch open orders for
3368
+ * @param {int|undefined} [limit] the maximum number of open orders structures to retrieve
3369
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3370
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3371
+ */
3360
3372
  async fetchOpenOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
3361
- /**
3362
- * @method
3363
- * @name binance#fetchOpenOrdersWs
3364
- * @description fetch all unfilled currently open orders
3365
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#current-open-orders-user_data
3366
- * @param {string} symbol unified market symbol
3367
- * @param {int|undefined} [since] the earliest time in ms to fetch open orders for
3368
- * @param {int|undefined} [limit] the maximum number of open orders structures to retrieve
3369
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3370
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3371
- */
3372
3373
  await this.loadMarkets();
3373
3374
  const market = this.market(symbol);
3374
3375
  const type = this.getMarketType('fetchOpenOrdersWs', market, params);
@@ -3397,22 +3398,22 @@ class binance extends binance$1 {
3397
3398
  const orders = await this.watch(url, messageHash, message, messageHash, subscription);
3398
3399
  return this.filterBySymbolSinceLimit(orders, symbol, since, limit);
3399
3400
  }
3401
+ /**
3402
+ * @method
3403
+ * @name binance#watchOrders
3404
+ * @description watches information on multiple orders made by the user
3405
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream#order-update
3406
+ * @see https://developers.binance.com/docs/margin_trading/trade-data-stream/Event-Order-Update
3407
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
3408
+ * @param {string} symbol unified market symbol of the market the orders were made in
3409
+ * @param {int} [since] the earliest time in ms to fetch orders for
3410
+ * @param {int} [limit] the maximum number of order structures to retrieve
3411
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3412
+ * @param {string|undefined} [params.marginMode] 'cross' or 'isolated', for spot margin
3413
+ * @param {boolean} [params.portfolioMargin] set to true if you would like to watch portfolio margin account orders
3414
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3415
+ */
3400
3416
  async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
3401
- /**
3402
- * @method
3403
- * @name binance#watchOrders
3404
- * @description watches information on multiple orders made by the user
3405
- * @see https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream#order-update
3406
- * @see https://developers.binance.com/docs/margin_trading/trade-data-stream/Event-Order-Update
3407
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/user-data-streams/Event-Order-Update
3408
- * @param {string} symbol unified market symbol of the market the orders were made in
3409
- * @param {int} [since] the earliest time in ms to fetch orders for
3410
- * @param {int} [limit] the maximum number of order structures to retrieve
3411
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3412
- * @param {string|undefined} [params.marginMode] 'cross' or 'isolated', for spot margin
3413
- * @param {boolean} [params.portfolioMargin] set to true if you would like to watch portfolio margin account orders
3414
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3415
- */
3416
3417
  await this.loadMarkets();
3417
3418
  let messageHash = 'orders';
3418
3419
  let market = undefined;
@@ -3696,16 +3697,18 @@ class binance extends binance$1 {
3696
3697
  this.handleOrder(client, message);
3697
3698
  this.handleMyLiquidation(client, message);
3698
3699
  }
3700
+ /**
3701
+ * @method
3702
+ * @name binance#watchPositions
3703
+ * @description watch all open positions
3704
+ * @param {string[]|undefined} symbols list of unified market symbols
3705
+ * @param {number} [since] since timestamp
3706
+ * @param {number} [limit] limit
3707
+ * @param {object} params extra parameters specific to the exchange API endpoint
3708
+ * @param {boolean} [params.portfolioMargin] set to true if you would like to watch positions in a portfolio margin account
3709
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
3710
+ */
3699
3711
  async watchPositions(symbols = undefined, since = undefined, limit = undefined, params = {}) {
3700
- /**
3701
- * @method
3702
- * @name binance#watchPositions
3703
- * @description watch all open positions
3704
- * @param {string[]|undefined} symbols list of unified market symbols
3705
- * @param {object} params extra parameters specific to the exchange API endpoint
3706
- * @param {boolean} [params.portfolioMargin] set to true if you would like to watch positions in a portfolio margin account
3707
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
3708
- */
3709
3712
  await this.loadMarkets();
3710
3713
  let market = undefined;
3711
3714
  let messageHash = '';
@@ -3918,20 +3921,20 @@ class binance extends binance$1 {
3918
3921
  'marginRatio': undefined,
3919
3922
  });
3920
3923
  }
3924
+ /**
3925
+ * @method
3926
+ * @name binance#fetchMyTradesWs
3927
+ * @description fetch all trades made by the user
3928
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-trade-history-user_data
3929
+ * @param {string} symbol unified market symbol
3930
+ * @param {int|undefined} [since] the earliest time in ms to fetch trades for
3931
+ * @param {int|undefined} [limit] the maximum number of trades structures to retrieve
3932
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3933
+ * @param {int} [params.endTime] the latest time in ms to fetch trades for
3934
+ * @param {int} [params.fromId] first trade Id to fetch
3935
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3936
+ */
3921
3937
  async fetchMyTradesWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
3922
- /**
3923
- * @method
3924
- * @name binance#fetchMyTradesWs
3925
- * @description fetch all trades made by the user
3926
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-trade-history-user_data
3927
- * @param {string} symbol unified market symbol
3928
- * @param {int|undefined} [since] the earliest time in ms to fetch trades for
3929
- * @param {int|undefined} [limit] the maximum number of trades structures to retrieve
3930
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3931
- * @param {int} [params.endTime] the latest time in ms to fetch trades for
3932
- * @param {int} [params.fromId] first trade Id to fetch
3933
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3934
- */
3935
3938
  await this.loadMarkets();
3936
3939
  if (symbol === undefined) {
3937
3940
  throw new errors.BadRequest(this.id + ' fetchMyTradesWs requires a symbol');
@@ -3971,21 +3974,21 @@ class binance extends binance$1 {
3971
3974
  const trades = await this.watch(url, messageHash, message, messageHash, subscription);
3972
3975
  return this.filterBySymbolSinceLimit(trades, symbol, since, limit);
3973
3976
  }
3977
+ /**
3978
+ * @method
3979
+ * @name binance#fetchTradesWs
3980
+ * @description fetch all trades made by the user
3981
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#recent-trades
3982
+ * @param {string} symbol unified market symbol
3983
+ * @param {int} [since] the earliest time in ms to fetch trades for
3984
+ * @param {int} [limit] the maximum number of trades structures to retrieve, default=500, max=1000
3985
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3986
+ *
3987
+ * EXCHANGE SPECIFIC PARAMETERS
3988
+ * @param {int} [params.fromId] trade ID to begin at
3989
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3990
+ */
3974
3991
  async fetchTradesWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
3975
- /**
3976
- * @method
3977
- * @name binance#fetchTradesWs
3978
- * @description fetch all trades made by the user
3979
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#recent-trades
3980
- * @param {string} symbol unified market symbol
3981
- * @param {int} [since] the earliest time in ms to fetch trades for
3982
- * @param {int} [limit] the maximum number of trades structures to retrieve, default=500, max=1000
3983
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3984
- *
3985
- * EXCHANGE SPECIFIC PARAMETERS
3986
- * @param {int} [params.fromId] trade ID to begin at
3987
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3988
- */
3989
3992
  await this.loadMarkets();
3990
3993
  if (symbol === undefined) {
3991
3994
  throw new errors.BadRequest(this.id + ' fetchTradesWs () requires a symbol argument');
@@ -4069,18 +4072,18 @@ class binance extends binance$1 {
4069
4072
  const trades = this.parseTrades(result);
4070
4073
  client.resolve(trades, messageHash);
4071
4074
  }
4075
+ /**
4076
+ * @method
4077
+ * @name binance#watchMyTrades
4078
+ * @description watches information on multiple trades made by the user
4079
+ * @param {string} symbol unified market symbol of the market orders were made in
4080
+ * @param {int} [since] the earliest time in ms to fetch orders for
4081
+ * @param {int} [limit] the maximum number of order structures to retrieve
4082
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4083
+ * @param {boolean} [params.portfolioMargin] set to true if you would like to watch trades in a portfolio margin account
4084
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4085
+ */
4072
4086
  async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4073
- /**
4074
- * @method
4075
- * @name binance#watchMyTrades
4076
- * @description watches information on multiple trades made by the user
4077
- * @param {string} symbol unified market symbol of the market orders were made in
4078
- * @param {int} [since] the earliest time in ms to fetch orders for
4079
- * @param {int} [limit] the maximum number of order structures to retrieve
4080
- * @param {object} [params] extra parameters specific to the exchange API endpoint
4081
- * @param {boolean} [params.portfolioMargin] set to true if you would like to watch trades in a portfolio margin account
4082
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4083
- */
4084
4087
  await this.loadMarkets();
4085
4088
  let type = undefined;
4086
4089
  let market = undefined;