diff --git a/schema.json b/schema.json index 24c53a65..e92a608c 100644 --- a/schema.json +++ b/schema.json @@ -2157,38 +2157,6 @@ "type": "string" } }, - "required": [ - "link", - "providerPublishTime", - "publisher", - "title", - "type", - "uuid" - ], - "type": "object" - }, - "SearchNewsOrig": { - "additionalProperties": false, - "properties": { - "link": { - "type": "string" - }, - "providerPublishTime": { - "yahooFinanceType": "number" - }, - "publisher": { - "type": "string" - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - }, - "uuid": { - "type": "string" - } - }, "required": [ "uuid", "title", @@ -2306,7 +2274,6 @@ "index", "score", "typeDisp", - "longname", "isYahooFinance" ], "type": "object" @@ -2424,94 +2391,6 @@ "yahooFinanceType": "number" } }, - "required": [ - "count", - "explains", - "lists", - "nav", - "news", - "quotes", - "researchReports", - "timeTakenForAlgowatchlist", - "timeTakenForCrunchbase", - "timeTakenForNav", - "timeTakenForNews", - "timeTakenForPredefinedScreener", - "timeTakenForQuotes", - "timeTakenForResearchReports", - "totalTime" - ], - "type": "object" - }, - "SearchResultOrig": { - "additionalProperties": false, - "properties": { - "count": { - "yahooFinanceType": "number" - }, - "explains": { - "items": {}, - "type": "array" - }, - "lists": { - "items": {}, - "type": "array" - }, - "nav": { - "items": {}, - "type": "array" - }, - "news": { - "items": { - "$ref": "#/definitions/SearchNewsOrig" - }, - "type": "array" - }, - "quotes": { - "items": { - "anyOf": [ - { - "$ref": "#/definitions/SearchQuoteYahooEquity" - }, - { - "$ref": "#/definitions/SearchQuoteYahooOption" - }, - { - "$ref": "#/definitions/SearchQuoteNonYahoo" - } - ] - }, - "type": "array" - }, - "researchReports": { - "items": {}, - "type": "array" - }, - "timeTakenForAlgowatchlist": { - "yahooFinanceType": "number" - }, - "timeTakenForCrunchbase": { - "yahooFinanceType": "number" - }, - "timeTakenForNav": { - "yahooFinanceType": "number" - }, - "timeTakenForNews": { - "yahooFinanceType": "number" - }, - "timeTakenForPredefinedScreener": { - "yahooFinanceType": "number" - }, - "timeTakenForQuotes": { - "yahooFinanceType": "number" - }, - "timeTakenForResearchReports": { - "yahooFinanceType": "number" - }, - "totalTime": { - "yahooFinanceType": "number" - } - }, "required": [ "explains", "count", diff --git a/src/modules/search.spec.ts b/src/modules/search.spec.ts index 4df4a45e..f5197cdb 100644 --- a/src/modules/search.spec.ts +++ b/src/modules/search.spec.ts @@ -12,10 +12,22 @@ const yf = { search }; +const testSearches = [ + "AAPL", // NMS (Nasdaq) + "OCDO.L", // LSE + "BABA", // NYSE + "Evolution Gaming Group", // STO + "Bayerische Motoren Werke AG", // GER +]; + describe('search', () => { - it('passes validation', async () => { - await yf.search('AAPL', {}, { devel: "search-AAPL.json" }); + // validate different searches + testSearches.forEach((search) => { + it(`passed validation for search: ${search}`, async () => { + const devel = `search-${search}.json`; + await yf.search(search, {}, { devel }); + }); }); it('throws InvalidOptions on invalid options', async () => { diff --git a/src/modules/search.ts b/src/modules/search.ts index fe8ae7c1..8cca8faa 100644 --- a/src/modules/search.ts +++ b/src/modules/search.ts @@ -5,8 +5,8 @@ export interface SearchQuoteYahooEquity { symbol: string; // "BABA" index: "quotes"; // "quotes" score: number; // 1111958.0 - typeDisp: "Equity"; // "Equity" - longname: string; // "Alibaba Group Holding Limited" + typeDisp: "Equity"; // "Equity" + longname?: string; // "Alibaba Group Holding Limited" isYahooFinance: true; // true } export interface SearchQuoteYahooOption { diff --git a/tests/http/search-BABA.json b/tests/http/search-BABA.json new file mode 100644 index 00000000..34c3460f --- /dev/null +++ b/tests/http/search-BABA.json @@ -0,0 +1,73 @@ +{ + "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=BABA" + }, + "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": [ + "254otvdg1oh2f" + ], + "x-yahoo-request-id": [ + "254otvdg1oh2f" + ], + "x-request-id": [ + "25d97636-8501-44e6-adff-6fd48ef1b5d2" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "973" + ], + "x-envoy-upstream-service-time": [ + "51" + ], + "date": [ + "Thu, 04 Feb 2021 19:00:31 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" + ] + }, + "body": "{\"explains\":[],\"count\":11,\"quotes\":[{\"exchange\":\"NYQ\",\"shortname\":\"Alibaba Group Holding Limited\",\"quoteType\":\"EQUITY\",\"symbol\":\"BABA\",\"index\":\"quotes\",\"score\":1.030526E8,\"typeDisp\":\"Equity\",\"longname\":\"Alibaba Group Holding Limited\",\"isYahooFinance\":true},{\"exchange\":\"HKG\",\"shortname\":\"BABA-SW\",\"quoteType\":\"EQUITY\",\"symbol\":\"9988.HK\",\"index\":\"quotes\",\"score\":88098.0,\"typeDisp\":\"Equity\",\"longname\":\"Alibaba Group Holding Limited\",\"isYahooFinance\":true},{\"exchange\":\"PNK\",\"shortname\":\"ALIBABA GROUP HOLDING LTD\",\"quoteType\":\"EQUITY\",\"symbol\":\"BABAF\",\"index\":\"quotes\",\"score\":22257.0,\"typeDisp\":\"Equity\",\"longname\":\"Alibaba Group Holding Limited\",\"isYahooFinance\":true},{\"exchange\":\"MEX\",\"shortname\":\"ALIBABA GROUP HOLDING LTD\",\"quoteType\":\"EQUITY\",\"symbol\":\"BABAN.MX\",\"index\":\"quotes\",\"score\":20295.0,\"typeDisp\":\"Equity\",\"longname\":\"Alibaba Group Holding Limited\",\"isYahooFinance\":true},{\"exchange\":\"BUE\",\"shortname\":\"ALIBABA GROUP HLDG\",\"quoteType\":\"EQUITY\",\"symbol\":\"BABA.BA\",\"index\":\"quotes\",\"score\":20139.0,\"typeDisp\":\"Equity\",\"isYahooFinance\":true},{\"index\":\"28c0f1efda8f3257fb1353d48c109146\",\"name\":\"Babajob\",\"permalink\":\"babajob\",\"isYahooFinance\":false},{\"index\":\"bfb458f36b57fa497a837e6b565b6b5a\",\"name\":\"BABADU\",\"permalink\":\"babadu\",\"isYahooFinance\":false}],\"news\":[{\"uuid\":\"64f6c4d1-8034-37b9-b169-9c5af532bc0a\",\"title\":\"Best China ETFs for Q2 2021\",\"publisher\":\"Investopedia\",\"link\":\"https://finance.yahoo.com/m/64f6c4d1-8034-37b9-b169-9c5af532bc0a/best-china-etfs-for-q2-2021.html\",\"providerPublishTime\":1612463129,\"type\":\"STORY\"},{\"uuid\":\"0b988176-57f4-3b24-8e21-6013e44cda32\",\"title\":\"Alibaba Poised to Sell $5 Billion of Bonds in Four-Part Offering\",\"publisher\":\"Bloomberg\",\"link\":\"https://finance.yahoo.com/news/alibaba-rallies-credit-market-dollar-081527208.html\",\"providerPublishTime\":1612464477,\"type\":\"STORY\"},{\"uuid\":\"cab8d0ee-c691-3074-8205-916591e2f453\",\"title\":\"BABA earnings and revenue beat expectations\",\"publisher\":\"Yahoo Finance\",\"link\":\"https://finance.yahoo.com/news/baba-alibaba-earnings-235121833.html\",\"providerPublishTime\":1612275357,\"type\":\"STORY\"},{\"uuid\":\"9661284b-99b3-35ba-8bfa-d62a69bd0c87\",\"title\":\"Alibaba Group Holding Ltd. (BABA) Q3 2021 Earnings Call Transcript\",\"publisher\":\"Motley Fool\",\"link\":\"https://finance.yahoo.com/m/9661284b-99b3-35ba-8bfa-d62a69bd0c87/alibaba-group-holding-ltd..html\",\"providerPublishTime\":1612319495,\"type\":\"STORY\"}],\"nav\":[],\"lists\":[],\"researchReports\":[],\"totalTime\":49,\"timeTakenForQuotes\":428,\"timeTakenForNews\":700,\"timeTakenForAlgowatchlist\":400,\"timeTakenForPredefinedScreener\":400,\"timeTakenForCrunchbase\":400,\"timeTakenForNav\":400,\"timeTakenForResearchReports\":0}" + } +} \ No newline at end of file diff --git a/tests/http/search-Bayerische Motoren Werke AG.json b/tests/http/search-Bayerische Motoren Werke AG.json new file mode 100644 index 00000000..a5f28b53 --- /dev/null +++ b/tests/http/search-Bayerische Motoren Werke AG.json @@ -0,0 +1,73 @@ +{ + "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=Bayerische+Motoren+Werke+AG" + }, + "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": [ + "8abjk71g1oh2g" + ], + "x-yahoo-request-id": [ + "8abjk71g1oh2g" + ], + "x-request-id": [ + "56cc847d-3bf9-42e4-bfe2-8aed071c55d7" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "1147" + ], + "x-envoy-upstream-service-time": [ + "40" + ], + "date": [ + "Thu, 04 Feb 2021 19:00:31 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-search--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" + ] + }, + "body": "{\"explains\":[],\"count\":12,\"quotes\":[{\"exchange\":\"PNK\",\"shortname\":\"BAYERISCHE MOTOREN WERKE AG\",\"quoteType\":\"EQUITY\",\"symbol\":\"BMWYY\",\"index\":\"quotes\",\"score\":21419.0,\"typeDisp\":\"Equity\",\"longname\":\"Bayerische Motoren Werke Aktiengesellschaft\",\"isYahooFinance\":true},{\"exchange\":\"PNK\",\"shortname\":\"BAYERISCHE MOTOREN WERKE AG\",\"quoteType\":\"EQUITY\",\"symbol\":\"BAMXF\",\"index\":\"quotes\",\"score\":20076.0,\"typeDisp\":\"Equity\",\"longname\":\"Bayerische Motoren Werke Aktiengesellschaft\",\"isYahooFinance\":true},{\"exchange\":\"STU\",\"shortname\":\"Bayerische Motoren Werke AG Nam\",\"quoteType\":\"EQUITY\",\"symbol\":\"BMWB.SG\",\"index\":\"quotes\",\"score\":20017.0,\"typeDisp\":\"Equity\",\"isYahooFinance\":true},{\"exchange\":\"MEX\",\"shortname\":\"BAYERISCHE MOTOREN WERKE AG\",\"quoteType\":\"EQUITY\",\"symbol\":\"BMWM5N.MX\",\"index\":\"quotes\",\"score\":20004.0,\"typeDisp\":\"Equity\",\"longname\":\"Bayerische Motoren Werke Aktiengesellschaft\",\"isYahooFinance\":true},{\"exchange\":\"IOB\",\"shortname\":\"BAYERISCHE MOTOREN WERKE AG BMW\",\"quoteType\":\"EQUITY\",\"symbol\":\"0O0V.IL\",\"index\":\"quotes\",\"score\":20001.0,\"typeDisp\":\"Equity\",\"isYahooFinance\":true},{\"exchange\":\"IOB\",\"shortname\":\"BAYERISCHE MOTOREN WERKE AG BMW\",\"quoteType\":\"EQUITY\",\"symbol\":\"0O0U.IL\",\"index\":\"quotes\",\"score\":20001.0,\"typeDisp\":\"Equity\",\"isYahooFinance\":true}],\"news\":[{\"uuid\":\"882e19ed-6b71-3498-a2cf-33c1be252fb1\",\"title\":\"BMW Canada Auto Trust 2021-1 -- Moody's assigns provisional ratings to BMW Canada Auto Trust 2021-1 notes\",\"publisher\":\"Moody's\",\"link\":\"https://finance.yahoo.com/news/bmw-canada-auto-trust-2021-150808166.html\",\"providerPublishTime\":1612451288,\"type\":\"STORY\"},{\"uuid\":\"145581c7-9fbd-3cba-a1ed-9dc1a94c22a2\",\"title\":\"ROSEN, GLOBAL INVESTOR COUNSEL, Reminds Bayerische Motoren Werke AG Investors of Important December 28 Deadline in First Filed Securities Class Action Commenced by the Firm – BMWYY, BAMXF\",\"publisher\":\"GlobeNewswire\",\"link\":\"https://finance.yahoo.com/news/rosen-global-investor-counsel-reminds-001800995.html\",\"providerPublishTime\":1605917880,\"type\":\"STORY\"},{\"uuid\":\"501140e5-0b5f-34f3-ba8d-7c4cfa6f4011\",\"title\":\"ROSEN, A TOP RANKED LAW FIRM, Reminds Bayerische Motoren Werke AG Investors of Important Deadline in Securities Class Action First Filed by the Firm – BMWYY, BAMXF\",\"publisher\":\"GlobeNewswire\",\"link\":\"https://finance.yahoo.com/news/rosen-top-ranked-law-firm-184500445.html\",\"providerPublishTime\":1607193900,\"type\":\"STORY\"},{\"uuid\":\"e45869d5-a6ef-3877-a01a-bc4b2810c08a\",\"title\":\"ROSEN, A LEADING INVESTOR RIGHTS LAW FIRM, Reminds Bayerische Motoren Werke AG Investors of Important Deadline in Securities Class Action First Filed by the Firm – BMWYY, BAMXF\",\"publisher\":\"GlobeNewswire\",\"link\":\"https://finance.yahoo.com/news/rosen-leading-investor-rights-law-003800640.html\",\"providerPublishTime\":1608251880,\"type\":\"STORY\"}],\"nav\":[],\"lists\":[{\"slug\":\"the-fight-against-covid19\",\"name\":\"The Fight Against COVID19\",\"index\":\"the-fight-against-covid19\",\"score\":6.588091,\"type\":\"ALGO_WATCHLIST\",\"brandSlug\":\"trea\",\"pfId\":\"the_fight_against_covid19\"},{\"slug\":\"aging-baby-boomers\",\"name\":\"Aging Baby Boomers\",\"index\":\"aging-baby-boomers\",\"score\":1.0670694,\"type\":\"ALGO_WATCHLIST\",\"brandSlug\":\"yahoo-finance\",\"pfId\":\"aging_baby_boomers\"}],\"researchReports\":[],\"totalTime\":39,\"timeTakenForQuotes\":420,\"timeTakenForNews\":700,\"timeTakenForAlgowatchlist\":400,\"timeTakenForPredefinedScreener\":400,\"timeTakenForCrunchbase\":400,\"timeTakenForNav\":400,\"timeTakenForResearchReports\":0}" + } +} \ No newline at end of file diff --git a/tests/http/search-Evolution Gaming Group.json b/tests/http/search-Evolution Gaming Group.json new file mode 100644 index 00000000..60183050 --- /dev/null +++ b/tests/http/search-Evolution Gaming Group.json @@ -0,0 +1,73 @@ +{ + "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=Evolution+Gaming+Group" + }, + "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": [ + "5if69ptg1ohq4" + ], + "x-yahoo-request-id": [ + "5if69ptg1ohq4" + ], + "x-request-id": [ + "c786c0ee-5208-4149-a514-12f3dd061db1" + ], + "content-encoding": [ + "gzip" + ], + "content-length": [ + "871" + ], + "x-envoy-upstream-service-time": [ + "49" + ], + "date": [ + "Thu, 04 Feb 2021 19:13:07 GMT" + ], + "server": [ + "ATS" + ], + "x-envoy-decorator-operation": [ + "finance-search--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" + ] + }, + "body": "{\"explains\":[],\"count\":9,\"quotes\":[{\"exchange\":\"STO\",\"shortname\":\"Evolution Gaming Group AB\",\"quoteType\":\"EQUITY\",\"symbol\":\"EVO.ST\",\"index\":\"quotes\",\"score\":23677.0,\"typeDisp\":\"Equity\",\"longname\":\"Evolution Gaming Group AB (publ)\",\"isYahooFinance\":true},{\"exchange\":\"PNK\",\"shortname\":\"EVOLUTION GAMING GROUP AB\",\"quoteType\":\"EQUITY\",\"symbol\":\"EVVTY\",\"index\":\"quotes\",\"score\":20289.0,\"typeDisp\":\"Equity\",\"longname\":\"Evolution Gaming Group AB (publ)\",\"isYahooFinance\":true},{\"exchange\":\"PNK\",\"shortname\":\"EVOLUTION GAMING GROUP AB\",\"quoteType\":\"EQUITY\",\"symbol\":\"EVGGF\",\"index\":\"quotes\",\"score\":20023.0,\"typeDisp\":\"Equity\",\"longname\":\"Evolution Gaming Group AB (publ)\",\"isYahooFinance\":true},{\"exchange\":\"IOB\",\"shortname\":\"EVOLUTION GAMING GROUP AB (PUBL\",\"quoteType\":\"EQUITY\",\"symbol\":\"0RQ6.IL\",\"index\":\"quotes\",\"score\":20001.0,\"typeDisp\":\"Equity\",\"isYahooFinance\":true},{\"exchange\":\"MEX\",\"shortname\":\"EVOLUTION GAMING GROUP AB\",\"quoteType\":\"EQUITY\",\"symbol\":\"EVON.MX\",\"index\":\"quotes\",\"score\":20001.0,\"typeDisp\":\"Equity\",\"longname\":\"Evolution Gaming Group AB (publ)\",\"isYahooFinance\":true},{\"exchange\":\"FRA\",\"shortname\":\"EVOLUTION GAM.GR.SK-,003\",\"quoteType\":\"EQUITY\",\"symbol\":\"E3G1.F\",\"index\":\"quotes\",\"score\":20001.0,\"typeDisp\":\"Equity\",\"longname\":\"Evolution Gaming Group AB (publ)\",\"isYahooFinance\":true}],\"news\":[{\"uuid\":\"a8d99232-9b94-3bfa-8ce4-de8c0cc1fe23\",\"title\":\"A Look at Bank of America's Recent Quarter\",\"publisher\":\"Motley Fool\",\"link\":\"https://finance.yahoo.com/m/a8d99232-9b94-3bfa-8ce4-de8c0cc1fe23/a-look-at-bank-of-america%27s.html\",\"providerPublishTime\":1611464400,\"type\":\"STORY\"},{\"uuid\":\"7cdd39e2-a610-368b-b698-1323e0f5537a\",\"title\":\"Biden campaign made decisions on ‘probability’ of a polling error: Annie Duke\",\"publisher\":\"Yahoo Finance Video\",\"link\":\"https://finance.yahoo.com/video/biden-campaign-made-decisions-probability-100000788.html\",\"providerPublishTime\":1608199200,\"type\":\"VIDEO\"},{\"uuid\":\"3df433ab-fce6-3aed-8de7-d852bbbd7d0c\",\"title\":\"Evolution launches world´s first online live Craps game\",\"publisher\":\"PR Newswire\",\"link\":\"https://finance.yahoo.com/news/evolution-launches-world-first-online-085700532.html\",\"providerPublishTime\":1605171420,\"type\":\"STORY\"}],\"nav\":[],\"lists\":[],\"researchReports\":[],\"totalTime\":47,\"timeTakenForQuotes\":432,\"timeTakenForNews\":700,\"timeTakenForAlgowatchlist\":400,\"timeTakenForPredefinedScreener\":400,\"timeTakenForCrunchbase\":400,\"timeTakenForNav\":400,\"timeTakenForResearchReports\":0}" + } +} \ No newline at end of file diff --git a/tests/http/search-OCDO.L.json b/tests/http/search-OCDO.L.json new file mode 100644 index 00000000..1cbd09a0 --- /dev/null +++ b/tests/http/search-OCDO.L.json @@ -0,0 +1,70 @@ +{ + "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=OCDO.L" + }, + "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": [ + "fm28mc1g1oh2f" + ], + "x-yahoo-request-id": [ + "fm28mc1g1oh2f" + ], + "x-request-id": [ + "9c2213d3-9cec-44ca-8067-52bb0d0cb4db" + ], + "content-length": [ + "503" + ], + "x-envoy-upstream-service-time": [ + "34" + ], + "date": [ + "Thu, 04 Feb 2021 19:00:31 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" + ] + }, + "body": "{\"explains\":[],\"count\":1,\"quotes\":[{\"exchange\":\"LSE\",\"shortname\":\"OCADO GROUP PLC ORD 2P\",\"quoteType\":\"EQUITY\",\"symbol\":\"OCDO.L\",\"index\":\"quotes\",\"score\":2102100.0,\"typeDisp\":\"Equity\",\"longname\":\"Ocado Group plc\",\"isYahooFinance\":true}],\"news\":[],\"nav\":[],\"lists\":[],\"researchReports\":[],\"totalTime\":33,\"timeTakenForQuotes\":418,\"timeTakenForNews\":700,\"timeTakenForAlgowatchlist\":400,\"timeTakenForPredefinedScreener\":400,\"timeTakenForCrunchbase\":400,\"timeTakenForNav\":400,\"timeTakenForResearchReports\":0}" + } +} \ No newline at end of file