Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binance-api-node

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-api-node - npm Package Compare versions

Comparing version 0.9.23 to 0.9.24

3

dist/http-client.js

@@ -371,2 +371,5 @@ "use strict";

},
cancelOpenOrders: function cancelOpenOrders(payload) {
return privCall('/api/v3/openOrders', payload, 'DELETE');
},
openOrders: function openOrders(payload) {

@@ -373,0 +376,0 @@ return privCall('/api/v3/openOrders', payload);

@@ -174,2 +174,3 @@ // tslint:disable:interface-name

cancelOrder(options: { symbol: string; orderId: number, useServerTime?: boolean }): Promise<CancelOrderResult>;
cancelOpenOrders(options: { symbol: string, useServerTime?: boolean }): Promise<CancelOrderResult[]>;
openOrders(options: { symbol?: string, useServerTime?: boolean }): Promise<QueryOrderResult[]>;

@@ -176,0 +177,0 @@ allOrders(options: { symbol?: string, useServerTime?: boolean }): Promise<QueryOrderResult[]>;

2

package.json
{
"name": "binance-api-node",
"version": "0.9.23",
"version": "0.9.24",
"description": "A node API wrapper for Binance",

@@ -5,0 +5,0 @@ "main": "dist",

@@ -78,2 +78,3 @@ # binance-api-node [![build](https://img.shields.io/travis/Ashlar/binance-api-node/master.svg?style=flat-square)](https://travis-ci.org/Ashlar/binance-api-node) [![cover](https://img.shields.io/coveralls/github/Ashlar/binance-api-node/master?style=flat-square)](https://coveralls.io/github/Ashlar/binance-api-node?branch=master) [![bnb](https://img.shields.io/badge/binance-winner-yellow.svg?style=flat-square)](https://github.com/binance-exchange/binance-api-node)

- [cancelOrder](#cancelorder)
- [cancelOpenOrders](#cancelOpenOrders)
- [openOrders](#openorders)

@@ -1090,2 +1091,43 @@ - [allOrders](#allorders)

#### cancelOpenOrders
Cancels all active orders on a symbol.
This includes OCO orders.
```js
console.log(
await client.cancelOpenOrders({
symbol: 'ETHBTC'
}),
)
```
Name | Type | Mandatory | Description |
-----------|--------|-----------|----------------------------------------
symbol | STRING | YES |
recvWindow | LONG | NO | The value cannot be greater than `60000`
timestamp | LONG | YES |
<details>
<summary>Output</summary>
```js
[
{
symbol: 'ETHBTC',
origClientOrderId: 'bnAoRHgI18gRD80FJmsfNP',
orderId: 1,
clientOrderId: 'RViSsQPTp1v3WmLYpeKT11'
},
{
symbol: 'ETHBTC',
origClientOrderId: 'IDbzcGmfwSCKihxILK1snu',
orderId: 2,
clientOrderId: 'HKFcuWAm9euMgRuwVGR8CL'
}
]
```
</details>
#### openOrders

@@ -1092,0 +1134,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc