diff --git a/tests/http/autoc-BTC-USD.json b/tests/http/autoc-BTC-USD.json new file mode 100644 index 00000000..201f4777 --- /dev/null +++ b/tests/http/autoc-BTC-USD.json @@ -0,0 +1,66 @@ +{ + "request": { + "url": "https://autoc.finance.yahoo.com/autoc?region=1&lang=en&query=BTC-USD" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "x-content-type-options": [ + "nosniff" + ], + "x-yahoo-request-id": [ + "1569dl9g3h9vg" + ], + "cache-control": [ + "public, max-age=300, stale-while-revalidate=30, stale-if-error=3600" + ], + "content-encoding": [ + "gzip" + ], + "content-type": [ + "application/json;charset=utf-8" + ], + "content-length": [ + "60" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:04 GMT" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=31536000" + ], + "server": [ + "ATS" + ], + "expect-ct": [ + "max-age=31536000, report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only\"" + ], + "public-key-pins-report-only": [ + "max-age=2592000; pin-sha256=\"2fRAUXyxl4A1/XHrKNBmc8bTkzA7y4FB/GLJuNAzCqY=\"; pin-sha256=\"I/Lt/z7ekCWanjD0Cvj5EqXls2lOaThEA0H2Bg4BT/o=\"; pin-sha256=\"K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q=\"; pin-sha256=\"Wd8xe/qfTwq3ylFNd3IpaqLHZbh2ZNCLluVzmeNkcpw=\"; pin-sha256=\"WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=\"; pin-sha256=\"cGuxAXyFXFkWm61cF4HPWX8S0srS9j0aSqN0k4AP+4A=\"; pin-sha256=\"dolnbtzEBnELx/9lOEQ22e6OZO/QNb6VSSX2XHA3E7A=\"; pin-sha256=\"i7WTqTvh0OioIruIfFR4kMPnBqrS2rdiVPl/s2uC/CY=\"; pin-sha256=\"r/mIkG3eEpVdm+u/ko/cwxzOMo1bk4TyHIlByibiA5E=\"; pin-sha256=\"uUwZgwDOxcBXrQcntwu+kYFpkiVkOaezL0WYEZ3anJc=\"; includeSubdomains; report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-hpkp-report-only\"" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "connection": [ + "close" + ] + }, + "bodyJson": { + "ResultSet": { + "Query": "BTC-USD", + "Result": [] + } + } + } +} \ No newline at end of file diff --git a/tests/http/historical-BTC-USD-2020-01-01-to-2020-01-03.json b/tests/http/historical-BTC-USD-2020-01-01-to-2020-01-03.json new file mode 100644 index 00000000..efa93f15 --- /dev/null +++ b/tests/http/historical-BTC-USD-2020-01-01-to-2020-01-03.json @@ -0,0 +1,73 @@ +{ + "request": { + "url": "https://query1.finance.yahoo.com/v7/finance/download/BTC-USD?interval=1d&events=history&includeAdjustedClose=true&period1=1577836800&period2=1578009600" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-disposition": [ + "attachment; filename=BTC-USD.csv" + ], + "content-type": [ + "text/csv" + ], + "cache-control": [ + "private, max-age=10, stale-while-revalidate=20" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "76ordd1g3h9vg" + ], + "x-yahoo-request-id": [ + "76ordd1g3h9vg" + ], + "x-request-id": [ + "f8501cfc-82f6-44fa-9180-2164f5e7f6a8" + ], + "content-length": [ + "290" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:04 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" + ] + }, + "body": "Date,Open,High,Low,Close,Adj Close,Volume\n2020-01-01,7194.892090,7254.330566,7174.944336,7200.174316,7200.174316,18565664997\n2020-01-02,7202.551270,7212.155273,6935.270020,6985.470215,6985.470215,20802083465\n2020-01-03,6984.428711,7413.715332,6914.996094,7344.884277,7344.884277,28111481032" + } +} \ No newline at end of file diff --git a/tests/http/quote-BTC-USD.json b/tests/http/quote-BTC-USD.json new file mode 100644 index 00000000..3e11c9fc --- /dev/null +++ b/tests/http/quote-BTC-USD.json @@ -0,0 +1,137 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v7/finance/quote?symbols=BTC-USD" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "3rugpk9g3h9vg" + ], + "x-yahoo-request-id": [ + "3rugpk9g3h9vg" + ], + "x-request-id": [ + "2bb57bbd-0c5e-42cd-bfa1-6c2b1461317c" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "853" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:04 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": "CRYPTOCURRENCY", + "quoteSourceName": "CoinMarketCap", + "triggerable": true, + "currency": "USD", + "priceHint": 2, + "circulatingSupply": 18638932, + "lastMarket": "CoinMarketCap", + "volume24Hr": 62631043072, + "volumeAllCurrencies": 62631043072, + "fromCurrency": "BTC", + "toCurrency": "USD=X", + "regularMarketChange": -6024.1562, + "regularMarketChangePercent": -11.930983, + "regularMarketTime": 1614325622, + "regularMarketPrice": 44467.547, + "regularMarketDayHigh": 47677.535, + "regularMarketDayRange": "44467.547 - 47677.535", + "regularMarketDayLow": 44467.547, + "regularMarketVolume": 62631043072, + "regularMarketPreviousClose": 46756.99, + "fullExchangeName": "CCC", + "regularMarketOpen": 46756.99, + "averageDailyVolume3Month": 58705874184, + "averageDailyVolume10Day": 72812647616, + "startDate": 1367103600, + "coinImageUrl": "https://s.yimg.com/uc/fin/img/reports-thumbnails/1.png", + "fiftyTwoWeekLowChange": 40360.566, + "fiftyTwoWeekLowChangePercent": 9.827308, + "fiftyTwoWeekRange": "4106.981 - 58330.57", + "fiftyTwoWeekHighChange": -13863.023, + "fiftyTwoWeekHighChangePercent": -0.23766309, + "fiftyTwoWeekLow": 4106.981, + "fiftyTwoWeekHigh": 58330.57, + "fiftyDayAverage": 40623.53, + "fiftyDayAverageChange": 3844.0156, + "fiftyDayAverageChangePercent": 0.09462535, + "twoHundredDayAverage": 21837.865, + "twoHundredDayAverageChange": 22629.682, + "twoHundredDayAverageChangePercent": 1.0362588, + "marketCap": 828827500544, + "sourceInterval": 15, + "exchangeDataDelayedBy": 0, + "tradeable": false, + "firstTradeDateMilliseconds": 1410908400000, + "marketState": "REGULAR", + "exchangeTimezoneShortName": "GMT", + "gmtOffSetMilliseconds": 0, + "market": "ccc_market", + "esgPopulated": false, + "exchange": "CCC", + "shortName": "Bitcoin USD", + "messageBoardId": "finmb_BTC_CCC", + "exchangeTimezoneName": "Europe/London", + "symbol": "BTC-USD" + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-all-BTC-USD.json b/tests/http/quoteSummary-all-BTC-USD.json new file mode 100644 index 00000000..190f6daa --- /dev/null +++ b/tests/http/quoteSummary-all-BTC-USD.json @@ -0,0 +1,177 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?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" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "cf3i0u1g3ha07" + ], + "x-yahoo-request-id": [ + "cf3i0u1g3ha07" + ], + "x-request-id": [ + "bc099546-a6e9-4511-8dde-b023c5236f5a" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "1119" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:27 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=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": [ + { + "assetProfile": { + "companyOfficers": [], + "name": "Bitcoin", + "startDate": "2013-04-28", + "description": "Bitcoin (BTC) is a cryptocurrency . Users are able to generate BTC through the process of mining. Bitcoin has a current supply of 18,638,756. The last known price of Bitcoin is 46,795.55278186 USD and is down -7.54 over the last 24 hours. It is currently trading on 9761 active market(s) with $57,364,948,694.66 traded over the last 24 hours. More information can be found at https://bitcoin.org/.", + "maxAge": 86400 + }, + "summaryDetail": { + "maxAge": 1, + "priceHint": 2, + "previousClose": 46756.99, + "open": 46756.99, + "dayLow": 44555.176, + "dayHigh": 47677.535, + "regularMarketPreviousClose": 46756.99, + "regularMarketOpen": 46756.99, + "regularMarketDayLow": 44555.176, + "regularMarketDayHigh": 47677.535, + "volume": 62650314752, + "regularMarketVolume": 62650314752, + "averageVolume": 58705874184, + "averageVolume10days": 72812647616, + "averageDailyVolume10Day": 72812647616, + "marketCap": 830460854272, + "fiftyTwoWeekLow": 4106.981, + "fiftyTwoWeekHigh": 58330.57, + "fiftyDayAverage": 40623.53, + "twoHundredDayAverage": 21837.865, + "currency": "USD", + "fromCurrency": "BTC", + "toCurrency": "USD=X", + "lastMarket": "CoinMarketCap", + "volume24Hr": 62650314752, + "volumeAllCurrencies": 62650314752, + "circulatingSupply": 18638932, + "algorithm": null, + "startDate": 1367107200, + "tradeable": false + }, + "summaryProfile": { + "companyOfficers": [], + "name": "Bitcoin", + "startDate": "2013-04-28", + "description": "Bitcoin (BTC) is a cryptocurrency . Users are able to generate BTC through the process of mining. Bitcoin has a current supply of 18,638,756. The last known price of Bitcoin is 46,795.55278186 USD and is down -7.54 over the last 24 hours. It is currently trading on 9761 active market(s) with $57,364,948,694.66 traded over the last 24 hours. More information can be found at https://bitcoin.org/.", + "maxAge": 86400 + }, + "quoteType": { + "exchange": "CCC", + "quoteType": "CRYPTOCURRENCY", + "symbol": "BTC-USD", + "underlyingSymbol": "BTC-USD", + "shortName": "Bitcoin USD", + "longName": null, + "firstTradeDateEpochUtc": 1410908400, + "timeZoneFullName": "Europe/London", + "timeZoneShortName": "GMT", + "uuid": "74397779-1589-3270-8c45-b7f1a7345b3a", + "messageBoardId": "finmb_BTC_CCC", + "gmtOffSetMilliseconds": 0, + "maxAge": 1 + }, + "price": { + "maxAge": 1, + "regularMarketChangePercent": -0.11797888, + "regularMarketChange": -5959.6875, + "regularMarketTime": 1614325682, + "priceHint": 2, + "regularMarketPrice": 44555.176, + "regularMarketDayHigh": 47677.535, + "regularMarketDayLow": 44555.176, + "regularMarketVolume": 62650314752, + "averageDailyVolume10Day": 72812647616, + "averageDailyVolume3Month": 58705874184, + "regularMarketPreviousClose": 46756.99, + "regularMarketSource": "FREE_REALTIME", + "regularMarketOpen": 46756.99, + "exchange": "CCC", + "exchangeName": "CCC", + "exchangeDataDelayedBy": 0, + "marketState": "REGULAR", + "quoteType": "CRYPTOCURRENCY", + "symbol": "BTC-USD", + "underlyingSymbol": null, + "shortName": "Bitcoin USD", + "longName": null, + "currency": "USD", + "quoteSourceName": "CoinMarketCap", + "currencySymbol": "$", + "fromCurrency": "BTC", + "toCurrency": "USD=X", + "lastMarket": "CoinMarketCap", + "volume24Hr": 62650314752, + "volumeAllCurrencies": 62650314752, + "circulatingSupply": 18638932, + "marketCap": 830460854272 + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-assetProfile-BTC-USD.json b/tests/http/quoteSummary-assetProfile-BTC-USD.json new file mode 100644 index 00000000..60c9b7b4 --- /dev/null +++ b/tests/http/quoteSummary-assetProfile-BTC-USD.json @@ -0,0 +1,88 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=assetProfile" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "1h0v38lg3h9vg" + ], + "x-yahoo-request-id": [ + "1h0v38lg3h9vg" + ], + "x-request-id": [ + "dde5d5f8-3ef5-403c-814b-e9d405cbcbbb" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "393" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:04 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=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": [ + { + "assetProfile": { + "companyOfficers": [], + "name": "Bitcoin", + "startDate": "2013-04-28", + "description": "Bitcoin (BTC) is a cryptocurrency . Users are able to generate BTC through the process of mining. Bitcoin has a current supply of 18,638,756. The last known price of Bitcoin is 46,795.55278186 USD and is down -7.54 over the last 24 hours. It is currently trading on 9761 active market(s) with $57,364,948,694.66 traded over the last 24 hours. More information can be found at https://bitcoin.org/.", + "maxAge": 86400 + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-balanceSheetHistory-BTC-USD.json b/tests/http/quoteSummary-balanceSheetHistory-BTC-USD.json new file mode 100644 index 00000000..35d12237 --- /dev/null +++ b/tests/http/quoteSummary-balanceSheetHistory-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=balanceSheetHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "e3cof2hg3h9vh" + ], + "x-yahoo-request-id": [ + "e3cof2hg3h9vh" + ], + "x-request-id": [ + "9bb1afbc-75fc-48b4-b6ed-5bc5db81e06c" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:05 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=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-BTC-USD.json b/tests/http/quoteSummary-balanceSheetHistoryQuarterly-BTC-USD.json new file mode 100644 index 00000000..a86e5376 --- /dev/null +++ b/tests/http/quoteSummary-balanceSheetHistoryQuarterly-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=balanceSheetHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "0u2ce8tg3h9vk" + ], + "x-yahoo-request-id": [ + "0u2ce8tg3h9vk" + ], + "x-request-id": [ + "60577b07-4b8d-4bfa-b1b6-bc428aff28bb" + ], + "content-length": [ + "161" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:08 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": [ + "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": { + "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-BTC-USD.json b/tests/http/quoteSummary-calendarEvents-BTC-USD.json new file mode 100644 index 00000000..d2b61417 --- /dev/null +++ b/tests/http/quoteSummary-calendarEvents-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=calendarEvents" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "db86lv1g3h9vl" + ], + "x-yahoo-request-id": [ + "db86lv1g3h9vl" + ], + "x-request-id": [ + "b3368505-26d0-488b-a6ee-29d7945721cb" + ], + "content-length": [ + "147" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:09 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=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-BTC-USD.json b/tests/http/quoteSummary-cashflowStatementHistory-BTC-USD.json new file mode 100644 index 00000000..001a2228 --- /dev/null +++ b/tests/http/quoteSummary-cashflowStatementHistory-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=cashflowStatementHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "6m1f339g3h9vm" + ], + "x-yahoo-request-id": [ + "6m1f339g3h9vm" + ], + "x-request-id": [ + "2247ad49-2a15-4c09-8862-6d0a1e0477b3" + ], + "content-length": [ + "157" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:10 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=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-BTC-USD.json b/tests/http/quoteSummary-cashflowStatementHistoryQuarterly-BTC-USD.json new file mode 100644 index 00000000..6fb652c4 --- /dev/null +++ b/tests/http/quoteSummary-cashflowStatementHistoryQuarterly-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=cashflowStatementHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "3of7cftg3h9vn" + ], + "x-yahoo-request-id": [ + "3of7cftg3h9vn" + ], + "x-request-id": [ + "05e50a97-0bc3-4a1b-8711-21e283e52fe6" + ], + "content-length": [ + "166" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:11 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=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-BTC-USD.json b/tests/http/quoteSummary-defaultKeyStatistics-BTC-USD.json new file mode 100644 index 00000000..6cb76f73 --- /dev/null +++ b/tests/http/quoteSummary-defaultKeyStatistics-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=defaultKeyStatistics" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "40vsf0lg3h9vn" + ], + "x-yahoo-request-id": [ + "40vsf0lg3h9vn" + ], + "x-request-id": [ + "6571e145-341f-4cfe-a4e8-92590a834667" + ], + "content-length": [ + "153" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:11 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=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-BTC-USD.json b/tests/http/quoteSummary-earnings-BTC-USD.json new file mode 100644 index 00000000..71593d48 --- /dev/null +++ b/tests/http/quoteSummary-earnings-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=earnings" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "dnh21qtg3h9vo" + ], + "x-yahoo-request-id": [ + "dnh21qtg3h9vo" + ], + "x-request-id": [ + "e03f0ef9-37a7-4ed0-9386-e7ca0cea1431" + ], + "content-length": [ + "141" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:12 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=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-BTC-USD.json b/tests/http/quoteSummary-earningsHistory-BTC-USD.json new file mode 100644 index 00000000..2f0b8e81 --- /dev/null +++ b/tests/http/quoteSummary-earningsHistory-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=earningsHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "av4qqtdg3h9vp" + ], + "x-yahoo-request-id": [ + "av4qqtdg3h9vp" + ], + "x-request-id": [ + "531249f8-a7d0-4fd5-9868-3d73df1c6569" + ], + "content-length": [ + "148" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:13 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=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-BTC-USD.json b/tests/http/quoteSummary-earningsTrend-BTC-USD.json new file mode 100644 index 00000000..dd55e6d6 --- /dev/null +++ b/tests/http/quoteSummary-earningsTrend-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=earningsTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "17g7q71g3h9vp" + ], + "x-yahoo-request-id": [ + "17g7q71g3h9vp" + ], + "x-request-id": [ + "75355304-5f51-4734-ad8c-77f73127dfc5" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:13 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=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-BTC-USD.json b/tests/http/quoteSummary-financialData-BTC-USD.json new file mode 100644 index 00000000..8b7cb241 --- /dev/null +++ b/tests/http/quoteSummary-financialData-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=financialData" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "430t6tpg3h9vq" + ], + "x-yahoo-request-id": [ + "430t6tpg3h9vq" + ], + "x-request-id": [ + "108ebc46-eed4-495e-a4dc-b92419c7a3b6" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:13 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=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-BTC-USD.json b/tests/http/quoteSummary-fundOwnership-BTC-USD.json new file mode 100644 index 00000000..04599ca5 --- /dev/null +++ b/tests/http/quoteSummary-fundOwnership-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=fundOwnership" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "6i0n39pg3h9vq" + ], + "x-yahoo-request-id": [ + "6i0n39pg3h9vq" + ], + "x-request-id": [ + "3fdd3d16-07f1-47a2-b131-dbcd098d6b04" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:14 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=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-BTC-USD.json b/tests/http/quoteSummary-incomeStatementHistory-BTC-USD.json new file mode 100644 index 00000000..3b444021 --- /dev/null +++ b/tests/http/quoteSummary-incomeStatementHistory-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=incomeStatementHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "27s1e3dg3h9vr" + ], + "x-yahoo-request-id": [ + "27s1e3dg3h9vr" + ], + "x-request-id": [ + "75a96988-ef58-4680-b7f0-3e650d5a006d" + ], + "content-length": [ + "155" + ], + "x-envoy-upstream-service-time": [ + "3" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:15 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=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-BTC-USD.json b/tests/http/quoteSummary-incomeStatementHistoryQuarterly-BTC-USD.json new file mode 100644 index 00000000..bf328e7f --- /dev/null +++ b/tests/http/quoteSummary-incomeStatementHistoryQuarterly-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=incomeStatementHistoryQuarterly" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "fb9sag1g3h9vr" + ], + "x-yahoo-request-id": [ + "fb9sag1g3h9vr" + ], + "x-request-id": [ + "4fa76e78-4292-4f8e-970f-630fbaa69e51" + ], + "content-length": [ + "164" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:15 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=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-BTC-USD.json b/tests/http/quoteSummary-indexTrend-BTC-USD.json new file mode 100644 index 00000000..d5883d46 --- /dev/null +++ b/tests/http/quoteSummary-indexTrend-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=indexTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "eerpc21g3h9vs" + ], + "x-yahoo-request-id": [ + "eerpc21g3h9vs" + ], + "x-request-id": [ + "2b371428-f153-4bd3-b12f-417a3975035d" + ], + "content-length": [ + "143" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:15 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=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-BTC-USD.json b/tests/http/quoteSummary-industryTrend-BTC-USD.json new file mode 100644 index 00000000..412108ca --- /dev/null +++ b/tests/http/quoteSummary-industryTrend-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=industryTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "c59a1o5g3h9vs" + ], + "x-yahoo-request-id": [ + "c59a1o5g3h9vs" + ], + "x-request-id": [ + "caccbb1e-d071-4f8f-be9d-ae3ad597e887" + ], + "content-length": [ + "146" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:16 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=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-BTC-USD.json b/tests/http/quoteSummary-insiderHolders-BTC-USD.json new file mode 100644 index 00000000..c6b10e95 --- /dev/null +++ b/tests/http/quoteSummary-insiderHolders-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=insiderHolders" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "91aeqhlg3h9vt" + ], + "x-yahoo-request-id": [ + "91aeqhlg3h9vt" + ], + "x-request-id": [ + "9947d4d6-92b5-4620-853a-6f26137b5d07" + ], + "content-length": [ + "147" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:16 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=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-BTC-USD.json b/tests/http/quoteSummary-insiderTransactions-BTC-USD.json new file mode 100644 index 00000000..0637d80a --- /dev/null +++ b/tests/http/quoteSummary-insiderTransactions-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=insiderTransactions" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "3c55m1lg3h9vt" + ], + "x-yahoo-request-id": [ + "3c55m1lg3h9vt" + ], + "x-request-id": [ + "2a113eff-d5e1-4060-8503-f4cdd0a4e670" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:17 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=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-BTC-USD.json b/tests/http/quoteSummary-institutionOwnership-BTC-USD.json new file mode 100644 index 00000000..db0781a0 --- /dev/null +++ b/tests/http/quoteSummary-institutionOwnership-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=institutionOwnership" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "446slchg3h9vu" + ], + "x-yahoo-request-id": [ + "446slchg3h9vu" + ], + "x-request-id": [ + "13529a06-1d7c-4f1f-bc03-8160d9e4ba31" + ], + "content-length": [ + "153" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:18 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=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-BTC-USD.json b/tests/http/quoteSummary-majorDirectHolders-BTC-USD.json new file mode 100644 index 00000000..b1b6d325 --- /dev/null +++ b/tests/http/quoteSummary-majorDirectHolders-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=majorDirectHolders" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "70guha9g3h9vu" + ], + "x-yahoo-request-id": [ + "70guha9g3h9vu" + ], + "x-request-id": [ + "bee76bb4-8865-4a25-8034-3b7215e20d7c" + ], + "content-length": [ + "151" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:18 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=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-BTC-USD.json b/tests/http/quoteSummary-majorHoldersBreakdown-BTC-USD.json new file mode 100644 index 00000000..0fefba39 --- /dev/null +++ b/tests/http/quoteSummary-majorHoldersBreakdown-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=majorHoldersBreakdown" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "1umkqapg3h9vu" + ], + "x-yahoo-request-id": [ + "1umkqapg3h9vu" + ], + "x-request-id": [ + "de94babf-d615-4675-8ba3-03d86450d698" + ], + "content-length": [ + "154" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:18 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=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-BTC-USD.json b/tests/http/quoteSummary-netSharePurchaseActivity-BTC-USD.json new file mode 100644 index 00000000..7a61fe18 --- /dev/null +++ b/tests/http/quoteSummary-netSharePurchaseActivity-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=netSharePurchaseActivity" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "fst32plg3ha02" + ], + "x-yahoo-request-id": [ + "fst32plg3ha02" + ], + "x-request-id": [ + "f60cf358-538b-420a-a268-b816e6b2698f" + ], + "content-length": [ + "157" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:22 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=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-BTC-USD.json b/tests/http/quoteSummary-price-BTC-USD.json new file mode 100644 index 00000000..70a31340 --- /dev/null +++ b/tests/http/quoteSummary-price-BTC-USD.json @@ -0,0 +1,114 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=price" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "78p6h0hg3h9vv" + ], + "x-yahoo-request-id": [ + "78p6h0hg3h9vv" + ], + "x-request-id": [ + "ec1dc3ff-f8f7-4fc4-873e-f310b4f5f6cd" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "462" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:19 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=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.11930983, + "regularMarketChange": -6024.1562, + "regularMarketTime": 1614325622, + "priceHint": 2, + "regularMarketPrice": 44467.547, + "regularMarketDayHigh": 47677.535, + "regularMarketDayLow": 44467.547, + "regularMarketVolume": 62631043072, + "regularMarketPreviousClose": 46756.99, + "regularMarketSource": "FREE_REALTIME", + "regularMarketOpen": 46756.99, + "exchange": "CCC", + "exchangeName": "CCC", + "exchangeDataDelayedBy": 0, + "marketState": "REGULAR", + "quoteType": "CRYPTOCURRENCY", + "symbol": "BTC-USD", + "underlyingSymbol": null, + "shortName": "Bitcoin USD", + "longName": null, + "currency": "USD", + "quoteSourceName": "CoinMarketCap", + "currencySymbol": "$", + "fromCurrency": "BTC", + "toCurrency": "USD=X", + "lastMarket": "CoinMarketCap", + "volume24Hr": 62631043072, + "volumeAllCurrencies": 62631043072, + "circulatingSupply": 18638932, + "marketCap": 828827500544 + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-quoteType-BTC-USD.json b/tests/http/quoteSummary-quoteType-BTC-USD.json new file mode 100644 index 00000000..44de63c1 --- /dev/null +++ b/tests/http/quoteSummary-quoteType-BTC-USD.json @@ -0,0 +1,93 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=quoteType" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "6i4taq5g3ha00" + ], + "x-yahoo-request-id": [ + "6i4taq5g3ha00" + ], + "x-request-id": [ + "0a3fd23c-66ba-435a-a43c-896d254419ef" + ], + "content-length": [ + "407" + ], + "x-envoy-upstream-service-time": [ + "1" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:20 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=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": "CCC", + "quoteType": "CRYPTOCURRENCY", + "symbol": "BTC-USD", + "underlyingSymbol": "BTC-USD", + "shortName": "Bitcoin USD", + "longName": null, + "firstTradeDateEpochUtc": 1410908400, + "timeZoneFullName": "Europe/London", + "timeZoneShortName": "GMT", + "uuid": "74397779-1589-3270-8c45-b7f1a7345b3a", + "messageBoardId": "finmb_BTC_CCC", + "gmtOffSetMilliseconds": 0, + "maxAge": 1 + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-recommendationTrend-BTC-USD.json b/tests/http/quoteSummary-recommendationTrend-BTC-USD.json new file mode 100644 index 00000000..dbe94f4c --- /dev/null +++ b/tests/http/quoteSummary-recommendationTrend-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=recommendationTrend" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "d7pr599g3ha00" + ], + "x-yahoo-request-id": [ + "d7pr599g3ha00" + ], + "x-request-id": [ + "52cbe0f1-0b25-4f61-b02d-b609c2a8c895" + ], + "content-length": [ + "152" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:20 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=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-BTC-USD.json b/tests/http/quoteSummary-secFilings-BTC-USD.json new file mode 100644 index 00000000..64579300 --- /dev/null +++ b/tests/http/quoteSummary-secFilings-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=secFilings" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "6l95pg9g3ha01" + ], + "x-yahoo-request-id": [ + "6l95pg9g3ha01" + ], + "x-request-id": [ + "4adb174a-c80a-4e48-bb27-c3b16e2f9952" + ], + "content-length": [ + "143" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:20 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=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-BTC-USD.json b/tests/http/quoteSummary-summaryDetail-BTC-USD.json new file mode 100644 index 00000000..71606072 --- /dev/null +++ b/tests/http/quoteSummary-summaryDetail-BTC-USD.json @@ -0,0 +1,113 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=summaryDetail" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "1dir329g3ha01" + ], + "x-yahoo-request-id": [ + "1dir329g3ha01" + ], + "x-request-id": [ + "5f3f631b-1d05-4dd0-92cd-9ede4f88fd1e" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "435" + ], + "x-envoy-upstream-service-time": [ + "4" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:21 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=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": 46756.99, + "open": 46756.99, + "dayLow": 44555.176, + "dayHigh": 47677.535, + "regularMarketPreviousClose": 46756.99, + "regularMarketOpen": 46756.99, + "regularMarketDayLow": 44555.176, + "regularMarketDayHigh": 47677.535, + "volume": 62650314752, + "regularMarketVolume": 62650314752, + "averageVolume": 58705874184, + "averageVolume10days": 72812647616, + "averageDailyVolume10Day": 72812647616, + "marketCap": 830460854272, + "fiftyTwoWeekLow": 4106.981, + "fiftyTwoWeekHigh": 58330.57, + "fiftyDayAverage": 40623.53, + "twoHundredDayAverage": 21837.865, + "currency": "USD", + "fromCurrency": "BTC", + "toCurrency": "USD=X", + "lastMarket": "CoinMarketCap", + "volume24Hr": 62650314752, + "volumeAllCurrencies": 62650314752, + "circulatingSupply": 18638932, + "algorithm": null, + "startDate": 1367107200, + "tradeable": false + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-summaryProfile-BTC-USD.json b/tests/http/quoteSummary-summaryProfile-BTC-USD.json new file mode 100644 index 00000000..e16a89a4 --- /dev/null +++ b/tests/http/quoteSummary-summaryProfile-BTC-USD.json @@ -0,0 +1,88 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=summaryProfile" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json" + ], + "cache-control": [ + "public, max-age=1, stale-while-revalidate=9" + ], + "vary": [ + "Origin,Accept-Encoding" + ], + "y-rid": [ + "evkr4m9g3ha02" + ], + "x-yahoo-request-id": [ + "evkr4m9g3ha02" + ], + "x-request-id": [ + "9d387217-e707-48cb-8a57-c247eca6bd41" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "391" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:21 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=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": [ + { + "summaryProfile": { + "companyOfficers": [], + "name": "Bitcoin", + "startDate": "2013-04-28", + "description": "Bitcoin (BTC) is a cryptocurrency . Users are able to generate BTC through the process of mining. Bitcoin has a current supply of 18,638,756. The last known price of Bitcoin is 46,795.55278186 USD and is down -7.54 over the last 24 hours. It is currently trading on 9761 active market(s) with $57,364,948,694.66 traded over the last 24 hours. More information can be found at https://bitcoin.org/.", + "maxAge": 86400 + } + } + ], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/quoteSummary-upgradeDowngradeHistory-BTC-USD.json b/tests/http/quoteSummary-upgradeDowngradeHistory-BTC-USD.json new file mode 100644 index 00000000..028dfdfb --- /dev/null +++ b/tests/http/quoteSummary-upgradeDowngradeHistory-BTC-USD.json @@ -0,0 +1,81 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/BTC-USD?formatted=false&modules=upgradeDowngradeHistory" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin" + ], + "y-rid": [ + "04c4hpdg3ha02" + ], + "x-yahoo-request-id": [ + "04c4hpdg3ha02" + ], + "x-request-id": [ + "cfde334b-e98c-43da-9b1a-48ee3246e557" + ], + "content-length": [ + "156" + ], + "x-envoy-upstream-service-time": [ + "2" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:22 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=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/recommendationsBySymbol-BTC-USD.json b/tests/http/recommendationsBySymbol-BTC-USD.json new file mode 100644 index 00000000..732b761c --- /dev/null +++ b/tests/http/recommendationsBySymbol-BTC-USD.json @@ -0,0 +1,72 @@ +{ + "request": { + "url": "https://query2.finance.yahoo.com/v6/finance/recommendationsbysymbol/BTC-USD?" + }, + "response": { + "ok": false, + "status": 404, + "statusText": "Not Found", + "headers": { + "x-yahoo-request-id": [ + "4nm60glg3h9vg" + ], + "content-encoding": [ + "gzip" + ], + "content-type": [ + "application/json;charset=utf-8" + ], + "vary": [ + "Origin" + ], + "content-length": [ + "58" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:04 GMT" + ], + "age": [ + "0" + ], + "strict-transport-security": [ + "max-age=15552000" + ], + "server": [ + "ATS" + ], + "public-key-pins-report-only": [ + "max-age=2592000; pin-sha256=\"2fRAUXyxl4A1/XHrKNBmc8bTkzA7y4FB/GLJuNAzCqY=\"; pin-sha256=\"I/Lt/z7ekCWanjD0Cvj5EqXls2lOaThEA0H2Bg4BT/o=\"; pin-sha256=\"K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q=\"; pin-sha256=\"Wd8xe/qfTwq3ylFNd3IpaqLHZbh2ZNCLluVzmeNkcpw=\"; pin-sha256=\"WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=\"; pin-sha256=\"cGuxAXyFXFkWm61cF4HPWX8S0srS9j0aSqN0k4AP+4A=\"; pin-sha256=\"dolnbtzEBnELx/9lOEQ22e6OZO/QNb6VSSX2XHA3E7A=\"; pin-sha256=\"i7WTqTvh0OioIruIfFR4kMPnBqrS2rdiVPl/s2uC/CY=\"; pin-sha256=\"r/mIkG3eEpVdm+u/ko/cwxzOMo1bk4TyHIlByibiA5E=\"; pin-sha256=\"uUwZgwDOxcBXrQcntwu+kYFpkiVkOaezL0WYEZ3anJc=\"; includeSubdomains; report-uri=\"http://csp.yahoo.com/beacon/csp?src=yahoocom-hpkp-report-only\"" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "referrer-policy": [ + "no-referrer-when-downgrade" + ], + "cache-control": [ + "max-age=0, private" + ], + "expires": [ + "-1" + ], + "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": [], + "error": null + } + } + } +} \ No newline at end of file diff --git a/tests/http/search-BTC-USD.json b/tests/http/search-BTC-USD.json new file mode 100644 index 00000000..33cc69a0 --- /dev/null +++ b/tests/http/search-BTC-USD.json @@ -0,0 +1,183 @@ +{ + "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=BTC-USD" + }, + "response": { + "ok": true, + "status": 200, + "statusText": "OK", + "headers": { + "content-type": [ + "application/json" + ], + "vary": [ + "Origin,Origin,Accept-Encoding" + ], + "cache-control": [ + "public, max-age=120, stale-while-revalidate=180" + ], + "y-rid": [ + "dr19b4pg3h9vg" + ], + "x-yahoo-request-id": [ + "dr19b4pg3h9vg" + ], + "x-request-id": [ + "3f3e7b0c-835e-4a5f-b308-0614597c60d9" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "879" + ], + "x-envoy-upstream-service-time": [ + "22" + ], + "date": [ + "Fri, 26 Feb 2021 07:49:04 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-search--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": { + "explains": [], + "count": 10, + "quotes": [ + { + "exchange": "CCC", + "shortname": "Bitcoin USD", + "quoteType": "CRYPTOCURRENCY", + "symbol": "BTC-USD", + "index": "quotes", + "score": 111223200, + "typeDisp": "Cryptocurrency", + "isYahooFinance": true + }, + { + "exchange": "NYB", + "shortname": "Bakkt BTC (USD) Monthly Future ", + "quoteType": "FUTURE", + "symbol": "BTM=F", + "index": "quotes", + "score": 30330, + "typeDisp": "Future", + "isYahooFinance": true + }, + { + "exchange": "NYB", + "shortname": "Bakkt BTC (USD) Monthly Future ", + "quoteType": "FUTURE", + "symbol": "BTMM21.NYB", + "index": "quotes", + "score": 20007, + "typeDisp": "Future", + "isYahooFinance": true + }, + { + "exchange": "NYB", + "shortname": "Bakkt BTC (USD) Monthly Future ", + "quoteType": "FUTURE", + "symbol": "BTMX21.NYB", + "index": "quotes", + "score": 20002, + "typeDisp": "Future", + "isYahooFinance": true + }, + { + "exchange": "NYB", + "shortname": "Bakkt BTC (USD) Monthly Future ", + "quoteType": "FUTURE", + "symbol": "BTMN21.NYB", + "index": "quotes", + "score": 20002, + "typeDisp": "Future", + "isYahooFinance": true + }, + { + "exchange": "NYB", + "shortname": "Bakkt BTC (USD) Monthly Future ", + "quoteType": "FUTURE", + "symbol": "BTMQ21.NYB", + "index": "quotes", + "score": 20001, + "typeDisp": "Future", + "isYahooFinance": true + } + ], + "news": [ + { + "uuid": "08e91b71-a00f-3faa-8f3f-8eba1d96b9ca", + "title": "BTC/USD Holds above 26,385 in Downward Triangle, ETH/USD Consolidates above 700", + "publisher": "FX Empire", + "link": "https://finance.yahoo.com/news/btc-usd-holds-above-26-084945536.html", + "providerPublishTime": 1609318185, + "type": "STORY" + }, + { + "uuid": "1f3a2fc5-6d66-3a94-8093-b05146c6ecbc", + "title": "18th February: BTC/USD Declines below 52,000, ETH/USD Comes Closer to 2,000", + "publisher": "FX Empire", + "link": "https://finance.yahoo.com/news/18th-february-btc-usd-declines-095453977.html", + "providerPublishTime": 1613728493, + "type": "STORY" + }, + { + "uuid": "a7fa115f-e675-399d-8de5-ce9628dc8dd3", + "title": "BTC/USD Analysis: Yet Another Symmetrical Triangle", + "publisher": "FX Empire", + "link": "https://finance.yahoo.com/news/btc-usd-analysis-yet-another-121354441.html", + "providerPublishTime": 1612959234, + "type": "STORY" + }, + { + "uuid": "7566604f-92e7-3366-bd65-8e7d7149fbf0", + "title": "Bitcoin Is Going to Crash. The Big Question Is When", + "publisher": "InvestorPlace", + "link": "https://finance.yahoo.com/news/bitcoin-going-crash-big-173013673.html", + "providerPublishTime": 1613410213, + "type": "STORY" + } + ], + "nav": [], + "lists": [], + "researchReports": [], + "totalTime": 21, + "timeTakenForQuotes": 415, + "timeTakenForNews": 700, + "timeTakenForAlgowatchlist": 400, + "timeTakenForPredefinedScreener": 400, + "timeTakenForCrunchbase": 400, + "timeTakenForNav": 400, + "timeTakenForResearchReports": 0 + } + } +} \ No newline at end of file diff --git a/tests/symbols.ts b/tests/symbols.ts index f32ec3ef..7f66f097 100644 --- a/tests/symbols.ts +++ b/tests/symbols.ts @@ -21,4 +21,5 @@ export const testSymbols = [ "BRKS", // NMS "CRON", // NMS "EPAC", // NYSE + "BTC-USD", // CryptoCurrency, CoinMarketCap ];