@stoqey/ib
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -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
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
1476538
24200