@stoqey/ib 1.2.16 → 1.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,11 +5,12 @@ import { Contract } from "./contract";
5
5
  */
6
6
  export declare class Future implements Contract {
7
7
  symbol: string;
8
- expiry: string;
9
- currency?: string;
10
- exchange?: string;
11
- multiplier?: number;
12
- constructor(symbol: string, expiry: string, currency?: string, exchange?: string, multiplier?: number);
8
+ localSymbol: string;
9
+ lastTradeDateOrContractMonth: string;
10
+ exchange: string;
11
+ multiplier: number;
12
+ currency: string;
13
+ constructor(symbol: string, localSymbol: string, lastTradeDateOrContractMonth: string, exchange: string, multiplier: number, currency: string);
13
14
  secType: SecType;
14
15
  }
15
16
  export default Future;
@@ -9,16 +9,14 @@ const sec_type_1 = __importDefault(require("../data/enum/sec-type"));
9
9
  * A Future Option Contract
10
10
  */
11
11
  class Future {
12
- constructor(symbol, expiry, currency, exchange, multiplier) {
13
- var _a, _b;
12
+ constructor(symbol, localSymbol, lastTradeDateOrContractMonth, exchange, multiplier, currency) {
14
13
  this.symbol = symbol;
15
- this.expiry = expiry;
16
- this.currency = currency;
14
+ this.localSymbol = localSymbol;
15
+ this.lastTradeDateOrContractMonth = lastTradeDateOrContractMonth;
17
16
  this.exchange = exchange;
18
17
  this.multiplier = multiplier;
18
+ this.currency = currency;
19
19
  this.secType = sec_type_1.default.FUT;
20
- this.currency = (_a = this.currency) !== null && _a !== void 0 ? _a : "USD";
21
- this.exchange = (_b = this.exchange) !== null && _b !== void 0 ? _b : "ONE";
22
20
  }
23
21
  }
24
22
  exports.Future = Future;
@@ -1 +1 @@
1
- {"version":3,"file":"future.js","sourceRoot":"","sources":["../../../src/api/contract/future.ts"],"names":[],"mappings":";;;;;;AAAA,qEAA4C;AAG5C;;GAEG;AACH,MAAa,MAAM;IACjB,YACS,MAAc,EACd,MAAc,EACd,QAAiB,EACjB,QAAiB,EACjB,UAAmB;;QAJnB,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAS;QACjB,aAAQ,GAAR,QAAQ,CAAS;QACjB,eAAU,GAAV,UAAU,CAAS;QAMrB,YAAO,GAAG,kBAAO,CAAC,GAAG,CAAC;QAJ3B,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,KAAK,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,KAAK,CAAC;IACzC,CAAC;CAGF;AAbD,wBAaC;AAED,kBAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"future.js","sourceRoot":"","sources":["../../../src/api/contract/future.ts"],"names":[],"mappings":";;;;;;AAAA,qEAA4C;AAG5C;;GAEG;AACH,MAAa,MAAM;IACjB,YACS,MAAc,EACd,WAAmB,EACnB,4BAAoC,EACpC,QAAgB,EAChB,UAAkB,EAClB,QAAgB;QALhB,WAAM,GAAN,MAAM,CAAQ;QACd,gBAAW,GAAX,WAAW,CAAQ;QACnB,iCAA4B,GAA5B,4BAA4B,CAAQ;QACpC,aAAQ,GAAR,QAAQ,CAAQ;QAChB,eAAU,GAAV,UAAU,CAAQ;QAClB,aAAQ,GAAR,QAAQ,CAAQ;QAGlB,YAAO,GAAG,kBAAO,CAAC,GAAG,CAAC;IAF1B,CAAC;CAGL;AAXD,wBAWC;AAED,kBAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stoqey/ib",
3
3
  "private": false,
4
- "version": "1.2.16",
4
+ "version": "1.2.17",
5
5
  "description": "Interactive Brokers TWS/IB Gateway API client library for Node.js (TS)",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",