From 46a3f1955808e6c7672b63acf2e18ecf5e874db7 Mon Sep 17 00:00:00 2001 From: dimitrisn442 Date: Wed, 8 Jan 2025 11:39:20 +0200 Subject: [PATCH] Release v3.6.1 --- CHANGELOG.md | 5 +++++ docs_src/docs.sh | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/modules/restful/market.js | 28 +++++++++++------------ src/modules/restful/stream.js | 6 ++--- src/modules/restful/trade.js | 32 +++++++++++++-------------- src/modules/websocket/api/account.js | 12 +++++----- src/modules/websocket/api/market.js | 28 +++++++++++------------ src/modules/websocket/api/trade.js | 22 +++++++++--------- src/modules/websocket/api/userData.js | 6 ++--- 11 files changed, 76 insertions(+), 71 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21eccfe..c226d32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.6.1 - 2025-01-08 + +### Changed +- Updated documentation links. + ## 3.6.0 - 2024-12-19 ### Added diff --git a/docs_src/docs.sh b/docs_src/docs.sh index 6cff0cb..a32e2a2 100755 --- a/docs_src/docs.sh +++ b/docs_src/docs.sh @@ -1,3 +1,3 @@ -npx jsdoc --readme ./docs_src/gettingStarted.md src/modules/restful/blvt.js +npx jsdoc --readme ./docs_src/gettingStarted.md src/modules/restful/subAccount.js node ./docs_src/generateDoc.js rm -R out diff --git a/package-lock.json b/package-lock.json index d3a73e0..79d06d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@binance/connector", - "version": "3.6.0", + "version": "3.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@binance/connector", - "version": "3.6.0", + "version": "3.6.1", "license": "MIT", "dependencies": { "axios": "^1.7.4", diff --git a/package.json b/package.json index 20f724c..7610485 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@binance/connector", - "version": "3.6.0", + "version": "3.6.1", "description": "This is a lightweight library that works as a connector to the Binance public API.", "main": "src/index.js", "scripts": { diff --git a/src/modules/restful/market.js b/src/modules/restful/market.js index 0da892c..eebb3fa 100644 --- a/src/modules/restful/market.js +++ b/src/modules/restful/market.js @@ -14,7 +14,7 @@ const Market = superclass => class extends superclass { * GET /api/v3/ping
* * Test connectivity to the Rest API.
- * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-connectivity} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#test-connectivity} */ ping () { return this.publicRequest('GET', '/api/v3/ping') @@ -26,7 +26,7 @@ const Market = superclass => class extends superclass { * GET /api/v3/time
* * Test connectivity to the Rest API and get the current server time.
- * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time} * * @param {object} [options] * @param {string} [options.timeUnit] - The preferred time unit for time and timestamp fields. It can be either 'MILLISECOND' or 'MICROSECOND' @@ -42,7 +42,7 @@ const Market = superclass => class extends superclass { * GET /api/v3/exchangeInfo
* * Current exchange trading rules and symbol information
- * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information} * * @param {object} [options] * @param {string} [options.symbol] - symbol @@ -69,7 +69,7 @@ const Market = superclass => class extends superclass { * * GET /api/v3/depth
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book} * * @param {string} symbol * @param {object} [options] @@ -94,7 +94,7 @@ const Market = superclass => class extends superclass { * GET /api/v3/trades
* * Get recent trades.
- * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list} * * @param {string} symbol * @param {object} [options] @@ -119,7 +119,7 @@ const Market = superclass => class extends superclass { * GET /api/v3/historicalTrades
* * Get older market trades.
- * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup} * * @param {string} symbol * @param {object} [options] @@ -144,7 +144,7 @@ const Market = superclass => class extends superclass { * * GET /api/v3/aggTrades
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list} * * @param {string} symbol * @param {object} [options] @@ -171,7 +171,7 @@ const Market = superclass => class extends superclass { * * GET /api/v3/klines
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data} * * @param {string} symbol * @param {string} interval @@ -198,7 +198,7 @@ const Market = superclass => class extends superclass { * * GET /api/v3/uiKlines
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#uiklines} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#uiklines} * * @param {string} symbol * @param {string} interval @@ -226,7 +226,7 @@ const Market = superclass => class extends superclass { * GET /api/v3/avgPrice
* * Current average price for a symbol.
- * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-average-price} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#current-average-price} * * @param {string} symbol * @param {object} [options] @@ -249,7 +249,7 @@ const Market = superclass => class extends superclass { * * GET /api/v3/ticker/24hr
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics} * * @param {string} [symbol] * @param {Array} [symbols] - an array of symbols @@ -276,7 +276,7 @@ const Market = superclass => class extends superclass { * * GET /api/v3/ticker/price
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker} * * @param {string} [symbol] * @param {Array} [symbols] - an array of symbols @@ -300,7 +300,7 @@ const Market = superclass => class extends superclass { * GET /api/v3/ticker/bookTicker
* * Best price/qty on the order book for a symbol or symbols.
- * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker} * * @param {string} [symbol] * @param {Array} [symbols] - an array of symbols @@ -333,7 +333,7 @@ const Market = superclass => class extends superclass { * * The weight for this request will cap at 100 once the number of symbols in the request is more than 50.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics} * * @param {string} [symbol] * @param {Array} [symbols] - an array of symbols diff --git a/src/modules/restful/stream.js b/src/modules/restful/stream.js index a07f4fb..8e13e16 100644 --- a/src/modules/restful/stream.js +++ b/src/modules/restful/stream.js @@ -13,7 +13,7 @@ const Stream = superclass => class extends superclass { * * POST /api/v3/userDataStream
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#start-user-data-stream-user_stream} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream#create-a-listenkey-user_stream} * * @param {object} [options] * @param {string} [options.timeUnit] - The preferred time unit for time and timestamp fields. It can be either 'MILLISECOND' or 'MICROSECOND' @@ -31,7 +31,7 @@ const Stream = superclass => class extends superclass { * * PUT /api/v3/userDataStream
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#keepalive-user-data-stream-user_stream} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream#pingkeep-alive-a-listenkey-user_stream} * * @param {string} listenKey * @param {object} [options] @@ -53,7 +53,7 @@ const Stream = superclass => class extends superclass { * * DELETE /api/v3/userDataStream
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#close-user-data-stream-user_stream} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream#close-a-listenkey-user_stream} * * @param {string} listenKey * @param {object} [options] diff --git a/src/modules/restful/trade.js b/src/modules/restful/trade.js index 2710837..8bedacf 100644 --- a/src/modules/restful/trade.js +++ b/src/modules/restful/trade.js @@ -13,7 +13,7 @@ const Trade = superclass => class extends superclass { * * POST /api/v3/order/test
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#test-new-order-trade} * * @param {string} symbol * @param {string} side @@ -53,7 +53,7 @@ const Trade = superclass => class extends superclass { * * POST /api/v3/order
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade} * * @param {string} symbol * @param {string} side @@ -92,7 +92,7 @@ const Trade = superclass => class extends superclass { * * DELETE /api/v3/order
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade} * * @param {string} symbol * @param {object} [options] @@ -119,7 +119,7 @@ const Trade = superclass => class extends superclass { * * DELETE /api/v3/openOrders
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade} * @param {string} symbol * @param {object} [options] * @param {number} [options.recvWindow] - The value cannot be greater than 60000 @@ -142,7 +142,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/order
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data} * * @param {string} symbol * @param {object} [options] @@ -173,7 +173,7 @@ const Trade = superclass => class extends superclass { * * POST /api/v3/order/cancelReplace
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade} * * @param {string} symbol * @param {string} side @@ -217,7 +217,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/openOrders
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data} * * @param {object} [options] * @param {string} [options.symbol] @@ -237,7 +237,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/allOrders
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data} * * @param {string} symbol * @param {object} [options] @@ -264,7 +264,7 @@ const Trade = superclass => class extends superclass { * * POST /api/v3/orderList/oco
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-oco---deprecated-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---oco-trade} * * @param {string} symbol * @param {string} side @@ -315,7 +315,7 @@ const Trade = superclass => class extends superclass { * * DELETE /api/v3/orderList
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-list-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-list-trade} * * @param {string} symbol * @param {object} [options] @@ -342,7 +342,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/orderList
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-lists-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-list-user_data} * * @param {object} [options] * @param {number} [options.orderListId] @@ -363,7 +363,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/allOrderList
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-all-order-lists-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-all-order-lists-user_data} * * @param {object} [options] * @param {number} [options.fromId] @@ -386,7 +386,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/openOrderList
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-open-order-lists-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-open-order-lists-user_data} * * @param {object} [options] * @param {number} [options.recvWindow] - The value cannot be greater than 60000 @@ -405,7 +405,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/account
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data} * * @param {object} [options] * @param {number} [options.recvWindow] - The value cannot be greater than 60000 @@ -424,7 +424,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/myTrades
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data} * * @param {string} symbol * @param {object} [options] @@ -453,7 +453,7 @@ const Trade = superclass => class extends superclass { * * GET /api/v3/rateLimit/order
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-current-order-count-usage-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-unfilled-order-count-user_data} * * @param {object} [options] * @param {number} [options.recvWindow] - The value cannot be greater than 60000 diff --git a/src/modules/websocket/api/account.js b/src/modules/websocket/api/account.js index 4e5046b..e768447 100644 --- a/src/modules/websocket/api/account.js +++ b/src/modules/websocket/api/account.js @@ -12,7 +12,7 @@ const Account = superclass => class extends superclass { * Query information about your account.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-information-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#account-information-user_data} * * @param {object} [options] * @param {number} [options.recvWindow] @@ -27,7 +27,7 @@ const Account = superclass => class extends superclass { * Query your current order rate limit.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-order-rate-limits-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#unfilled-order-count-user_data} * * @param {object} [options] * @param {number} [options.recvWindow] @@ -42,7 +42,7 @@ const Account = superclass => class extends superclass { * Query information about all your orders – active, canceled, filled – filtered by time range.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-order-history-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#account-order-history-user_data} * * @param {string} symbol * @param {object} [options] @@ -68,7 +68,7 @@ const Account = superclass => class extends superclass { * Query information about all your OCOs, filtered by time range.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#account-order-list-history-user_data} * * @param {object} [options] * @param {number} [options.fromId] @@ -92,7 +92,7 @@ const Account = superclass => class extends superclass { * Query information about all your trades, filtered by time range.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-trade-history-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#account-trade-history-user_data} * * @param {string} [symbol] * @param {object} [options] @@ -119,7 +119,7 @@ const Account = superclass => class extends superclass { * Displays the list of orders that were expired because of STP trigger.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#account-prevented-matches-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/account-requests#account-prevented-matches-user_data} * * @param {string} [symbol] * @param {object} [options] diff --git a/src/modules/websocket/api/market.js b/src/modules/websocket/api/market.js index c4c7347..5f26e2a 100644 --- a/src/modules/websocket/api/market.js +++ b/src/modules/websocket/api/market.js @@ -12,7 +12,7 @@ const Market = superclass => class extends superclass { * Test connectivity to the WebSocket API.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#test-connectivity} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/general-requests#test-connectivity} * */ ping (options = {}) { @@ -25,7 +25,7 @@ const Market = superclass => class extends superclass { * Test connectivity to the WebSocket API and get the current server time.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#check-server-time} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/general-requests#check-server-time} * */ time (options = {}) { @@ -42,7 +42,7 @@ const Market = superclass => class extends superclass { * @param {string|array} [options.symbols] * @param {string|array} [options.permissions] * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#exchange-information} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/general-requests#exchange-information} * */ exchangeInfo (options = {}) { @@ -62,7 +62,7 @@ const Market = superclass => class extends superclass { * Get current order book.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#order-book} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#order-book} * * @param {string} symbol * @param {object} [options] @@ -84,7 +84,7 @@ const Market = superclass => class extends superclass { * Get recent trades.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#recent-trades} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#recent-trades} * * @param {string} symbol * @param {object} [options] @@ -106,7 +106,7 @@ const Market = superclass => class extends superclass { * Get historical trades.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#historical-trades} * * @param {string} symbol * @param {object} [options] @@ -129,7 +129,7 @@ const Market = superclass => class extends superclass { * Get aggregate trades.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#aggregate-trades} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#aggregate-trades} * * @param {string} symbol * @param {object} [options] @@ -154,7 +154,7 @@ const Market = superclass => class extends superclass { * Get klines (candlestick bars).
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#klines} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#klines} * * @param {string} symbol * @param {string} interval @@ -180,7 +180,7 @@ const Market = superclass => class extends superclass { * Get klines (candlestick bars) optimized for presentation.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#ui-klines} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#ui-klines} * * @param {string} symbol * @param {string} interval @@ -206,7 +206,7 @@ const Market = superclass => class extends superclass { * Get current average price for a symbol.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#current-average-price} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#current-average-price} * * @param {string} symbol * @@ -221,7 +221,7 @@ const Market = superclass => class extends superclass { * Get 24-hour rolling window price change statistics.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#24hr-ticker-price-change-statistics} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#24hr-ticker-price-change-statistics} * * @param {object} [options] * @param {string} [options.symbol] @@ -239,7 +239,7 @@ const Market = superclass => class extends superclass { * Get rolling window price change statistics with a custom window.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#rolling-window-price-change-statistics} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#rolling-window-price-change-statistics} * * @param {object} [options] * @param {string} [options.symbol] @@ -257,7 +257,7 @@ const Market = superclass => class extends superclass { * Get the latest market price for a symbol.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#symbol-price-ticker} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#symbol-price-ticker} * * @param {object} [options] * @param {string} [options.symbol] @@ -274,7 +274,7 @@ const Market = superclass => class extends superclass { * Get the current best price and quantity on the order book.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#symbol-order-book-ticker} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/market-data-requests#symbol-order-book-ticker} * * @param {object} [options] * @param {string} [options.symbol] diff --git a/src/modules/websocket/api/trade.js b/src/modules/websocket/api/trade.js index dcef0ab..fbe4987 100644 --- a/src/modules/websocket/api/trade.js +++ b/src/modules/websocket/api/trade.js @@ -11,7 +11,7 @@ const Trade = superclass => class extends superclass { * * Send in a new order.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#place-new-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#place-new-order-trade} * * @param {string} symbol * @param {string} side @@ -46,7 +46,7 @@ const Trade = superclass => class extends superclass { * * Test a new order.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#test-new-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#test-new-order-trade} * * @param {string} symbol * @param {string} side @@ -81,7 +81,7 @@ const Trade = superclass => class extends superclass { * * Check execution status of an order.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#query-order-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#query-order-user_data} * * @param {string} symbol * @param {object} [options] @@ -102,7 +102,7 @@ const Trade = superclass => class extends superclass { * * Cancel an active order.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#cancel-order-trade} * * @param {string} symbol * @param {object} [options] @@ -124,7 +124,7 @@ const Trade = superclass => class extends superclass { * * Cancel an existing order and immediately place a new order instead of the canceled one.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-and-replace-order-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#cancel-and-replace-order-trade} * * @param {string} symbol * @param {string} cancelReplaceMode @@ -165,7 +165,7 @@ const Trade = superclass => class extends superclass { * * Query execution status of all open orders.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#current-open-orders-user_data} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#current-open-orders-user_data} * * @param {string} symbol * @param {object} [options] @@ -184,7 +184,7 @@ const Trade = superclass => class extends superclass { * * Cancel all open orders on a symbol, including OCO orders.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#cancel-open-orders-trade} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#cancel-open-orders-trade} * * @param {string} symbol * @param {object} [options] @@ -203,7 +203,7 @@ const Trade = superclass => class extends superclass { * * Send in a new OCO order.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#place-new-order-list---oco-trade} * * @param {string} symbol * @param {string} side @@ -249,7 +249,7 @@ const Trade = superclass => class extends superclass { * * Check execution status of an OCO.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#query-order-list-user_data} * * @param {object} [options] * @param {string} [options.origClientOrderId] @@ -266,7 +266,7 @@ const Trade = superclass => class extends superclass { * * Check execution status of an OCO.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#cancel-order-list-trade} * * @param {string} symbol * @param {object} [options] @@ -288,7 +288,7 @@ const Trade = superclass => class extends superclass { * * Query execution status of all open OCOs.
* - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/trading-requests#current-open-order-lists-user_data} * * @param {object} [options] * @param {number} [options.recvWindow] diff --git a/src/modules/websocket/api/userData.js b/src/modules/websocket/api/userData.js index 9e74c6d..94f832d 100644 --- a/src/modules/websocket/api/userData.js +++ b/src/modules/websocket/api/userData.js @@ -11,7 +11,7 @@ const UserData = superclass => class extends superclass { * Start a new user data stream.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#start-user-data-stream-user_stream} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/user-data-stream-requests#start-user-data-stream-user_stream} * */ startUserDataStream () { @@ -24,7 +24,7 @@ const UserData = superclass => class extends superclass { * Ping a user data stream to keep it alive.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#ping-user-data-stream-user_stream} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/user-data-stream-requests#ping-user-data-stream-user_stream} * * @param {string} listenKey * @@ -39,7 +39,7 @@ const UserData = superclass => class extends superclass { * Explicitly stop and close the user data stream.
* * - * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api#stop-user-data-stream-user_stream} + * {@link https://developers.binance.com/docs/binance-spot-api-docs/web-socket-api/user-data-stream-requests#stop-user-data-stream-user_stream} * */ stopUserDataStream (listenKey) {