Skip to content

Commit

Permalink
Merge branch 'master' into v167
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Aug 31, 2023
2 parents f9a9ddb + 395d943 commit 34617cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stoqey/ib",
"version": "1.3.4",
"version": "1.3.5",
"private": false,
"description": "Interactive Brokers TWS/IB Gateway API client library for Node.js (TS)",
"keywords": [
Expand Down
6 changes: 5 additions & 1 deletion src/api/contract/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Contract } from "./contract";
export class Option implements Contract {
constructor(
public symbol: string,
public lastTradeDateOrContractMonth: string,
public expiry: string,
public strike: number,
public right: OptionType,
public exchange?: string,
Expand All @@ -20,6 +20,10 @@ export class Option implements Contract {

public secType = SecType.OPT;
public multiplier = 100;

public get lastTradeDateOrContractMonth(): string {
return this.expiry;
}
}

export default Option;

0 comments on commit 34617cb

Please sign in to comment.