@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
|
-
|
|
9
|
-
|
|
10
|
-
exchange
|
|
11
|
-
multiplier
|
|
12
|
-
|
|
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,
|
|
13
|
-
var _a, _b;
|
|
12
|
+
constructor(symbol, localSymbol, lastTradeDateOrContractMonth, exchange, multiplier, currency) {
|
|
14
13
|
this.symbol = symbol;
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
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,
|
|
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