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

@stoqey/ib

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoqey/ib - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

4

dist/common/errorCode.d.ts

@@ -174,3 +174,5 @@ /**

FAIL_SEND_CAN_WSH_EVENT_DATA = 576,
INVALID_SYMBOL = 579
INVALID_SYMBOL = 579,
PART_OF_REQUESTED_DATA_NOT_SUBSCRIBED = 10090,
DISPLAYING_DELAYED_DATA = 10167
}

@@ -180,3 +180,7 @@ "use strict";

ErrorCode[ErrorCode["INVALID_SYMBOL"] = 579] = "INVALID_SYMBOL";
/* Part of requested market data is not subscribed. */
ErrorCode[ErrorCode["PART_OF_REQUESTED_DATA_NOT_SUBSCRIBED"] = 10090] = "PART_OF_REQUESTED_DATA_NOT_SUBSCRIBED";
/* Requested market data is not subscribed. Displaying delayed market data. */
ErrorCode[ErrorCode["DISPLAYING_DELAYED_DATA"] = 10167] = "DISPLAYING_DELAYED_DATA";
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
//# sourceMappingURL=errorCode.js.map

@@ -52,3 +52,3 @@ "use strict";

this.connect(this.cmdLineArgs.watch ? 10000 : 0);
this.api.setMarketDataType(api_next_1.MarketDataType.FROZEN);
this.api.setMarketDataType(api_next_1.MarketDataType.DELAYED);
this.api

@@ -80,3 +80,4 @@ .getMarketDataSingle({

.catch((err) => {
this.error(`getMarketDataSingle failed with '${err.error.message}'`);
this.error(`getMarketDataSingle failed with '${err.error.message}' (${err.code})`);
this.stop();
});

@@ -83,0 +84,0 @@ }

@@ -52,3 +52,3 @@ "use strict";

this.connect(this.cmdLineArgs.watch ? 10000 : 0);
this.api.setMarketDataType(api_next_1.MarketDataType.FROZEN);
this.api.setMarketDataType(api_next_1.MarketDataType.DELAYED);
this.subscription$ = this.api

@@ -88,5 +88,4 @@ .getMarketData({

error: (err) => {
var _a;
(_a = this.subscription$) === null || _a === void 0 ? void 0 : _a.unsubscribe();
this.error(`getMarketData failed with '${err.error.message}'`);
// this.subscription$?.unsubscribe();
this.error(`getMarketData failed with '${err.error.message}' (${err.code})`);
},

@@ -93,0 +92,0 @@ });

{
"name": "@stoqey/ib",
"private": false,
"version": "1.3.2",
"version": "1.3.3",
"description": "Interactive Brokers TWS/IB Gateway API client library for Node.js (TS)",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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