diff --git a/schema.json b/schema.json index d43bae08..11608715 100644 --- a/schema.json +++ b/schema.json @@ -4795,10 +4795,8 @@ "required": [ "contractSymbol", "strike", - "currency", "lastPrice", "change", - "percentChange", "contractSize", "expiration", "lastTradeDate", diff --git a/src/modules/options.spec.ts b/src/modules/options.spec.ts index fc4ed74a..eb5511bf 100644 --- a/src/modules/options.spec.ts +++ b/src/modules/options.spec.ts @@ -13,6 +13,7 @@ describe("options", () => { ], add: [ "EBAY", // Missing "ask" (#560) + "PYPL", ], }); diff --git a/src/modules/options.ts b/src/modules/options.ts index 23ede02e..113d1436 100644 --- a/src/modules/options.ts +++ b/src/modules/options.ts @@ -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;