binance-api-node
Advanced tools
Comparing version 0.9.23 to 0.9.24
@@ -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[]>; |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107454
1741
1840