binance 2.6.0 → 2.6.1
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/lib/logger.js +7 -8
- package/lib/logger.js.map +1 -1
- package/lib/types/websockets.d.ts +3 -0
- package/package.json +1 -1
package/lib/logger.js
CHANGED
|
@@ -2,22 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DefaultLogger = void 0;
|
|
4
4
|
exports.DefaultLogger = {
|
|
5
|
-
silly: (...params) => {
|
|
6
|
-
},
|
|
5
|
+
silly: (...params) => { },
|
|
7
6
|
debug: (...params) => {
|
|
8
|
-
console.log(params);
|
|
7
|
+
console.log(new Date(), params);
|
|
9
8
|
},
|
|
10
9
|
notice: (...params) => {
|
|
11
|
-
console.log(params);
|
|
10
|
+
console.log(new Date(), params);
|
|
12
11
|
},
|
|
13
12
|
info: (...params) => {
|
|
14
|
-
console.info(params);
|
|
13
|
+
console.info(new Date(), params);
|
|
15
14
|
},
|
|
16
15
|
warning: (...params) => {
|
|
17
|
-
console.error(params);
|
|
16
|
+
console.error(new Date(), params);
|
|
18
17
|
},
|
|
19
18
|
error: (...params) => {
|
|
20
|
-
console.error(params);
|
|
21
|
-
}
|
|
19
|
+
console.error(new Date(), params);
|
|
20
|
+
},
|
|
22
21
|
};
|
|
23
22
|
//# sourceMappingURL=logger.js.map
|
package/lib/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAG;IAC3B,KAAK,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAG;IAC3B,KAAK,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE,GAAE,CAAC;IACzC,KAAK,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE;QACpC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IACD,MAAM,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE;QACrC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IACD,IAAI,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE;QACnC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;IACD,OAAO,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE;QACtC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;IACD,KAAK,EAAE,CAAC,GAAG,MAAiB,EAAQ,EAAE;QACpC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;CACF,CAAC"}
|
|
@@ -599,6 +599,9 @@ export interface WsMessageFuturesUserDataTradeUpdateEventFormatted extends WsSha
|
|
|
599
599
|
trailingStopActivationPrice: number;
|
|
600
600
|
trailingStopCallbackRate: number;
|
|
601
601
|
realisedProfit: number;
|
|
602
|
+
pP?: boolean;
|
|
603
|
+
si?: number;
|
|
604
|
+
ss?: number;
|
|
602
605
|
};
|
|
603
606
|
}
|
|
604
607
|
export interface WsMessageFuturesUserDataAccountConfigUpdateEventRaw extends WsSharedBase {
|
package/package.json
CHANGED