-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(search): ETF/Fund types, ?shortname, more tests (#31)
- Loading branch information
Showing
6 changed files
with
392 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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=0P000071W8.TO" | ||
}, | ||
"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": [ | ||
"am6je9pg2csuq" | ||
], | ||
"x-yahoo-request-id": [ | ||
"am6je9pg2csuq" | ||
], | ||
"x-request-id": [ | ||
"f5b79422-7f04-44e2-bc5b-3c523393ab70" | ||
], | ||
"content-encoding": [ | ||
"gzip" | ||
], | ||
"content-length": [ | ||
"609" | ||
], | ||
"x-envoy-upstream-service-time": [ | ||
"27" | ||
], | ||
"date": [ | ||
"Fri, 12 Feb 2021 12:26:02 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\":6,\"quotes\":[{\"exchange\":\"TOR\",\"shortname\":\"TD Indiciel américain - e (C$)\",\"quoteType\":\"MUTUALFUND\",\"symbol\":\"0P000071W8.TO\",\"index\":\"quotes\",\"score\":2000100.0,\"typeDisp\":\"Fund\",\"longname\":\"TD U.S. Index Fund - e\",\"isYahooFinance\":true}],\"news\":[],\"nav\":[{\"navName\":\"How To\",\"navUrl\":\"http://finance.yahoo.com/tech/how-to\"}],\"lists\":[{\"slug\":\"most-added\",\"name\":\"Most Added to Watchlists\",\"index\":\"most-added\",\"score\":11.003144,\"type\":\"ALGO_WATCHLIST\",\"brandSlug\":\"yahoo-finance\",\"pfId\":\"most_added\"},{\"slug\":\"top-crypto-bets\",\"name\":\"Top Crypto Bets\",\"index\":\"top-crypto-bets\",\"score\":5.9393153,\"type\":\"ALGO_WATCHLIST\",\"brandSlug\":\"yahoo-finance\",\"pfId\":\"top_crypto_bets\"},{\"slug\":\"crypto-top-market-cap\",\"name\":\"Top Cryptos by Market Cap\",\"index\":\"crypto-top-market-cap\",\"score\":2.7857459,\"type\":\"ALGO_WATCHLIST\",\"brandSlug\":\"yahoo-finance\",\"pfId\":\"crypto_top_market_cap\"},{\"slug\":\"crypto-top-volume-24hr\",\"name\":\"Top Cryptos by Volume (all currencies, 24hr)\",\"index\":\"crypto-top-volume-24hr\",\"score\":2.4794414,\"type\":\"ALGO_WATCHLIST\",\"brandSlug\":\"yahoo-finance\",\"pfId\":\"crypto_top_volume_24hr\"}],\"researchReports\":[],\"totalTime\":25,\"timeTakenForQuotes\":413,\"timeTakenForNews\":700,\"timeTakenForAlgowatchlist\":400,\"timeTakenForPredefinedScreener\":400,\"timeTakenForCrunchbase\":400,\"timeTakenForNav\":400,\"timeTakenForResearchReports\":0}" | ||
} | ||
} |
Oops, something went wrong.