Skip to content

Commit

Permalink
chore(tests): add test symbol ^VXAPL - an index (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Jul 28, 2021
1 parent 95e64b1 commit 0a0f1bf
Show file tree
Hide file tree
Showing 37 changed files with 3,147 additions and 1 deletion.
75 changes: 75 additions & 0 deletions tests/http/autoc-^VXAPL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"request": {
"url": "https://autoc.finance.yahoo.com/autoc?region=1&lang=en&query=%5EVXAPL"
},
"response": {
"ok": true,
"status": 200,
"statusText": "OK",
"headers": {
"x-content-type-options": [
"nosniff"
],
"x-yahoo-request-id": [
"fsclkotgg1s5j"
],
"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": [
"160"
],
"date": [
"Wed, 28 Jul 2021 05:52:51 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": "^VXAPL",
"Result": [
{
"symbol": "^VXAPL",
"name": "CBOE EQUITY VIXON APPLE",
"exch": "WCB",
"type": "I",
"exchDisp": "Chicago Board Options Exchange",
"typeDisp": "Index"
}
]
}
}
}
}
78 changes: 78 additions & 0 deletions tests/http/insights-^VXAPL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"request": {
"url": "https://query2.finance.yahoo.com/ws/insights/v2/finance/insights?lang=en-US&region=US&getAllResearchReports=true&reportsCount=2&symbol=%5EVXAPL"
},
"response": {
"ok": true,
"status": 200,
"statusText": "OK",
"headers": {
"content-type": [
"application/json;charset=utf-8"
],
"cache-control": [
"public, max-age=300, stale-while-revalidate=120"
],
"vary": [
"Origin,Accept-Encoding"
],
"y-rid": [
"aa1nb31gg1s5j"
],
"x-yahoo-request-id": [
"aa1nb31gg1s5j"
],
"x-request-id": [
"c66a2b67-bd13-4c6a-98e1-eb0889a29566"
],
"content-length": [
"68"
],
"x-envoy-upstream-service-time": [
"5"
],
"date": [
"Wed, 28 Jul 2021 05:52:51 GMT"
],
"server": [
"ATS"
],
"x-envoy-decorator-operation": [
"finance-market-analytics-api--mtls-production-bf1.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": {
"finance": {
"result": {
"symbol": "^VXAPL",
"sigDevs": []
},
"error": null
}
}
}
}
117 changes: 117 additions & 0 deletions tests/http/quote-^VXAPL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"request": {
"url": "https://query2.finance.yahoo.com/v7/finance/quote?symbols=%5EVXAPL"
},
"response": {
"ok": true,
"status": 200,
"statusText": "OK",
"headers": {
"content-type": [
"application/json;charset=utf-8"
],
"cache-control": [
"public, max-age=1, stale-while-revalidate=9"
],
"vary": [
"Origin,Accept-Encoding"
],
"y-rid": [
"dtmibq9gg1s5j"
],
"x-yahoo-request-id": [
"dtmibq9gg1s5j"
],
"x-request-id": [
"352a87f3-07f8-432b-a8a8-2862baea596e"
],
"content-length": [
"1018"
],
"x-envoy-upstream-service-time": [
"3"
],
"date": [
"Wed, 28 Jul 2021 05:52:51 GMT"
],
"server": [
"ATS"
],
"x-envoy-decorator-operation": [
"finance-quote-api--mtls-baseline-production-bf1.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": "INDEX",
"triggerable": true,
"currency": "USD",
"marketState": "PREPRE",
"shortName": "CBOE EQUITY VIXON APPLE",
"exchange": "WCB",
"messageBoardId": "finmb_INDEXVXAPL",
"exchangeTimezoneName": "America/New_York",
"exchangeTimezoneShortName": "EDT",
"gmtOffSetMilliseconds": -14400000,
"market": "us_market",
"esgPopulated": false,
"regularMarketPreviousClose": 30.44,
"bid": 0,
"ask": 0,
"bidSize": 0,
"askSize": 0,
"fullExchangeName": "Chicago Options",
"regularMarketOpen": 0,
"fiftyTwoWeekLowChange": 30.99,
"fiftyTwoWeekRange": "0.0 - 0.0",
"fiftyTwoWeekHighChange": 30.99,
"fiftyTwoWeekLow": 0,
"fiftyTwoWeekHigh": 0,
"sourceInterval": 15,
"exchangeDataDelayedBy": 20,
"tradeable": false,
"priceHint": 2,
"regularMarketChange": 0.54999924,
"regularMarketChangePercent": 1.8068306,
"regularMarketTime": 1627415991,
"regularMarketPrice": 30.99,
"regularMarketDayHigh": 0,
"regularMarketDayRange": "0.0 - 0.0",
"regularMarketDayLow": 0,
"regularMarketVolume": 0,
"symbol": "^VXAPL"
}
],
"error": null
}
}
}
}
Loading

0 comments on commit 0a0f1bf

Please sign in to comment.