@binquant/exchange
Advanced tools
Comparing version 1.0.2 to 1.0.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./client"), exports); | ||
tslib_1.__exportStar(require("./client"), exports); |
import { CurrencyPair, TradeType } from '../../models'; | ||
export declare const createOrderBooks: () => { | ||
get: (tradeType: TradeType, pair: CurrencyPair, level?: number) => { | ||
asks: [ | ||
number, | ||
number | ||
][]; | ||
bids: [ | ||
number, | ||
number | ||
][]; | ||
asks: [number, number][]; | ||
bids: [number, number][]; | ||
timestamp: number; | ||
@@ -16,7 +10,5 @@ }; | ||
update: (tradeType: TradeType, pair: CurrencyPair, diff: { | ||
bids: [ | ||
]; | ||
asks: [ | ||
]; | ||
bids: []; | ||
asks: []; | ||
}) => void; | ||
}; |
@@ -15,3 +15,3 @@ "use strict"; | ||
this.helper = new helper_1.Helper(); | ||
this.orderbooks = (0, createOrderBooks_1.createOrderBooks)(); | ||
this.orderbooks = createOrderBooks_1.createOrderBooks(); | ||
this.isReady = false; | ||
@@ -18,0 +18,0 @@ // |
@@ -32,3 +32,3 @@ "use strict"; | ||
}; | ||
const response = await (0, axios_1.default)({ | ||
const response = await axios_1.default({ | ||
...config, | ||
@@ -35,0 +35,0 @@ headers, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./client"), exports); | ||
tslib_1.__exportStar(require("./client"), exports); |
@@ -7,10 +7,4 @@ export declare const createOrderbooks: () => { | ||
checksum: number; | ||
asks: [ | ||
number, | ||
number | ||
][]; | ||
bids: [ | ||
number, | ||
number | ||
][]; | ||
asks: [number, number][]; | ||
bids: [number, number][]; | ||
validationRequired?: boolean; | ||
@@ -17,0 +11,0 @@ sampleValidation?: boolean; |
@@ -91,3 +91,3 @@ "use strict"; | ||
} | ||
const _checksum = (0, crc32_1.default)(checkSumStr); | ||
const _checksum = crc32_1.default(checkSumStr); | ||
// const _diff = process.hrtime(time); | ||
@@ -94,0 +94,0 @@ // const nanoseconds = _diff[0] * 1e9 + _diff[1]; |
@@ -13,3 +13,3 @@ "use strict"; | ||
this.subscriber = new subscriber_1.Subscriber({ needLogin: true }); | ||
this.orderbooks = (0, orderbook_1.createOrderbooks)(); | ||
this.orderbooks = orderbook_1.createOrderbooks(); | ||
this.connect(); | ||
@@ -16,0 +16,0 @@ // @TODO |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./models"), exports); | ||
(0, tslib_1.__exportStar)(require("./client"), exports); | ||
(0, tslib_1.__exportStar)(require("./binance"), exports); | ||
(0, tslib_1.__exportStar)(require("./woo"), exports); | ||
(0, tslib_1.__exportStar)(require("./ftx"), exports); | ||
tslib_1.__exportStar(require("./models"), exports); | ||
tslib_1.__exportStar(require("./client"), exports); | ||
tslib_1.__exportStar(require("./binance"), exports); | ||
tslib_1.__exportStar(require("./woo"), exports); | ||
tslib_1.__exportStar(require("./ftx"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./market"), exports); | ||
(0, tslib_1.__exportStar)(require("./currency"), exports); | ||
(0, tslib_1.__exportStar)(require("./account"), exports); | ||
(0, tslib_1.__exportStar)(require("./order"), exports); | ||
(0, tslib_1.__exportStar)(require("./position"), exports); | ||
tslib_1.__exportStar(require("./market"), exports); | ||
tslib_1.__exportStar(require("./currency"), exports); | ||
tslib_1.__exportStar(require("./account"), exports); | ||
tslib_1.__exportStar(require("./order"), exports); | ||
tslib_1.__exportStar(require("./position"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./client"), exports); | ||
tslib_1.__exportStar(require("./client"), exports); |
{ | ||
"name": "@binquant/exchange", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Exchanges Client", | ||
@@ -114,4 +114,4 @@ "main": "lib/index.js", | ||
"@zcorky/is": "^1.0.7", | ||
"@zodash/doreamon": "^0.4.63", | ||
"@zodash/event": "^0.1.7", | ||
"@zodash/doreamon": "^1.0.0", | ||
"@zodash/event": "^0.1.8", | ||
"@zodash/match": "^0.1.8", | ||
@@ -118,0 +118,0 @@ "@zodash/signature": "^0.3.5", |
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
231731
6579
+ Added@zodash/doreamon@1.2.9(transitive)
+ Added@zodash/fs@0.0.24(transitive)
+ Added@zodash/i18n@0.0.21(transitive)
+ Added@zodash/jsonp@0.0.18(transitive)
+ Added@zodash/load-css@0.1.1(transitive)
+ Added@zodash/load-image@0.0.8(transitive)
+ Added@zodash/logger@1.0.6(transitive)
+ Added@zodash/open-directory@0.0.6(transitive)
+ Added@zodash/open-file@0.1.1(transitive)
+ Added@zodash/save-as@0.0.5(transitive)
+ Added@zodash/template@0.2.17(transitive)
+ Addedclassnames@2.3.1(transitive)
+ Addedimmer@9.0.21(transitive)
+ Addedis-hotkey@0.2.0(transitive)
- Removed@zodash/doreamon@0.4.66(transitive)
- Removed@zodash/fs@0.0.16(transitive)
- Removed@zodash/jsonp@0.0.12(transitive)
- Removed@zodash/load-css@0.0.7(transitive)
- Removed@zodash/load-image@0.0.5(transitive)
- Removed@zodash/save-as@0.0.2(transitive)
Updated@zodash/doreamon@^1.0.0
Updated@zodash/event@^0.1.8