@invezgo/sdk 1.3.2 → 2.0.1
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/README.md +318 -314
- package/dist/cache.d.ts +27 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/client.d.ts +15 -18
- package/dist/client.d.ts.map +1 -1
- package/dist/errors.d.ts +71 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/generated/resources.d.ts +3291 -0
- package/dist/generated/resources.d.ts.map +1 -0
- package/dist/generated/types.d.ts +3449 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/http.d.ts +66 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/index.d.ts +9 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +754 -1080
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +775 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +66 -63
- package/dist/endpoints/ai.d.ts +0 -98
- package/dist/endpoints/ai.d.ts.map +0 -1
- package/dist/endpoints/alerts.d.ts +0 -49
- package/dist/endpoints/alerts.d.ts.map +0 -1
- package/dist/endpoints/analysis.d.ts +0 -380
- package/dist/endpoints/analysis.d.ts.map +0 -1
- package/dist/endpoints/batch.d.ts +0 -40
- package/dist/endpoints/batch.d.ts.map +0 -1
- package/dist/endpoints/health.d.ts +0 -24
- package/dist/endpoints/health.d.ts.map +0 -1
- package/dist/endpoints/journals.d.ts +0 -49
- package/dist/endpoints/journals.d.ts.map +0 -1
- package/dist/endpoints/membership.d.ts +0 -35
- package/dist/endpoints/membership.d.ts.map +0 -1
- package/dist/endpoints/portfolios.d.ts +0 -14
- package/dist/endpoints/portfolios.d.ts.map +0 -1
- package/dist/endpoints/posts.d.ts +0 -42
- package/dist/endpoints/posts.d.ts.map +0 -1
- package/dist/endpoints/profile.d.ts +0 -34
- package/dist/endpoints/profile.d.ts.map +0 -1
- package/dist/endpoints/recommendation.d.ts +0 -10
- package/dist/endpoints/recommendation.d.ts.map +0 -1
- package/dist/endpoints/screener.d.ts +0 -45
- package/dist/endpoints/screener.d.ts.map +0 -1
- package/dist/endpoints/search.d.ts +0 -18
- package/dist/endpoints/search.d.ts.map +0 -1
- package/dist/endpoints/trades.d.ts +0 -31
- package/dist/endpoints/trades.d.ts.map +0 -1
- package/dist/endpoints/usage.d.ts +0 -11
- package/dist/endpoints/usage.d.ts.map +0 -1
- package/dist/endpoints/watchlists.d.ts +0 -64
- package/dist/endpoints/watchlists.d.ts.map +0 -1
- package/dist/index.esm.js +0 -1130
- package/dist/index.esm.js.map +0 -1
- package/dist/invezgo.d.ts +0 -42
- package/dist/invezgo.d.ts.map +0 -1
- package/dist/types.d.ts +0 -610
- package/dist/types.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,63 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@invezgo/sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Official Invezgo API SDK for JavaScript
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"
|
|
11
|
-
"import": "./dist/index.
|
|
12
|
-
"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"build:
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"indonesia",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@invezgo/sdk",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Official Invezgo API SDK for JavaScript & TypeScript: fully typed access to Indonesia Stock Exchange (IDX/BEI) data with built-in LRU caching and API key rotation",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"generate": "python ../codegen/generate.py ts",
|
|
26
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && rollup -c rollup.config.mjs && tsc --emitDeclarationOnly --outDir dist",
|
|
27
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p examples",
|
|
28
|
+
"test": "npm run build && node --test test/client.test.mjs",
|
|
29
|
+
"prepublishOnly": "npm run typecheck && npm test"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"api",
|
|
33
|
+
"api-saham",
|
|
34
|
+
"bei",
|
|
35
|
+
"idx",
|
|
36
|
+
"indonesia",
|
|
37
|
+
"investment",
|
|
38
|
+
"invezgo",
|
|
39
|
+
"saham",
|
|
40
|
+
"sdk",
|
|
41
|
+
"stock",
|
|
42
|
+
"trading",
|
|
43
|
+
"typescript"
|
|
44
|
+
],
|
|
45
|
+
"author": "Invezgo",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/Invezgo/invezgo-js-sdk.git"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/Invezgo/invezgo-js-sdk/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/Invezgo/invezgo-js-sdk#readme",
|
|
55
|
+
"dependencies": {},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^20.0.0",
|
|
58
|
+
"rollup": "^4.0.0",
|
|
59
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
60
|
+
"typescript": "^5.0.0"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=18"
|
|
64
|
+
},
|
|
65
|
+
"sideEffects": false
|
|
66
|
+
}
|
package/dist/endpoints/ai.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../client';
|
|
2
|
-
export declare class AiEndpoints {
|
|
3
|
-
private client;
|
|
4
|
-
constructor(client: HttpClient);
|
|
5
|
-
/**
|
|
6
|
-
* AI analysis of KSEI shareholder data
|
|
7
|
-
*/
|
|
8
|
-
analyzeShareholderKSEI(code: string): Promise<any>;
|
|
9
|
-
/**
|
|
10
|
-
* AI analysis of inventory chart
|
|
11
|
-
*/
|
|
12
|
-
analyzeInventoryChart(code: string, params: {
|
|
13
|
-
from: string;
|
|
14
|
-
to: string;
|
|
15
|
-
scope: string;
|
|
16
|
-
investor: string;
|
|
17
|
-
limit: string;
|
|
18
|
-
market: string;
|
|
19
|
-
filter?: string;
|
|
20
|
-
}): Promise<any>;
|
|
21
|
-
/**
|
|
22
|
-
* AI analysis of stock news
|
|
23
|
-
*/
|
|
24
|
-
analyzeNews(code: string): Promise<any>;
|
|
25
|
-
/**
|
|
26
|
-
* AI analysis of broker summary
|
|
27
|
-
*/
|
|
28
|
-
analyzeBrokerSummary(code: string, params: {
|
|
29
|
-
from: string;
|
|
30
|
-
to: string;
|
|
31
|
-
investor: string;
|
|
32
|
-
market: string;
|
|
33
|
-
}): Promise<any>;
|
|
34
|
-
/**
|
|
35
|
-
* AI analysis of insider trading
|
|
36
|
-
*/
|
|
37
|
-
analyzeInsider(params: {
|
|
38
|
-
code?: string;
|
|
39
|
-
name: string;
|
|
40
|
-
from: string;
|
|
41
|
-
to: string;
|
|
42
|
-
page: string;
|
|
43
|
-
limit: string;
|
|
44
|
-
}): Promise<any>;
|
|
45
|
-
/**
|
|
46
|
-
* AI analysis of shareholders above 5%
|
|
47
|
-
*/
|
|
48
|
-
analyzeShareholderAbove(params: {
|
|
49
|
-
code?: string;
|
|
50
|
-
broker: string;
|
|
51
|
-
name: string;
|
|
52
|
-
from: string;
|
|
53
|
-
to: string;
|
|
54
|
-
page: string;
|
|
55
|
-
limit: string;
|
|
56
|
-
}): Promise<any>;
|
|
57
|
-
/**
|
|
58
|
-
* AI analysis of intraday inventory chart
|
|
59
|
-
*/
|
|
60
|
-
analyzeIntradayInventory(code: string, params: {
|
|
61
|
-
range: number;
|
|
62
|
-
type: string;
|
|
63
|
-
total: number;
|
|
64
|
-
buyer: string;
|
|
65
|
-
seller: string;
|
|
66
|
-
broker: string;
|
|
67
|
-
market: string;
|
|
68
|
-
}): Promise<any>;
|
|
69
|
-
/**
|
|
70
|
-
* AI analysis of sankey/crossing chart
|
|
71
|
-
*/
|
|
72
|
-
analyzeSankeyChart(code: string, params: {
|
|
73
|
-
type: string;
|
|
74
|
-
buyer: string;
|
|
75
|
-
seller: string;
|
|
76
|
-
market: string;
|
|
77
|
-
}): Promise<any>;
|
|
78
|
-
/**
|
|
79
|
-
* AI analysis of shareholder table
|
|
80
|
-
*/
|
|
81
|
-
analyzeShareholder(code: string): Promise<any>;
|
|
82
|
-
/**
|
|
83
|
-
* AI analysis of financial statement
|
|
84
|
-
*/
|
|
85
|
-
analyzeFinancialStatement(code: string, params: {
|
|
86
|
-
statement: string;
|
|
87
|
-
type: string;
|
|
88
|
-
limit: string;
|
|
89
|
-
}): Promise<any>;
|
|
90
|
-
/**
|
|
91
|
-
* AI analysis of key statistics
|
|
92
|
-
*/
|
|
93
|
-
analyzeKeyStat(code: string, params: {
|
|
94
|
-
type: string;
|
|
95
|
-
limit: string;
|
|
96
|
-
}): Promise<any>;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/endpoints/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,qBAAa,WAAW;IACV,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;OAEG;IACG,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAIxD;;OAEG;IACG,qBAAqB,CACzB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GACA,OAAO,CAAC,GAAG,CAAC;IAIf;;OAEG;IACG,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAI7C;;OAEG;IACG,oBAAoB,CACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,GACA,OAAO,CAAC,GAAG,CAAC;IAIf;;OAEG;IACG,cAAc,CAClB,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,GACA,OAAO,CAAC,GAAG,CAAC;IAIf;;OAEG;IACG,uBAAuB,CAC3B,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,GACA,OAAO,CAAC,GAAG,CAAC;IAIf;;OAEG;IACG,wBAAwB,CAC5B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,GACA,OAAO,CAAC,GAAG,CAAC;IAIf;;OAEG;IACG,kBAAkB,CACtB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,GACA,OAAO,CAAC,GAAG,CAAC;IAIf;;OAEG;IACG,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAIpD;;OAEG;IACG,yBAAyB,CAC7B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,GACA,OAAO,CAAC,GAAG,CAAC;IAIf;;OAEG;IACG,cAAc,CAClB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,GACA,OAAO,CAAC,GAAG,CAAC;CAGhB"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../client';
|
|
2
|
-
import type { AlertIntervalType, AlertSendType, ScreenerCategory } from '../types';
|
|
3
|
-
export interface AlertDto {
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
category: ScreenerCategory[];
|
|
7
|
-
every: AlertIntervalType;
|
|
8
|
-
send: AlertSendType;
|
|
9
|
-
scope?: string[];
|
|
10
|
-
formula: string;
|
|
11
|
-
}
|
|
12
|
-
export interface AlertTestDto {
|
|
13
|
-
formula: string;
|
|
14
|
-
category: ScreenerCategory[];
|
|
15
|
-
}
|
|
16
|
-
export interface UpdateAlertDto {
|
|
17
|
-
name: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
category: ScreenerCategory[];
|
|
20
|
-
every: AlertIntervalType;
|
|
21
|
-
send: AlertSendType;
|
|
22
|
-
formula: string;
|
|
23
|
-
scope?: string[];
|
|
24
|
-
}
|
|
25
|
-
export declare class AlertsEndpoints {
|
|
26
|
-
private client;
|
|
27
|
-
constructor(client: HttpClient);
|
|
28
|
-
/**
|
|
29
|
-
* Get list of alerts.
|
|
30
|
-
*/
|
|
31
|
-
list(): Promise<unknown[]>;
|
|
32
|
-
/**
|
|
33
|
-
* Create alert.
|
|
34
|
-
*/
|
|
35
|
-
add(dto: AlertDto): Promise<unknown>;
|
|
36
|
-
/**
|
|
37
|
-
* Update alert.
|
|
38
|
-
*/
|
|
39
|
-
update(id: string, dto: UpdateAlertDto): Promise<unknown>;
|
|
40
|
-
/**
|
|
41
|
-
* Delete alert.
|
|
42
|
-
*/
|
|
43
|
-
delete(id: string): Promise<unknown>;
|
|
44
|
-
/**
|
|
45
|
-
* Test alert formula.
|
|
46
|
-
*/
|
|
47
|
-
test(dto: AlertTestDto): Promise<unknown>;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=alerts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../src/endpoints/alerts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEnF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,KAAK,EAAE,iBAAiB,CAAC;IACzB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,KAAK,EAAE,iBAAiB,CAAC;IACzB,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,qBAAa,eAAe;IACd,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAIhC;;OAEG;IACG,GAAG,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1C;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/D;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1C;;OAEG;IACG,IAAI,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;CAGhD"}
|
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../client';
|
|
2
|
-
import type { Stock, Broker, StockIndex, CompanyInformation, TopChangeResponse, TopForeignResponse, TopAccumulationResponse, TopRetailResponse, ChartResponse, IndexChartDataPoint, IntradayChartData, IntradayStockData, IntradayIndexData, OrderBookResponse, ShareholderDetail, ShareholderComposition, ShareholderKSEI, ShareholderDetailOneItem, ShareholderRelationResponse, BrokerSummary, SummaryChartItem, InventoryChartResponse, InventoryBrokerChartItem, MomentumChartData, SectorStalkerResponse, SectorRotationResponse, BrokerStalkerResponse, BrokerStalkerListResponse, PriceTableData, TimeTableData, PriceDiaryData, ShareholderAbove5, ShareholderOneItem, ShareholderOneChartPoint, CorporateActionCalendarItem, PaginatedResponse, InsiderTransaction, FinancialStatementResponse, KeyStatResponse, KeyStatValue, DateRangeParams, InvestorType, TradingBoardType, ScopeType, ScopeShortType, StatementType, PeriodType, IndicatorType, SectorBaseType, StalkerFilterColumn, FilterOperatorType, CorporateActionType, TimeframeType, MultiTimeframeChartPoint, ShareholderHighConcentration, ShareholderClassification, ShareholderClassifyTable, OrderQueueItem, RunningTradeItem, RunningTradeParams } from '../types';
|
|
3
|
-
export declare class AnalysisEndpoints {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: HttpClient);
|
|
6
|
-
/**
|
|
7
|
-
* Get list of all stocks listed on BEI.
|
|
8
|
-
*/
|
|
9
|
-
getStockList(): Promise<Stock[]>;
|
|
10
|
-
/**
|
|
11
|
-
* Get list of all brokers/securities on BEI.
|
|
12
|
-
*/
|
|
13
|
-
getBrokerList(): Promise<Broker[]>;
|
|
14
|
-
/**
|
|
15
|
-
* Get list of all supported IDX indexes.
|
|
16
|
-
*/
|
|
17
|
-
getIndexList(): Promise<StockIndex[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Get complete company information.
|
|
20
|
-
*/
|
|
21
|
-
getInformation(code: string): Promise<CompanyInformation>;
|
|
22
|
-
/**
|
|
23
|
-
* Get top gainer and loser stocks for a specific date.
|
|
24
|
-
*/
|
|
25
|
-
getTopChange(date: string): Promise<TopChangeResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Get top foreign accumulation and distribution.
|
|
28
|
-
*/
|
|
29
|
-
getTopForeign(date: string): Promise<TopForeignResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Get top bandarmology accumulation and distribution.
|
|
32
|
-
*/
|
|
33
|
-
getTopAccumulation(date: string): Promise<TopAccumulationResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* Get top retail accumulation and distribution.
|
|
36
|
-
*/
|
|
37
|
-
getTopRitel(date: string): Promise<TopRetailResponse>;
|
|
38
|
-
/**
|
|
39
|
-
* Alias for getTopRitel.
|
|
40
|
-
*/
|
|
41
|
-
getTopRetail(date: string): Promise<TopRetailResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* Get intraday chart data.
|
|
44
|
-
*/
|
|
45
|
-
getIntradayChart(code: string, market?: TradingBoardType): Promise<IntradayChartData[]>;
|
|
46
|
-
/**
|
|
47
|
-
* Get intraday stock summary data.
|
|
48
|
-
*/
|
|
49
|
-
getIntradayData(code: string, market?: TradingBoardType): Promise<IntradayStockData>;
|
|
50
|
-
/**
|
|
51
|
-
* Get intraday index summary data.
|
|
52
|
-
*/
|
|
53
|
-
getIntradayIndex(code: string, market?: TradingBoardType): Promise<IntradayIndexData>;
|
|
54
|
-
/**
|
|
55
|
-
* Get order book data.
|
|
56
|
-
*/
|
|
57
|
-
getOrderBook(code: string, market?: TradingBoardType): Promise<OrderBookResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* Get complete stock chart data.
|
|
60
|
-
*/
|
|
61
|
-
getChart(code: string, params: DateRangeParams): Promise<ChartResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Get historical index chart data.
|
|
64
|
-
*/
|
|
65
|
-
getIndexChart(code: string, params: DateRangeParams): Promise<IndexChartDataPoint[]>;
|
|
66
|
-
/**
|
|
67
|
-
* Get stock chart with technical indicator.
|
|
68
|
-
*/
|
|
69
|
-
getIndicatorChart(code: string, indicator: IndicatorType, params: DateRangeParams): Promise<ChartResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* Get shareholder detail above 5%.
|
|
72
|
-
*/
|
|
73
|
-
getShareholderDetail(code: string): Promise<ShareholderDetail[]>;
|
|
74
|
-
/**
|
|
75
|
-
* Get shareholder detail above 1% for a specific holder.
|
|
76
|
-
*/
|
|
77
|
-
getShareholderDetailOne(params: {
|
|
78
|
-
code: string;
|
|
79
|
-
name: string;
|
|
80
|
-
}): Promise<ShareholderDetailOneItem[]>;
|
|
81
|
-
/**
|
|
82
|
-
* Get number of shareholders.
|
|
83
|
-
*/
|
|
84
|
-
getShareholderNumber(code: string): Promise<ShareholderDetail[]>;
|
|
85
|
-
/**
|
|
86
|
-
* Get shareholder relation graph.
|
|
87
|
-
*/
|
|
88
|
-
getShareholderRelation(params: {
|
|
89
|
-
code?: string;
|
|
90
|
-
name?: string;
|
|
91
|
-
depth?: number;
|
|
92
|
-
max_nodes?: number;
|
|
93
|
-
neighbors?: number;
|
|
94
|
-
min_percentage?: number;
|
|
95
|
-
}): Promise<ShareholderRelationResponse>;
|
|
96
|
-
/**
|
|
97
|
-
* Get shareholder composition.
|
|
98
|
-
*/
|
|
99
|
-
getShareholder(code: string): Promise<ShareholderComposition[]>;
|
|
100
|
-
/**
|
|
101
|
-
* Get KSEI shareholder data.
|
|
102
|
-
*/
|
|
103
|
-
getShareholderKSEI(code: string, range: number): Promise<ShareholderKSEI[]>;
|
|
104
|
-
/**
|
|
105
|
-
* Get broker summary for a stock.
|
|
106
|
-
*/
|
|
107
|
-
getBrokerSummaryStock(code: string, params: DateRangeParams & {
|
|
108
|
-
investor: InvestorType;
|
|
109
|
-
market: TradingBoardType;
|
|
110
|
-
}): Promise<BrokerSummary[]>;
|
|
111
|
-
/**
|
|
112
|
-
* Get broker summary for a broker.
|
|
113
|
-
*/
|
|
114
|
-
getBrokerSummaryBroker(code: string, params: DateRangeParams & {
|
|
115
|
-
investor: InvestorType;
|
|
116
|
-
market: TradingBoardType;
|
|
117
|
-
}): Promise<BrokerSummary[]>;
|
|
118
|
-
/**
|
|
119
|
-
* Get sector stalker data.
|
|
120
|
-
*/
|
|
121
|
-
getStalkerSector(params: DateRangeParams & {
|
|
122
|
-
base?: SectorBaseType;
|
|
123
|
-
limit?: number;
|
|
124
|
-
filter?: string;
|
|
125
|
-
filter_column?: StalkerFilterColumn;
|
|
126
|
-
filter_operator?: FilterOperatorType;
|
|
127
|
-
filter_value?: number;
|
|
128
|
-
}): Promise<SectorStalkerResponse>;
|
|
129
|
-
/**
|
|
130
|
-
* Get sector rotation chart.
|
|
131
|
-
*/
|
|
132
|
-
getSectorRotation(params: DateRangeParams & {
|
|
133
|
-
base?: SectorBaseType;
|
|
134
|
-
length?: number;
|
|
135
|
-
tail?: number;
|
|
136
|
-
limit?: number;
|
|
137
|
-
filter?: string;
|
|
138
|
-
filter_column?: StalkerFilterColumn;
|
|
139
|
-
filter_operator?: FilterOperatorType;
|
|
140
|
-
filter_value?: number;
|
|
141
|
-
}): Promise<SectorRotationResponse>;
|
|
142
|
-
/**
|
|
143
|
-
* Get broker stalker data for a stock.
|
|
144
|
-
*/
|
|
145
|
-
getBrokerStalker(broker: string, stock: string, params: DateRangeParams & {
|
|
146
|
-
investor: InvestorType;
|
|
147
|
-
market: TradingBoardType;
|
|
148
|
-
scope: 'volume' | 'value';
|
|
149
|
-
}): Promise<BrokerStalkerResponse>;
|
|
150
|
-
/**
|
|
151
|
-
* Get broker stalker list.
|
|
152
|
-
*/
|
|
153
|
-
getBrokerStalkerList(code: string, params: DateRangeParams & {
|
|
154
|
-
investor: InvestorType;
|
|
155
|
-
scope: 'volume' | 'value';
|
|
156
|
-
market: TradingBoardType;
|
|
157
|
-
}): Promise<BrokerStalkerListResponse>;
|
|
158
|
-
/**
|
|
159
|
-
* Get broker summary chart for a stock.
|
|
160
|
-
*/
|
|
161
|
-
getBrokerSummaryChartStock(code: string, params: DateRangeParams & {
|
|
162
|
-
scope: ScopeType;
|
|
163
|
-
market: TradingBoardType;
|
|
164
|
-
}): Promise<SummaryChartItem[]>;
|
|
165
|
-
/**
|
|
166
|
-
* Get broker summary chart for a broker.
|
|
167
|
-
*/
|
|
168
|
-
getBrokerSummaryChartBroker(code: string, params: DateRangeParams & {
|
|
169
|
-
scope: ScopeType;
|
|
170
|
-
market: TradingBoardType;
|
|
171
|
-
}): Promise<SummaryChartItem[]>;
|
|
172
|
-
/**
|
|
173
|
-
* Get inventory chart for a stock.
|
|
174
|
-
*/
|
|
175
|
-
getInventoryChartStock(code: string, params: DateRangeParams & {
|
|
176
|
-
scope: ScopeShortType;
|
|
177
|
-
investor: InvestorType;
|
|
178
|
-
limit: number;
|
|
179
|
-
market: TradingBoardType;
|
|
180
|
-
filter?: string[];
|
|
181
|
-
}): Promise<InventoryChartResponse>;
|
|
182
|
-
/**
|
|
183
|
-
* Get inventory chart for a broker.
|
|
184
|
-
*/
|
|
185
|
-
getInventoryChartBroker(code: string, params: DateRangeParams & {
|
|
186
|
-
scope: ScopeShortType;
|
|
187
|
-
investor: InvestorType;
|
|
188
|
-
limit: number;
|
|
189
|
-
market: TradingBoardType;
|
|
190
|
-
filter?: string[];
|
|
191
|
-
}): Promise<InventoryBrokerChartItem[]>;
|
|
192
|
-
/**
|
|
193
|
-
* Get momentum chart.
|
|
194
|
-
*/
|
|
195
|
-
getMomentumChart(code: string, params: {
|
|
196
|
-
date: string;
|
|
197
|
-
range: number;
|
|
198
|
-
scope: ScopeShortType;
|
|
199
|
-
}): Promise<MomentumChartData[]>;
|
|
200
|
-
/**
|
|
201
|
-
* Get intraday inventory chart.
|
|
202
|
-
*/
|
|
203
|
-
getIntradayInventoryChart(code: string, params: {
|
|
204
|
-
range: number;
|
|
205
|
-
type: string;
|
|
206
|
-
total: number;
|
|
207
|
-
buyer: string;
|
|
208
|
-
seller: string;
|
|
209
|
-
market: TradingBoardType;
|
|
210
|
-
broker?: string;
|
|
211
|
-
}): Promise<InventoryChartResponse>;
|
|
212
|
-
/**
|
|
213
|
-
* Get distribution or crossing chart.
|
|
214
|
-
*/
|
|
215
|
-
getSankeyChart(code: string, params: {
|
|
216
|
-
type: string;
|
|
217
|
-
market: TradingBoardType;
|
|
218
|
-
buyer?: string;
|
|
219
|
-
seller?: string;
|
|
220
|
-
}): Promise<unknown>;
|
|
221
|
-
/**
|
|
222
|
-
* Get price table.
|
|
223
|
-
*/
|
|
224
|
-
getPriceTable(code: string, date: string): Promise<PriceTableData[]>;
|
|
225
|
-
/**
|
|
226
|
-
* Get time table.
|
|
227
|
-
*/
|
|
228
|
-
getTimeTable(code: string, params: {
|
|
229
|
-
date: string;
|
|
230
|
-
range: number;
|
|
231
|
-
}): Promise<TimeTableData[]>;
|
|
232
|
-
/**
|
|
233
|
-
* Get price diary.
|
|
234
|
-
*/
|
|
235
|
-
getPriceDiary(code: string): Promise<PriceDiaryData[]>;
|
|
236
|
-
/**
|
|
237
|
-
* Get price seasonality.
|
|
238
|
-
*/
|
|
239
|
-
getPriceSeasonality(code: string, range: number): Promise<PriceDiaryData[]>;
|
|
240
|
-
/**
|
|
241
|
-
* Get shareholders above 5%.
|
|
242
|
-
*/
|
|
243
|
-
getShareholderAbove(params: DateRangeParams & {
|
|
244
|
-
limit?: number;
|
|
245
|
-
page?: number;
|
|
246
|
-
name?: string;
|
|
247
|
-
broker?: string[];
|
|
248
|
-
code?: string;
|
|
249
|
-
}): Promise<PaginatedResponse<ShareholderAbove5>>;
|
|
250
|
-
/**
|
|
251
|
-
* Get shareholder above 5% chart.
|
|
252
|
-
*/
|
|
253
|
-
getShareholderAboveChart(code: string, params: {
|
|
254
|
-
broker: string;
|
|
255
|
-
name: string;
|
|
256
|
-
date: string;
|
|
257
|
-
}): Promise<unknown>;
|
|
258
|
-
/**
|
|
259
|
-
* Get shareholders above 1%.
|
|
260
|
-
*/
|
|
261
|
-
getShareholderOne(params: DateRangeParams & {
|
|
262
|
-
page?: number;
|
|
263
|
-
limit?: number;
|
|
264
|
-
code?: string;
|
|
265
|
-
name?: string;
|
|
266
|
-
}): Promise<PaginatedResponse<ShareholderOneItem>>;
|
|
267
|
-
/**
|
|
268
|
-
* Get shareholder above 1% chart.
|
|
269
|
-
*/
|
|
270
|
-
getShareholderOneChart(code: string, params: {
|
|
271
|
-
broker?: string;
|
|
272
|
-
name?: string;
|
|
273
|
-
date?: string;
|
|
274
|
-
}): Promise<ShareholderOneChartPoint[]>;
|
|
275
|
-
/**
|
|
276
|
-
* Get insider trading data.
|
|
277
|
-
*/
|
|
278
|
-
getInsiderTrading(params: DateRangeParams & {
|
|
279
|
-
limit?: number;
|
|
280
|
-
page?: number;
|
|
281
|
-
name?: string;
|
|
282
|
-
code?: string;
|
|
283
|
-
}): Promise<PaginatedResponse<InsiderTransaction>>;
|
|
284
|
-
/**
|
|
285
|
-
* Get insider chart.
|
|
286
|
-
*/
|
|
287
|
-
getInsiderChart(code: string, params: {
|
|
288
|
-
name: string;
|
|
289
|
-
date: string;
|
|
290
|
-
}): Promise<unknown>;
|
|
291
|
-
/**
|
|
292
|
-
* Get financial statement.
|
|
293
|
-
*/
|
|
294
|
-
getFinancialStatement(code: string, params: {
|
|
295
|
-
statement: StatementType;
|
|
296
|
-
type: PeriodType;
|
|
297
|
-
limit: number;
|
|
298
|
-
}): Promise<FinancialStatementResponse>;
|
|
299
|
-
/**
|
|
300
|
-
* Get financial statement chart.
|
|
301
|
-
*/
|
|
302
|
-
getFinancialStatementChart(code: string, params: {
|
|
303
|
-
statement: StatementType;
|
|
304
|
-
type: PeriodType;
|
|
305
|
-
limit: number;
|
|
306
|
-
account: string;
|
|
307
|
-
}): Promise<FinancialStatementResponse['rows'][0]['values']>;
|
|
308
|
-
/**
|
|
309
|
-
* Get key statistics.
|
|
310
|
-
*/
|
|
311
|
-
getKeyStat(code: string, params: {
|
|
312
|
-
type: PeriodType;
|
|
313
|
-
limit: number;
|
|
314
|
-
}): Promise<KeyStatResponse>;
|
|
315
|
-
/**
|
|
316
|
-
* Get key statistics chart.
|
|
317
|
-
*/
|
|
318
|
-
getKeyStatChart(code: string, params: {
|
|
319
|
-
type: PeriodType;
|
|
320
|
-
limit: number;
|
|
321
|
-
name: string;
|
|
322
|
-
}): Promise<KeyStatValue[]>;
|
|
323
|
-
/**
|
|
324
|
-
* Get corporate action calendar.
|
|
325
|
-
*/
|
|
326
|
-
getCalendar(params: {
|
|
327
|
-
code?: string;
|
|
328
|
-
type?: CorporateActionType;
|
|
329
|
-
page?: number;
|
|
330
|
-
limit?: number;
|
|
331
|
-
}): Promise<PaginatedResponse<CorporateActionCalendarItem>>;
|
|
332
|
-
/**
|
|
333
|
-
* Alias for getCalendar.
|
|
334
|
-
*/
|
|
335
|
-
getCorporateActionCalendar(params: {
|
|
336
|
-
code?: string;
|
|
337
|
-
type?: CorporateActionType;
|
|
338
|
-
page?: number;
|
|
339
|
-
limit?: number;
|
|
340
|
-
}): Promise<PaginatedResponse<CorporateActionCalendarItem>>;
|
|
341
|
-
/**
|
|
342
|
-
* Get multi-timeframe chart data for stocks or indexes.
|
|
343
|
-
*/
|
|
344
|
-
getMultiTimeChart(code: string, params: DateRangeParams & {
|
|
345
|
-
timeframe: TimeframeType;
|
|
346
|
-
}): Promise<MultiTimeframeChartPoint[]>;
|
|
347
|
-
/**
|
|
348
|
-
* Get high concentration stock ownership data for all issuers.
|
|
349
|
-
*/
|
|
350
|
-
getShareholderHigh(): Promise<ShareholderHighConcentration[]>;
|
|
351
|
-
/**
|
|
352
|
-
* Get complete shareholder data with all investor classifications for a specific period.
|
|
353
|
-
*/
|
|
354
|
-
getShareholderClassification(code: string, range: number): Promise<ShareholderClassification[]>;
|
|
355
|
-
/**
|
|
356
|
-
* Get latest shareholder data with investor classifications in table format.
|
|
357
|
-
*/
|
|
358
|
-
getShareholderClassifyTable(code: string): Promise<ShareholderClassifyTable>;
|
|
359
|
-
/**
|
|
360
|
-
* Get order queue (order tracking) for a stock at a specific price, side, page, and limit.
|
|
361
|
-
*/
|
|
362
|
-
getOrderQueue(code: string, params: {
|
|
363
|
-
price: string | number;
|
|
364
|
-
side: 'BUY' | 'SELL';
|
|
365
|
-
page?: string | number;
|
|
366
|
-
limit?: string | number;
|
|
367
|
-
}): Promise<OrderQueueItem[]>;
|
|
368
|
-
/**
|
|
369
|
-
* Get realtime/historical running trade transaction data for a specific stock code.
|
|
370
|
-
*
|
|
371
|
-
* @param code Stock code (e.g. 'BBCA')
|
|
372
|
-
* @param params Query parameters including date (YYYY-MM-DD), page, limit, type, orderby, etc.
|
|
373
|
-
*/
|
|
374
|
-
getRunningTrade(code: string, params: RunningTradeParams): Promise<PaginatedResponse<RunningTradeItem>>;
|
|
375
|
-
/**
|
|
376
|
-
* Alias for getRunningTrade.
|
|
377
|
-
*/
|
|
378
|
-
getStockRunningTrade(code: string, params: RunningTradeParams): Promise<PaginatedResponse<RunningTradeItem>>;
|
|
379
|
-
}
|
|
380
|
-
//# sourceMappingURL=analysis.d.ts.map
|