Skip to content

Commit

Permalink
chore(quoteSummary): cached query results for tests (mostly OCDO.L)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Feb 3, 2021
1 parent 11f68d9 commit 40ca060
Show file tree
Hide file tree
Showing 31 changed files with 2,236 additions and 0 deletions.
73 changes: 73 additions & 0 deletions tests/http/quoteSummary-all-AAPL.json

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions tests/http/quoteSummary-all-OCDO.L.json

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions tests/http/quoteSummary-assetProfile-OCDO.L.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"request": {
"url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/OCDO.L?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": [
"9lbksh5g1kj1t"
],
"x-yahoo-request-id": [
"9lbksh5g1kj1t"
],
"x-request-id": [
"f2956045-8884-4545-ba3e-d6969b855fd1"
],
"content-encoding": [
"gzip"
],
"content-length": [
"1270"
],
"x-envoy-upstream-service-time": [
"2"
],
"date": [
"Wed, 03 Feb 2021 07:09:49 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"
]
},
"body": "{\"quoteSummary\":{\"result\":[{\"assetProfile\":{\"address1\":\"Buildings One & Two Trident Place\",\"address2\":\"Hatfield Business Park Mosquito Way\",\"city\":\"Hatfield\",\"zip\":\"AL10 9UL\",\"country\":\"United Kingdom\",\"phone\":\"44 1707 227 800\",\"fax\":\"44 1707 227 999\",\"website\":\"http://www.ocadogroup.com\",\"industry\":\"Grocery Stores\",\"sector\":\"Consumer Defensive\",\"longBusinessSummary\":\"Ocado Group plc operates as an online grocery retailer in the United Kingdom and internationally. The company operates through three segments: Ocado Retail, UK Solutions & Logistics, and International Solutions. It sells general merchandise products on its Ocado.com; and operates Fetch, a pet store, as well as Sizzle, a kitchen and dining store. The company also provides online retail solutions; and customer fulfillment centers (CFCs) and logistics services for Ocado Retail and Morrisons. Ocado Group plc has a strategic partnership with The Kroger Co. to construct three new CFCs in the Great Lakes, Pacific Northwest, and West regions. The company was founded in 2000 and is headquartered in Hatfield, the United Kingdom.\",\"fullTimeEmployees\":15152,\"companyOfficers\":[{\"maxAge\":1,\"name\":\"Mr. Timothy Steiner OBE\",\"age\":50,\"title\":\"CEO & Exec. Director\",\"yearBorn\":1970,\"fiscalYear\":2019,\"totalPay\":{\"raw\":1802000,\"fmt\":\"1.8M\",\"longFmt\":\"1,802,000\"},\"exercisedValue\":{\"raw\":54120000,\"fmt\":\"54.12M\",\"longFmt\":\"54,120,000\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. Mark Richardson\",\"age\":55,\"title\":\"COO & Exec. Director\",\"yearBorn\":1965,\"fiscalYear\":2019,\"totalPay\":{\"raw\":937000,\"fmt\":\"937k\",\"longFmt\":\"937,000\"},\"exercisedValue\":{\"raw\":13530000,\"fmt\":\"13.53M\",\"longFmt\":\"13,530,000\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. Neill Abrams BA, LLM, LLB (Wits)\",\"age\":55,\"title\":\"Group Gen. Counsel, Company Sec. & Exec. Director\",\"yearBorn\":1965,\"fiscalYear\":2019,\"totalPay\":{\"raw\":879000,\"fmt\":\"879k\",\"longFmt\":\"879,000\"},\"exercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. Luke Giles William Jensen\",\"age\":54,\"title\":\"CEO of Ocado Solutions & Exec. Director\",\"yearBorn\":1966,\"fiscalYear\":2019,\"totalPay\":{\"raw\":970000,\"fmt\":\"970k\",\"longFmt\":\"970,000\"},\"exercisedValue\":{\"raw\":6359100,\"fmt\":\"6.36M\",\"longFmt\":\"6,359,100\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. Stephen Wayne Daintith FCA\",\"age\":55,\"title\":\"CFO & Director\",\"yearBorn\":1965,\"exercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. David M. Shriver\",\"title\":\"Communications Director\",\"exercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. David Hardiman-Evans\",\"title\":\"Sr. VP of North America - Ocado Solutions\",\"exercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. James Matthews\",\"title\":\"CEO of Ocado Technology\",\"exercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}},{\"maxAge\":1,\"name\":\"Mr. Robert Cooper\",\"title\":\"Deputy Company Sec.\",\"exercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"},\"unexercisedValue\":{\"raw\":0,\"fmt\":null,\"longFmt\":\"0\"}}],\"auditRisk\":1,\"boardRisk\":9,\"compensationRisk\":10,\"shareHolderRightsRisk\":1,\"overallRisk\":10,\"governanceEpochDate\":1611273600,\"compensationAsOfEpochDate\":1577750400,\"maxAge\":86400}}],\"error\":null}}"
}
}
73 changes: 73 additions & 0 deletions tests/http/quoteSummary-balanceSheetHistory-OCDO.L.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"request": {
"url": "https://query2.finance.yahoo.com/v10/finance/quoteSummary/OCDO.L?formatted=false&modules=balanceSheetHistory"
},
"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": [
"dp7ltm5g1kj1u"
],
"x-yahoo-request-id": [
"dp7ltm5g1kj1u"
],
"x-request-id": [
"034e23db-6767-4bc7-987c-ab13f1af4030"
],
"content-encoding": [
"gzip"
],
"content-length": [
"1656"
],
"x-envoy-upstream-service-time": [
"3"
],
"date": [
"Wed, 03 Feb 2021 07:09:50 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"
]
},
"body": "{\"quoteSummary\":{\"result\":[{\"balanceSheetHistory\":{\"balanceSheetStatements\":[{\"maxAge\":1,\"endDate\":{\"raw\":1575158400,\"fmt\":\"2019-12-01\"},\"cash\":{\"raw\":750600000,\"fmt\":\"750.6M\",\"longFmt\":\"750,600,000\"},\"shortTermInvestments\":{\"raw\":2800000,\"fmt\":\"2.8M\",\"longFmt\":\"2,800,000\"},\"netReceivables\":{\"raw\":124100000,\"fmt\":\"124.1M\",\"longFmt\":\"124,100,000\"},\"inventory\":{\"raw\":52300000,\"fmt\":\"52.3M\",\"longFmt\":\"52,300,000\"},\"otherCurrentAssets\":{\"raw\":53400000,\"fmt\":\"53.4M\",\"longFmt\":\"53,400,000\"},\"totalCurrentAssets\":{\"raw\":1009200000,\"fmt\":\"1.01B\",\"longFmt\":\"1,009,200,000\"},\"longTermInvestments\":{\"raw\":227800000,\"fmt\":\"227.8M\",\"longFmt\":\"227,800,000\"},\"propertyPlantEquipment\":{\"raw\":837400000,\"fmt\":\"837.4M\",\"longFmt\":\"837,400,000\"},\"goodWill\":{\"raw\":4700000,\"fmt\":\"4.7M\",\"longFmt\":\"4,700,000\"},\"intangibleAssets\":{\"raw\":185800000,\"fmt\":\"185.8M\",\"longFmt\":\"185,800,000\"},\"otherAssets\":{\"raw\":28300000,\"fmt\":\"28.3M\",\"longFmt\":\"28,300,000\"},\"deferredLongTermAssetCharges\":{\"raw\":27200000,\"fmt\":\"27.2M\",\"longFmt\":\"27,200,000\"},\"totalAssets\":{\"raw\":2293200000,\"fmt\":\"2.29B\",\"longFmt\":\"2,293,200,000\"},\"accountsPayable\":{\"raw\":120900000,\"fmt\":\"120.9M\",\"longFmt\":\"120,900,000\"},\"otherCurrentLiab\":{\"raw\":101700000,\"fmt\":\"101.7M\",\"longFmt\":\"101,700,000\"},\"longTermDebt\":{\"raw\":219700000,\"fmt\":\"219.7M\",\"longFmt\":\"219,700,000\"},\"otherLiab\":{\"raw\":217500000,\"fmt\":\"217.5M\",\"longFmt\":\"217,500,000\"},\"deferredLongTermLiab\":{\"raw\":800000,\"fmt\":\"800k\",\"longFmt\":\"800,000\"},\"minorityInterest\":{\"raw\":9400000,\"fmt\":\"9.4M\",\"longFmt\":\"9,400,000\"},\"totalCurrentLiabilities\":{\"raw\":459300000,\"fmt\":\"459.3M\",\"longFmt\":\"459,300,000\"},\"totalLiab\":{\"raw\":1234900000,\"fmt\":\"1.23B\",\"longFmt\":\"1,234,900,000\"},\"commonStock\":{\"raw\":14200000,\"fmt\":\"14.2M\",\"longFmt\":\"14,200,000\"},\"retainedEarnings\":{\"raw\":555200000,\"fmt\":\"555.2M\",\"longFmt\":\"555,200,000\"},\"treasuryStock\":{\"raw\":-225800000,\"fmt\":\"-225.8M\",\"longFmt\":\"-225,800,000\"},\"capitalSurplus\":{\"raw\":705300000,\"fmt\":\"705.3M\",\"longFmt\":\"705,300,000\"},\"otherStockholderEquity\":{\"raw\":-112200000,\"fmt\":\"-112.2M\",\"longFmt\":\"-112,200,000\"},\"totalStockholderEquity\":{\"raw\":1048900000,\"fmt\":\"1.05B\",\"longFmt\":\"1,048,900,000\"},\"netTangibleAssets\":{\"raw\":858400000,\"fmt\":\"858.4M\",\"longFmt\":\"858,400,000\"}},{\"maxAge\":1,\"endDate\":{\"raw\":1543708800,\"fmt\":\"2018-12-02\"},\"cash\":{\"raw\":410800000,\"fmt\":\"410.8M\",\"longFmt\":\"410,800,000\"},\"netReceivables\":{\"raw\":91800000,\"fmt\":\"91.8M\",\"longFmt\":\"91,800,000\"},\"inventory\":{\"raw\":56500000,\"fmt\":\"56.5M\",\"longFmt\":\"56,500,000\"},\"otherCurrentAssets\":{\"raw\":4300000,\"fmt\":\"4.3M\",\"longFmt\":\"4,300,000\"},\"totalCurrentAssets\":{\"raw\":576300000,\"fmt\":\"576.3M\",\"longFmt\":\"576,300,000\"},\"longTermInvestments\":{\"raw\":52600000,\"fmt\":\"52.6M\",\"longFmt\":\"52,600,000\"},\"propertyPlantEquipment\":{\"raw\":556700000,\"fmt\":\"556.7M\",\"longFmt\":\"556,700,000\"},\"intangibleAssets\":{\"raw\":143200000,\"fmt\":\"143.2M\",\"longFmt\":\"143,200,000\"},\"otherAssets\":{\"raw\":21100000,\"fmt\":\"21.1M\",\"longFmt\":\"21,100,000\"},\"deferredLongTermAssetCharges\":{\"raw\":16600000,\"fmt\":\"16.6M\",\"longFmt\":\"16,600,000\"},\"totalAssets\":{\"raw\":1349900000,\"fmt\":\"1.35B\",\"longFmt\":\"1,349,900,000\"},\"accountsPayable\":{\"raw\":133400000,\"fmt\":\"133.4M\",\"longFmt\":\"133,400,000\"},\"otherCurrentLiab\":{\"raw\":30100000,\"fmt\":\"30.1M\",\"longFmt\":\"30,100,000\"},\"longTermDebt\":{\"raw\":244300000,\"fmt\":\"244.3M\",\"longFmt\":\"244,300,000\"},\"otherLiab\":{\"raw\":126300000,\"fmt\":\"126.3M\",\"longFmt\":\"126,300,000\"},\"deferredLongTermLiab\":{\"raw\":800000,\"fmt\":\"800k\",\"longFmt\":\"800,000\"},\"totalCurrentLiabilities\":{\"raw\":329300000,\"fmt\":\"329.3M\",\"longFmt\":\"329,300,000\"},\"totalLiab\":{\"raw\":793300000,\"fmt\":\"793.3M\",\"longFmt\":\"793,300,000\"},\"commonStock\":{\"raw\":14000000,\"fmt\":\"14M\",\"longFmt\":\"14,000,000\"},\"retainedEarnings\":{\"raw\":76700000,\"fmt\":\"76.7M\",\"longFmt\":\"76,700,000\"},\"treasuryStock\":{\"raw\":-124000000,\"fmt\":\"-124M\",\"longFmt\":\"-124,000,000\"},\"capitalSurplus\":{\"raw\":589900000,\"fmt\":\"589.9M\",\"longFmt\":\"589,900,000\"},\"otherStockholderEquity\":{\"raw\":-114800000,\"fmt\":\"-114.8M\",\"longFmt\":\"-114,800,000\"},\"totalStockholderEquity\":{\"raw\":556600000,\"fmt\":\"556.6M\",\"longFmt\":\"556,600,000\"},\"netTangibleAssets\":{\"raw\":413400000,\"fmt\":\"413.4M\",\"longFmt\":\"413,400,000\"}},{\"maxAge\":1,\"endDate\":{\"raw\":1512259200,\"fmt\":\"2017-12-03\"},\"cash\":{\"raw\":150000000,\"fmt\":\"150M\",\"longFmt\":\"150,000,000\"},\"netReceivables\":{\"raw\":53900000,\"fmt\":\"53.9M\",\"longFmt\":\"53,900,000\"},\"inventory\":{\"raw\":42900000,\"fmt\":\"42.9M\",\"longFmt\":\"42,900,000\"},\"otherCurrentAssets\":{\"raw\":400000,\"fmt\":\"400k\",\"longFmt\":\"400,000\"},\"totalCurrentAssets\":{\"raw\":260100000,\"fmt\":\"260.1M\",\"longFmt\":\"260,100,000\"},\"longTermInvestments\":{\"raw\":51400000,\"fmt\":\"51.4M\",\"longFmt\":\"51,400,000\"},\"propertyPlantEquipment\":{\"raw\":468200000,\"fmt\":\"468.2M\",\"longFmt\":\"468,200,000\"},\"intangibleAssets\":{\"raw\":112400000,\"fmt\":\"112.4M\",\"longFmt\":\"112,400,000\"},\"otherAssets\":{\"raw\":16900000,\"fmt\":\"16.9M\",\"longFmt\":\"16,900,000\"},\"deferredLongTermAssetCharges\":{\"raw\":14300000,\"fmt\":\"14.3M\",\"longFmt\":\"14,300,000\"},\"totalAssets\":{\"raw\":909000000,\"fmt\":\"909M\",\"longFmt\":\"909,000,000\"},\"accountsPayable\":{\"raw\":92900000,\"fmt\":\"92.9M\",\"longFmt\":\"92,900,000\"},\"otherCurrentLiab\":{\"raw\":22800000,\"fmt\":\"22.8M\",\"longFmt\":\"22,800,000\"},\"longTermDebt\":{\"raw\":243300000,\"fmt\":\"243.3M\",\"longFmt\":\"243,300,000\"},\"otherLiab\":{\"raw\":60800000,\"fmt\":\"60.8M\",\"longFmt\":\"60,800,000\"},\"totalCurrentLiabilities\":{\"raw\":249800000,\"fmt\":\"249.8M\",\"longFmt\":\"249,800,000\"},\"totalLiab\":{\"raw\":661400000,\"fmt\":\"661.4M\",\"longFmt\":\"661,400,000\"},\"commonStock\":{\"raw\":12600000,\"fmt\":\"12.6M\",\"longFmt\":\"12,600,000\"},\"retainedEarnings\":{\"raw\":140100000,\"fmt\":\"140.1M\",\"longFmt\":\"140,100,000\"},\"treasuryStock\":{\"raw\":-163500000,\"fmt\":\"-163.5M\",\"longFmt\":\"-163,500,000\"},\"capitalSurplus\":{\"raw\":258400000,\"fmt\":\"258.4M\",\"longFmt\":\"258,400,000\"},\"otherStockholderEquity\":{\"raw\":-115500000,\"fmt\":\"-115.5M\",\"longFmt\":\"-115,500,000\"},\"totalStockholderEquity\":{\"raw\":247600000,\"fmt\":\"247.6M\",\"longFmt\":\"247,600,000\"},\"netTangibleAssets\":{\"raw\":135200000,\"fmt\":\"135.2M\",\"longFmt\":\"135,200,000\"}},{\"maxAge\":1,\"endDate\":{\"raw\":1480204800,\"fmt\":\"2016-11-27\"},\"cash\":{\"raw\":50900000,\"fmt\":\"50.9M\",\"longFmt\":\"50,900,000\"},\"netReceivables\":{\"raw\":47800000,\"fmt\":\"47.8M\",\"longFmt\":\"47,800,000\"},\"inventory\":{\"raw\":39100000,\"fmt\":\"39.1M\",\"longFmt\":\"39,100,000\"},\"otherCurrentAssets\":{\"raw\":300000,\"fmt\":\"300k\",\"longFmt\":\"300,000\"},\"totalCurrentAssets\":{\"raw\":149700000,\"fmt\":\"149.7M\",\"longFmt\":\"149,700,000\"},\"longTermInvestments\":{\"raw\":57500000,\"fmt\":\"57.5M\",\"longFmt\":\"57,500,000\"},\"propertyPlantEquipment\":{\"raw\":397300000,\"fmt\":\"397.3M\",\"longFmt\":\"397,300,000\"},\"intangibleAssets\":{\"raw\":79700000,\"fmt\":\"79.7M\",\"longFmt\":\"79,700,000\"},\"otherAssets\":{\"raw\":16400000,\"fmt\":\"16.4M\",\"longFmt\":\"16,400,000\"},\"deferredLongTermAssetCharges\":{\"raw\":14200000,\"fmt\":\"14.2M\",\"longFmt\":\"14,200,000\"},\"totalAssets\":{\"raw\":700600000,\"fmt\":\"700.6M\",\"longFmt\":\"700,600,000\"},\"accountsPayable\":{\"raw\":95200000,\"fmt\":\"95.2M\",\"longFmt\":\"95,200,000\"},\"shortLongTermDebt\":{\"raw\":1600000,\"fmt\":\"1.6M\",\"longFmt\":\"1,600,000\"},\"otherCurrentLiab\":{\"raw\":27500000,\"fmt\":\"27.5M\",\"longFmt\":\"27,500,000\"},\"longTermDebt\":{\"raw\":6100000,\"fmt\":\"6.1M\",\"longFmt\":\"6,100,000\"},\"otherLiab\":{\"raw\":14200000,\"fmt\":\"14.2M\",\"longFmt\":\"14,200,000\"},\"totalCurrentLiabilities\":{\"raw\":290900000,\"fmt\":\"290.9M\",\"longFmt\":\"290,900,000\"},\"totalLiab\":{\"raw\":438200000,\"fmt\":\"438.2M\",\"longFmt\":\"438,200,000\"},\"commonStock\":{\"raw\":12600000,\"fmt\":\"12.6M\",\"longFmt\":\"12,600,000\"},\"retainedEarnings\":{\"raw\":156900000,\"fmt\":\"156.9M\",\"longFmt\":\"156,900,000\"},\"treasuryStock\":{\"raw\":-164000000,\"fmt\":\"-164M\",\"longFmt\":\"-164,000,000\"},\"capitalSurplus\":{\"raw\":256900000,\"fmt\":\"256.9M\",\"longFmt\":\"256,900,000\"},\"otherStockholderEquity\":{\"raw\":-116000000,\"fmt\":\"-116M\",\"longFmt\":\"-116,000,000\"},\"totalStockholderEquity\":{\"raw\":262400000,\"fmt\":\"262.4M\",\"longFmt\":\"262,400,000\"},\"netTangibleAssets\":{\"raw\":182700000,\"fmt\":\"182.7M\",\"longFmt\":\"182,700,000\"}}],\"maxAge\":86400}}],\"error\":null}}"
}
}
Loading

0 comments on commit 40ca060

Please sign in to comment.