binance 2.1.5 → 2.1.6

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # binance
1
+ # Node.js & Typescript Binance API SDK
2
2
 
3
3
  [![Tests](https://circleci.com/gh/tiagosiebler/binance.svg?style=shield)](https://circleci.com/gh/tiagosiebler/binance)
4
4
  [![npm version](https://img.shields.io/npm/v/binance)][1] [![npm size](https://img.shields.io/bundlephobia/min/binance/latest)][1] [![npm downloads](https://img.shields.io/npm/dt/binance)][1]
@@ -16,7 +16,6 @@ Node.js connector for the Binance APIs and WebSockets, with TypeScript & browser
16
16
  - End-to-end testing before any release.
17
17
  - Real API calls in e2e tests.
18
18
  - Support REST APIs for Binance Spot, Margin, Isolated Margin & USDM Futures.
19
- - Automatically manage latency related authentication issues.
20
19
  - Strongly typed on most requests and responses.
21
20
  - Support Websockets for Binance Spot, Margin, Isolated Margin & USDM Futures.
22
21
  - Event driven messaging.
@@ -49,9 +48,10 @@ Refer to the [examples](./examples) folder for implementation demos.
49
48
  Check out my related projects:
50
49
 
51
50
  - Try my connectors:
52
- - [ftx-api](https://www.npmjs.com/package/ftx-api)
53
- - [bybit-api](https://www.npmjs.com/package/bybit-api)
54
51
  - [binance](https://www.npmjs.com/package/binance)
52
+ - [bybit-api](https://www.npmjs.com/package/bybit-api)
53
+ - [okx-api](https://www.npmjs.com/package/okx-api)
54
+ - [ftx-api](https://www.npmjs.com/package/ftx-api)
55
55
  - Try my misc utilities:
56
56
  - [orderbooks](https://www.npmjs.com/package/orderbooks)
57
57
  - Check out my examples:
@@ -91,14 +91,19 @@ export interface NewOCOParams {
91
91
  side: OrderSide;
92
92
  quantity: number;
93
93
  limitClientOrderId?: string;
94
+ limitStrategyId?: number;
95
+ limitStrategyType?: number;
94
96
  price: number;
95
97
  limitIcebergQty?: number;
98
+ trailingdelta?: number;
96
99
  stopClientOrderId?: string;
97
100
  stopPrice: number;
101
+ stopStrategyId?: number;
102
+ stopStrategyType?: number;
98
103
  stopLimitPrice?: number;
99
104
  stopIcebergQty?: number;
100
- stopLimitTimeInForce: OrderTimeInForce;
101
- newOrderRespType: OrderResponseType;
105
+ stopLimitTimeInForce?: OrderTimeInForce;
106
+ newOrderRespType?: OrderResponseType;
102
107
  /** For isolated margin trading only */
103
108
  isIsolated?: StringBoolean;
104
109
  /** Define a side effect, only for margin trading */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "binance",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Node.js connector for Binance's REST APIs and WebSockets, with TypeScript & integration tests.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",