Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite and skip yfinance tests #3953

Merged
merged 7 commits into from
Jan 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ interactions:
Connection:
- keep-alive
method: GET
uri: https://query2.finance.yahoo.com/v8/finance/chart/PM?events=div%2Csplits%2CcapitalGains&includePrePost=False&interval=1d&period1=MOCK_PERIOD_1&period2=MOCK_PERIOD_2
uri: https://query2.finance.yahoo.com/v8/finance/chart/PM?interval=1d&range=1d
response:
body:
string: '{"chart":{"result":[{"meta":{"currency":"USD","symbol":"PM","exchangeName":"NYQ","instrumentType":"EQUITY","firstTradeDate":1205760600,"regularMarketTime":1673384402,"gmtoffset":-18000,"timezone":"EST","exchangeTimezoneName":"America/New_York","regularMarketPrice":102.19,"chartPreviousClose":103.49,"priceHint":2,"currentTradingPeriod":{"pre":{"timezone":"EST","end":1673447400,"start":1673427600,"gmtoffset":-18000},"regular":{"timezone":"EST","end":1673470800,"start":1673447400,"gmtoffset":-18000},"post":{"timezone":"EST","end":1673485200,"start":1673470800,"gmtoffset":-18000}},"dataGranularity":"1d","range":"","validRanges":["1d","5d","1mo","3mo","6mo","1y","2y","5y","10y","ytd","max"]},"timestamp":[1673274600,1673361000],"indicators":{"quote":[{"open":[104.0,102.62000274658203],"high":[104.43000030517578,102.81999969482422],"low":[102.27999877929688,101.79000091552734],"close":[102.30000305175781,102.19000244140625],"volume":[4864200,4275100]}],"adjclose":[{"adjclose":[102.30000305175781,102.19000244140625]}]}}],"error":null}}'
string: '{"chart":{"result":[{"meta":{"currency":"USD","symbol":"PM","exchangeName":"NYQ","instrumentType":"EQUITY","firstTradeDate":1205760600,"regularMarketTime":1673632856,"gmtoffset":-18000,"timezone":"EST","exchangeTimezoneName":"America/New_York","regularMarketPrice":101.3,"chartPreviousClose":101.44,"priceHint":2,"currentTradingPeriod":{"pre":{"timezone":"EST","start":1673600400,"end":1673620200,"gmtoffset":-18000},"regular":{"timezone":"EST","start":1673620200,"end":1673643600,"gmtoffset":-18000},"post":{"timezone":"EST","start":1673643600,"end":1673658000,"gmtoffset":-18000}},"dataGranularity":"1d","range":"1d","validRanges":["1d","5d","1mo","3mo","6mo","1y","2y","5y","10y","ytd","max"]},"timestamp":[1673632856],"indicators":{"quote":[{"volume":[912691],"high":[101.86000061035156],"low":[101.20999908447266],"close":[101.30000305175781],"open":[101.33999633789062]}],"adjclose":[{"adjclose":[101.30000305175781]}]}}],"error":null}}'
headers:
Age:
- '0'
Expand All @@ -33,25 +33,81 @@ interactions:
cache-control:
- public, max-age=10, stale-while-revalidate=20
content-length:
- '1043'
- '942'
content-type:
- application/json;charset=utf-8
date:
- Wed, 11 Jan 2023 10:16:54 GMT
- Fri, 13 Jan 2023 18:01:13 GMT
server:
- ATS
vary:
- Origin,Accept-Encoding
x-envoy-decorator-operation:
- finance-chart-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*
x-envoy-upstream-service-time:
- '16'
- '29'
x-request-id:
- 8af034e4-d29b-4ed1-9f2a-b15f71ebc3e0
x-yahoo-request-id:
- 2u87eehhs3739
y-rid:
- 2u87eehhs3739
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
method: GET
uri: https://query2.finance.yahoo.com/v8/finance/chart/PM?events=div%2Csplits%2CcapitalGains&includePrePost=False&interval=1d&period1=MOCK_PERIOD_1&period2=MOCK_PERIOD_2
response:
body:
string: '{"chart":{"result":[{"meta":{"currency":"USD","symbol":"PM","exchangeName":"NYQ","instrumentType":"EQUITY","firstTradeDate":1205760600,"regularMarketTime":1673632856,"gmtoffset":-18000,"timezone":"EST","exchangeTimezoneName":"America/New_York","regularMarketPrice":101.3,"chartPreviousClose":102.3,"priceHint":2,"currentTradingPeriod":{"pre":{"timezone":"EST","start":1673600400,"end":1673620200,"gmtoffset":-18000},"regular":{"timezone":"EST","start":1673620200,"end":1673643600,"gmtoffset":-18000},"post":{"timezone":"EST","start":1673643600,"end":1673658000,"gmtoffset":-18000}},"dataGranularity":"1d","range":"","validRanges":["1d","5d","1mo","3mo","6mo","1y","2y","5y","10y","ytd","max"]},"timestamp":[1673361000,1673447400,1673533800,1673632856],"indicators":{"quote":[{"low":[101.79000091552734,101.01000213623047,101.08999633789062,101.20999908447266],"close":[102.19000244140625,102.05999755859375,101.44000244140625,101.30000305175781],"high":[102.81999969482422,102.95999908447266,102.55999755859375,101.86000061035156],"volume":[4275100,4561600,4105300,912691],"open":[102.62000274658203,102.31999969482422,102.52999877929688,101.33999633789062]}],"adjclose":[{"adjclose":[102.19000244140625,102.05999755859375,101.44000244140625,101.30000305175781]}]}}],"error":null}}'
headers:
Age:
- '0'
Connection:
- keep-alive
Expect-CT:
- max-age=31536000, report-uri="http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only"
Referrer-Policy:
- no-referrer-when-downgrade
Strict-Transport-Security:
- max-age=15552000
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-XSS-Protection:
- 1; mode=block
cache-control:
- public, max-age=10, stale-while-revalidate=20
content-length:
- '1281'
content-type:
- application/json;charset=utf-8
date:
- Fri, 13 Jan 2023 18:01:13 GMT
server:
- ATS
vary:
- Origin,Accept-Encoding
x-envoy-decorator-operation:
- finance-chart-api--mtls-canary-production-ir2.finance-k8s.svc.yahoo.local:4080/*
x-envoy-upstream-service-time:
- '22'
x-request-id:
- e6ba68d3-9c00-46fb-979e-fdf645eb798f
- a6ac9147-7321-488b-a0f6-7904b0037299
x-yahoo-request-id:
- 6jrc3v9hrt34m
- 19omj31hs3739
y-rid:
- 6jrc3v9hrt34m
- 19omj31hs3739
status:
code: 200
message: OK
Expand Down
Loading