corexxx 1.0.71 → 1.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corexxx",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,6 +15,7 @@
15
15
  "@types/node-fetch": "^3.0.3",
16
16
  "@types/underscore": "^1.11.3",
17
17
  "axios": "^0.21.1",
18
+ "corexxx": "1.0.71",
18
19
  "csvtojson": "^2.0.10",
19
20
  "moment": "^2.29.1",
20
21
  "moment-timezone": "^0.5.34",
package/src/yahoofin.ts CHANGED
@@ -50,7 +50,7 @@ export namespace yahooFin {
50
50
  post_pchange?: number;
51
51
  previousClose?: number;
52
52
 
53
- // exta
53
+ // extra
54
54
  [key: string]: any;
55
55
  };
56
56
 
@@ -1 +0,0 @@
1
- export {};
package/dist/build_nse.js DELETED
@@ -1,77 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- // Run this script to build the stock symbole file
13
- console.log("runing script");
14
- const dnetwork_1 = require("./dnetwork");
15
- let fs = require("fs");
16
- const csv = require("csvtojson");
17
- const URL_CONFIG = [
18
- "https://www1.nseindia.com/content/indices/ind_nifty50list.csv",
19
- "https://www1.nseindia.com/content/indices/ind_niftynext50list.csv",
20
- "https://www1.nseindia.com/content/indices/ind_nifty100list.csv",
21
- "https://www1.nseindia.com/content/indices/ind_nifty200list.csv",
22
- "https://www1.nseindia.com/content/indices/ind_nifty500list.csv",
23
- "https://www1.nseindia.com/content/indices/ind_niftymidcap150list.csv",
24
- "https://www1.nseindia.com/content/indices/ind_niftymidcap50list.csv",
25
- "https://www1.nseindia.com/content/indices/ind_niftymidcap100list.csv",
26
- "https://www1.nseindia.com/content/indices/ind_niftysmallcap250list.csv",
27
- "https://www1.nseindia.com/content/indices/ind_niftysmallcap50list.csv",
28
- "https://www1.nseindia.com/content/indices/ind_niftysmallcap100list.csv",
29
- "https://www1.nseindia.com/content/indices/ind_niftylargemidcap250list.csv",
30
- "https://www1.nseindia.com/content/indices/ind_niftymidsmallcap400list.csv",
31
- "https://www1.nseindia.com/content/indices/ind_niftyautolist.csv",
32
- "https://www1.nseindia.com/content/indices/ind_niftybanklist.csv",
33
- "https://www1.nseindia.com/content/indices/ind_niftyconsumerdurableslist.csv",
34
- "https://www1.nseindia.com/content/indices/ind_niftyfinancelist.csv",
35
- "https://www1.nseindia.com/content/indices/ind_niftyfinancialservices25_50list.csv",
36
- "https://www1.nseindia.com/content/indices/ind_niftyfmcglist.csv",
37
- "https://www1.nseindia.com/content/indices/ind_niftyhealthcarelist.csv",
38
- "https://www1.nseindia.com/content/indices/ind_niftyitlist.csv",
39
- "https://www1.nseindia.com/content/indices/ind_niftymedialist.csv",
40
- "https://www1.nseindia.com/content/indices/ind_niftymetallist.csv",
41
- "https://www1.nseindia.com/content/indices/ind_niftyoilgaslist.csv",
42
- "https://www1.nseindia.com/content/indices/ind_niftypharmalist.csv",
43
- "https://www1.nseindia.com/content/indices/ind_nifty_privatebanklist.csv",
44
- "https://www1.nseindia.com/content/indices/ind_niftypsubanklist.csv",
45
- "https://www1.nseindia.com/content/indices/ind_niftyrealtylist.csv",
46
- ];
47
- function run() {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- let result = {};
50
- for (let i of URL_CONFIG) {
51
- let res = yield dnetwork_1.dnetwork.get(i);
52
- let json = yield csv().fromString(res);
53
- let key = i.split("/").slice(-1)[0].replace("list.csv", "").replace("ind_", "");
54
- let symbol_list = json.map((x) => x.Symbol);
55
- result[key.toUpperCase()] = symbol_list;
56
- }
57
- let content = `
58
- //Dip: This is a autogenerated file - to regenerate this please run build_nse.ts from VS code.
59
-
60
- export type NSE_KEY = ${Object.keys(result).join(" | ")}
61
- export const SYMBOL_LIST = ${JSON.stringify(result || {}, null, 1)}
62
-
63
- `;
64
- console.log(content);
65
- fs.writeFile("symbol.ts", content, function (err) {
66
- if (err) {
67
- console.log("Not generted file");
68
- return console.log(err);
69
- }
70
- else {
71
- console.log("symbol.ts genarated successfully");
72
- }
73
- });
74
- });
75
- }
76
- //run();
77
- //# sourceMappingURL=build_nse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build_nse.js","sourceRoot":"","sources":["../src/build_nse.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kDAAkD;AAClD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AAC7B,yCAAsC;AAEtC,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACvB,MAAM,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACjC,MAAM,UAAU,GAAG;IACjB,+DAA+D;IAC/D,mEAAmE;IACnE,gEAAgE;IAChE,gEAAgE;IAChE,gEAAgE;IAChE,sEAAsE;IACtE,qEAAqE;IACrE,sEAAsE;IACtE,wEAAwE;IACxE,uEAAuE;IACvE,wEAAwE;IACxE,2EAA2E;IAC3E,2EAA2E;IAC3E,iEAAiE;IACjE,iEAAiE;IACjE,6EAA6E;IAC7E,oEAAoE;IACpE,mFAAmF;IACnF,iEAAiE;IACjE,uEAAuE;IACvE,+DAA+D;IAC/D,kEAAkE;IAClE,kEAAkE;IAClE,mEAAmE;IACnE,mEAAmE;IACnE,yEAAyE;IACzE,oEAAoE;IACpE,mEAAm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export {};
@@ -1,77 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- // Run this script to build the stock symbole file
13
- console.log("runing script");
14
- const dnetwork_1 = require("./dnetwork");
15
- let fs = require("fs");
16
- const csv = require("csvtojson");
17
- const URL_CONFIG = [
18
- "https://www1.nseindia.com/content/indices/ind_nifty50list.csv",
19
- "https://www1.nseindia.com/content/indices/ind_niftynext50list.csv",
20
- "https://www1.nseindia.com/content/indices/ind_nifty100list.csv",
21
- "https://www1.nseindia.com/content/indices/ind_nifty200list.csv",
22
- "https://www1.nseindia.com/content/indices/ind_nifty500list.csv",
23
- "https://www1.nseindia.com/content/indices/ind_niftymidcap150list.csv",
24
- "https://www1.nseindia.com/content/indices/ind_niftymidcap50list.csv",
25
- "https://www1.nseindia.com/content/indices/ind_niftymidcap100list.csv",
26
- "https://www1.nseindia.com/content/indices/ind_niftysmallcap250list.csv",
27
- "https://www1.nseindia.com/content/indices/ind_niftysmallcap50list.csv",
28
- "https://www1.nseindia.com/content/indices/ind_niftysmallcap100list.csv",
29
- "https://www1.nseindia.com/content/indices/ind_niftylargemidcap250list.csv",
30
- "https://www1.nseindia.com/content/indices/ind_niftymidsmallcap400list.csv",
31
- "https://www1.nseindia.com/content/indices/ind_niftyautolist.csv",
32
- "https://www1.nseindia.com/content/indices/ind_niftybanklist.csv",
33
- "https://www1.nseindia.com/content/indices/ind_niftyconsumerdurableslist.csv",
34
- "https://www1.nseindia.com/content/indices/ind_niftyfinancelist.csv",
35
- "https://www1.nseindia.com/content/indices/ind_niftyfinancialservices25_50list.csv",
36
- "https://www1.nseindia.com/content/indices/ind_niftyfmcglist.csv",
37
- "https://www1.nseindia.com/content/indices/ind_niftyhealthcarelist.csv",
38
- "https://www1.nseindia.com/content/indices/ind_niftyitlist.csv",
39
- "https://www1.nseindia.com/content/indices/ind_niftymedialist.csv",
40
- "https://www1.nseindia.com/content/indices/ind_niftymetallist.csv",
41
- "https://www1.nseindia.com/content/indices/ind_niftyoilgaslist.csv",
42
- "https://www1.nseindia.com/content/indices/ind_niftypharmalist.csv",
43
- "https://www1.nseindia.com/content/indices/ind_nifty_privatebanklist.csv",
44
- "https://www1.nseindia.com/content/indices/ind_niftypsubanklist.csv",
45
- "https://www1.nseindia.com/content/indices/ind_niftyrealtylist.csv",
46
- ];
47
- function run() {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- let result = {};
50
- for (let i of URL_CONFIG) {
51
- let res = yield dnetwork_1.dnetwork.get(i);
52
- let json = yield csv().fromString(res);
53
- let key = i.split("/").slice(-1)[0].replace("list.csv", "").replace("ind_", "");
54
- let symbol_list = json.map((x) => x.Symbol);
55
- result[key.toUpperCase()] = symbol_list;
56
- }
57
- let content = `
58
- //Dip: This is a autogenerated file - to regenerate this please run build_nse.ts from VS code.
59
-
60
- export type NSE_KEY = ${Object.keys(result).join(" | ")}
61
- export const SYMBOL_LIST = ${JSON.stringify(result || {}, null, 1)}
62
-
63
- `;
64
- console.log(content);
65
- fs.writeFile("symbol.ts", content, function (err) {
66
- if (err) {
67
- console.log("Not generted file");
68
- return console.log(err);
69
- }
70
- else {
71
- console.log("symbol.ts genarated successfully");
72
- }
73
- });
74
- });
75
- }
76
- //run();
77
- //# sourceMappingURL=script_build_nse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"script_build_nse.js","sourceRoot":"","sources":["../src/script_build_nse.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kDAAkD;A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