Skip to content

Commit

Permalink
fix(options): currency, percentChange optional e.g. PYPL (fixes #561)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Nov 16, 2022
1 parent d20b6c2 commit 3c99145
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4795,10 +4795,8 @@
"required": [
"contractSymbol",
"strike",
"currency",
"lastPrice",
"change",
"percentChange",
"contractSize",
"expiration",
"lastTradeDate",
Expand Down
1 change: 1 addition & 0 deletions src/modules/options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe("options", () => {
],
add: [
"EBAY", // Missing "ask" (#560)
"PYPL",
],
});

Expand Down
4 changes: 2 additions & 2 deletions src/modules/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export interface CallOrPut {
[key: string]: any;
contractSymbol: string;
strike: number;
currency: string;
currency?: string;
lastPrice: number;
change: number;
percentChange: number;
percentChange?: number;
volume?: number;
openInterest?: number;
bid?: number;
Expand Down

0 comments on commit 3c99145

Please sign in to comment.