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.2.35 to 1.2.36

dist/api/historical/HistoricalSession.d.ts

47

dist/api/api.js

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

/** Maximum supported version. */
exports.MAX_SUPPORTED_SERVER_VERSION = min_server_version_1.default.PRICE_MGMT_ALGO;
exports.MAX_SUPPORTED_SERVER_VERSION = min_server_version_1.default.HISTORICAL_SCHEDULE;
/** Minimum supported version. */

@@ -367,4 +367,4 @@ exports.MIN_SERVER_VER_SUPPORTED = 38;

*/
replaceFA(faDataType, xml) {
this.controller.schedule(() => this.controller.encoder.replaceFA(faDataType, xml));
replaceFA(reqId, faDataType, xml) {
this.controller.schedule(() => this.controller.encoder.replaceFA(reqId, faDataType, xml));
return this;

@@ -501,2 +501,43 @@ }

/**
* Requests metadata from the WSH calendar.
*
* @param reqId The unique request identifier.
*
* @see [[reqCancelWshMetaData]]
*/
reqWshMetaData(reqId) {
this.controller.schedule(() => this.controller.encoder.reqWshMetaData(reqId));
return this;
}
/**
* Cancels pending request for WSH metadata.
*
* @param reqId The unique request identifier.
*/
reqCancelWshMetaData(reqId) {
this.controller.schedule(() => this.controller.encoder.reqCancelWshMetaData(reqId));
return this;
}
/**
* Requests event data from the wSH calendar.
*
* @param reqId The unique request identifier.
* @param conId Contract id of ticker.
*
* @see [[reqCancelWshEventData]]
*/
reqWshEventData(reqId, conId) {
this.controller.schedule(() => this.controller.encoder.reqWshEventData(reqId, conId));
return this;
}
/**
* Cancels pending WSH event data request.
*
* @param reqId The unique request identifier.
*/
reqCancelWshEventData(reqId) {
this.controller.schedule(() => this.controller.encoder.reqCancelWshEventData(reqId));
return this;
}
/**
* Requests contract information.

@@ -503,0 +544,0 @@ * This method will provide all the contracts matching the contract provided.

20

dist/api/contract/contractDetails.d.ts

@@ -91,10 +91,2 @@ import TagValue from "../data/container/tag-value";

/**
* MD Size Multiplier.
*
* Returns the size multiplier for values returned to tickSize from a market data request.
*
* Generally 100 for US stocks and 1 for other instruments.
*/
mdSizeMultiplier?: number;
/**
* Aggregated group Indicates the smart-routing group to which a contract belongs.

@@ -249,3 +241,15 @@ *

notes?: string;
/**
* Order's minimal size.
*/
minSize?: number;
/**
* Order's size increment.
*/
sizeIncrement?: number;
/**
* Order's suggested size increment.
*/
suggestedSizeIncrement?: number;
}
export default ContractDetails;

@@ -187,3 +187,9 @@ /**

/** Returns the requested historical data bars. */
historicalData = "historicalData"
historicalData = "historicalData",
/** Returns meta data from the WSH calendar. */
wshMetaData = "wshMetaData",
/** Returns calendar events from the WSH. */
wshEventData = "wshEventData",
/** Returns historical schedule. */
historicalSchedule = "historicalSchedule"
}

@@ -192,3 +192,9 @@ "use strict";

EventName["historicalData"] = "historicalData";
/** Returns meta data from the WSH calendar. */
EventName["wshMetaData"] = "wshMetaData";
/** Returns calendar events from the WSH. */
EventName["wshEventData"] = "wshEventData";
/** Returns historical schedule. */
EventName["historicalSchedule"] = "historicalSchedule";
})(EventName = exports.EventName || (exports.EventName = {}));
//# sourceMappingURL=event-name.js.map

@@ -98,4 +98,18 @@ /**

REQ_COMPLETED_ORDERS = 150,
PRICE_MGMT_ALGO = 151
PRICE_MGMT_ALGO = 151,
STOCK_TYPE = 152,
ENCODE_MSG_ASCII7 = 153,
SEND_ALL_FAMILY_CODES = 154,
NO_DEFAULT_OPEN_CLOSE = 155,
PRICE_BASED_VOLATILITY = 156,
REPLACE_FA_END = 157,
DURATION = 158,
MARKET_DATA_IN_SHARES = 159,
POST_TO_ATS = 160,
WSHE_CALENDAR = 161,
AUTO_CANCEL_PARENT = 162,
FRACTIONAL_SIZE_SUPPORT = 163,
SIZE_RULES = 164,
HISTORICAL_SCHEDULE = 165
}
export default MIN_SERVER_VER;

@@ -103,4 +103,18 @@ "use strict";

MIN_SERVER_VER[MIN_SERVER_VER["PRICE_MGMT_ALGO"] = 151] = "PRICE_MGMT_ALGO";
MIN_SERVER_VER[MIN_SERVER_VER["STOCK_TYPE"] = 152] = "STOCK_TYPE";
MIN_SERVER_VER[MIN_SERVER_VER["ENCODE_MSG_ASCII7"] = 153] = "ENCODE_MSG_ASCII7";
MIN_SERVER_VER[MIN_SERVER_VER["SEND_ALL_FAMILY_CODES"] = 154] = "SEND_ALL_FAMILY_CODES";
MIN_SERVER_VER[MIN_SERVER_VER["NO_DEFAULT_OPEN_CLOSE"] = 155] = "NO_DEFAULT_OPEN_CLOSE";
MIN_SERVER_VER[MIN_SERVER_VER["PRICE_BASED_VOLATILITY"] = 156] = "PRICE_BASED_VOLATILITY";
MIN_SERVER_VER[MIN_SERVER_VER["REPLACE_FA_END"] = 157] = "REPLACE_FA_END";
MIN_SERVER_VER[MIN_SERVER_VER["DURATION"] = 158] = "DURATION";
MIN_SERVER_VER[MIN_SERVER_VER["MARKET_DATA_IN_SHARES"] = 159] = "MARKET_DATA_IN_SHARES";
MIN_SERVER_VER[MIN_SERVER_VER["POST_TO_ATS"] = 160] = "POST_TO_ATS";
MIN_SERVER_VER[MIN_SERVER_VER["WSHE_CALENDAR"] = 161] = "WSHE_CALENDAR";
MIN_SERVER_VER[MIN_SERVER_VER["AUTO_CANCEL_PARENT"] = 162] = "AUTO_CANCEL_PARENT";
MIN_SERVER_VER[MIN_SERVER_VER["FRACTIONAL_SIZE_SUPPORT"] = 163] = "FRACTIONAL_SIZE_SUPPORT";
MIN_SERVER_VER[MIN_SERVER_VER["SIZE_RULES"] = 164] = "SIZE_RULES";
MIN_SERVER_VER[MIN_SERVER_VER["HISTORICAL_SCHEDULE"] = 165] = "HISTORICAL_SCHEDULE";
})(MIN_SERVER_VER = exports.MIN_SERVER_VER || (exports.MIN_SERVER_VER = {}));
exports.default = MIN_SERVER_VER;
//# sourceMappingURL=min-server-version.js.map

@@ -599,3 +599,7 @@ import SoftDollarTier from "../data/container/soft-dollar-tier";

usePriceMgmtAlgo?: boolean;
/** Specifies the duration of the order. Format: yyyymmdd hh:mm:ss TZ. For GTD orders. */
duration?: number;
/** Value must be positive, and it is number of seconds that SMART order would be parked for at IBKRATS before being routed to exchange. */
postToAts?: number;
}
export default Order;

@@ -165,3 +165,12 @@ /**

/** Request Completed Orders Sending Error. */
FAIL_SEND_REQ_COMPLETED_ORDERS = 572
FAIL_SEND_REQ_COMPLETED_ORDERS = 572,
/** Request WSH Meta Data Sending Error. */
FAIL_SEND_REQ_WSH_META_DATA = 573,
/** Cancel WSH Meta Data Sending Error */
FAIL_SEND_CAN_WSH_META_DATA = 574,
/** Request WSH Event Data Sending Error */
FAIL_SEND_REQ_WSH_EVENT_DATA = 575,
/** Cancel WSH Event Data Sending Error */
FAIL_SEND_CAN_WSH_EVENT_DATA = 576,
INVALID_SYMBOL = 579
}

@@ -170,3 +170,13 @@ "use strict";

ErrorCode[ErrorCode["FAIL_SEND_REQ_COMPLETED_ORDERS"] = 572] = "FAIL_SEND_REQ_COMPLETED_ORDERS";
/** Request WSH Meta Data Sending Error. */
ErrorCode[ErrorCode["FAIL_SEND_REQ_WSH_META_DATA"] = 573] = "FAIL_SEND_REQ_WSH_META_DATA";
/** Cancel WSH Meta Data Sending Error */
ErrorCode[ErrorCode["FAIL_SEND_CAN_WSH_META_DATA"] = 574] = "FAIL_SEND_CAN_WSH_META_DATA";
/** Request WSH Event Data Sending Error */
ErrorCode[ErrorCode["FAIL_SEND_REQ_WSH_EVENT_DATA"] = 575] = "FAIL_SEND_REQ_WSH_EVENT_DATA";
/** Cancel WSH Event Data Sending Error */
ErrorCode[ErrorCode["FAIL_SEND_CAN_WSH_EVENT_DATA"] = 576] = "FAIL_SEND_CAN_WSH_EVENT_DATA";
/* Invalid symbol in string */
ErrorCode[ErrorCode["INVALID_SYMBOL"] = 579] = "INVALID_SYMBOL";
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
//# sourceMappingURL=errorCode.js.map

@@ -91,2 +91,3 @@ import { EventName } from "../../api/data/enum/event-name";

private get serverVersion();
private decodeUnicodeEscapedString;
/**

@@ -121,2 +122,8 @@ * Read a string token from queue.

/**
* Read a token from queue and return it as integer value.
*
* Returns Number.MAX_VALUE if the token is empty.
*/
readIntMax(): number;
/**
* Read a token from queue and return it as integer value.

@@ -428,2 +435,18 @@ *

/**
* Decode a REPLACE_FA_END message from data queue and a emit replaceFAEnd event.
*/
private decodeMsg_REPLACE_FA_END;
/**
* Decode a WSH_META_DATA message from data queue and a emit wshMetaData event.
*/
private decodeMsg_WSH_META_DATA;
/**
* Decode a WSH_EVENT_DATA message from data queue and a emit wshEventData event.
*/
private decodeMsg_WSH_EVENT_DATA;
/**
* Decode a HISTORICAL_SCHEDULE message from data queue and a emit historicalSchedule event.
*/
private decodeMsg_HISTORICAL_SCHEDULE;
/**
* Decode a [[Contract]] object from data queue.

@@ -430,0 +453,0 @@ */

@@ -91,3 +91,7 @@ import { Contract } from "../../api/contract/contract";

CANCEL_TICK_BY_TICK_DATA = 98,
REQ_COMPLETED_ORDERS = 99
REQ_COMPLETED_ORDERS = 99,
REQ_WSH_META_DATA = 100,
CANCEL_WSH_META_DATA = 101,
REQ_WSH_EVENT_DATA = 102,
CANCEL_WSH_EVENT_DATA = 103
}

@@ -229,3 +233,3 @@ /**

*/
replaceFA(faDataType: FADataType, xml: string): void;
replaceFA(reqId: number, faDataType: FADataType, xml: string): void;
/**

@@ -302,2 +306,3 @@ * Encode a REQ_ACCOUNT_SUMMARY message to an array of tokens.

*/
encodeReqTickByTickData(reqId: number, contract: Contract, tickType: TickByTickDataType, numberOfTicks: number, ignoreSize: boolean): unknown[];
reqTickByTickData(reqId: number, contract: Contract, tickType: TickByTickDataType, numberOfTicks: number, ignoreSize: boolean): void;

@@ -440,2 +445,6 @@ /**

reqCompletedOrders(apiOnly: boolean): void;
reqWshMetaData(reqId: number): void;
reqCancelWshMetaData(reqId: number): void;
reqWshEventData(reqId: number, conId: number): void;
reqCancelWshEventData(reqId: number): void;
}

@@ -83,3 +83,7 @@ /**

COMPLETED_ORDER = 101,
COMPLETED_ORDERS_END = 102
COMPLETED_ORDERS_END = 102,
REPLACE_FA_END = 103,
WSH_META_DATA = 104,
WSH_EVENT_DATA = 105,
HISTORICAL_SCHEDULE = 106
}

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

IN_MSG_ID[IN_MSG_ID["COMPLETED_ORDERS_END"] = 102] = "COMPLETED_ORDERS_END";
IN_MSG_ID[IN_MSG_ID["REPLACE_FA_END"] = 103] = "REPLACE_FA_END";
IN_MSG_ID[IN_MSG_ID["WSH_META_DATA"] = 104] = "WSH_META_DATA";
IN_MSG_ID[IN_MSG_ID["WSH_EVENT_DATA"] = 105] = "WSH_EVENT_DATA";
IN_MSG_ID[IN_MSG_ID["HISTORICAL_SCHEDULE"] = 106] = "HISTORICAL_SCHEDULE";
})(IN_MSG_ID = exports.IN_MSG_ID || (exports.IN_MSG_ID = {}));
//# sourceMappingURL=in-msg-id.js.map
{
"name": "@stoqey/ib",
"private": false,
"version": "1.2.35",
"version": "1.2.36",
"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

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 too big to display

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