UNPKG

@stoqey/ibkr

Version:

NodeJS Interactive Brokers wrapper & utilities using @stoqey/ib

11 lines 566 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSymbolKey = void 0; var getSymbolKey = function (contract) { if (!contract) { return null; } return "".concat(contract.symbol).concat(!!(contract === null || contract === void 0 ? void 0 : contract.secType) ? "-".concat(contract.secType) : "").concat(!!(contract === null || contract === void 0 ? void 0 : contract.lastTradeDate) ? "-".concat(contract.lastTradeDate) : ''); }; exports.getSymbolKey = getSymbolKey; //# sourceMappingURL=instrument.utils.js.map