ccxt 4.4.70 → 4.4.71

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 (60) hide show
  1. package/README.md +5 -8
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +1 -6
  4. package/dist/cjs/src/abstract/poloniexfutures.js +1 -1
  5. package/dist/cjs/src/base/Exchange.js +22 -0
  6. package/dist/cjs/src/binance.js +106 -101
  7. package/dist/cjs/src/bingx.js +64 -42
  8. package/dist/cjs/src/bitget.js +1 -5
  9. package/dist/cjs/src/bitmart.js +15 -1
  10. package/dist/cjs/src/bitopro.js +1 -0
  11. package/dist/cjs/src/bitrue.js +1 -0
  12. package/dist/cjs/src/cex.js +1 -0
  13. package/dist/cjs/src/coinbaseexchange.js +1 -0
  14. package/dist/cjs/src/deribit.js +1 -0
  15. package/dist/cjs/src/hashkey.js +4 -2
  16. package/dist/cjs/src/kraken.js +83 -6
  17. package/dist/cjs/src/kucoin.js +4 -2
  18. package/dist/cjs/src/mexc.js +8 -4
  19. package/dist/cjs/src/okx.js +58 -46
  20. package/dist/cjs/src/poloniex.js +1311 -81
  21. package/dist/cjs/src/poloniexfutures.js +1 -1
  22. package/dist/cjs/src/pro/binance.js +94 -94
  23. package/dist/cjs/src/pro/bingx.js +63 -52
  24. package/dist/cjs/src/pro/poloniexfutures.js +1 -1
  25. package/dist/cjs/src/whitebit.js +4 -2
  26. package/js/ccxt.d.ts +3 -9
  27. package/js/ccxt.js +2 -6
  28. package/js/src/abstract/bingx.d.ts +1 -0
  29. package/js/src/abstract/bitmart.d.ts +1 -0
  30. package/js/src/abstract/poloniex.d.ts +36 -0
  31. package/js/src/abstract/poloniexfutures.js +6 -0
  32. package/js/src/base/Exchange.d.ts +11 -2
  33. package/js/src/base/Exchange.js +22 -0
  34. package/js/src/base/types.d.ts +31 -0
  35. package/js/src/binance.d.ts +98 -97
  36. package/js/src/binance.js +106 -101
  37. package/js/src/bingx.js +64 -42
  38. package/js/src/bitget.js +1 -5
  39. package/js/src/bitmart.d.ts +1 -0
  40. package/js/src/bitmart.js +15 -1
  41. package/js/src/bitopro.js +1 -0
  42. package/js/src/bitrue.js +1 -0
  43. package/js/src/cex.js +1 -0
  44. package/js/src/coinbaseexchange.js +1 -0
  45. package/js/src/deribit.js +1 -0
  46. package/js/src/hashkey.js +4 -2
  47. package/js/src/kraken.d.ts +1 -0
  48. package/js/src/kraken.js +83 -6
  49. package/js/src/kucoin.js +4 -2
  50. package/js/src/mexc.js +8 -4
  51. package/js/src/okx.js +58 -46
  52. package/js/src/poloniex.d.ts +109 -1
  53. package/js/src/poloniex.js +1311 -81
  54. package/js/src/poloniexfutures.js +6 -0
  55. package/js/src/pro/binance.d.ts +94 -94
  56. package/js/src/pro/binance.js +94 -94
  57. package/js/src/pro/bingx.js +63 -52
  58. package/js/src/pro/poloniexfutures.js +6 -0
  59. package/js/src/whitebit.js +4 -2
  60. package/package.json +1 -1
@@ -1,3 +1,9 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
1
7
  // ---------------------------------------------------------------------------
2
8
  import { Precise } from './base/Precise.js';
3
9
  import Exchange from './abstract/poloniexfutures.js';
@@ -208,13 +208,13 @@ export default class binance extends binanceRest {
208
208
  /**
209
209
  * @method
210
210
  * @name binance#watchOrderBook
211
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
212
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
213
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
214
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
215
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
216
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
217
211
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
212
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#partial-book-depth-streams
213
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#diff-depth-stream
214
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
215
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
216
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
217
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
218
218
  * @param {string} symbol unified symbol of the market to fetch the order book for
219
219
  * @param {int} [limit] the maximum amount of order book entries to return
220
220
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -224,13 +224,13 @@ export default class binance extends binanceRest {
224
224
  /**
225
225
  * @method
226
226
  * @name binance#watchOrderBookForSymbols
227
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
228
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
229
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
230
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
231
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
232
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
233
227
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
228
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#partial-book-depth-streams
229
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#diff-depth-stream
230
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
231
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
232
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
233
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
234
234
  * @param {string[]} symbols unified array of symbols
235
235
  * @param {int} [limit] the maximum amount of order book entries to return
236
236
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -240,13 +240,13 @@ export default class binance extends binanceRest {
240
240
  /**
241
241
  * @method
242
242
  * @name binance#unWatchOrderBookForSymbols
243
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
244
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
245
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
246
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
247
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
248
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
249
243
  * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
244
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#partial-book-depth-streams
245
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#diff-depth-stream
246
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
247
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
248
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
249
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
250
250
  * @param {string[]} symbols unified array of symbols
251
251
  * @param {object} [params] extra parameters specific to the exchange API endpoint
252
252
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
@@ -255,13 +255,13 @@ export default class binance extends binanceRest {
255
255
  /**
256
256
  * @method
257
257
  * @name binance#unWatchOrderBook
258
- * @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
259
- * @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
260
- * @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
261
- * @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
262
- * @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
263
- * @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
264
258
  * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
259
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#partial-book-depth-streams
260
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#diff-depth-stream
261
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
262
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
263
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Partial-Book-Depth-Streams
264
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Diff-Book-Depth-Streams
265
265
  * @param {string} symbol unified array of symbols
266
266
  * @param {object} [params] extra parameters specific to the exchange API endpoint
267
267
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
@@ -271,7 +271,7 @@ export default class binance extends binanceRest {
271
271
  * @method
272
272
  * @name binance#fetchOrderBookWs
273
273
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
274
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#order-book
274
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#order-book
275
275
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/Order-Book
276
276
  * @param {string} symbol unified symbol of the market to fetch the order book for
277
277
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -292,10 +292,10 @@ export default class binance extends binanceRest {
292
292
  * @method
293
293
  * @name binance#watchTradesForSymbols
294
294
  * @description get the list of most recent trades for a list of symbols
295
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
296
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
297
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
298
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
295
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#aggregate-trades
296
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#recent-trades
297
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
298
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
299
299
  * @param {string[]} symbols unified symbol of the market to fetch trades for
300
300
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
301
301
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -308,10 +308,10 @@ export default class binance extends binanceRest {
308
308
  * @method
309
309
  * @name binance#unWatchTradesForSymbols
310
310
  * @description unsubscribes from the trades channel
311
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
312
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
313
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
314
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
311
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#aggregate-trades
312
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#recent-trades
313
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
314
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
315
315
  * @param {string[]} symbols unified symbol of the market to fetch trades for
316
316
  * @param {object} [params] extra parameters specific to the exchange API endpoint
317
317
  * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
@@ -322,10 +322,10 @@ export default class binance extends binanceRest {
322
322
  * @method
323
323
  * @name binance#unWatchTrades
324
324
  * @description unsubscribes from the trades channel
325
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
326
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
327
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
328
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
325
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#aggregate-trades
326
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#recent-trades
327
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
328
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
329
329
  * @param {string} symbol unified symbol of the market to fetch trades for
330
330
  * @param {object} [params] extra parameters specific to the exchange API endpoint
331
331
  * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
@@ -336,10 +336,10 @@ export default class binance extends binanceRest {
336
336
  * @method
337
337
  * @name binance#watchTrades
338
338
  * @description get the list of most recent trades for a particular symbol
339
- * @see https://binance-docs.github.io/apidocs/spot/en/#aggregate-trade-streams
340
- * @see https://binance-docs.github.io/apidocs/spot/en/#trade-streams
341
- * @see https://binance-docs.github.io/apidocs/futures/en/#aggregate-trade-streams
342
- * @see https://binance-docs.github.io/apidocs/delivery/en/#aggregate-trade-streams
339
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#aggregate-trades
340
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#recent-trades
341
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
342
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
343
343
  * @param {string} symbol unified symbol of the market to fetch trades for
344
344
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
345
345
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -354,9 +354,9 @@ export default class binance extends binanceRest {
354
354
  * @method
355
355
  * @name binance#watchOHLCV
356
356
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
357
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
358
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
359
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
357
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#klines
358
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
359
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
360
360
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
361
361
  * @param {string} timeframe the length of time each candle represents
362
362
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -370,9 +370,9 @@ export default class binance extends binanceRest {
370
370
  * @method
371
371
  * @name binance#watchOHLCVForSymbols
372
372
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
373
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
374
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
375
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
373
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#klines
374
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
375
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
376
376
  * @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
377
377
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
378
378
  * @param {int} [limit] the maximum amount of candles to fetch
@@ -385,9 +385,9 @@ export default class binance extends binanceRest {
385
385
  * @method
386
386
  * @name binance#unWatchOHLCVForSymbols
387
387
  * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
388
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
389
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
390
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
388
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#klines
389
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
390
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
391
391
  * @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
392
392
  * @param {object} [params] extra parameters specific to the exchange API endpoint
393
393
  * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
@@ -398,9 +398,9 @@ export default class binance extends binanceRest {
398
398
  * @method
399
399
  * @name binance#unWatchOHLCV
400
400
  * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
401
- * @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
402
- * @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
403
- * @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
401
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#klines
402
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
403
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
404
404
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
405
405
  * @param {string} timeframe the length of time each candle represents
406
406
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -424,7 +424,7 @@ export default class binance extends binanceRest {
424
424
  * @method
425
425
  * @name binance#fetchOHLCVWs
426
426
  * @description query historical candlestick data containing the open, high, low, and close price, and the volume of a market
427
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#klines
427
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#klines
428
428
  * @param {string} symbol unified symbol of the market to query OHLCV data for
429
429
  * @param {string} timeframe the length of time each candle represents
430
430
  * @param {int} since timestamp in ms of the earliest candle to fetch
@@ -441,13 +441,13 @@ export default class binance extends binanceRest {
441
441
  /**
442
442
  * @method
443
443
  * @name binance#watchTicker
444
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
445
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
446
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
447
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
448
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
449
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
450
444
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
445
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#individual-symbol-mini-ticker-stream
446
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#all-market-mini-tickers-stream
447
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
448
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
449
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
450
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
451
451
  * @param {string} symbol unified symbol of the market to fetch the ticker for
452
452
  * @param {object} [params] extra parameters specific to the exchange API endpoint
453
453
  * @param {string} [params.name] stream to use can be ticker or miniTicker
@@ -457,8 +457,8 @@ export default class binance extends binanceRest {
457
457
  /**
458
458
  * @method
459
459
  * @name binance#watchMarkPrice
460
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream
461
460
  * @description watches a mark price for a specific market
461
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream
462
462
  * @param {string} symbol unified symbol of the market to fetch the ticker for
463
463
  * @param {object} [params] extra parameters specific to the exchange API endpoint
464
464
  * @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
@@ -468,8 +468,8 @@ export default class binance extends binanceRest {
468
468
  /**
469
469
  * @method
470
470
  * @name binance#watchMarkPrices
471
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream-for-All-market
472
471
  * @description watches the mark price for all markets
472
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Mark-Price-Stream-for-All-market
473
473
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
474
474
  * @param {object} [params] extra parameters specific to the exchange API endpoint
475
475
  * @param {boolean} [params.use1sFreq] *default is true* if set to true, the mark price will be updated every second, otherwise every 3 seconds
@@ -479,13 +479,13 @@ export default class binance extends binanceRest {
479
479
  /**
480
480
  * @method
481
481
  * @name binance#watchTickers
482
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
483
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
484
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
485
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
486
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
487
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
488
482
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
483
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#individual-symbol-mini-ticker-stream
484
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#all-market-mini-tickers-stream
485
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
486
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
487
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
488
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
489
489
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
490
490
  * @param {object} [params] extra parameters specific to the exchange API endpoint
491
491
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -494,13 +494,13 @@ export default class binance extends binanceRest {
494
494
  /**
495
495
  * @method
496
496
  * @name binance#unWatchTickers
497
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
498
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
499
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
500
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
501
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
502
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
503
497
  * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
498
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#individual-symbol-mini-ticker-stream
499
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#all-market-mini-tickers-stream
500
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
501
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
502
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
503
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
504
504
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
505
505
  * @param {object} [params] extra parameters specific to the exchange API endpoint
506
506
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -509,13 +509,13 @@ export default class binance extends binanceRest {
509
509
  /**
510
510
  * @method
511
511
  * @name binance#unWatchTicker
512
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
513
- * @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
514
- * @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
515
- * @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
516
- * @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
517
- * @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
518
512
  * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
513
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#individual-symbol-mini-ticker-stream
514
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#all-market-mini-tickers-stream
515
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
516
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
517
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Market-Mini-Tickers-Stream
518
+ * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Individual-Symbol-Ticker-Streams
519
519
  * @param {string} symbol unified symbol of the market to fetch the ticker for
520
520
  * @param {object} [params] extra parameters specific to the exchange API endpoint
521
521
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -525,9 +525,9 @@ export default class binance extends binanceRest {
525
525
  * @method
526
526
  * @name binance#watchBidsAsks
527
527
  * @description watches best bid & ask for symbols
528
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#symbol-order-book-ticker
529
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
528
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#symbol-order-book-ticker
530
529
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
530
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
531
531
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
532
532
  * @param {object} [params] extra parameters specific to the exchange API endpoint
533
533
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -550,7 +550,7 @@ export default class binance extends binanceRest {
550
550
  * @name binance#fetchBalanceWs
551
551
  * @description fetch balance and get the amount of funds available for trading or funds locked in orders
552
552
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Futures-Account-Balance
553
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-information-user_data
553
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#account-information-user_data
554
554
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/websocket-api
555
555
  * @param {object} [params] extra parameters specific to the exchange API endpoint
556
556
  * @param {string|undefined} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
@@ -565,8 +565,8 @@ export default class binance extends binanceRest {
565
565
  /**
566
566
  * @method
567
567
  * @name binance#fetchPositionWs
568
- * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
569
568
  * @description fetch data on an open position
569
+ * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
570
570
  * @param {string} symbol unified market symbol of the market the position is held in
571
571
  * @param {object} [params] extra parameters specific to the exchange API endpoint
572
572
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
@@ -601,7 +601,7 @@ export default class binance extends binanceRest {
601
601
  * @method
602
602
  * @name binance#createOrderWs
603
603
  * @description create a trade order
604
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#place-new-order-trade
604
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#place-new-order-trade
605
605
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/New-Order
606
606
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api
607
607
  * @param {string} symbol unified symbol of the market to create an order in
@@ -621,7 +621,7 @@ export default class binance extends binanceRest {
621
621
  * @method
622
622
  * @name binance#editOrderWs
623
623
  * @description edit a trade order
624
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-and-replace-order-trade
624
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#cancel-and-replace-order-trade
625
625
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Modify-Order
626
626
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Modify-Order
627
627
  * @param {string} id order id
@@ -639,7 +639,7 @@ export default class binance extends binanceRest {
639
639
  * @method
640
640
  * @name binance#cancelOrderWs
641
641
  * @description cancel multiple orders
642
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-order-trade
642
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#cancel-order-trade
643
643
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Cancel-Order
644
644
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Cancel-Order
645
645
  * @param {string} id order id
@@ -653,7 +653,7 @@ export default class binance extends binanceRest {
653
653
  * @method
654
654
  * @name binance#cancelAllOrdersWs
655
655
  * @description cancel all open orders in a market
656
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-open-orders-trade
656
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#cancel-open-orders-trade
657
657
  * @param {string} [symbol] unified market symbol of the market to cancel orders in
658
658
  * @param {object} [params] extra parameters specific to the exchange API endpoint
659
659
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -663,7 +663,7 @@ export default class binance extends binanceRest {
663
663
  * @method
664
664
  * @name binance#fetchOrderWs
665
665
  * @description fetches information on an order made by the user
666
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-user_data
666
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#query-order-user_data
667
667
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Query-Order
668
668
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Query-Order
669
669
  * @param {string} id order id
@@ -676,7 +676,7 @@ export default class binance extends binanceRest {
676
676
  * @method
677
677
  * @name binance#fetchOrdersWs
678
678
  * @description fetches information on multiple orders made by the user
679
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
679
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#order-lists
680
680
  * @param {string} symbol unified market symbol of the market orders were made in
681
681
  * @param {int|undefined} [since] the earliest time in ms to fetch orders for
682
682
  * @param {int|undefined} [limit] the maximum number of order structures to retrieve
@@ -692,7 +692,7 @@ export default class binance extends binanceRest {
692
692
  * @method
693
693
  * @name binance#fetchClosedOrdersWs
694
694
  * @description fetch closed orders
695
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-list-user_data
695
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#order-lists
696
696
  * @param {string} symbol unified market symbol
697
697
  * @param {int} [since] the earliest time in ms to fetch open orders for
698
698
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -704,7 +704,7 @@ export default class binance extends binanceRest {
704
704
  * @method
705
705
  * @name binance#fetchOpenOrdersWs
706
706
  * @description fetch all unfilled currently open orders
707
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#current-open-orders-user_data
707
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#current-open-orders-user_data
708
708
  * @param {string} symbol unified market symbol
709
709
  * @param {int|undefined} [since] the earliest time in ms to fetch open orders for
710
710
  * @param {int|undefined} [limit] the maximum number of open orders structures to retrieve
@@ -750,7 +750,7 @@ export default class binance extends binanceRest {
750
750
  * @method
751
751
  * @name binance#fetchMyTradesWs
752
752
  * @description fetch all trades made by the user
753
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-trade-history-user_data
753
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#account-trade-history-user_data
754
754
  * @param {string} symbol unified market symbol
755
755
  * @param {int|undefined} [since] the earliest time in ms to fetch trades for
756
756
  * @param {int|undefined} [limit] the maximum number of trades structures to retrieve
@@ -764,7 +764,7 @@ export default class binance extends binanceRest {
764
764
  * @method
765
765
  * @name binance#fetchTradesWs
766
766
  * @description fetch all trades made by the user
767
- * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#recent-trades
767
+ * @see https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#recent-trades
768
768
  * @param {string} symbol unified market symbol
769
769
  * @param {int} [since] the earliest time in ms to fetch trades for
770
770
  * @param {int} [limit] the maximum number of trades structures to retrieve, default=500, max=1000