Skip to content

Commit

Permalink
Merge branch 'devel' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Nov 13, 2021
2 parents dcaa688 + e425cd5 commit 579544e
Show file tree
Hide file tree
Showing 36 changed files with 1,876 additions and 1,898 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
version: 2.1
orbs:
codecov: codecov/codecov@3.2.0
codecov: codecov/codecov@3.2.2
jobs:
build:
docker:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"schema": "node --loader ts-node/esm scripts/schema.js > schema.json",
"build": "yarn run build:esm && yarn run build:cjs && yarn run build:post",
"build:esm": "tsc --module es2020 --target es2019 --outDir dist/esm",
"build:cjs": "tsc --module commonjs --target es2015 --outDir dist/cjs && sed -i 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json",
"build:cjs": "tsc --module commonjs --target es2015 --outDir dist/cjs && sed 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json > dist/cjs/package-changed.json && mv dist/cjs/package-changed.json dist/cjs/package.json",
"build:post": "scripts/json-transform.sh",
"generateSchema": "yarn schema",
"prepublishOnly": "yarn build && yarn generateSchema && yarn build:post",
Expand Down Expand Up @@ -73,9 +73,9 @@
"@tsconfig/node12": "1.0.9",
"@types/jest": "27.0.2",
"@types/node-fetch": "2.5.12",
"@typescript-eslint/eslint-plugin": "5.2.0",
"@typescript-eslint/parser": "5.2.0",
"eslint": "8.1.0",
"@typescript-eslint/eslint-plugin": "5.3.1",
"@typescript-eslint/parser": "5.3.1",
"eslint": "8.2.0",
"eslint-config-prettier": "8.3.0",
"globby": "12.0.2",
"jest": "27.3.1",
Expand Down
25 changes: 25 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,9 @@
},
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down Expand Up @@ -1224,6 +1227,9 @@
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
},
"circulatingSupply": {
"yahooFinanceType": "number"
},
Expand Down Expand Up @@ -1547,6 +1553,9 @@
},
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down Expand Up @@ -1839,6 +1848,9 @@
},
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down Expand Up @@ -2131,6 +2143,9 @@
},
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down Expand Up @@ -2423,6 +2438,9 @@
},
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down Expand Up @@ -2716,6 +2734,9 @@
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
},
"strike": {
"yahooFinanceType": "number"
},
Expand Down Expand Up @@ -3027,6 +3048,9 @@
},
"averageAnalystRating": {
"type": "string"
},
"pageViewGrowthWeekly": {
"yahooFinanceType": "number"
}
},
"required": [
Expand Down Expand Up @@ -3172,6 +3196,7 @@
"nameChangeDate",
"prevName",
"averageAnalystRating",
"pageViewGrowthWeekly",
"strike",
"openInterest",
"expireDate",
Expand Down
1 change: 1 addition & 0 deletions src/modules/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export interface QuoteBase {
nameChangeDate?: Date;
prevName?: string;
averageAnalystRating?: string;
pageViewGrowthWeekly?: number; // Since 2021-11-11 (#326)
}

/*
Expand Down
73 changes: 35 additions & 38 deletions tests/http/quote-0P000071W8.TO.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,37 @@
"statusText": "OK",
"headers": {
"content-type": [
"application/json"
],
"cache-control": [
"public, max-age=1, stale-while-revalidate=9"
"application/json;charset=utf-8"
],
"vary": [
"Origin,Accept-Encoding"
],
"cache-control": [
"public, max-age=1, stale-while-revalidate=9"
],
"y-rid": [
"0mcau01g6s90l"
"24i8oa1gov1ul"
],
"x-yahoo-request-id": [
"0mcau01g6s90l"
"24i8oa1gov1ul"
],
"x-request-id": [
"98fd7b1c-052a-49d4-a009-7dd106119d1d"
],
"content-encoding": [
"gzip"
"9325fc00-bb56-90d4-b097-9b0c4fcc9416"
],
"content-length": [
"688"
"1355"
],
"x-envoy-upstream-service-time": [
"2"
],
"date": [
"Wed, 07 Apr 2021 21:28:52 GMT"
"Sat, 13 Nov 2021 09:39:32 GMT"
],
"server": [
"ATS"
],
"x-envoy-decorator-operation": [
"finance-quote-api--mtls-production-bf1.finance-k8s.svc.yahoo.local:4080/*"
"finance-quote-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/*"
],
"age": [
"1"
Expand Down Expand Up @@ -80,41 +77,41 @@
"currency": "CAD",
"firstTradeDateMilliseconds": 1514903400000,
"priceHint": 2,
"marketState": "POSTPOST",
"regularMarketChange": -0.87000275,
"regularMarketChangePercent": -0.83078945,
"regularMarketTime": 1636574400,
"regularMarketPrice": 103.85,
"regularMarketPreviousClose": 104.72,
"fullExchangeName": "Toronto",
"averageDailyVolume3Month": 0,
"averageDailyVolume10Day": 0,
"fiftyTwoWeekLowChange": 33.839996,
"fiftyTwoWeekLowChangePercent": 0.59181523,
"fiftyTwoWeekLowChange": 46.67,
"fiftyTwoWeekLowChangePercent": 0.8161944,
"fiftyTwoWeekRange": "57.18 - 89.59",
"fiftyTwoWeekHighChange": 1.4300003,
"fiftyTwoWeekHighChangePercent": 0.015961606,
"fiftyTwoWeekHighChange": 14.260002,
"fiftyTwoWeekHighChangePercent": 0.15916958,
"fiftyTwoWeekLow": 57.18,
"fiftyTwoWeekHigh": 89.59,
"ytdReturn": 1.51,
"trailingThreeMonthReturns": 3.43,
"fiftyDayAverage": 87.67353,
"fiftyDayAverageChange": 3.346466,
"fiftyDayAverageChangePercent": 0.03816963,
"twoHundredDayAverage": 84.82267,
"regularMarketChange": 1.409996,
"regularMarketChangePercent": 1.5734806,
"regularMarketTime": 1617739200,
"regularMarketPrice": 91.02,
"regularMarketPreviousClose": 89.61,
"fullExchangeName": "Toronto",
"twoHundredDayAverageChange": 6.1973267,
"twoHundredDayAverageChangePercent": 0.07306215,
"tradeable": false,
"ytdReturn": 24.08182,
"trailingThreeMonthReturns": 4.7385,
"fiftyDayAverage": 100.36437,
"fiftyDayAverageChange": 3.4856262,
"fiftyDayAverageChangePercent": 0.034729715,
"twoHundredDayAverage": 96.975296,
"twoHundredDayAverageChange": 6.8747025,
"twoHundredDayAverageChangePercent": 0.070891276,
"sourceInterval": 15,
"exchangeDataDelayedBy": 15,
"marketState": "CLOSED",
"shortName": "TD U.S. Index Fund - e",
"exchange": "TOR",
"shortName": "TD Indiciel américain - e (C$)",
"longName": "TD U.S. Index Fund - e",
"exchangeTimezoneName": "America/Toronto",
"exchangeTimezoneShortName": "EDT",
"gmtOffSetMilliseconds": -14400000,
"exchangeTimezoneShortName": "EST",
"gmtOffSetMilliseconds": -18000000,
"market": "ca_market",
"esgPopulated": false,
"sourceInterval": 15,
"exchangeDataDelayedBy": 15,
"tradeable": false,
"symbol": "0P000071W8.TO"
}
],
Expand Down
Loading

0 comments on commit 579544e

Please sign in to comment.