From 56b664bd46098f432a46716c6b6b83d29f9537f2 Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Wed, 27 Apr 2022 16:26:05 +0300 Subject: [PATCH] fix(quote,quoteSummary): support FUTURE type + tests (closes #449) --- schema.json | 353 +++++++++++++++++- src/modules/quote.ts | 10 + src/modules/quoteSummary-iface.ts | 10 +- src/modules/recommendationsBySymbol.spec.ts | 1 + .../chart-GC=F-2020-01-01-to-2020-01-03.json | 158 ++++++++ ...torical-GC=F-2020-01-01-to-2020-01-03.json | 73 ++++ tests/http/insights-GC=F.json | 78 ++++ tests/http/options-GC=F.json | 144 +++++++ tests/http/quote-GC=F.json | 137 +++++++ tests/http/quoteSummary-all-GC=F.json | 159 ++++++++ .../http/quoteSummary-assetProfile-GC=F.json | 81 ++++ ...quoteSummary-balanceSheetHistory-GC=F.json | 81 ++++ ...ary-balanceSheetHistoryQuarterly-GC=F.json | 81 ++++ .../quoteSummary-calendarEvents-GC=F.json | 81 ++++ ...Summary-cashflowStatementHistory-GC=F.json | 81 ++++ ...ashflowStatementHistoryQuarterly-GC=F.json | 81 ++++ ...uoteSummary-defaultKeyStatistics-GC=F.json | 81 ++++ tests/http/quoteSummary-earnings-GC=F.json | 81 ++++ .../quoteSummary-earningsHistory-GC=F.json | 81 ++++ .../http/quoteSummary-earningsTrend-GC=F.json | 81 ++++ .../http/quoteSummary-financialData-GC=F.json | 81 ++++ .../http/quoteSummary-fundOwnership-GC=F.json | 81 ++++ ...teSummary-incomeStatementHistory-GC=F.json | 81 ++++ ...-incomeStatementHistoryQuarterly-GC=F.json | 81 ++++ tests/http/quoteSummary-indexTrend-GC=F.json | 81 ++++ .../http/quoteSummary-industryTrend-GC=F.json | 81 ++++ .../quoteSummary-insiderHolders-GC=F.json | 81 ++++ ...quoteSummary-insiderTransactions-GC=F.json | 81 ++++ ...uoteSummary-institutionOwnership-GC=F.json | 81 ++++ .../quoteSummary-majorDirectHolders-GC=F.json | 81 ++++ ...oteSummary-majorHoldersBreakdown-GC=F.json | 81 ++++ ...Summary-netSharePurchaseActivity-GC=F.json | 81 ++++ tests/http/quoteSummary-price-GC=F.json | 107 ++++++ tests/http/quoteSummary-quoteType-GC=F.json | 93 +++++ ...quoteSummary-recommendationTrend-GC=F.json | 81 ++++ tests/http/quoteSummary-secFilings-GC=F.json | 81 ++++ .../http/quoteSummary-summaryDetail-GC=F.json | 111 ++++++ .../quoteSummary-summaryProfile-GC=F.json | 81 ++++ ...eSummary-upgradeDowngradeHistory-GC=F.json | 81 ++++ tests/http/search-GC=F.json | 186 +++++++++ tests/symbols.ts | 1 + 41 files changed, 3723 insertions(+), 4 deletions(-) create mode 100644 tests/http/chart-GC=F-2020-01-01-to-2020-01-03.json create mode 100644 tests/http/historical-GC=F-2020-01-01-to-2020-01-03.json create mode 100644 tests/http/insights-GC=F.json create mode 100644 tests/http/options-GC=F.json create mode 100644 tests/http/quote-GC=F.json create mode 100644 tests/http/quoteSummary-all-GC=F.json create mode 100644 tests/http/quoteSummary-assetProfile-GC=F.json create mode 100644 tests/http/quoteSummary-balanceSheetHistory-GC=F.json create mode 100644 tests/http/quoteSummary-balanceSheetHistoryQuarterly-GC=F.json create mode 100644 tests/http/quoteSummary-calendarEvents-GC=F.json create mode 100644 tests/http/quoteSummary-cashflowStatementHistory-GC=F.json create mode 100644 tests/http/quoteSummary-cashflowStatementHistoryQuarterly-GC=F.json create mode 100644 tests/http/quoteSummary-defaultKeyStatistics-GC=F.json create mode 100644 tests/http/quoteSummary-earnings-GC=F.json create mode 100644 tests/http/quoteSummary-earningsHistory-GC=F.json create mode 100644 tests/http/quoteSummary-earningsTrend-GC=F.json create mode 100644 tests/http/quoteSummary-financialData-GC=F.json create mode 100644 tests/http/quoteSummary-fundOwnership-GC=F.json create mode 100644 tests/http/quoteSummary-incomeStatementHistory-GC=F.json create mode 100644 tests/http/quoteSummary-incomeStatementHistoryQuarterly-GC=F.json create mode 100644 tests/http/quoteSummary-indexTrend-GC=F.json create mode 100644 tests/http/quoteSummary-industryTrend-GC=F.json create mode 100644 tests/http/quoteSummary-insiderHolders-GC=F.json create mode 100644 tests/http/quoteSummary-insiderTransactions-GC=F.json create mode 100644 tests/http/quoteSummary-institutionOwnership-GC=F.json create mode 100644 tests/http/quoteSummary-majorDirectHolders-GC=F.json create mode 100644 tests/http/quoteSummary-majorHoldersBreakdown-GC=F.json create mode 100644 tests/http/quoteSummary-netSharePurchaseActivity-GC=F.json create mode 100644 tests/http/quoteSummary-price-GC=F.json create mode 100644 tests/http/quoteSummary-quoteType-GC=F.json create mode 100644 tests/http/quoteSummary-recommendationTrend-GC=F.json create mode 100644 tests/http/quoteSummary-secFilings-GC=F.json create mode 100644 tests/http/quoteSummary-summaryDetail-GC=F.json create mode 100644 tests/http/quoteSummary-summaryProfile-GC=F.json create mode 100644 tests/http/quoteSummary-upgradeDowngradeHistory-GC=F.json create mode 100644 tests/http/search-GC=F.json diff --git a/schema.json b/schema.json index 58fde075..e317e454 100644 --- a/schema.json +++ b/schema.json @@ -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": { @@ -3860,6 +4186,9 @@ { "$ref": "#/definitions/QuoteEquity" }, + { + "$ref": "#/definitions/QuoteFuture" + }, { "$ref": "#/definitions/QuoteIndex" }, @@ -3973,9 +4302,12 @@ "averageAnalystRating", "pageViewGrowthWeekly", "openInterest", - "strike", + "headSymbolAsString", + "contractSymbol", + "underlyingExchangeSymbol", "expireDate", - "expireIsoDate" + "expireIsoDate", + "strike" ] }, "ResultType": { @@ -6442,7 +6774,10 @@ "type": "string" }, "underlyingSymbol": { - "type": "null" + "type": [ + "null", + "string" + ] }, "shortName": { "type": [ @@ -6494,6 +6829,12 @@ }, "circulatingSupply": { "yahooFinanceType": "number" + }, + "expireDate": { + "yahooFinanceType": "date" + }, + "openInterest": { + "yahooFinanceType": "number" } }, "required": [ @@ -6848,6 +7189,12 @@ }, "startDate": { "yahooFinanceType": "date" + }, + "expireDate": { + "yahooFinanceType": "date" + }, + "openInterest": { + "yahooFinanceType": "number" } }, "required": [ diff --git a/src/modules/quote.ts b/src/modules/quote.ts index b5f4e4ef..e56c2e90 100644 --- a/src/modules/quote.ts +++ b/src/modules/quote.ts @@ -147,6 +147,15 @@ export interface QuoteEquity extends QuoteBase { quoteType: "EQUITY"; } +export interface QuoteFuture extends QuoteBase { + quoteType: "FUTURE"; + headSymbolAsString: string; // "GC=F" + contractSymbol: boolean; // false + underlyingExchangeSymbol: string; // "GCM22.CMX" + expireDate: Date; // 1656374400 + expireIsoDate: number; // 2022 +} + export interface QuoteIndex extends QuoteBase { quoteType: "INDEX"; } @@ -169,6 +178,7 @@ export type Quote = | QuoteCurrency | QuoteEtf | QuoteEquity + | QuoteFuture | QuoteIndex | QuoteMutualfund | QuoteOption; diff --git a/src/modules/quoteSummary-iface.ts b/src/modules/quoteSummary-iface.ts index 4ebb0b9c..7359cc04 100644 --- a/src/modules/quoteSummary-iface.ts +++ b/src/modules/quoteSummary-iface.ts @@ -723,7 +723,7 @@ export interface Price { quoteType: string; symbol: string; - underlyingSymbol: null; + underlyingSymbol: null | string; // "GCM22.CMX" (from GC=F future) shortName: null | string; longName: null | string; @@ -739,6 +739,10 @@ export interface Price { volume24Hr?: number; volumeAllCurrencies?: number; circulatingSupply?: number; + + // futures + expireDate?: Date; // 1656374400, + openInterest?: number; // 444411, } export interface QuoteType { @@ -853,6 +857,10 @@ export interface SummaryDetail { volumeAllCurrencies?: number; // 62650314752 circulatingSupply?: number; // 18638932 startDate?: Date; // new Date(1367107200 * 1000) + + // futures + expireDate?: Date; // 1656374400, + openInterest?: number; // 444411, } export interface SummaryProfile { diff --git a/src/modules/recommendationsBySymbol.spec.ts b/src/modules/recommendationsBySymbol.spec.ts index 86a98f10..f925ab38 100644 --- a/src/modules/recommendationsBySymbol.spec.ts +++ b/src/modules/recommendationsBySymbol.spec.ts @@ -11,6 +11,7 @@ describe("recommendationsBySymbol", () => { // 404 Not Found "ADH", "BTC-USD", + "GC=F", ]; const symbols = testSymbols.filter((s) => !symbolsToSkip.includes(s)); it.each(symbols)("for symbol '%s'", async (symbol) => { diff --git a/tests/http/chart-GC=F-2020-01-01-to-2020-01-03.json b/tests/http/chart-GC=F-2020-01-01-to-2020-01-03.json new file mode 100644 index 00000000..91b20a6a --- /dev/null +++ b/tests/http/chart-GC=F-2020-01-01-to-2020-01-03.json @@ -0,0 +1,158 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v8/finance/chart/GC=F?useYfid=true&interval=1d&includePrePost=true&events=div%7Csplit%7Cearn&lang=en-US&period1=1577836800&period2=1578009600" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "cache-control": [ + "public, max-age=10, stale-while-revalidate=20" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "dcgn7nth6ig60" + ], + "x-yahoo-request-id": [ + "dcgn7nth6ig60" + ], + "x-request-id": [ + "e0280893-f297-9fa4-935b-bacc0ecc973a" + ], + "content-length": [ + "902" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-chart-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "chart": { + "result": [ + { + "meta": { + "currency": "USD", + "symbol": "GC=F", + "exchangeName": "CMX", + "instrumentType": "FUTURE", + "firstTradeDate": 967608000, + "regularMarketTime": 1651064423, + "gmtoffset": -14400, + "timezone": "EDT", + "exchangeTimezoneName": "America/New_York", + "regularMarketPrice": 1897.2, + "chartPreviousClose": 1519.5, + "priceHint": 2, + "currentTradingPeriod": { + "pre": { + "timezone": "EDT", + "start": 1651032000, + "end": 1651032000, + "gmtoffset": -14400 + }, + "regular": { + "timezone": "EDT", + "start": 1651032000, + "end": 1651118340, + "gmtoffset": -14400 + }, + "post": { + "timezone": "EDT", + "start": 1651118340, + "end": 1651118340, + "gmtoffset": -14400 + } + }, + "dataGranularity": "1d", + "range": "", + "validRanges": [ + "1d", + "5d", + "1mo", + "3mo", + "6mo", + "1y", + "2y", + "5y", + "10y", + "ytd", + "max" + ] + }, + "timestamp": [ + 1577941200 + ], + "indicators": { + "quote": [ + { + "open": [ + 1518.0999755859375 + ], + "close": [ + 1524.5 + ], + "high": [ + 1528.699951171875 + ], + "low": [ + 1518 + ], + "volume": [ + 214 + ] + } + ], + "adjclose": [ + { + "adjclose": [ + 1524.5 + ] + } + ] + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/historical-GC=F-2020-01-01-to-2020-01-03.json b/tests/http/historical-GC=F-2020-01-01-to-2020-01-03.json new file mode 100644 index 00000000..293fda63 --- /dev/null +++ b/tests/http/historical-GC=F-2020-01-01-to-2020-01-03.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v7/finance/download/GC=F?interval=1d&events=history&includeAdjustedClose=true&period1=1577836800&period2=1578009600" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-disposition": [ + "attachment; filename=GC=F.csv" + ], + "content-type": [ + "text/csv;charset=utf-8" + ], + "cache-control": [ + "private, max-age=10, stale-while-revalidate=20" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "8hvj569h6ig60" + ], + "x-yahoo-request-id": [ + "8hvj569h6ig60" + ], + "x-request-id": [ + "f8aa5c98-4686-4fe8-801f-986174730746" + ], + "content-length": [ + "116" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-chart-api--mtls-canary-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "body": "Date,Open,High,Low,Close,Adj Close,Volume\n2020-01-02,1518.099976,1528.699951,1518.000000,1524.500000,1524.500000,214" + } +} \ No newline at end of file diff --git a/tests/http/insights-GC=F.json b/tests/http/insights-GC=F.json new file mode 100644 index 00000000..063e4e18 --- /dev/null +++ b/tests/http/insights-GC=F.json @@ -0,0 +1,78 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/ws/insights/v2/finance/insights?lang=en-US®ion=US&getAllResearchReports=true&reportsCount=2&symbol=GC%3DF" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "cache-control": [ + "public, max-age=300, stale-while-revalidate=120" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "d215lulh6ig60" + ], + "x-yahoo-request-id": [ + "d215lulh6ig60" + ], + "x-request-id": [ + "81bf8277-466c-4edf-8d5b-81bc5e27bb97" + ], + "content-length": [ + "66" + ], + "x-envoy-upstream-service-time": [ + "89" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-market-analytics-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "finance": { + "result": { + "symbol": "GC=F", + "sigDevs": [] + }, + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/options-GC=F.json b/tests/http/options-GC=F.json new file mode 100644 index 00000000..2bbf9da1 --- /dev/null +++ b/tests/http/options-GC=F.json @@ -0,0 +1,144 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v7/finance/options/GC=F?formatted=false&lang=en-US®ion=US" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "ahi006hh6ig60" + ], + "x-yahoo-request-id": [ + "ahi006hh6ig60" + ], + "x-request-id": [ + "f407a553-8bab-45c0-9a64-a2b32fafd447" + ], + "content-length": [ + "1829" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-quote-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "2" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "optionChain": { + "result": [ + { + "underlyingSymbol": "GC=F", + "expirationDates": [], + "strikes": [], + "hasMiniOptions": false, + "quote": { + "language": "en-US", + "region": "US", + "quoteType": "FUTURE", + "typeDisp": "Futures", + "quoteSourceName": "Delayed Quote", + "triggerable": false, + "customPriceAlertConfidence": "LOW", + "headSymbolAsString": "GC=F", + "contractSymbol": false, + "currency": "USD", + "underlyingSymbol": "GCM22.CMX", + "underlyingExchangeSymbol": "GCM22.CMX", + "exchange": "CMX", + "shortName": "Gold Jun 22", + "exchangeTimezoneName": "America/New_York", + "exchangeTimezoneShortName": "EDT", + "gmtOffSetMilliseconds": -14400000, + "market": "us24_market", + "esgPopulated": false, + "marketState": "REGULAR", + "averageDailyVolume10Day": 317, + "fiftyTwoWeekLowChange": 204.59998, + "fiftyTwoWeekLowChangePercent": 0.120879106, + "fiftyTwoWeekRange": "1692.6 - 2072.0", + "fiftyTwoWeekHighChange": -174.80005, + "fiftyTwoWeekHighChangePercent": -0.08436296, + "fiftyTwoWeekLow": 1692.6, + "fiftyTwoWeekHigh": 2072, + "openInterest": 444411, + "expireDate": 1656374400, + "expireIsoDate": "2022-06-28T00:00:00Z", + "fiftyDayAverage": 1936.236, + "fiftyDayAverageChange": -39.03601, + "fiftyDayAverageChangePercent": -0.020160772, + "twoHundredDayAverage": 1831.8674, + "twoHundredDayAverageChange": 65.33252, + "twoHundredDayAverageChangePercent": 0.035664435, + "sourceInterval": 15, + "exchangeDataDelayedBy": 10, + "tradeable": false, + "firstTradeDateMilliseconds": 967608000000, + "priceHint": 2, + "regularMarketChange": -6.9000244, + "regularMarketChangePercent": -0.36237723, + "regularMarketTime": 1651064423, + "regularMarketPrice": 1897.2, + "regularMarketDayHigh": 1908.1, + "regularMarketDayRange": "1883.2 - 1908.1", + "regularMarketDayLow": 1883.2, + "regularMarketVolume": 79517, + "regularMarketPreviousClose": 1904.1, + "bid": 1896.8, + "ask": 1896.9, + "bidSize": 14, + "askSize": 9, + "fullExchangeName": "COMEX", + "regularMarketOpen": 1907.4, + "averageDailyVolume3Month": 3280, + "symbol": "GC=F" + }, + "options": [] + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quote-GC=F.json b/tests/http/quote-GC=F.json new file mode 100644 index 00000000..ee51179b --- /dev/null +++ b/tests/http/quote-GC=F.json @@ -0,0 +1,137 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v7/finance/quote?symbols=GC%3DF" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "fmtakchh6ig60" + ], + "x-yahoo-request-id": [ + "fmtakchh6ig60" + ], + "x-request-id": [ + "bd58a7af-6f03-4a36-9a59-8077fe400595" + ], + "content-length": [ + "1725" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-quote-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteResponse": { + "result": [ + { + "language": "en-US", + "region": "US", + "quoteType": "FUTURE", + "typeDisp": "Futures", + "quoteSourceName": "Delayed Quote", + "triggerable": false, + "customPriceAlertConfidence": "LOW", + "headSymbolAsString": "GC=F", + "contractSymbol": false, + "marketState": "REGULAR", + "underlyingExchangeSymbol": "GCM22.CMX", + "exchange": "CMX", + "shortName": "Gold Jun 22", + "exchangeTimezoneName": "America/New_York", + "exchangeTimezoneShortName": "EDT", + "gmtOffSetMilliseconds": -14400000, + "market": "us24_market", + "esgPopulated": false, + "currency": "USD", + "underlyingSymbol": "GCM22.CMX", + "regularMarketPrice": 1897.2, + "regularMarketDayHigh": 1908.1, + "regularMarketDayRange": "1883.2 - 1908.1", + "regularMarketDayLow": 1883.2, + "regularMarketVolume": 79517, + "regularMarketPreviousClose": 1904.1, + "bid": 1896.8, + "ask": 1896.9, + "bidSize": 14, + "askSize": 9, + "fullExchangeName": "COMEX", + "regularMarketOpen": 1907.4, + "averageDailyVolume3Month": 3280, + "averageDailyVolume10Day": 317, + "fiftyTwoWeekLowChange": 204.59998, + "fiftyTwoWeekLowChangePercent": 0.120879106, + "fiftyTwoWeekRange": "1692.6 - 2072.0", + "fiftyTwoWeekHighChange": -174.80005, + "fiftyTwoWeekHighChangePercent": -0.08436296, + "fiftyTwoWeekLow": 1692.6, + "fiftyTwoWeekHigh": 2072, + "openInterest": 444411, + "expireDate": 1656374400, + "expireIsoDate": "2022-06-28T00:00:00Z", + "fiftyDayAverage": 1936.236, + "fiftyDayAverageChange": -39.03601, + "fiftyDayAverageChangePercent": -0.020160772, + "twoHundredDayAverage": 1831.8674, + "twoHundredDayAverageChange": 65.33252, + "twoHundredDayAverageChangePercent": 0.035664435, + "sourceInterval": 15, + "exchangeDataDelayedBy": 10, + "tradeable": false, + "firstTradeDateMilliseconds": 967608000000, + "priceHint": 2, + "regularMarketChange": -6.9000244, + "regularMarketChangePercent": -0.36237723, + "regularMarketTime": 1651064423, + "symbol": "GC=F" + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-all-GC=F.json b/tests/http/quoteSummary-all-GC=F.json new file mode 100644 index 00000000..19249211 --- /dev/null +++ b/tests/http/quoteSummary-all-GC=F.json @@ -0,0 +1,159 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=assetProfile%2CbalanceSheetHistory%2CbalanceSheetHistoryQuarterly%2CcalendarEvents%2CcashflowStatementHistory%2CcashflowStatementHistoryQuarterly%2CdefaultKeyStatistics%2Cearnings%2CearningsHistory%2CearningsTrend%2CfinancialData%2CfundOwnership%2CfundPerformance%2CfundProfile%2CincomeStatementHistory%2CincomeStatementHistoryQuarterly%2CindexTrend%2CindustryTrend%2CinsiderHolders%2CinsiderTransactions%2CinstitutionOwnership%2CmajorDirectHolders%2CmajorHoldersBreakdown%2CnetSharePurchaseActivity%2Cprice%2CquoteType%2CrecommendationTrend%2CsecFilings%2CsectorTrend%2CsummaryDetail%2CsummaryProfile%2CtopHoldings%2CupgradeDowngradeHistory" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "y-rid": [ + "d5vdnvph6ig68" + ], + "x-yahoo-request-id": [ + "d5vdnvph6ig68" + ], + "x-request-id": [ + "2a0d39e2-cc24-4b3d-a32c-b3fe11f3bd77" + ], + "content-length": [ + "1861" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:32 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": [ + { + "summaryDetail": { + "maxAge": 1, + "priceHint": 2, + "previousClose": 1904.1, + "open": 1907.4, + "dayLow": 1883.2, + "dayHigh": 1908.1, + "regularMarketPreviousClose": 1904.1, + "regularMarketOpen": 1907.4, + "regularMarketDayLow": 1883.2, + "regularMarketDayHigh": 1908.1, + "volume": 79556, + "regularMarketVolume": 79556, + "averageVolume": 3280, + "averageVolume10days": 317, + "averageDailyVolume10Day": 317, + "bid": 1897.3, + "ask": 1897.4, + "bidSize": 1400, + "askSize": 900, + "expireDate": 1656374400, + "openInterest": 444411, + "fiftyTwoWeekLow": 1692.6, + "fiftyTwoWeekHigh": 2072, + "fiftyDayAverage": 1936.236, + "twoHundredDayAverage": 1831.8674, + "currency": "USD", + "fromCurrency": null, + "toCurrency": null, + "lastMarket": null, + "algorithm": null, + "tradeable": false + }, + "quoteType": { + "exchange": "CMX", + "quoteType": "FUTURE", + "symbol": "GCM22.CMX", + "underlyingSymbol": "GC=F", + "shortName": "Gold Jun 22", + "longName": null, + "firstTradeDateEpochUtc": 967608000, + "timeZoneFullName": "America/New_York", + "timeZoneShortName": "EDT", + "uuid": "14f8f2ec-b820-38f7-ba5f-b3f5a47aec05", + "messageBoardId": null, + "gmtOffSetMilliseconds": -14400000, + "maxAge": 1 + }, + "price": { + "maxAge": 1, + "regularMarketChangePercent": -0.0034661917, + "regularMarketChange": -6.5999756, + "regularMarketTime": 1651064430, + "priceHint": 2, + "regularMarketPrice": 1897.5, + "regularMarketDayHigh": 1908.1, + "regularMarketDayLow": 1883.2, + "regularMarketVolume": 79556, + "averageDailyVolume10Day": 317, + "averageDailyVolume3Month": 3280, + "regularMarketPreviousClose": 1904.1, + "regularMarketSource": "DELAYED", + "regularMarketOpen": 1907.4, + "openInterest": 444411, + "expireDate": 1656374400, + "exchange": "CMX", + "exchangeName": "COMEX", + "exchangeDataDelayedBy": 10, + "marketState": "REGULAR", + "quoteType": "FUTURE", + "symbol": "GC=F", + "underlyingSymbol": "GCM22.CMX", + "shortName": "Gold Jun 22", + "longName": null, + "currency": "USD", + "quoteSourceName": "Delayed Quote", + "currencySymbol": "$", + "fromCurrency": null, + "toCurrency": null, + "lastMarket": null + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-assetProfile-GC=F.json b/tests/http/quoteSummary-assetProfile-GC=F.json new file mode 100644 index 00000000..9feaf206 --- /dev/null +++ b/tests/http/quoteSummary-assetProfile-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=assetProfile" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "1r34k6ph6ig60" + ], + "x-yahoo-request-id": [ + "1r34k6ph6ig60" + ], + "x-request-id": [ + "e389935a-e1d9-4a69-9bd7-bed51813378a" + ], + "content-length": [ + "145" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=assetProfile" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-balanceSheetHistory-GC=F.json b/tests/http/quoteSummary-balanceSheetHistory-GC=F.json new file mode 100644 index 00000000..e2f47f6a --- /dev/null +++ b/tests/http/quoteSummary-balanceSheetHistory-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=balanceSheetHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "03sklldh6ig61" + ], + "x-yahoo-request-id": [ + "03sklldh6ig61" + ], + "x-request-id": [ + "d708148c-010e-45c6-83e6-584ad19845db" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=balanceSheetHistory" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-balanceSheetHistoryQuarterly-GC=F.json b/tests/http/quoteSummary-balanceSheetHistoryQuarterly-GC=F.json new file mode 100644 index 00000000..dcdfe8f0 --- /dev/null +++ b/tests/http/quoteSummary-balanceSheetHistoryQuarterly-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=balanceSheetHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "9q4m8e1h6ig61" + ], + "x-yahoo-request-id": [ + "9q4m8e1h6ig61" + ], + "x-request-id": [ + "e4019727-dd7c-43ca-8e4d-ebd8e612ee6d" + ], + "content-length": [ + "161" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:25 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=balanceSheetHistoryQuarterly" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-calendarEvents-GC=F.json b/tests/http/quoteSummary-calendarEvents-GC=F.json new file mode 100644 index 00000000..84a10a8d --- /dev/null +++ b/tests/http/quoteSummary-calendarEvents-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=calendarEvents" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "3foo679h6ig61" + ], + "x-yahoo-request-id": [ + "3foo679h6ig61" + ], + "x-request-id": [ + "18214cef-f694-497c-89c4-9544c7f11605" + ], + "content-length": [ + "147" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:25 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-canary-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=calendarEvents" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-cashflowStatementHistory-GC=F.json b/tests/http/quoteSummary-cashflowStatementHistory-GC=F.json new file mode 100644 index 00000000..adc4095d --- /dev/null +++ b/tests/http/quoteSummary-cashflowStatementHistory-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=cashflowStatementHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "8fgf0g9h6ig62" + ], + "x-yahoo-request-id": [ + "8fgf0g9h6ig62" + ], + "x-request-id": [ + "99a63336-d09f-4b72-bfc5-ebdd9e46dcad" + ], + "content-length": [ + "157" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:26 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=cashflowStatementHistory" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-cashflowStatementHistoryQuarterly-GC=F.json b/tests/http/quoteSummary-cashflowStatementHistoryQuarterly-GC=F.json new file mode 100644 index 00000000..eb05e42d --- /dev/null +++ b/tests/http/quoteSummary-cashflowStatementHistoryQuarterly-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=cashflowStatementHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "105r7s5h6ig62" + ], + "x-yahoo-request-id": [ + "105r7s5h6ig62" + ], + "x-request-id": [ + "fe24a32e-297d-4f2b-9699-43965956f344" + ], + "content-length": [ + "166" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:25 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=cashflowStatementHistoryQuarterly" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-defaultKeyStatistics-GC=F.json b/tests/http/quoteSummary-defaultKeyStatistics-GC=F.json new file mode 100644 index 00000000..6364b05e --- /dev/null +++ b/tests/http/quoteSummary-defaultKeyStatistics-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=defaultKeyStatistics" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "a83sm1hh6ig62" + ], + "x-yahoo-request-id": [ + "a83sm1hh6ig62" + ], + "x-request-id": [ + "120cb8c8-b37e-4a44-bfe1-a122064bc4c1" + ], + "content-length": [ + "153" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:26 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-baseline-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=defaultKeyStatistics" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-earnings-GC=F.json b/tests/http/quoteSummary-earnings-GC=F.json new file mode 100644 index 00000000..0c37c3b7 --- /dev/null +++ b/tests/http/quoteSummary-earnings-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=earnings" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "7b91dgph6ig62" + ], + "x-yahoo-request-id": [ + "7b91dgph6ig62" + ], + "x-request-id": [ + "f08d3a8e-8328-4a2c-a2aa-43558945d2c2" + ], + "content-length": [ + "141" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:26 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=earnings" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-earningsHistory-GC=F.json b/tests/http/quoteSummary-earningsHistory-GC=F.json new file mode 100644 index 00000000..44d7bdfc --- /dev/null +++ b/tests/http/quoteSummary-earningsHistory-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=earningsHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "9i2ov21h6ig63" + ], + "x-yahoo-request-id": [ + "9i2ov21h6ig63" + ], + "x-request-id": [ + "1dce52fe-68eb-490a-b5cb-546e7471b009" + ], + "content-length": [ + "148" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:26 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=earningsHistory" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-earningsTrend-GC=F.json b/tests/http/quoteSummary-earningsTrend-GC=F.json new file mode 100644 index 00000000..ab3d9354 --- /dev/null +++ b/tests/http/quoteSummary-earningsTrend-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=earningsTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "ajsh89th6ig63" + ], + "x-yahoo-request-id": [ + "ajsh89th6ig63" + ], + "x-request-id": [ + "bc51d0a3-ccf6-4e91-8f55-30db1c9cf3d9" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:27 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=earningsTrend" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-financialData-GC=F.json b/tests/http/quoteSummary-financialData-GC=F.json new file mode 100644 index 00000000..4a099202 --- /dev/null +++ b/tests/http/quoteSummary-financialData-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=financialData" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "149oduth6ig63" + ], + "x-yahoo-request-id": [ + "149oduth6ig63" + ], + "x-request-id": [ + "6ecd5b89-44e2-4b7c-a1ea-5ba45d4eb68b" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:27 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=financialData" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-fundOwnership-GC=F.json b/tests/http/quoteSummary-fundOwnership-GC=F.json new file mode 100644 index 00000000..4ab5a9ea --- /dev/null +++ b/tests/http/quoteSummary-fundOwnership-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=fundOwnership" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "4qv6vnph6ig64" + ], + "x-yahoo-request-id": [ + "4qv6vnph6ig64" + ], + "x-request-id": [ + "3effc9e5-4f3f-4e92-bfde-098e20edf094" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:27 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=fundOwnership" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-incomeStatementHistory-GC=F.json b/tests/http/quoteSummary-incomeStatementHistory-GC=F.json new file mode 100644 index 00000000..d75a39e8 --- /dev/null +++ b/tests/http/quoteSummary-incomeStatementHistory-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=incomeStatementHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "4r9ie69h6ig64" + ], + "x-yahoo-request-id": [ + "4r9ie69h6ig64" + ], + "x-request-id": [ + "2d9254b5-ed88-4c48-b0f1-5ef63989a83c" + ], + "content-length": [ + "155" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:27 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=incomeStatementHistory" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-incomeStatementHistoryQuarterly-GC=F.json b/tests/http/quoteSummary-incomeStatementHistoryQuarterly-GC=F.json new file mode 100644 index 00000000..d001da59 --- /dev/null +++ b/tests/http/quoteSummary-incomeStatementHistoryQuarterly-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=incomeStatementHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "0jiu3vhh6ig64" + ], + "x-yahoo-request-id": [ + "0jiu3vhh6ig64" + ], + "x-request-id": [ + "643f05c6-d750-442b-bdc0-522a653b8f4e" + ], + "content-length": [ + "164" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:28 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=incomeStatementHistoryQuarterly" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-indexTrend-GC=F.json b/tests/http/quoteSummary-indexTrend-GC=F.json new file mode 100644 index 00000000..483394e6 --- /dev/null +++ b/tests/http/quoteSummary-indexTrend-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=indexTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "ffd4budh6ig64" + ], + "x-yahoo-request-id": [ + "ffd4budh6ig64" + ], + "x-request-id": [ + "9324dfea-f16f-4667-8cc1-7b9496ac38e4" + ], + "content-length": [ + "143" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:28 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=indexTrend" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-industryTrend-GC=F.json b/tests/http/quoteSummary-industryTrend-GC=F.json new file mode 100644 index 00000000..b61f1694 --- /dev/null +++ b/tests/http/quoteSummary-industryTrend-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=industryTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "adjc98hh6ig65" + ], + "x-yahoo-request-id": [ + "adjc98hh6ig65" + ], + "x-request-id": [ + "baa2b053-bd6a-41d3-b71d-369d27327647" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:29 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=industryTrend" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-insiderHolders-GC=F.json b/tests/http/quoteSummary-insiderHolders-GC=F.json new file mode 100644 index 00000000..15258663 --- /dev/null +++ b/tests/http/quoteSummary-insiderHolders-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=insiderHolders" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "fjc158ph6ig65" + ], + "x-yahoo-request-id": [ + "fjc158ph6ig65" + ], + "x-request-id": [ + "c82b781b-ab36-4899-9dfc-622494723299" + ], + "content-length": [ + "147" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:29 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=insiderHolders" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-insiderTransactions-GC=F.json b/tests/http/quoteSummary-insiderTransactions-GC=F.json new file mode 100644 index 00000000..5f5450d3 --- /dev/null +++ b/tests/http/quoteSummary-insiderTransactions-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=insiderTransactions" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "bnkhhoth6ig65" + ], + "x-yahoo-request-id": [ + "bnkhhoth6ig65" + ], + "x-request-id": [ + "b710c273-e938-44d9-93a1-af4e6957a4ae" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:29 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=insiderTransactions" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-institutionOwnership-GC=F.json b/tests/http/quoteSummary-institutionOwnership-GC=F.json new file mode 100644 index 00000000..6302fc6a --- /dev/null +++ b/tests/http/quoteSummary-institutionOwnership-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=institutionOwnership" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "4dnj3h1h6ig65" + ], + "x-yahoo-request-id": [ + "4dnj3h1h6ig65" + ], + "x-request-id": [ + "d7b223f7-a8a2-4107-af7a-c06822721a55" + ], + "content-length": [ + "153" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:29 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=institutionOwnership" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-majorDirectHolders-GC=F.json b/tests/http/quoteSummary-majorDirectHolders-GC=F.json new file mode 100644 index 00000000..4c7398e8 --- /dev/null +++ b/tests/http/quoteSummary-majorDirectHolders-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=majorDirectHolders" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "cu2sg8dh6ig66" + ], + "x-yahoo-request-id": [ + "cu2sg8dh6ig66" + ], + "x-request-id": [ + "639430e7-e96e-4f00-b655-7a35472a8cc6" + ], + "content-length": [ + "151" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:29 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=majorDirectHolders" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-majorHoldersBreakdown-GC=F.json b/tests/http/quoteSummary-majorHoldersBreakdown-GC=F.json new file mode 100644 index 00000000..4e53b2b9 --- /dev/null +++ b/tests/http/quoteSummary-majorHoldersBreakdown-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=majorHoldersBreakdown" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "8mtgtv1h6ig66" + ], + "x-yahoo-request-id": [ + "8mtgtv1h6ig66" + ], + "x-request-id": [ + "39e43387-efe8-4b7e-8892-3e743920cc59" + ], + "content-length": [ + "154" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:30 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=majorHoldersBreakdown" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-netSharePurchaseActivity-GC=F.json b/tests/http/quoteSummary-netSharePurchaseActivity-GC=F.json new file mode 100644 index 00000000..ec6e2fb8 --- /dev/null +++ b/tests/http/quoteSummary-netSharePurchaseActivity-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=netSharePurchaseActivity" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "an4fo5ph6ig66" + ], + "x-yahoo-request-id": [ + "an4fo5ph6ig66" + ], + "x-request-id": [ + "6e69b66d-14b5-4ca4-b831-daa124839c15" + ], + "content-length": [ + "157" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:30 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=netSharePurchaseActivity" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-price-GC=F.json b/tests/http/quoteSummary-price-GC=F.json new file mode 100644 index 00000000..0b820aa7 --- /dev/null +++ b/tests/http/quoteSummary-price-GC=F.json @@ -0,0 +1,107 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=price" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "y-rid": [ + "es3k21lh6ig66" + ], + "x-yahoo-request-id": [ + "es3k21lh6ig66" + ], + "x-request-id": [ + "1224830c-bf66-4763-837f-4398275598f4" + ], + "content-length": [ + "718" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:30 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": [ + { + "price": { + "maxAge": 1, + "regularMarketChangePercent": -0.0035712025, + "regularMarketChange": -6.7999268, + "regularMarketTime": 1651064429, + "priceHint": 2, + "regularMarketPrice": 1897.3, + "regularMarketDayHigh": 1908.1, + "regularMarketDayLow": 1883.2, + "regularMarketVolume": 79543, + "regularMarketPreviousClose": 1904.1, + "regularMarketSource": "DELAYED", + "regularMarketOpen": 1907.4, + "exchange": "CMX", + "exchangeName": "COMEX", + "exchangeDataDelayedBy": 10, + "marketState": "REGULAR", + "quoteType": "FUTURE", + "symbol": "GC=F", + "underlyingSymbol": null, + "shortName": "Gold Jun 22", + "longName": null, + "currency": "USD", + "quoteSourceName": "Delayed Quote", + "currencySymbol": "$", + "fromCurrency": null, + "toCurrency": null, + "lastMarket": null + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-quoteType-GC=F.json b/tests/http/quoteSummary-quoteType-GC=F.json new file mode 100644 index 00000000..c021c2b1 --- /dev/null +++ b/tests/http/quoteSummary-quoteType-GC=F.json @@ -0,0 +1,93 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=quoteType" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "y-rid": [ + "5m4rntph6ig67" + ], + "x-yahoo-request-id": [ + "5m4rntph6ig67" + ], + "x-request-id": [ + "33926590-84ea-4fd6-a6d8-73079c94dfe3" + ], + "content-length": [ + "397" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:30 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": [ + { + "quoteType": { + "exchange": "CMX", + "quoteType": "FUTURE", + "symbol": "GCM22.CMX", + "underlyingSymbol": "GC=F", + "shortName": "Gold Jun 22", + "longName": null, + "firstTradeDateEpochUtc": 967608000, + "timeZoneFullName": "America/New_York", + "timeZoneShortName": "EDT", + "uuid": "14f8f2ec-b820-38f7-ba5f-b3f5a47aec05", + "messageBoardId": null, + "gmtOffSetMilliseconds": -14400000, + "maxAge": 1 + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-recommendationTrend-GC=F.json b/tests/http/quoteSummary-recommendationTrend-GC=F.json new file mode 100644 index 00000000..55376587 --- /dev/null +++ b/tests/http/quoteSummary-recommendationTrend-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=recommendationTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "42iece1h6ig67" + ], + "x-yahoo-request-id": [ + "42iece1h6ig67" + ], + "x-request-id": [ + "02bc5d56-5ca2-454e-b82b-b26e0a6837a4" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:30 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=recommendationTrend" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-secFilings-GC=F.json b/tests/http/quoteSummary-secFilings-GC=F.json new file mode 100644 index 00000000..860ae508 --- /dev/null +++ b/tests/http/quoteSummary-secFilings-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=secFilings" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "5u8is91h6ig67" + ], + "x-yahoo-request-id": [ + "5u8is91h6ig67" + ], + "x-request-id": [ + "27c5cb88-59fe-4fd3-b2a8-15bc01468edc" + ], + "content-length": [ + "143" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:31 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=secFilings" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-summaryDetail-GC=F.json b/tests/http/quoteSummary-summaryDetail-GC=F.json new file mode 100644 index 00000000..050072cd --- /dev/null +++ b/tests/http/quoteSummary-summaryDetail-GC=F.json @@ -0,0 +1,111 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=summaryDetail" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "y-rid": [ + "4j1jn8hh6ig67" + ], + "x-yahoo-request-id": [ + "4j1jn8hh6ig67" + ], + "x-request-id": [ + "59f6ebc7-a121-457a-8827-9d64038e5178" + ], + "content-length": [ + "719" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:31 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": [ + { + "summaryDetail": { + "maxAge": 1, + "priceHint": 2, + "previousClose": 1904.1, + "open": 1907.4, + "dayLow": 1883.2, + "dayHigh": 1908.1, + "regularMarketPreviousClose": 1904.1, + "regularMarketOpen": 1907.4, + "regularMarketDayLow": 1883.2, + "regularMarketDayHigh": 1908.1, + "volume": 79556, + "regularMarketVolume": 79556, + "averageVolume": 3280, + "averageVolume10days": 317, + "averageDailyVolume10Day": 317, + "bid": 1897.3, + "ask": 1897.4, + "bidSize": 1400, + "askSize": 900, + "expireDate": 1656374400, + "openInterest": 444411, + "fiftyTwoWeekLow": 1692.6, + "fiftyTwoWeekHigh": 2072, + "fiftyDayAverage": 1936.236, + "twoHundredDayAverage": 1831.8674, + "currency": "USD", + "fromCurrency": null, + "toCurrency": null, + "lastMarket": null, + "algorithm": null, + "tradeable": false + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-summaryProfile-GC=F.json b/tests/http/quoteSummary-summaryProfile-GC=F.json new file mode 100644 index 00000000..8d353c5e --- /dev/null +++ b/tests/http/quoteSummary-summaryProfile-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=summaryProfile" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "4ugq2bhh6ig68" + ], + "x-yahoo-request-id": [ + "4ugq2bhh6ig68" + ], + "x-request-id": [ + "d0b58065-5478-4c6e-8f7e-a6206dd1f549" + ], + "content-length": [ + "147" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:31 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=summaryProfile" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-upgradeDowngradeHistory-GC=F.json b/tests/http/quoteSummary-upgradeDowngradeHistory-GC=F.json new file mode 100644 index 00000000..d2c90f4f --- /dev/null +++ b/tests/http/quoteSummary-upgradeDowngradeHistory-GC=F.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/GC=F?formatted=false&modules=upgradeDowngradeHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "1tll7jph6ig68" + ], + "x-yahoo-request-id": [ + "1tll7jph6ig68" + ], + "x-request-id": [ + "c0413f20-3507-4323-b1aa-4df335bf63df" + ], + "content-length": [ + "156" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:31 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "quoteSummary": { + "result": null, + "error": { + "code": "Not Found", + "description": "No fundamentals data found for any of the summaryTypes=upgradeDowngradeHistory" + } + } + } + } +} \ No newline at end of file diff --git a/tests/http/search-GC=F.json b/tests/http/search-GC=F.json new file mode 100644 index 00000000..870dd421 --- /dev/null +++ b/tests/http/search-GC=F.json @@ -0,0 +1,186 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v1/finance/search?lang=en-US®ion=US"esCount=6&newsCount=4&enableFuzzyQuery=false"esQueryId=tss_match_phrase_query&multiQuoteQueryId=multi_quote_single_token_query&newsQueryId=news_cie_vespa&enableCb=true&enableNavLinks=true&enableEnhancedTrivialQuery=true&q=GC%3DF" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin,Origin,Accept-Encoding" + ], + "cache-control": [ + "public, max-age=120, stale-while-revalidate=180" + ], + "y-rid": [ + "eqlir4ph6ig60" + ], + "x-yahoo-request-id": [ + "eqlir4ph6ig60" + ], + "x-request-id": [ + "18aa4d23-2e69-449e-89af-c3a0dd77a3dc" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "1194" + ], + "x-envoy-upstream-service-time": [ + "26" + ], + "date": [ + "Wed, 27 Apr 2022 13:10:24 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-search--aws-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "connection": [ + "close" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-content-type-options": [ + "nosniff" + ] + }, + "bodyJson": { + "explains": [], + "count": 9, + "quotes": [ + { + "exchange": "CMX", + "shortname": "Gold Jun 22", + "quoteType": "FUTURE", + "symbol": "GC=F", + "index": "quotes", + "score": 11645000, + "typeDisp": "Future", + "exchDisp": "New York Commodity Exchange", + "isYahooFinance": true + } + ], + "news": [ + { + "uuid": "b6990eac-93fe-3b84-a6e4-3173d46ce919", + "title": "Gold dips back below $1,900 an ounce as U.S. dollar jumps", + "publisher": "MarketWatch", + "link": "https://finance.yahoo.com/m/b6990eac-93fe-3b84-a6e4-3173d46ce919/gold-dips-back-below-%241%2C900.html", + "providerPublishTime": 1651061940, + "type": "STORY" + }, + { + "uuid": "48f2f961-18e3-34a8-b38b-c4a1651383bb", + "title": "GLOBAL MARKETS-Euro hits 5-year low after Russia halts gas; stocks stage small rebound", + "publisher": "Reuters", + "link": "https://finance.yahoo.com/news/global-markets-euro-hits-5-111204026.html", + "providerPublishTime": 1651057924, + "type": "STORY" + }, + { + "uuid": "46476a47-f192-38e0-9f06-6d7725bc4e8c", + "title": "With inflation, gold notes and cards find their way into America's wallet", + "publisher": "Reuters", + "link": "https://finance.yahoo.com/news/inflation-gold-notes-cards-way-100000016.html", + "providerPublishTime": 1651053600, + "type": "STORY" + }, + { + "uuid": "a8d8b407-8826-31a5-9c8c-45dcd2bc68fe", + "title": "GLOBAL MARKETS-Euro hits 5-year low, stocks down again on mixed earnings", + "publisher": "Reuters", + "link": "https://finance.yahoo.com/news/global-markets-euro-hits-5-082228625.html", + "providerPublishTime": 1651047748, + "type": "STORY" + } + ], + "nav": [], + "lists": [ + { + "slug": "most-bought-by-activist-hedge-funds", + "name": "Most Bought by Activist Hedge Funds", + "index": "most-bought-by-activist-hedge-funds", + "score": 13.9978695, + "type": "ALGO_WATCHLIST", + "brandSlug": "yahoo-finance", + "pfId": "most_bought_by_activist_hedge_funds", + "symbolCount": 30, + "dailyPercentGain": -2.410922932282858, + "followerCount": 56953 + }, + { + "slug": "most-bought-by-hedge-funds", + "name": "Most Bought by Hedge Funds", + "index": "most-bought-by-hedge-funds", + "score": 9.561255, + "type": "ALGO_WATCHLIST", + "brandSlug": "yahoo-finance", + "pfId": "most_bought_by_hedge_funds", + "symbolCount": 30, + "dailyPercentGain": -2.871179229918529, + "followerCount": 38101 + }, + { + "slug": "the-fight-against-covid19", + "name": "The Fight Against COVID19", + "index": "the-fight-against-covid19", + "score": 6.027563, + "type": "ALGO_WATCHLIST", + "brandSlug": "trea", + "pfId": "the_fight_against_covid19", + "symbolCount": 13, + "dailyPercentGain": -2.7692290982357357, + "followerCount": 23335 + }, + { + "slug": "most-watched", + "name": "Most Watched by Yahoo Finance Users", + "index": "most-watched", + "score": 5.648755, + "type": "ALGO_WATCHLIST", + "brandSlug": "yahoo-finance", + "pfId": "most_watched", + "symbolCount": 21, + "dailyPercentGain": -3.992647028072078, + "followerCount": 27253 + } + ], + "researchReports": [], + "screenerFieldResults": [], + "totalTime": 24, + "timeTakenForQuotes": 412, + "timeTakenForNews": 700, + "timeTakenForAlgowatchlist": 400, + "timeTakenForPredefinedScreener": 400, + "timeTakenForCrunchbase": 400, + "timeTakenForNav": 400, + "timeTakenForResearchReports": 0, + "timeTakenForScreenerField": 0, + "timeTakenForCulturalAssets": 0 + } + } +} \ No newline at end of file diff --git a/tests/symbols.ts b/tests/symbols.ts index 7fb8e2e9..58d44589 100644 --- a/tests/symbols.ts +++ b/tests/symbols.ts @@ -26,4 +26,5 @@ export const testSymbols = [ "SIMP", // see #107, "ORSTED.CO", // quoteSummary.price.shortName = null (#197), "^VXAPL", // Index (#248) + "GC=F", // Futures (#449) ];