From cc669b8771ba8ae1a6606379bd853b4047bca070 Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Mon, 24 Jul 2023 09:40:33 +0100 Subject: [PATCH] fix(quoteSummary): schema: optional {stock,bond}Position (fixes #639) Additionally: * FundPerformancePerformanceOverview * Add "fiveYrAvgReturnPct?: number;" --- schema.json | 5 +- src/modules/quoteSummary-iface.ts | 5 +- src/modules/quoteSummary.spec.ts | 1 + tests/http/quoteSummary-all-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-assetProfile-HISU-U.TO.json | 70 ++++++++++++++++++ ...Summary-balanceSheetHistory-HISU-U.TO.json | 73 +++++++++++++++++++ ...alanceSheetHistoryQuarterly-HISU-U.TO.json | 73 +++++++++++++++++++ ...quoteSummary-calendarEvents-HISU-U.TO.json | 73 +++++++++++++++++++ ...ry-cashflowStatementHistory-HISU-U.TO.json | 73 +++++++++++++++++++ ...owStatementHistoryQuarterly-HISU-U.TO.json | 73 +++++++++++++++++++ ...ummary-defaultKeyStatistics-HISU-U.TO.json | 70 ++++++++++++++++++ .../http/quoteSummary-earnings-HISU-U.TO.json | 73 +++++++++++++++++++ ...uoteSummary-earningsHistory-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-earningsTrend-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-financialData-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-fundOwnership-HISU-U.TO.json | 73 +++++++++++++++++++ ...mary-incomeStatementHistory-HISU-U.TO.json | 73 +++++++++++++++++++ ...meStatementHistoryQuarterly-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-indexTrend-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-industryTrend-HISU-U.TO.json | 73 +++++++++++++++++++ ...quoteSummary-insiderHolders-HISU-U.TO.json | 73 +++++++++++++++++++ ...Summary-insiderTransactions-HISU-U.TO.json | 73 +++++++++++++++++++ ...ummary-institutionOwnership-HISU-U.TO.json | 73 +++++++++++++++++++ ...eSummary-majorDirectHolders-HISU-U.TO.json | 73 +++++++++++++++++++ ...mmary-majorHoldersBreakdown-HISU-U.TO.json | 73 +++++++++++++++++++ ...ry-netSharePurchaseActivity-HISU-U.TO.json | 73 +++++++++++++++++++ tests/http/quoteSummary-price-HISU-U.TO.json | 70 ++++++++++++++++++ .../quoteSummary-quoteType-HISU-U.TO.json | 70 ++++++++++++++++++ ...Summary-recommendationTrend-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-secFilings-HISU-U.TO.json | 73 +++++++++++++++++++ .../quoteSummary-summaryDetail-HISU-U.TO.json | 70 ++++++++++++++++++ ...quoteSummary-summaryProfile-HISU-U.TO.json | 70 ++++++++++++++++++ ...ary-upgradeDowngradeHistory-HISU-U.TO.json | 73 +++++++++++++++++++ 33 files changed, 2179 insertions(+), 4 deletions(-) create mode 100644 tests/http/quoteSummary-all-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-assetProfile-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-balanceSheetHistory-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-balanceSheetHistoryQuarterly-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-calendarEvents-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-cashflowStatementHistory-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-cashflowStatementHistoryQuarterly-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-defaultKeyStatistics-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-earnings-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-earningsHistory-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-earningsTrend-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-financialData-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-fundOwnership-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-incomeStatementHistory-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-incomeStatementHistoryQuarterly-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-indexTrend-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-industryTrend-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-insiderHolders-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-insiderTransactions-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-institutionOwnership-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-majorDirectHolders-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-majorHoldersBreakdown-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-netSharePurchaseActivity-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-price-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-quoteType-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-recommendationTrend-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-secFilings-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-summaryDetail-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-summaryProfile-HISU-U.TO.json create mode 100644 tests/http/quoteSummary-upgradeDowngradeHistory-HISU-U.TO.json diff --git a/schema.json b/schema.json index 11608715..548ae630 100644 --- a/schema.json +++ b/schema.json @@ -6142,6 +6142,9 @@ "threeYearTotalReturn": { "yahooFinanceType": "number" }, + "fiveYrAvgReturnPct": { + "yahooFinanceType": "number" + }, "morningStarReturnRating": { "yahooFinanceType": "number" }, @@ -7565,8 +7568,6 @@ }, "required": [ "maxAge", - "stockPosition", - "bondPosition", "holdings", "equityHoldings", "bondHoldings", diff --git a/src/modules/quoteSummary-iface.ts b/src/modules/quoteSummary-iface.ts index bbd0749d..0243e9d3 100644 --- a/src/modules/quoteSummary-iface.ts +++ b/src/modules/quoteSummary-iface.ts @@ -447,6 +447,7 @@ export interface FundPerformancePerformanceOverview { ytdReturnPct?: number; oneYearTotalReturn?: number; threeYearTotalReturn?: number; + fiveYrAvgReturnPct?: number; morningStarReturnRating?: number; numYearsUp?: number; numYearsDown?: number; @@ -896,8 +897,8 @@ export interface SummaryProfile { export interface TopHoldings { [key: string]: any; maxAge: number; - stockPosition: number; - bondPosition: number; + stockPosition?: number; + bondPosition?: number; holdings: TopHoldingsHolding[]; equityHoldings: TopHoldingsEquityHoldings; bondHoldings: object; diff --git a/src/modules/quoteSummary.spec.ts b/src/modules/quoteSummary.spec.ts index 487f6aeb..260d74ad 100644 --- a/src/modules/quoteSummary.spec.ts +++ b/src/modules/quoteSummary.spec.ts @@ -23,6 +23,7 @@ function itValidates( "ADA-USD", // has summaryProfile.twitter (#418), "EREGL.IS", // null in incomeStatementHistory/operatingIncome, in some .IS (#517) "THYAO.IS", // (#517) + "HISU-U.TO", // topHoldings: missing StockPosition, bondPosition (#639) ], }); diff --git a/tests/http/quoteSummary-all-HISU-U.TO.json b/tests/http/quoteSummary-all-HISU-U.TO.json new file mode 100644 index 00000000..9c198409 --- /dev/null +++ b/tests/http/quoteSummary-all-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?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" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "0tjop9pibscjn" + ], + "x-yahoo-request-id": [ + "0tjop9pibscjn" + ], + "x-request-id": [ + "4484f512-4e21-4e8f-b96c-d2494b3d7bd8" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "1467" + ], + "x-envoy-upstream-service-time": [ + "5" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:38 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":[{\"assetProfile\":{\"companyOfficers\":[],\"maxAge\":86400},\"fundProfile\":{\"maxAge\":1,\"styleBoxUrl\":\"https://s.yimg.com/lq/i/fi/3_0stylelargeeq.gif\",\"family\":\"Evolve Funds Group Inc\",\"categoryName\":null,\"legalType\":\"Exchange Traded Fund\",\"managementInfo\":{\"managerName\":null,\"managerBio\":null},\"feesExpensesInvestment\":{\"annualReportExpenseRatio\":0.0,\"annualHoldingsTurnover\":0.0,\"totalNetAssets\":0.0,\"projectionValues\":{}},\"feesExpensesInvestmentCat\":{\"totalNetAssets\":0.0,\"projectionValuesCat\":{}},\"brokerages\":[]},\"summaryDetail\":{\"maxAge\":1,\"priceHint\":2,\"previousClose\":100.32,\"open\":100.33,\"dayLow\":100.33,\"dayHigh\":100.34,\"regularMarketPreviousClose\":100.32,\"regularMarketOpen\":100.33,\"regularMarketDayLow\":100.33,\"regularMarketDayHigh\":100.34,\"volume\":6031,\"regularMarketVolume\":6031,\"averageVolume\":4788,\"averageVolume10days\":5237,\"averageDailyVolume10Day\":5237,\"bid\":100.33,\"ask\":100.45,\"totalAssets\":492777152,\"fiftyTwoWeekLow\":100.0,\"fiftyTwoWeekHigh\":100.5,\"fiftyDayAverage\":100.2454,\"twoHundredDayAverage\":100.20145,\"navPrice\":100.3328,\"currency\":\"USD\",\"fromCurrency\":null,\"toCurrency\":null,\"lastMarket\":null,\"coinMarketCapLink\":null,\"algorithm\":null,\"tradeable\":false},\"price\":{\"maxAge\":1,\"regularMarketChangePercent\":1.9932858E-4,\"regularMarketChange\":0.019996643,\"regularMarketTime\":1689969599,\"priceHint\":2,\"regularMarketPrice\":100.34,\"regularMarketDayHigh\":100.34,\"regularMarketDayLow\":100.33,\"regularMarketVolume\":6031,\"averageDailyVolume10Day\":5237,\"averageDailyVolume3Month\":4788,\"regularMarketPreviousClose\":100.32,\"regularMarketSource\":\"FREE_REALTIME\",\"regularMarketOpen\":100.33,\"exchange\":\"TOR\",\"exchangeName\":\"Toronto\",\"exchangeDataDelayedBy\":15,\"marketState\":\"PREPRE\",\"quoteType\":\"ETF\",\"symbol\":\"HISU-U.TO\",\"underlyingSymbol\":null,\"shortName\":\"US HIGH INTEREST SAVINGS ACCOUN\",\"longName\":\"US High Interest Savings Account Fund\",\"currency\":\"USD\",\"quoteSourceName\":\"Delayed Quote\",\"currencySymbol\":\"$\",\"fromCurrency\":null,\"toCurrency\":null,\"lastMarket\":null},\"defaultKeyStatistics\":{\"maxAge\":1,\"priceHint\":2,\"category\":null,\"ytdReturn\":0.0279495,\"beta3Year\":0.0,\"totalAssets\":492777152,\"fundFamily\":\"Evolve Funds Group Inc\",\"fundInceptionDate\":1661817600,\"legalType\":\"Exchange Traded Fund\",\"lastSplitFactor\":null},\"summaryProfile\":{\"companyOfficers\":[],\"maxAge\":86400},\"topHoldings\":{\"maxAge\":1,\"holdings\":[],\"equityHoldings\":{\"priceToEarnings\":0.0,\"priceToBook\":0.0,\"priceToSales\":0.0,\"priceToCashflow\":0.0},\"bondHoldings\":{},\"bondRatings\":[],\"sectorWeightings\":[]},\"fundPerformance\":{\"maxAge\":1,\"performanceOverview\":{\"asOfDate\":1689897600,\"ytdReturnPct\":0.0279495,\"fiveYrAvgReturnPct\":0.0,\"oneYearTotalReturn\":0.0,\"threeYearTotalReturn\":0.0},\"performanceOverviewCat\":{},\"trailingReturns\":{\"asOfDate\":1689897600,\"ytd\":0.0279495,\"oneMonth\":0.004391,\"threeMonth\":0.012919299,\"oneYear\":0.0,\"threeYear\":0.0,\"fiveYear\":0.0,\"tenYear\":0.0,\"lastBullMkt\":0.0,\"lastBearMkt\":0.0},\"trailingReturnsNav\":{\"ytd\":0.0279495,\"oneMonth\":0.004391,\"threeMonth\":0.012919299,\"oneYear\":0.0,\"threeYear\":0.0,\"fiveYear\":0.0,\"tenYear\":0.0},\"trailingReturnsCat\":{\"ytd\":0.0,\"oneMonth\":0.0,\"threeMonth\":0.0,\"oneYear\":0.0,\"threeYear\":0.0,\"fiveYear\":0.0,\"tenYear\":0.0,\"lastBullMkt\":0.0,\"lastBearMkt\":0.0},\"annualTotalReturns\":{\"returns\":[],\"returnsCat\":[]},\"pastQuarterlyReturns\":{\"returns\":[]},\"riskOverviewStatistics\":{\"riskStatistics\":[{\"year\":\"5y\",\"alpha\":0.0,\"beta\":0.0,\"meanAnnualReturn\":0.0,\"rSquared\":0.0,\"stdDev\":0.0,\"sharpeRatio\":0.0,\"treynorRatio\":0.0},{\"year\":\"3y\",\"alpha\":0.0,\"beta\":0.0,\"meanAnnualReturn\":0.0,\"rSquared\":0.0,\"stdDev\":0.0,\"sharpeRatio\":0.0,\"treynorRatio\":0.0},{\"year\":\"10y\",\"alpha\":0.0,\"beta\":0.0,\"meanAnnualReturn\":0.0,\"rSquared\":0.0,\"stdDev\":0.0,\"sharpeRatio\":0.0,\"treynorRatio\":0.0}]},\"riskOverviewStatisticsCat\":{\"riskStatisticsCat\":[]}},\"quoteType\":{\"exchange\":\"TOR\",\"quoteType\":\"ETF\",\"symbol\":\"HISU-U.TO\",\"underlyingSymbol\":\"HISU-U.TO\",\"shortName\":\"US HIGH INTEREST SAVINGS ACCOUN\",\"longName\":\"US High Interest Savings Account Fund\",\"firstTradeDateEpochUtc\":1661866200,\"timeZoneFullName\":\"America/Toronto\",\"timeZoneShortName\":\"EDT\",\"uuid\":\"06b5c08c-5841-3893-aaa9-8e2db93a17e8\",\"messageBoardId\":\"finmb_1793710275\",\"gmtOffSetMilliseconds\":-14400000,\"maxAge\":1}}],\"error\":null}}" + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-assetProfile-HISU-U.TO.json b/tests/http/quoteSummary-assetProfile-HISU-U.TO.json new file mode 100644 index 00000000..d07ba366 --- /dev/null +++ b/tests/http/quoteSummary-assetProfile-HISU-U.TO.json @@ -0,0 +1,70 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=assetProfile" + }, + "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": [ + "59rv1ohibscji" + ], + "x-yahoo-request-id": [ + "59rv1ohibscji" + ], + "x-request-id": [ + "3e90798b-b5f4-4079-a3a2-d3af8d869e48" + ], + "content-length": [ + "97" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:34 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":[{\"assetProfile\":{\"companyOfficers\":[],\"maxAge\":86400}}],\"error\":null}}" + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-balanceSheetHistory-HISU-U.TO.json b/tests/http/quoteSummary-balanceSheetHistory-HISU-U.TO.json new file mode 100644 index 00000000..f3ba6187 --- /dev/null +++ b/tests/http/quoteSummary-balanceSheetHistory-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=balanceSheetHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "72reflhibscji" + ], + "x-yahoo-request-id": [ + "72reflhibscji" + ], + "x-request-id": [ + "c041cd4a-eeb2-45af-b48a-1182e359c124" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:34 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-balanceSheetHistoryQuarterly-HISU-U.TO.json new file mode 100644 index 00000000..fea71813 --- /dev/null +++ b/tests/http/quoteSummary-balanceSheetHistoryQuarterly-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=balanceSheetHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "4jl6g45ibscjj" + ], + "x-yahoo-request-id": [ + "4jl6g45ibscjj" + ], + "x-request-id": [ + "e34cf134-14cb-44e5-acab-d035417cb877" + ], + "content-length": [ + "161" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:34 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-calendarEvents-HISU-U.TO.json new file mode 100644 index 00000000..f0316062 --- /dev/null +++ b/tests/http/quoteSummary-calendarEvents-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=calendarEvents" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "1crlih9ibscjj" + ], + "x-yahoo-request-id": [ + "1crlih9ibscjj" + ], + "x-request-id": [ + "913f12b1-9a5c-4251-a902-ee06c2b1bf6d" + ], + "content-length": [ + "147" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:34 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-cashflowStatementHistory-HISU-U.TO.json new file mode 100644 index 00000000..510c18c8 --- /dev/null +++ b/tests/http/quoteSummary-cashflowStatementHistory-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=cashflowStatementHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "6usoibhibscjj" + ], + "x-yahoo-request-id": [ + "6usoibhibscjj" + ], + "x-request-id": [ + "d9388e08-4e47-4c26-a9dd-d3cd9ffffeea" + ], + "content-length": [ + "157" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:35 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-cashflowStatementHistoryQuarterly-HISU-U.TO.json new file mode 100644 index 00000000..4d75fc74 --- /dev/null +++ b/tests/http/quoteSummary-cashflowStatementHistoryQuarterly-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=cashflowStatementHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "26pqrblibscjj" + ], + "x-yahoo-request-id": [ + "26pqrblibscjj" + ], + "x-request-id": [ + "a2396e3b-0fbc-4d12-bc9d-835f5d97a50e" + ], + "content-length": [ + "166" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:35 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-defaultKeyStatistics-HISU-U.TO.json new file mode 100644 index 00000000..7ed85cfd --- /dev/null +++ b/tests/http/quoteSummary-defaultKeyStatistics-HISU-U.TO.json @@ -0,0 +1,70 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=defaultKeyStatistics" + }, + "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": [ + "5o15nvdibscjj" + ], + "x-yahoo-request-id": [ + "5o15nvdibscjj" + ], + "x-request-id": [ + "c1e8a967-82aa-442c-a5f2-15cbaff2df19" + ], + "content-length": [ + "299" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:35 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":[{\"defaultKeyStatistics\":{\"maxAge\":1,\"priceHint\":2,\"category\":null,\"ytdReturn\":0.0279495,\"beta3Year\":0.0,\"totalAssets\":492777152,\"fundFamily\":\"Evolve Funds Group Inc\",\"fundInceptionDate\":1661817600,\"legalType\":\"Exchange Traded Fund\",\"lastSplitFactor\":null}}],\"error\":null}}" + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-earnings-HISU-U.TO.json b/tests/http/quoteSummary-earnings-HISU-U.TO.json new file mode 100644 index 00000000..d4778391 --- /dev/null +++ b/tests/http/quoteSummary-earnings-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=earnings" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "6bq7qutibscjj" + ], + "x-yahoo-request-id": [ + "6bq7qutibscjj" + ], + "x-request-id": [ + "457874b3-c75c-4d09-81ab-26427db57830" + ], + "content-length": [ + "141" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:35 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-earningsHistory-HISU-U.TO.json new file mode 100644 index 00000000..7646e1f8 --- /dev/null +++ b/tests/http/quoteSummary-earningsHistory-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=earningsHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "7knmf0libscjk" + ], + "x-yahoo-request-id": [ + "7knmf0libscjk" + ], + "x-request-id": [ + "5c6e5762-f15d-4cd8-ba39-3d056a2e1234" + ], + "content-length": [ + "148" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:35 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-earningsTrend-HISU-U.TO.json new file mode 100644 index 00000000..e9ce170c --- /dev/null +++ b/tests/http/quoteSummary-earningsTrend-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=earningsTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "1578755ibscjk" + ], + "x-yahoo-request-id": [ + "1578755ibscjk" + ], + "x-request-id": [ + "75975d0d-055f-406e-871c-d442974b9e90" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:35 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-financialData-HISU-U.TO.json new file mode 100644 index 00000000..f3a293d8 --- /dev/null +++ b/tests/http/quoteSummary-financialData-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=financialData" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "26ol7sdibscjk" + ], + "x-yahoo-request-id": [ + "26ol7sdibscjk" + ], + "x-request-id": [ + "908e5fb7-77ee-45f7-a866-ef7a5e389b97" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:35 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-fundOwnership-HISU-U.TO.json new file mode 100644 index 00000000..b0d025a9 --- /dev/null +++ b/tests/http/quoteSummary-fundOwnership-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=fundOwnership" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "2loma4libscjk" + ], + "x-yahoo-request-id": [ + "2loma4libscjk" + ], + "x-request-id": [ + "2ec44d52-380c-4313-9478-e85a6d5f87ae" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:36 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-incomeStatementHistory-HISU-U.TO.json new file mode 100644 index 00000000..2a89b326 --- /dev/null +++ b/tests/http/quoteSummary-incomeStatementHistory-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=incomeStatementHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "5oul6a1ibscjk" + ], + "x-yahoo-request-id": [ + "5oul6a1ibscjk" + ], + "x-request-id": [ + "05ff61bc-8cfa-49c4-b2f1-f687af140209" + ], + "content-length": [ + "155" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:36 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-incomeStatementHistoryQuarterly-HISU-U.TO.json new file mode 100644 index 00000000..4823eb38 --- /dev/null +++ b/tests/http/quoteSummary-incomeStatementHistoryQuarterly-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=incomeStatementHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "3t7fd1dibscjk" + ], + "x-yahoo-request-id": [ + "3t7fd1dibscjk" + ], + "x-request-id": [ + "5d49dc96-cb4e-43c3-8eae-54afd10e06cc" + ], + "content-length": [ + "164" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:36 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-indexTrend-HISU-U.TO.json new file mode 100644 index 00000000..0254fc1d --- /dev/null +++ b/tests/http/quoteSummary-indexTrend-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=indexTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "3h9llklibscjl" + ], + "x-yahoo-request-id": [ + "3h9llklibscjl" + ], + "x-request-id": [ + "b17df5a8-e305-4ccf-a60c-529dd6709742" + ], + "content-length": [ + "143" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-industryTrend-HISU-U.TO.json new file mode 100644 index 00000000..9fee3326 --- /dev/null +++ b/tests/http/quoteSummary-industryTrend-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=industryTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "1qa27j5ibscjl" + ], + "x-yahoo-request-id": [ + "1qa27j5ibscjl" + ], + "x-request-id": [ + "e3db9059-5a02-47d9-b199-233f77446a65" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-insiderHolders-HISU-U.TO.json new file mode 100644 index 00000000..fc78189c --- /dev/null +++ b/tests/http/quoteSummary-insiderHolders-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=insiderHolders" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "7efuu79ibscjl" + ], + "x-yahoo-request-id": [ + "7efuu79ibscjl" + ], + "x-request-id": [ + "c5208e1e-ef33-473b-8bf4-5b0ddddef8c3" + ], + "content-length": [ + "147" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-insiderTransactions-HISU-U.TO.json new file mode 100644 index 00000000..b715bbed --- /dev/null +++ b/tests/http/quoteSummary-insiderTransactions-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=insiderTransactions" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "14ao819ibscjl" + ], + "x-yahoo-request-id": [ + "14ao819ibscjl" + ], + "x-request-id": [ + "a4cb3588-f56e-4de6-95ad-1de59b1dec8b" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-institutionOwnership-HISU-U.TO.json new file mode 100644 index 00000000..b2428618 --- /dev/null +++ b/tests/http/quoteSummary-institutionOwnership-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=institutionOwnership" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "70cg0otibscjl" + ], + "x-yahoo-request-id": [ + "70cg0otibscjl" + ], + "x-request-id": [ + "10e9a614-e51f-41e2-ac6f-0e4422c51306" + ], + "content-length": [ + "153" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-majorDirectHolders-HISU-U.TO.json new file mode 100644 index 00000000..5ab46217 --- /dev/null +++ b/tests/http/quoteSummary-majorDirectHolders-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=majorDirectHolders" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "0j1tbq1ibscjl" + ], + "x-yahoo-request-id": [ + "0j1tbq1ibscjl" + ], + "x-request-id": [ + "7d48db9a-0b74-4a72-9494-1a2e7043a0f5" + ], + "content-length": [ + "151" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-majorHoldersBreakdown-HISU-U.TO.json new file mode 100644 index 00000000..081ab10c --- /dev/null +++ b/tests/http/quoteSummary-majorHoldersBreakdown-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=majorHoldersBreakdown" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "28gg14pibscjl" + ], + "x-yahoo-request-id": [ + "28gg14pibscjl" + ], + "x-request-id": [ + "201cc76e-00a2-4354-8091-421af614af88" + ], + "content-length": [ + "154" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-netSharePurchaseActivity-HISU-U.TO.json new file mode 100644 index 00000000..6a393b9f --- /dev/null +++ b/tests/http/quoteSummary-netSharePurchaseActivity-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=netSharePurchaseActivity" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "000qi1hibscjm" + ], + "x-yahoo-request-id": [ + "000qi1hibscjm" + ], + "x-request-id": [ + "f446e019-a5f1-4312-9dc0-f1a8274b0486" + ], + "content-length": [ + "157" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-price-HISU-U.TO.json new file mode 100644 index 00000000..aca77a9d --- /dev/null +++ b/tests/http/quoteSummary-price-HISU-U.TO.json @@ -0,0 +1,70 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=price" + }, + "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": [ + "47ph6bhibscjm" + ], + "x-yahoo-request-id": [ + "47ph6bhibscjm" + ], + "x-request-id": [ + "26dbc0c1-9db8-43d2-ab69-503de56e9c80" + ], + "content-length": [ + "781" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:37 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "1" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":[{\"price\":{\"maxAge\":1,\"regularMarketChangePercent\":1.9932858E-4,\"regularMarketChange\":0.019996643,\"regularMarketTime\":1689969599,\"priceHint\":2,\"regularMarketPrice\":100.34,\"regularMarketDayHigh\":100.34,\"regularMarketDayLow\":100.33,\"regularMarketVolume\":6031,\"regularMarketPreviousClose\":100.32,\"regularMarketSource\":\"FREE_REALTIME\",\"regularMarketOpen\":100.33,\"exchange\":\"TOR\",\"exchangeName\":\"Toronto\",\"exchangeDataDelayedBy\":15,\"marketState\":\"PREPRE\",\"quoteType\":\"ETF\",\"symbol\":\"HISU-U.TO\",\"underlyingSymbol\":null,\"shortName\":\"US HIGH INTEREST SAVINGS ACCOUN\",\"longName\":\"US High Interest Savings Account Fund\",\"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-HISU-U.TO.json b/tests/http/quoteSummary-quoteType-HISU-U.TO.json new file mode 100644 index 00000000..60fe3c97 --- /dev/null +++ b/tests/http/quoteSummary-quoteType-HISU-U.TO.json @@ -0,0 +1,70 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=quoteType" + }, + "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": [ + "4rr7am9ibscjm" + ], + "x-yahoo-request-id": [ + "4rr7am9ibscjm" + ], + "x-request-id": [ + "77001ed3-4e6d-4213-8068-88d3f9afceaa" + ], + "content-length": [ + "468" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:38 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":[{\"quoteType\":{\"exchange\":\"TOR\",\"quoteType\":\"ETF\",\"symbol\":\"HISU-U.TO\",\"underlyingSymbol\":\"HISU-U.TO\",\"shortName\":\"US HIGH INTEREST SAVINGS ACCOUN\",\"longName\":\"US High Interest Savings Account Fund\",\"firstTradeDateEpochUtc\":1661866200,\"timeZoneFullName\":\"America/Toronto\",\"timeZoneShortName\":\"EDT\",\"uuid\":\"06b5c08c-5841-3893-aaa9-8e2db93a17e8\",\"messageBoardId\":\"finmb_1793710275\",\"gmtOffSetMilliseconds\":-14400000,\"maxAge\":1}}],\"error\":null}}" + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-recommendationTrend-HISU-U.TO.json b/tests/http/quoteSummary-recommendationTrend-HISU-U.TO.json new file mode 100644 index 00000000..2e15323f --- /dev/null +++ b/tests/http/quoteSummary-recommendationTrend-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=recommendationTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "1qiemg1ibscjm" + ], + "x-yahoo-request-id": [ + "1qiemg1ibscjm" + ], + "x-request-id": [ + "71a91a1e-f156-4350-a182-14cce5e31d1d" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:38 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-secFilings-HISU-U.TO.json new file mode 100644 index 00000000..e99eb43c --- /dev/null +++ b/tests/http/quoteSummary-secFilings-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=secFilings" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "5rrb1rtibscjm" + ], + "x-yahoo-request-id": [ + "5rrb1rtibscjm" + ], + "x-request-id": [ + "e0de875e-7cfc-9c42-b8e0-5b536f5f44a9" + ], + "content-length": [ + "143" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:38 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"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-HISU-U.TO.json b/tests/http/quoteSummary-summaryDetail-HISU-U.TO.json new file mode 100644 index 00000000..267b1589 --- /dev/null +++ b/tests/http/quoteSummary-summaryDetail-HISU-U.TO.json @@ -0,0 +1,70 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=summaryDetail" + }, + "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": [ + "38kecglibscjm" + ], + "x-yahoo-request-id": [ + "38kecglibscjm" + ], + "x-request-id": [ + "e7ff0366-52ae-4bbd-8526-81fe55ac9d10" + ], + "content-length": [ + "711" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:38 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":[{\"summaryDetail\":{\"maxAge\":1,\"priceHint\":2,\"previousClose\":100.32,\"open\":100.33,\"dayLow\":100.33,\"dayHigh\":100.34,\"regularMarketPreviousClose\":100.32,\"regularMarketOpen\":100.33,\"regularMarketDayLow\":100.33,\"regularMarketDayHigh\":100.34,\"volume\":6031,\"regularMarketVolume\":6031,\"averageVolume\":4788,\"averageVolume10days\":5237,\"averageDailyVolume10Day\":5237,\"bid\":100.33,\"ask\":100.45,\"totalAssets\":492777152,\"fiftyTwoWeekLow\":100.0,\"fiftyTwoWeekHigh\":100.5,\"fiftyDayAverage\":100.2454,\"twoHundredDayAverage\":100.20145,\"navPrice\":100.3328,\"currency\":\"USD\",\"fromCurrency\":null,\"toCurrency\":null,\"lastMarket\":null,\"coinMarketCapLink\":null,\"algorithm\":null,\"tradeable\":false}}],\"error\":null}}" + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-summaryProfile-HISU-U.TO.json b/tests/http/quoteSummary-summaryProfile-HISU-U.TO.json new file mode 100644 index 00000000..b70f55ad --- /dev/null +++ b/tests/http/quoteSummary-summaryProfile-HISU-U.TO.json @@ -0,0 +1,70 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=summaryProfile" + }, + "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": [ + "0psq1gpibscjm" + ], + "x-yahoo-request-id": [ + "0psq1gpibscjm" + ], + "x-request-id": [ + "55afffc7-c973-4804-9b65-ca88c99549d0" + ], + "content-length": [ + "99" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:38 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":[{\"summaryProfile\":{\"companyOfficers\":[],\"maxAge\":86400}}],\"error\":null}}" + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-upgradeDowngradeHistory-HISU-U.TO.json b/tests/http/quoteSummary-upgradeDowngradeHistory-HISU-U.TO.json new file mode 100644 index 00000000..1956933e --- /dev/null +++ b/tests/http/quoteSummary-upgradeDowngradeHistory-HISU-U.TO.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/HISU-U.TO?formatted=false&modules=upgradeDowngradeHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "4gs2fgtibscjm" + ], + "x-yahoo-request-id": [ + "4gs2fgtibscjm" + ], + "x-request-id": [ + "81569f8e-0c39-46bc-ae8e-1216ad9d13e6" + ], + "content-length": [ + "156" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Mon, 24 Jul 2023 08:12:38 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-company-fundamentals-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "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": "{\"quoteSummary\":{\"result\":null,\"error\":{\"code\":\"Not Found\",\"description\":\"No fundamentals data found for any of the summaryTypes=upgradeDowngradeHistory\"}}}" + } +} \ No newline at end of file