binance 2.1.4 → 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 +10 -5
- package/lib/types/shared.d.ts +7 -2
- package/lib/types/websockets.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Node.js & Typescript Binance API SDK
|
|
2
2
|
|
|
3
3
|
[](https://circleci.com/gh/tiagosiebler/binance)
|
|
4
4
|
[][1] [][1] [][1]
|
|
5
5
|
[][1]
|
|
6
6
|
[](https://www.codefactor.io/repository/github/tiagosiebler/binance)
|
|
7
7
|
|
|
8
|
+
[][1]
|
|
9
|
+
|
|
8
10
|
[1]: https://www.npmjs.com/package/binance
|
|
9
11
|
|
|
10
12
|
Node.js connector for the Binance APIs and WebSockets, with TypeScript & browser support.
|
|
11
13
|
|
|
12
|
-
-
|
|
14
|
+
- Extremely robust connector with significant trading volume in production (livenet).
|
|
15
|
+
- Heavy end-to-end testing with real API calls.
|
|
16
|
+
- End-to-end testing before any release.
|
|
17
|
+
- Real API calls in e2e tests.
|
|
13
18
|
- Support REST APIs for Binance Spot, Margin, Isolated Margin & USDM Futures.
|
|
14
|
-
- Automatically manage latency related authentication issues.
|
|
15
19
|
- Strongly typed on most requests and responses.
|
|
16
20
|
- Support Websockets for Binance Spot, Margin, Isolated Margin & USDM Futures.
|
|
17
21
|
- Event driven messaging.
|
|
@@ -44,9 +48,10 @@ Refer to the [examples](./examples) folder for implementation demos.
|
|
|
44
48
|
Check out my related projects:
|
|
45
49
|
|
|
46
50
|
- Try my connectors:
|
|
47
|
-
- [ftx-api](https://www.npmjs.com/package/ftx-api)
|
|
48
|
-
- [bybit-api](https://www.npmjs.com/package/bybit-api)
|
|
49
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)
|
|
50
55
|
- Try my misc utilities:
|
|
51
56
|
- [orderbooks](https://www.npmjs.com/package/orderbooks)
|
|
52
57
|
- Check out my examples:
|
package/lib/types/shared.d.ts
CHANGED
|
@@ -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
|
|
101
|
-
newOrderRespType
|
|
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 */
|
|
@@ -251,7 +251,7 @@ export interface WsMessagePartialBookDepthEventFormatted extends WsSharedBase {
|
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
253
|
* USER DATA WS EVENTS
|
|
254
|
-
**/
|
|
254
|
+
**/
|
|
255
255
|
interface SpotBalanceRaw {
|
|
256
256
|
a: string;
|
|
257
257
|
f: numberInString;
|
|
@@ -603,6 +603,7 @@ export interface WsMessageMarkPriceUpdateEventFormatted extends WsSharedBase {
|
|
|
603
603
|
markPrice: number;
|
|
604
604
|
settlePriceEstimate: number;
|
|
605
605
|
indexPrice?: number;
|
|
606
|
+
/** Note this is in decimal format (e.g. 0.0004 === 0.04%). Multiply by 100 to get funding rate percent value */
|
|
606
607
|
fundingRate: number | '';
|
|
607
608
|
nextFundingTime: number;
|
|
608
609
|
}
|