@fugle/node-twstock 2.2.1-alpha.0
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/LICENSE +21 -0
- package/README.md +1837 -0
- package/lib/enums/exchange.enum.d.ts +5 -0
- package/lib/enums/exchange.enum.js +9 -0
- package/lib/enums/futopt.enum.d.ts +34 -0
- package/lib/enums/futopt.enum.js +38 -0
- package/lib/enums/index.d.ts +6 -0
- package/lib/enums/index.enum.d.ts +67 -0
- package/lib/enums/index.enum.js +71 -0
- package/lib/enums/index.js +22 -0
- package/lib/enums/industry.enum.d.ts +40 -0
- package/lib/enums/industry.enum.js +44 -0
- package/lib/enums/market.enum.d.ts +5 -0
- package/lib/enums/market.enum.js +9 -0
- package/lib/enums/scraper.enum.d.ts +10 -0
- package/lib/enums/scraper.enum.js +14 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +18 -0
- package/lib/interfaces/futopt-exchange-rates.interface.d.ts +13 -0
- package/lib/interfaces/futopt-exchange-rates.interface.js +2 -0
- package/lib/interfaces/futopt-historical.interface.d.ts +23 -0
- package/lib/interfaces/futopt-historical.interface.js +2 -0
- package/lib/interfaces/futopt-institutional.interface.d.ts +21 -0
- package/lib/interfaces/futopt-institutional.interface.js +2 -0
- package/lib/interfaces/futopt-large-traders.interface.d.ts +16 -0
- package/lib/interfaces/futopt-large-traders.interface.js +2 -0
- package/lib/interfaces/futopt-mxf-retail-position.interface.d.ts +7 -0
- package/lib/interfaces/futopt-mxf-retail-position.interface.js +2 -0
- package/lib/interfaces/futopt-quote.interface.d.ts +31 -0
- package/lib/interfaces/futopt-quote.interface.js +2 -0
- package/lib/interfaces/futopt-tmf-retail-position.interface.d.ts +7 -0
- package/lib/interfaces/futopt-tmf-retail-position.interface.js +2 -0
- package/lib/interfaces/futopt-txo-put-call-ratio.interface.d.ts +9 -0
- package/lib/interfaces/futopt-txo-put-call-ratio.interface.js +2 -0
- package/lib/interfaces/futopt.interface.d.ts +7 -0
- package/lib/interfaces/futopt.interface.js +2 -0
- package/lib/interfaces/index-historical.interface.d.ts +11 -0
- package/lib/interfaces/index-historical.interface.js +2 -0
- package/lib/interfaces/index-quote.interface.d.ts +13 -0
- package/lib/interfaces/index-quote.interface.js +2 -0
- package/lib/interfaces/index-trades.interface.d.ts +9 -0
- package/lib/interfaces/index-trades.interface.js +2 -0
- package/lib/interfaces/index.d.ts +37 -0
- package/lib/interfaces/index.js +53 -0
- package/lib/interfaces/market-breadth.interface.d.ts +11 -0
- package/lib/interfaces/market-breadth.interface.js +2 -0
- package/lib/interfaces/market-institutional.interface.d.ts +10 -0
- package/lib/interfaces/market-institutional.interface.js +2 -0
- package/lib/interfaces/market-margin-trades.interface.d.ts +19 -0
- package/lib/interfaces/market-margin-trades.interface.js +2 -0
- package/lib/interfaces/market-trades.interface.d.ts +7 -0
- package/lib/interfaces/market-trades.interface.js +2 -0
- package/lib/interfaces/rate-limit-options.interface.d.ts +4 -0
- package/lib/interfaces/rate-limit-options.interface.js +2 -0
- package/lib/interfaces/stock-capital-reductions.interface.d.ts +23 -0
- package/lib/interfaces/stock-capital-reductions.interface.js +2 -0
- package/lib/interfaces/stock-dividends.interface.d.ts +27 -0
- package/lib/interfaces/stock-dividends.interface.js +2 -0
- package/lib/interfaces/stock-eps.interface.d.ts +8 -0
- package/lib/interfaces/stock-eps.interface.js +2 -0
- package/lib/interfaces/stock-fini-holdings.interface.d.ts +12 -0
- package/lib/interfaces/stock-fini-holdings.interface.js +2 -0
- package/lib/interfaces/stock-futopt.interface.d.ts +8 -0
- package/lib/interfaces/stock-futopt.interface.js +2 -0
- package/lib/interfaces/stock-historical.interface.d.ts +14 -0
- package/lib/interfaces/stock-historical.interface.js +2 -0
- package/lib/interfaces/stock-institutional.interface.d.ts +12 -0
- package/lib/interfaces/stock-institutional.interface.js +2 -0
- package/lib/interfaces/stock-margin-trades.interface.d.ts +20 -0
- package/lib/interfaces/stock-margin-trades.interface.js +2 -0
- package/lib/interfaces/stock-quote.interface.d.ts +19 -0
- package/lib/interfaces/stock-quote.interface.js +2 -0
- package/lib/interfaces/stock-revenue.interface.d.ts +8 -0
- package/lib/interfaces/stock-revenue.interface.js +2 -0
- package/lib/interfaces/stock-shareholders.interface.d.ts +11 -0
- package/lib/interfaces/stock-shareholders.interface.js +2 -0
- package/lib/interfaces/stock-short-sales.interface.d.ts +19 -0
- package/lib/interfaces/stock-short-sales.interface.js +2 -0
- package/lib/interfaces/stock-splits.interface.d.ts +12 -0
- package/lib/interfaces/stock-splits.interface.js +2 -0
- package/lib/interfaces/stock-values.interface.d.ts +10 -0
- package/lib/interfaces/stock-values.interface.js +2 -0
- package/lib/interfaces/stock.interface.d.ts +8 -0
- package/lib/interfaces/stock.interface.js +2 -0
- package/lib/interfaces/stocks-capital-reduction-announcement.interface.d.ts +19 -0
- package/lib/interfaces/stocks-capital-reduction-announcement.interface.js +2 -0
- package/lib/interfaces/stocks-dividends-announcement.interface.d.ts +21 -0
- package/lib/interfaces/stocks-dividends-announcement.interface.js +2 -0
- package/lib/interfaces/stocks-etf-split-announcement.interface.d.ts +11 -0
- package/lib/interfaces/stocks-etf-split-announcement.interface.js +2 -0
- package/lib/interfaces/stocks-listing-application.interface.d.ts +16 -0
- package/lib/interfaces/stocks-listing-application.interface.js +2 -0
- package/lib/interfaces/stocks-split-announcement.interface.d.ts +11 -0
- package/lib/interfaces/stocks-split-announcement.interface.js +2 -0
- package/lib/interfaces/ticker.interface.d.ts +10 -0
- package/lib/interfaces/ticker.interface.js +2 -0
- package/lib/scrapers/index.d.ts +10 -0
- package/lib/scrapers/index.js +26 -0
- package/lib/scrapers/isin-scraper.d.ts +13 -0
- package/lib/scrapers/isin-scraper.js +76 -0
- package/lib/scrapers/mis-taifex-scraper.d.ts +17 -0
- package/lib/scrapers/mis-taifex-scraper.js +126 -0
- package/lib/scrapers/mis-twse-scraper.d.ts +15 -0
- package/lib/scrapers/mis-twse-scraper.js +97 -0
- package/lib/scrapers/mops-scraper.d.ts +17 -0
- package/lib/scrapers/mops-scraper.js +64 -0
- package/lib/scrapers/scraper-factory.d.ts +25 -0
- package/lib/scrapers/scraper-factory.js +62 -0
- package/lib/scrapers/scraper.d.ts +6 -0
- package/lib/scrapers/scraper.js +20 -0
- package/lib/scrapers/taifex-scraper.d.ts +44 -0
- package/lib/scrapers/taifex-scraper.js +406 -0
- package/lib/scrapers/tdcc-scraper.d.ts +11 -0
- package/lib/scrapers/tdcc-scraper.js +82 -0
- package/lib/scrapers/tpex-scraper.d.ts +95 -0
- package/lib/scrapers/tpex-scraper.js +786 -0
- package/lib/scrapers/twse-scraper.d.ts +110 -0
- package/lib/scrapers/twse-scraper.js +967 -0
- package/lib/twstock.d.ts +229 -0
- package/lib/twstock.js +507 -0
- package/lib/utils/as-exchange.util.d.ts +2 -0
- package/lib/utils/as-exchange.util.js +15 -0
- package/lib/utils/as-index.util.d.ts +1 -0
- package/lib/utils/as-index.util.js +178 -0
- package/lib/utils/as-industry.util.d.ts +2 -0
- package/lib/utils/as-industry.util.js +49 -0
- package/lib/utils/date-converter.util.d.ts +47 -0
- package/lib/utils/date-converter.util.js +113 -0
- package/lib/utils/html-cleaner.util.d.ts +29 -0
- package/lib/utils/html-cleaner.util.js +45 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +23 -0
- package/lib/utils/is-warrant.util.d.ts +1 -0
- package/lib/utils/is-warrant.util.js +25 -0
- package/lib/utils/parse-numeric.util.d.ts +21 -0
- package/lib/utils/parse-numeric.util.js +58 -0
- package/package.json +70 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Exchange = void 0;
|
|
4
|
+
var Exchange;
|
|
5
|
+
(function (Exchange) {
|
|
6
|
+
Exchange["TWSE"] = "TWSE";
|
|
7
|
+
Exchange["TPEx"] = "TPEx";
|
|
8
|
+
Exchange["TAIFEX"] = "TAIFEX";
|
|
9
|
+
})(Exchange = exports.Exchange || (exports.Exchange = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum FutOpt {
|
|
2
|
+
TXF = "TXF",
|
|
3
|
+
MXF = "MXF",
|
|
4
|
+
E4F = "E4F",
|
|
5
|
+
EXF = "EXF",
|
|
6
|
+
ZEF = "ZEF",
|
|
7
|
+
FXF = "FXF",
|
|
8
|
+
ZFF = "ZFF",
|
|
9
|
+
XIF = "XIF",
|
|
10
|
+
SHF = "SHF",
|
|
11
|
+
SOF = "SOF",
|
|
12
|
+
BTF = "BTF",
|
|
13
|
+
GTF = "GTF",
|
|
14
|
+
G2F = "G2F",
|
|
15
|
+
TJF = "TJF",
|
|
16
|
+
UDF = "UDF",
|
|
17
|
+
SPF = "SPF",
|
|
18
|
+
UNF = "UNF",
|
|
19
|
+
SXF = "SXF",
|
|
20
|
+
F1F = "F1F",
|
|
21
|
+
GDF = "GDF",
|
|
22
|
+
TGF = "TGF",
|
|
23
|
+
BRF = "BRF",
|
|
24
|
+
RTF = "RTF",
|
|
25
|
+
RHF = "RHF",
|
|
26
|
+
XEF = "XEF",
|
|
27
|
+
XJF = "XJF",
|
|
28
|
+
XBF = "XBF",
|
|
29
|
+
XAF = "XAF",
|
|
30
|
+
TXO = "TXO",
|
|
31
|
+
TEO = "TEO",
|
|
32
|
+
TFO = "TFO",
|
|
33
|
+
TGO = "TGO"
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FutOpt = void 0;
|
|
4
|
+
var FutOpt;
|
|
5
|
+
(function (FutOpt) {
|
|
6
|
+
FutOpt["TXF"] = "TXF";
|
|
7
|
+
FutOpt["MXF"] = "MXF";
|
|
8
|
+
FutOpt["E4F"] = "E4F";
|
|
9
|
+
FutOpt["EXF"] = "EXF";
|
|
10
|
+
FutOpt["ZEF"] = "ZEF";
|
|
11
|
+
FutOpt["FXF"] = "FXF";
|
|
12
|
+
FutOpt["ZFF"] = "ZFF";
|
|
13
|
+
FutOpt["XIF"] = "XIF";
|
|
14
|
+
FutOpt["SHF"] = "SHF";
|
|
15
|
+
FutOpt["SOF"] = "SOF";
|
|
16
|
+
FutOpt["BTF"] = "BTF";
|
|
17
|
+
FutOpt["GTF"] = "GTF";
|
|
18
|
+
FutOpt["G2F"] = "G2F";
|
|
19
|
+
FutOpt["TJF"] = "TJF";
|
|
20
|
+
FutOpt["UDF"] = "UDF";
|
|
21
|
+
FutOpt["SPF"] = "SPF";
|
|
22
|
+
FutOpt["UNF"] = "UNF";
|
|
23
|
+
FutOpt["SXF"] = "SXF";
|
|
24
|
+
FutOpt["F1F"] = "F1F";
|
|
25
|
+
FutOpt["GDF"] = "GDF";
|
|
26
|
+
FutOpt["TGF"] = "TGF";
|
|
27
|
+
FutOpt["BRF"] = "BRF";
|
|
28
|
+
FutOpt["RTF"] = "RTF";
|
|
29
|
+
FutOpt["RHF"] = "RHF";
|
|
30
|
+
FutOpt["XEF"] = "XEF";
|
|
31
|
+
FutOpt["XJF"] = "XJF";
|
|
32
|
+
FutOpt["XBF"] = "XBF";
|
|
33
|
+
FutOpt["XAF"] = "XAF";
|
|
34
|
+
FutOpt["TXO"] = "TXO";
|
|
35
|
+
FutOpt["TEO"] = "TEO";
|
|
36
|
+
FutOpt["TFO"] = "TFO";
|
|
37
|
+
FutOpt["TGO"] = "TGO";
|
|
38
|
+
})(FutOpt = exports.FutOpt || (exports.FutOpt = {}));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare enum Index {
|
|
2
|
+
TAIEX = "IX0001",
|
|
3
|
+
NonFinance = "IX0007",
|
|
4
|
+
NonElectronics = "IX0008",
|
|
5
|
+
NonFinanceNonElectronics = "IX0009",
|
|
6
|
+
Cement = "IX0010",
|
|
7
|
+
Food = "IX0011",
|
|
8
|
+
Plastic = "IX0012",
|
|
9
|
+
CementAndCeramic = "IX0013",
|
|
10
|
+
PlasticAndChemical = "IX0014",
|
|
11
|
+
Electrical = "IX0015",
|
|
12
|
+
Textiles = "IX0016",
|
|
13
|
+
ElectricMachinery = "IX0017",
|
|
14
|
+
ElectricalAndCable = "IX0018",
|
|
15
|
+
ChemicalBiotechnologyAndMedicalCare = "IX0019",
|
|
16
|
+
Chemical = "IX0020",
|
|
17
|
+
BiotechnologyAndMedicalCare = "IX0021",
|
|
18
|
+
GlassAndCeramic = "IX0022",
|
|
19
|
+
PaperAndPulp = "IX0023",
|
|
20
|
+
IronAndSteel = "IX0024",
|
|
21
|
+
Rubber = "IX0025",
|
|
22
|
+
Automobile = "IX0026",
|
|
23
|
+
Electronics = "IX0027",
|
|
24
|
+
Semiconductors = "IX0028",
|
|
25
|
+
ComputerAndPeripheralEquipment = "IX0029",
|
|
26
|
+
Optoelectronics = "IX0030",
|
|
27
|
+
CommunicationsTechnologyAndInternet = "IX0031",
|
|
28
|
+
ElectronicPartsComponents = "IX0032",
|
|
29
|
+
ElectronicProductsDistirbution = "IX0033",
|
|
30
|
+
InformationService = "IX0034",
|
|
31
|
+
OtherElectronics = "IX0035",
|
|
32
|
+
BuildingMaterialsAndConstruction = "IX0036",
|
|
33
|
+
ShippingAndTransportation = "IX0037",
|
|
34
|
+
TourismAndHospitality = "IX0038",
|
|
35
|
+
FinancialAndInsurance = "IX0039",
|
|
36
|
+
TradingAndConsumerGoods = "IX0040",
|
|
37
|
+
OilGasAndElectricity = "IX0041",
|
|
38
|
+
Other = "IX0042",
|
|
39
|
+
GreenEnergyAndEnvironmentalServices = "IX0185",
|
|
40
|
+
DigitalAndCloudServices = "IX0186",
|
|
41
|
+
SportsAndLeisure = "IX0187",
|
|
42
|
+
Household = "IX0188",
|
|
43
|
+
TPEX = "IX0043",
|
|
44
|
+
TPExTextiles = "IX0044",
|
|
45
|
+
TPExElectricMachinery = "IX0045",
|
|
46
|
+
TPExIronAndSteel = "IX0046",
|
|
47
|
+
TPExElectronic = "IX0047",
|
|
48
|
+
TPExBuildingMaterialsAndConstruction = "IX0048",
|
|
49
|
+
TPExShippingAndTransportation = "IX0049",
|
|
50
|
+
TPExTourismAndHospitality = "IX0050",
|
|
51
|
+
TPExChemical = "IX0051",
|
|
52
|
+
TPExBiotechnologyAndMedicalCare = "IX0052",
|
|
53
|
+
TPExSemiconductors = "IX0053",
|
|
54
|
+
TPExComputerAndPeripheralEquipment = "IX0054",
|
|
55
|
+
TPExOptoelectronic = "IX0055",
|
|
56
|
+
TPExCommunicationsAndInternet = "IX0056",
|
|
57
|
+
TPExElectronicPartsComponents = "IX0057",
|
|
58
|
+
TPExElectronicProductsDistribution = "IX0058",
|
|
59
|
+
TPExInformationService = "IX0059",
|
|
60
|
+
TPExGame = "IX0063",
|
|
61
|
+
TPExCulturalAndCreative = "IX0075",
|
|
62
|
+
TPExOtherElectronic = "IX0099",
|
|
63
|
+
TPExOther = "IX0100",
|
|
64
|
+
TPExGreenEnergyAndEnvironmentalServices = "IX0189",
|
|
65
|
+
TPExDigitalAndCloudServices = "IX0190",
|
|
66
|
+
TPExHousehold = "IX0191"
|
|
67
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Index = void 0;
|
|
4
|
+
var Index;
|
|
5
|
+
(function (Index) {
|
|
6
|
+
Index["TAIEX"] = "IX0001";
|
|
7
|
+
Index["NonFinance"] = "IX0007";
|
|
8
|
+
Index["NonElectronics"] = "IX0008";
|
|
9
|
+
Index["NonFinanceNonElectronics"] = "IX0009";
|
|
10
|
+
Index["Cement"] = "IX0010";
|
|
11
|
+
Index["Food"] = "IX0011";
|
|
12
|
+
Index["Plastic"] = "IX0012";
|
|
13
|
+
Index["CementAndCeramic"] = "IX0013";
|
|
14
|
+
Index["PlasticAndChemical"] = "IX0014";
|
|
15
|
+
Index["Electrical"] = "IX0015";
|
|
16
|
+
Index["Textiles"] = "IX0016";
|
|
17
|
+
Index["ElectricMachinery"] = "IX0017";
|
|
18
|
+
Index["ElectricalAndCable"] = "IX0018";
|
|
19
|
+
Index["ChemicalBiotechnologyAndMedicalCare"] = "IX0019";
|
|
20
|
+
Index["Chemical"] = "IX0020";
|
|
21
|
+
Index["BiotechnologyAndMedicalCare"] = "IX0021";
|
|
22
|
+
Index["GlassAndCeramic"] = "IX0022";
|
|
23
|
+
Index["PaperAndPulp"] = "IX0023";
|
|
24
|
+
Index["IronAndSteel"] = "IX0024";
|
|
25
|
+
Index["Rubber"] = "IX0025";
|
|
26
|
+
Index["Automobile"] = "IX0026";
|
|
27
|
+
Index["Electronics"] = "IX0027";
|
|
28
|
+
Index["Semiconductors"] = "IX0028";
|
|
29
|
+
Index["ComputerAndPeripheralEquipment"] = "IX0029";
|
|
30
|
+
Index["Optoelectronics"] = "IX0030";
|
|
31
|
+
Index["CommunicationsTechnologyAndInternet"] = "IX0031";
|
|
32
|
+
Index["ElectronicPartsComponents"] = "IX0032";
|
|
33
|
+
Index["ElectronicProductsDistirbution"] = "IX0033";
|
|
34
|
+
Index["InformationService"] = "IX0034";
|
|
35
|
+
Index["OtherElectronics"] = "IX0035";
|
|
36
|
+
Index["BuildingMaterialsAndConstruction"] = "IX0036";
|
|
37
|
+
Index["ShippingAndTransportation"] = "IX0037";
|
|
38
|
+
Index["TourismAndHospitality"] = "IX0038";
|
|
39
|
+
Index["FinancialAndInsurance"] = "IX0039";
|
|
40
|
+
Index["TradingAndConsumerGoods"] = "IX0040";
|
|
41
|
+
Index["OilGasAndElectricity"] = "IX0041";
|
|
42
|
+
Index["Other"] = "IX0042";
|
|
43
|
+
Index["GreenEnergyAndEnvironmentalServices"] = "IX0185";
|
|
44
|
+
Index["DigitalAndCloudServices"] = "IX0186";
|
|
45
|
+
Index["SportsAndLeisure"] = "IX0187";
|
|
46
|
+
Index["Household"] = "IX0188";
|
|
47
|
+
Index["TPEX"] = "IX0043";
|
|
48
|
+
Index["TPExTextiles"] = "IX0044";
|
|
49
|
+
Index["TPExElectricMachinery"] = "IX0045";
|
|
50
|
+
Index["TPExIronAndSteel"] = "IX0046";
|
|
51
|
+
Index["TPExElectronic"] = "IX0047";
|
|
52
|
+
Index["TPExBuildingMaterialsAndConstruction"] = "IX0048";
|
|
53
|
+
Index["TPExShippingAndTransportation"] = "IX0049";
|
|
54
|
+
Index["TPExTourismAndHospitality"] = "IX0050";
|
|
55
|
+
Index["TPExChemical"] = "IX0051";
|
|
56
|
+
Index["TPExBiotechnologyAndMedicalCare"] = "IX0052";
|
|
57
|
+
Index["TPExSemiconductors"] = "IX0053";
|
|
58
|
+
Index["TPExComputerAndPeripheralEquipment"] = "IX0054";
|
|
59
|
+
Index["TPExOptoelectronic"] = "IX0055";
|
|
60
|
+
Index["TPExCommunicationsAndInternet"] = "IX0056";
|
|
61
|
+
Index["TPExElectronicPartsComponents"] = "IX0057";
|
|
62
|
+
Index["TPExElectronicProductsDistribution"] = "IX0058";
|
|
63
|
+
Index["TPExInformationService"] = "IX0059";
|
|
64
|
+
Index["TPExGame"] = "IX0063";
|
|
65
|
+
Index["TPExCulturalAndCreative"] = "IX0075";
|
|
66
|
+
Index["TPExOtherElectronic"] = "IX0099";
|
|
67
|
+
Index["TPExOther"] = "IX0100";
|
|
68
|
+
Index["TPExGreenEnergyAndEnvironmentalServices"] = "IX0189";
|
|
69
|
+
Index["TPExDigitalAndCloudServices"] = "IX0190";
|
|
70
|
+
Index["TPExHousehold"] = "IX0191";
|
|
71
|
+
})(Index = exports.Index || (exports.Index = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./exchange.enum"), exports);
|
|
18
|
+
__exportStar(require("./index.enum"), exports);
|
|
19
|
+
__exportStar(require("./industry.enum"), exports);
|
|
20
|
+
__exportStar(require("./market.enum"), exports);
|
|
21
|
+
__exportStar(require("./futopt.enum"), exports);
|
|
22
|
+
__exportStar(require("./scraper.enum"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare enum Industry {
|
|
2
|
+
Cement = "01",
|
|
3
|
+
Food = "02",
|
|
4
|
+
Plastic = "03",
|
|
5
|
+
Textiles = "04",
|
|
6
|
+
ElectricMachinery = "05",
|
|
7
|
+
ElectricalAndCable = "06",
|
|
8
|
+
GlassAndCeramic = "08",
|
|
9
|
+
PaperAndPulp = "09",
|
|
10
|
+
IronAndSteel = "10",
|
|
11
|
+
Rubber = "11",
|
|
12
|
+
Automobile = "12",
|
|
13
|
+
BuildingMaterialsAndConstruction = "14",
|
|
14
|
+
ShippingAndTransportation = "15",
|
|
15
|
+
TourismAndHospitality = "16",
|
|
16
|
+
FinancialAndInsurance = "17",
|
|
17
|
+
TradingAndConsumerGoods = "18",
|
|
18
|
+
Miscellaneous = "19",
|
|
19
|
+
Other = "20",
|
|
20
|
+
Chemical = "21",
|
|
21
|
+
BiotechnologyAndMedicalCare = "22",
|
|
22
|
+
OilGasAndElectricity = "23",
|
|
23
|
+
Semiconductors = "24",
|
|
24
|
+
ComputerAndPeripheralEquipment = "25",
|
|
25
|
+
Optoelectronics = "26",
|
|
26
|
+
CommunicationsTechnologyAndInternet = "27",
|
|
27
|
+
ElectronicPartsComponents = "28",
|
|
28
|
+
ElectronicProductsDistirbution = "29",
|
|
29
|
+
InformationService = "30",
|
|
30
|
+
OtherElectronics = "31",
|
|
31
|
+
CulturalAndCreative = "32",
|
|
32
|
+
AgriculturalTechnology = "33",
|
|
33
|
+
Ecommerce = "34",
|
|
34
|
+
GreenEnergyAndEnvironmentalServices = "35",
|
|
35
|
+
DigitalAndCloudServices = "36",
|
|
36
|
+
SportsAndLeisure = "37",
|
|
37
|
+
Household = "38",
|
|
38
|
+
ManagedStock = "80",
|
|
39
|
+
None = "00"
|
|
40
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Industry = void 0;
|
|
4
|
+
var Industry;
|
|
5
|
+
(function (Industry) {
|
|
6
|
+
Industry["Cement"] = "01";
|
|
7
|
+
Industry["Food"] = "02";
|
|
8
|
+
Industry["Plastic"] = "03";
|
|
9
|
+
Industry["Textiles"] = "04";
|
|
10
|
+
Industry["ElectricMachinery"] = "05";
|
|
11
|
+
Industry["ElectricalAndCable"] = "06";
|
|
12
|
+
Industry["GlassAndCeramic"] = "08";
|
|
13
|
+
Industry["PaperAndPulp"] = "09";
|
|
14
|
+
Industry["IronAndSteel"] = "10";
|
|
15
|
+
Industry["Rubber"] = "11";
|
|
16
|
+
Industry["Automobile"] = "12";
|
|
17
|
+
Industry["BuildingMaterialsAndConstruction"] = "14";
|
|
18
|
+
Industry["ShippingAndTransportation"] = "15";
|
|
19
|
+
Industry["TourismAndHospitality"] = "16";
|
|
20
|
+
Industry["FinancialAndInsurance"] = "17";
|
|
21
|
+
Industry["TradingAndConsumerGoods"] = "18";
|
|
22
|
+
Industry["Miscellaneous"] = "19";
|
|
23
|
+
Industry["Other"] = "20";
|
|
24
|
+
Industry["Chemical"] = "21";
|
|
25
|
+
Industry["BiotechnologyAndMedicalCare"] = "22";
|
|
26
|
+
Industry["OilGasAndElectricity"] = "23";
|
|
27
|
+
Industry["Semiconductors"] = "24";
|
|
28
|
+
Industry["ComputerAndPeripheralEquipment"] = "25";
|
|
29
|
+
Industry["Optoelectronics"] = "26";
|
|
30
|
+
Industry["CommunicationsTechnologyAndInternet"] = "27";
|
|
31
|
+
Industry["ElectronicPartsComponents"] = "28";
|
|
32
|
+
Industry["ElectronicProductsDistirbution"] = "29";
|
|
33
|
+
Industry["InformationService"] = "30";
|
|
34
|
+
Industry["OtherElectronics"] = "31";
|
|
35
|
+
Industry["CulturalAndCreative"] = "32";
|
|
36
|
+
Industry["AgriculturalTechnology"] = "33";
|
|
37
|
+
Industry["Ecommerce"] = "34";
|
|
38
|
+
Industry["GreenEnergyAndEnvironmentalServices"] = "35";
|
|
39
|
+
Industry["DigitalAndCloudServices"] = "36";
|
|
40
|
+
Industry["SportsAndLeisure"] = "37";
|
|
41
|
+
Industry["Household"] = "38";
|
|
42
|
+
Industry["ManagedStock"] = "80";
|
|
43
|
+
Industry["None"] = "00";
|
|
44
|
+
})(Industry = exports.Industry || (exports.Industry = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Market = void 0;
|
|
4
|
+
var Market;
|
|
5
|
+
(function (Market) {
|
|
6
|
+
Market["TSE"] = "TSE";
|
|
7
|
+
Market["OTC"] = "OTC";
|
|
8
|
+
Market["FUTOPT"] = "FUTOPT";
|
|
9
|
+
})(Market = exports.Market || (exports.Market = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Scraper = void 0;
|
|
4
|
+
var Scraper;
|
|
5
|
+
(function (Scraper) {
|
|
6
|
+
Scraper["Twse"] = "twse";
|
|
7
|
+
Scraper["Tpex"] = "tpex";
|
|
8
|
+
Scraper["Taifex"] = "taifex";
|
|
9
|
+
Scraper["Tdcc"] = "tdcc";
|
|
10
|
+
Scraper["MisTwse"] = "mis-twse";
|
|
11
|
+
Scraper["MisTaifex"] = "mis-taifex";
|
|
12
|
+
Scraper["Mops"] = "mops";
|
|
13
|
+
Scraper["Isin"] = "isin";
|
|
14
|
+
})(Scraper = exports.Scraper || (exports.Scraper = {}));
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./twstock"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface FutOptHistorical {
|
|
2
|
+
date: string;
|
|
3
|
+
exchange: string;
|
|
4
|
+
symbol: string;
|
|
5
|
+
contractMonth: string;
|
|
6
|
+
strikePrice: number;
|
|
7
|
+
type: string;
|
|
8
|
+
open: number;
|
|
9
|
+
high: number;
|
|
10
|
+
low: number;
|
|
11
|
+
close: number;
|
|
12
|
+
change: number;
|
|
13
|
+
changePercent: number;
|
|
14
|
+
volume: number;
|
|
15
|
+
settlementPrice: number;
|
|
16
|
+
openInterest: number;
|
|
17
|
+
bestBid: number;
|
|
18
|
+
bestAsk: number;
|
|
19
|
+
historicalHigh: number;
|
|
20
|
+
historicalLow: number;
|
|
21
|
+
session: string;
|
|
22
|
+
volumeSpread: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface FutOptInstitutional {
|
|
2
|
+
date: string;
|
|
3
|
+
exchange: string;
|
|
4
|
+
symbol: string;
|
|
5
|
+
name: string;
|
|
6
|
+
institutional: Array<{
|
|
7
|
+
investor: string;
|
|
8
|
+
longTradeVolume: number;
|
|
9
|
+
longTradeValue: number;
|
|
10
|
+
shortTradeVolume: number;
|
|
11
|
+
shortTradeValue: number;
|
|
12
|
+
netTradeVolume: number;
|
|
13
|
+
netTradeValue: number;
|
|
14
|
+
longOiVolume: number;
|
|
15
|
+
longOiValue: number;
|
|
16
|
+
shortOiVolume: number;
|
|
17
|
+
shortOiValue: number;
|
|
18
|
+
netOiVolume: number;
|
|
19
|
+
netOiValue: number;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface FutOptLargeTraders {
|
|
2
|
+
date: string;
|
|
3
|
+
exchange: string;
|
|
4
|
+
symbol: string;
|
|
5
|
+
name: string;
|
|
6
|
+
largeTraders: Array<{
|
|
7
|
+
type: string;
|
|
8
|
+
contractMonth: string;
|
|
9
|
+
traderType: string;
|
|
10
|
+
topFiveLongOi: number;
|
|
11
|
+
topFiveShortOi: number;
|
|
12
|
+
topTenLongOi: number;
|
|
13
|
+
topTenShortOi: number;
|
|
14
|
+
marketOi: number;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface FutOptQuote {
|
|
2
|
+
symbol: string;
|
|
3
|
+
name: string;
|
|
4
|
+
status: string;
|
|
5
|
+
referencePrice: number;
|
|
6
|
+
limitUpPrice: number;
|
|
7
|
+
limitDownPrice: number;
|
|
8
|
+
openPrice: number;
|
|
9
|
+
highPrice: number;
|
|
10
|
+
lowPrice: number;
|
|
11
|
+
lastPrice: number;
|
|
12
|
+
lastSize: number;
|
|
13
|
+
testPrice: number;
|
|
14
|
+
testSize: number;
|
|
15
|
+
testTime: number;
|
|
16
|
+
totalVoluem: number;
|
|
17
|
+
openInterest: number;
|
|
18
|
+
bidOrders: number;
|
|
19
|
+
askOrders: number;
|
|
20
|
+
bidVolume: number;
|
|
21
|
+
askVolume: number;
|
|
22
|
+
bidPrice: number[];
|
|
23
|
+
askPrice: number[];
|
|
24
|
+
bidSize: number[];
|
|
25
|
+
askSize: number[];
|
|
26
|
+
extBidPrice: number;
|
|
27
|
+
extAskPrice: number;
|
|
28
|
+
extBidSize: number;
|
|
29
|
+
extAskSize: number;
|
|
30
|
+
lastUpdated: number;
|
|
31
|
+
}
|