Skip to content

Commit

Permalink
fix(quote,quoteSummary): support FUTURE type + tests (closes #449)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Apr 27, 2022
1 parent 70327fb commit 56b664b
Show file tree
Hide file tree
Showing 41 changed files with 3,723 additions and 4 deletions.
353 changes: 350 additions & 3 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2914,6 +2914,332 @@
"triggerable"
]
},
"QuoteFuture": {
"type": "object",
"properties": {
"language": {
"type": "string"
},
"region": {
"type": "string"
},
"quoteType": {
"type": "string",
"const": "FUTURE"
},
"typeDisp": {
"type": "string"
},
"quoteSourceName": {
"type": "string"
},
"triggerable": {
"type": "boolean"
},
"currency": {
"type": "string"
},
"customPriceAlertConfidence": {
"type": "string"
},
"marketState": {
"type": "string",
"enum": [
"REGULAR",
"CLOSED",
"PRE",
"PREPRE",
"POST",
"POSTPOST"
]
},
"tradeable": {
"type": "boolean"
},
"exchange": {
"type": "string"
},
"shortName": {
"type": "string"
},
"longName": {
"type": "string"
},
"messageBoardId": {
"type": "string"
},
"exchangeTimezoneName": {
"type": "string"
},
"exchangeTimezoneShortName": {
"type": "string"
},
"gmtOffSetMilliseconds": {
"yahooFinanceType": "number"
},
"market": {
"type": "string"
},
"esgPopulated": {
"type": "boolean"
},
"fiftyTwoWeekLowChange": {
"yahooFinanceType": "number"
},
"fiftyTwoWeekLowChangePercent": {
"yahooFinanceType": "number"
},
"fiftyTwoWeekRange": {
"yahooFinanceType": "TwoNumberRange"
},
"fiftyTwoWeekHighChange": {
"yahooFinanceType": "number"
},
"fiftyTwoWeekHighChangePercent": {
"yahooFinanceType": "number"
},
"fiftyTwoWeekLow": {
"yahooFinanceType": "number"
},
"fiftyTwoWeekHigh": {
"yahooFinanceType": "number"
},
"dividendDate": {
"yahooFinanceType": "date"
},
"earningsTimestamp": {
"yahooFinanceType": "date"
},
"earningsTimestampStart": {
"yahooFinanceType": "date"
},
"earningsTimestampEnd": {
"yahooFinanceType": "date"
},
"trailingAnnualDividendRate": {
"yahooFinanceType": "number"
},
"trailingPE": {
"yahooFinanceType": "number"
},
"trailingAnnualDividendYield": {
"yahooFinanceType": "number"
},
"epsTrailingTwelveMonths": {
"yahooFinanceType": "number"
},
"epsForward": {
"yahooFinanceType": "number"
},
"epsCurrentYear": {
"yahooFinanceType": "number"
},
"priceEpsCurrentYear": {
"yahooFinanceType": "number"
},
"sharesOutstanding": {
"yahooFinanceType": "number"
},
"bookValue": {
"yahooFinanceType": "number"
},
"fiftyDayAverage": {
"yahooFinanceType": "number"
},
"fiftyDayAverageChange": {
"yahooFinanceType": "number"
},
"fiftyDayAverageChangePercent": {
"yahooFinanceType": "number"
},
"twoHundredDayAverage": {
"yahooFinanceType": "number"
},
"twoHundredDayAverageChange": {
"yahooFinanceType": "number"
},
"twoHundredDayAverageChangePercent": {
"yahooFinanceType": "number"
},
"marketCap": {
"yahooFinanceType": "number"
},
"forwardPE": {
"yahooFinanceType": "number"
},
"priceToBook": {
"yahooFinanceType": "number"
},
"sourceInterval": {
"yahooFinanceType": "number"
},
"exchangeDataDelayedBy": {
"yahooFinanceType": "number"
},
"firstTradeDateMilliseconds": {
"yahooFinanceType": "DateInMs"
},
"priceHint": {
"yahooFinanceType": "number"
},
"postMarketChangePercent": {
"yahooFinanceType": "number"
},
"postMarketTime": {
"yahooFinanceType": "date"
},
"postMarketPrice": {
"yahooFinanceType": "number"
},
"postMarketChange": {
"yahooFinanceType": "number"
},
"regularMarketChange": {
"yahooFinanceType": "number"
},
"regularMarketChangePercent": {
"yahooFinanceType": "number"
},
"regularMarketTime": {
"yahooFinanceType": "date"
},
"regularMarketPrice": {
"yahooFinanceType": "number"
},
"regularMarketDayHigh": {
"yahooFinanceType": "number"
},
"regularMarketDayRange": {
"yahooFinanceType": "TwoNumberRange"
},
"regularMarketDayLow": {
"yahooFinanceType": "number"
},
"regularMarketVolume": {
"yahooFinanceType": "number"
},
"regularMarketPreviousClose": {
"yahooFinanceType": "number"
},
"preMarketChange": {
"yahooFinanceType": "number"
},
"preMarketChangePercent": {
"yahooFinanceType": "number"
},
"preMarketTime": {
"yahooFinanceType": "date"
},
"preMarketPrice": {
"yahooFinanceType": "number"
},
"bid": {
"yahooFinanceType": "number"
},
"ask": {
"yahooFinanceType": "number"
},
"bidSize": {
"yahooFinanceType": "number"
},
"askSize": {
"yahooFinanceType": "number"
},
"fullExchangeName": {
"type": "string"
},
"financialCurrency": {
"type": "string"
},
"regularMarketOpen": {
"yahooFinanceType": "number"
},
"averageDailyVolume3Month": {
"yahooFinanceType": "number"
},
"averageDailyVolume10Day": {
"yahooFinanceType": "number"
},
"displayName": {
"type": "string"
},
"symbol": {
"type": "string"
},
"underlyingSymbol": {
"type": "string"
},
"ytdReturn": {
"yahooFinanceType": "number"
},
"trailingThreeMonthReturns": {
"yahooFinanceType": "number"
},
"trailingThreeMonthNavReturns": {
"yahooFinanceType": "number"
},
"ipoExpectedDate": {
"yahooFinanceType": "date"
},
"newListingDate": {
"yahooFinanceType": "date"
},
"nameChangeDate": {
"yahooFinanceType": "date"
},
"prevName": {
"type": "string"
},
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
},
"openInterest": {
"yahooFinanceType": "number"
},
"headSymbolAsString": {
"type": "string"
},
"contractSymbol": {
"type": "boolean"
},
"underlyingExchangeSymbol": {
"type": "string"
},
"expireDate": {
"yahooFinanceType": "date"
},
"expireIsoDate": {
"yahooFinanceType": "number"
}
},
"required": [
"contractSymbol",
"esgPopulated",
"exchange",
"exchangeDataDelayedBy",
"exchangeTimezoneName",
"exchangeTimezoneShortName",
"expireDate",
"expireIsoDate",
"fullExchangeName",
"gmtOffSetMilliseconds",
"headSymbolAsString",
"language",
"market",
"marketState",
"priceHint",
"quoteType",
"region",
"sourceInterval",
"symbol",
"tradeable",
"triggerable",
"underlyingExchangeSymbol"
]
},
"QuoteIndex": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3860,6 +4186,9 @@
{
"$ref": "#/definitions/QuoteEquity"
},
{
"$ref": "#/definitions/QuoteFuture"
},
{
"$ref": "#/definitions/QuoteIndex"
},
Expand Down Expand Up @@ -3973,9 +4302,12 @@
"averageAnalystRating",
"pageViewGrowthWeekly",
"openInterest",
"strike",
"headSymbolAsString",
"contractSymbol",
"underlyingExchangeSymbol",
"expireDate",
"expireIsoDate"
"expireIsoDate",
"strike"
]
},
"ResultType": {
Expand Down Expand Up @@ -6442,7 +6774,10 @@
"type": "string"
},
"underlyingSymbol": {
"type": "null"
"type": [
"null",
"string"
]
},
"shortName": {
"type": [
Expand Down Expand Up @@ -6494,6 +6829,12 @@
},
"circulatingSupply": {
"yahooFinanceType": "number"
},
"expireDate": {
"yahooFinanceType": "date"
},
"openInterest": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down Expand Up @@ -6848,6 +7189,12 @@
},
"startDate": {
"yahooFinanceType": "date"
},
"expireDate": {
"yahooFinanceType": "date"
},
"openInterest": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down
Loading

0 comments on commit 56b664b

Please sign in to comment.