Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@binquant/exchange

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binquant/exchange - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

lib/binance/index.js
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc