You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This example shows how to call this Binance WebSocket API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange
4
+
// This Binance API SDK is available on npm via "npm install binance"
5
+
// WS API ENDPOINT: order.cancel
6
+
// METHOD: WebSocket API
7
+
// PUBLIC: YES
8
+
9
+
// Create a WebSocket API client instance
10
+
constclient=newWebsocketAPIClient({
11
+
api_key: 'insert_api_key_here',
12
+
api_secret: 'insert_api_secret_here',
13
+
});
14
+
15
+
// The WebSocket connection is established automatically when needed
16
+
// You can use the client to make requests immediately
// This example shows how to call this Binance WebSocket API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange
4
+
// This Binance API SDK is available on npm via "npm install binance"
5
+
// WS API ENDPOINT: order.place
6
+
// METHOD: WebSocket API
7
+
// PUBLIC: YES
8
+
9
+
// Create a WebSocket API client instance
10
+
constclient=newWebsocketAPIClient({
11
+
api_key: 'insert_api_key_here',
12
+
api_secret: 'insert_api_secret_here',
13
+
});
14
+
15
+
// The WebSocket connection is established automatically when needed
16
+
// You can use the client to make requests immediately
17
+
18
+
// Example use of the submitNewFuturesOrder method
0 commit comments