@invezgo/sdk 1.1.0 โ 1.3.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/README.md +313 -299
- package/dist/endpoints/analysis.d.ts +19 -1
- package/dist/endpoints/analysis.d.ts.map +1 -1
- package/dist/endpoints/usage.d.ts +11 -0
- package/dist/endpoints/usage.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +38 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +38 -1
- package/dist/index.js.map +1 -1
- package/dist/invezgo.d.ts +2 -0
- package/dist/invezgo.d.ts.map +1 -1
- package/dist/types.d.ts +66 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +60 -60
package/README.md
CHANGED
|
@@ -1,299 +1,313 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
# ๐ Invezgo SDK - API Saham Indonesia Resmi untuk JavaScript & TypeScript
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
**SDK resmi untuk integrasi API Saham Indonesia yang lengkap, resmi, dan performance-oriented.**
|
|
11
|
-
|
|
12
|
-
Dirancang untuk developer yang membangun aplikasi saham, dashboard analitik, screener, alert engine, watchlist, jurnal transaksi, dan backend service yang membutuhkan akses stabil ke **API Saham Indonesia** dari Invezgo.
|
|
13
|
-
|
|
14
|
-
[๐ Website Invezgo](https://invezgo.com) โข [๐ Dokumentasi API](https://api.invezgo.com/documentation)
|
|
15
|
-
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## ๐ Mengapa Invezgo untuk API Saham Indonesia
|
|
21
|
-
|
|
22
|
-
Jika Anda mencari **API Saham Indonesia** yang siap dipakai untuk production, `@invezgo/sdk` memberikan surface integrasi yang lebih rapi dibanding request manual. SDK ini dibuat untuk mempermudah integrasi **API Saham Indonesia resmi** ke aplikasi JavaScript dan TypeScript dengan kontrak yang konsisten, typing yang jelas, dan footprint runtime yang ringan.
|
|
23
|
-
|
|
24
|
-
Keunggulan utamanya:
|
|
25
|
-
|
|
26
|
-
- โ
**Resmi**: mengikuti surface API resmi Invezgo
|
|
27
|
-
- โ
**Lengkap**: mencakup data saham, broker, index, screener, alert, watchlist, jurnal, portofolio, post, dan recommendation
|
|
28
|
-
- โ
**Cepat dan ringan**: memakai `fetch` native tanpa dependency runtime tambahan
|
|
29
|
-
- โ
**Developer-first**: mendukung TypeScript, DTO terstruktur, `CJS`, `ESM`, dan error handling yang jelas
|
|
30
|
-
- โ
**Production-ready**: cocok untuk backend service, internal tools, fintech product, dan dashboard monitoring
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## ๐ฏ Cocok untuk Use Case Berikut
|
|
35
|
-
|
|
36
|
-
- ๐ Dashboard berbasis **API Saham Indonesia**
|
|
37
|
-
- ๐ค Screener saham Indonesia dengan formula custom
|
|
38
|
-
- ๐ Alert saham dan monitoring market behavior
|
|
39
|
-
- ๐งพ Jurnal transaksi dan manajemen watchlist
|
|
40
|
-
- ๐ผ Portofolio dan personal investment tools
|
|
41
|
-
- ๐๏ธ Backend integration untuk aplikasi fintech dan wealth platform
|
|
42
|
-
- ๐ง Research tooling untuk quant, trader, dan analis
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## ๐ฆ Instalasi
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
npm install @invezgo/sdk
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## ๐ Cara Mulai dan Berlangganan
|
|
55
|
-
|
|
56
|
-
Sebelum menggunakan SDK ini, Anda perlu memiliki akses aktif ke **API Saham Indonesia** dari Invezgo.
|
|
57
|
-
|
|
58
|
-
### 1. Pilih paket langganan API
|
|
59
|
-
|
|
60
|
-
Kunjungi halaman resmi API Saham Indonesia Invezgo untuk melihat paket yang tersedia dan memilih plan yang sesuai dengan kebutuhan aplikasi Anda:
|
|
61
|
-
|
|
62
|
-
- Paket API Saham Indonesia: [https://invezgo.com/id/data-api-saham-indonesia](https://invezgo.com/id/data-api-saham-indonesia)
|
|
63
|
-
|
|
64
|
-
### 2. Login ke akun Invezgo
|
|
65
|
-
|
|
66
|
-
Setelah memilih paket, login ke akun Invezgo Anda melalui website utama:
|
|
67
|
-
|
|
68
|
-
- Website Invezgo: [https://invezgo.com](https://invezgo.com)
|
|
69
|
-
|
|
70
|
-
### 3. Generate API key
|
|
71
|
-
|
|
72
|
-
Setelah langganan aktif, generate API key dari dashboard akun Invezgo Anda. API key inilah yang akan dipakai untuk autentikasi semua request ke **API Saham Indonesia**.
|
|
73
|
-
|
|
74
|
-
### 4. Install SDK
|
|
75
|
-
|
|
76
|
-
Install package JavaScript/TypeScript resmi:
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
npm install @invezgo/sdk
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### 5. Simpan API key di environment variable
|
|
83
|
-
|
|
84
|
-
Contoh yang direkomendasikan:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
INVEZGO_API_KEY=your_api_key_here
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### 6. Mulai integrasi
|
|
91
|
-
|
|
92
|
-
Gunakan API key tersebut untuk mengakses endpoint Invezgo melalui SDK:
|
|
93
|
-
|
|
94
|
-
```ts
|
|
95
|
-
import Invezgo from '@invezgo/sdk';
|
|
96
|
-
|
|
97
|
-
const client = new Invezgo({
|
|
98
|
-
apiKey: process.env.INVEZGO_API_KEY!,
|
|
99
|
-
});
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## โก Quick Start
|
|
105
|
-
|
|
106
|
-
```ts
|
|
107
|
-
import Invezgo from '@invezgo/sdk';
|
|
108
|
-
|
|
109
|
-
const client = new Invezgo({
|
|
110
|
-
apiKey: process.env.INVEZGO_API_KEY!,
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
const stocks = await client.analysis.getStockList();
|
|
114
|
-
const indexes = await client.analysis.getIndexList();
|
|
115
|
-
const intraday = await client.analysis.getIntradayData('BBCA', 'RG');
|
|
116
|
-
|
|
117
|
-
console.log(stocks[0]);
|
|
118
|
-
console.log(indexes[0]);
|
|
119
|
-
console.log(intraday.close);
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## ๐งฉ Fitur Utama API Saham Indonesia di SDK Ini
|
|
125
|
-
|
|
126
|
-
### ๐ Data pasar dan analysis yang lengkap
|
|
127
|
-
|
|
128
|
-
Modul `analysis` mencakup endpoint penting untuk **API Saham Indonesia**, termasuk:
|
|
129
|
-
|
|
130
|
-
- daftar saham dan broker BEI
|
|
131
|
-
- daftar index IDX
|
|
132
|
-
- top gainer, top loser, top foreign, top accumulation, dan top retail flow
|
|
133
|
-
- chart saham dan index
|
|
134
|
-
- intraday chart, intraday summary, dan order book
|
|
135
|
-
- broker summary, broker stalker, inventory chart, momentum chart
|
|
136
|
-
- shareholder data, shareholder relation, insider activity, dan corporate action calendar
|
|
137
|
-
- financial statement dan key statistics
|
|
138
|
-
|
|
139
|
-
### ๐ก๏ธ SDK resmi yang lebih aman untuk production
|
|
140
|
-
|
|
141
|
-
Menggunakan SDK resmi membantu mengurangi mismatch pada path, query params, payload, dan struktur response. Untuk tim yang membangun produk berbasis **API Saham Indonesia resmi**, pendekatan ini membuat proses development dan maintenance lebih efisien.
|
|
142
|
-
|
|
143
|
-
### โ๏ธ Ringan dan fokus pada performa
|
|
144
|
-
|
|
145
|
-
`Invezgo SDK` tidak membawa dependency runtime tambahan. Ini relevan untuk aplikasi yang sensitif terhadap startup time, cold start, footprint container, atau deployment serverless.
|
|
146
|
-
|
|
147
|
-
### ๐จโ๐ป Developer experience yang rapi
|
|
148
|
-
|
|
149
|
-
- TypeScript-first
|
|
150
|
-
- `InvezgoError` untuk error handling terstruktur
|
|
151
|
-
- deklarasi tipe untuk DTO dan response utama
|
|
152
|
-
- output build untuk `require` dan `import`
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## ๐๏ธ Modul yang Tersedia
|
|
157
|
-
|
|
158
|
-
- `alerts`
|
|
159
|
-
- `analysis`
|
|
160
|
-
- `watchlists`
|
|
161
|
-
- `journals`
|
|
162
|
-
- `portfolios`
|
|
163
|
-
- `search`
|
|
164
|
-
- `profile`
|
|
165
|
-
- `membership`
|
|
166
|
-
- `posts`
|
|
167
|
-
- `recommendation`
|
|
168
|
-
- `trades`
|
|
169
|
-
- `screener`
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
-
|
|
266
|
-
-
|
|
267
|
-
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
##
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# ๐ Invezgo SDK - API Saham Indonesia Resmi untuk JavaScript & TypeScript
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
**SDK resmi untuk integrasi API Saham Indonesia yang lengkap, resmi, dan performance-oriented.**
|
|
11
|
+
|
|
12
|
+
Dirancang untuk developer yang membangun aplikasi saham, dashboard analitik, screener, alert engine, watchlist, jurnal transaksi, dan backend service yang membutuhkan akses stabil ke **API Saham Indonesia** dari Invezgo.
|
|
13
|
+
|
|
14
|
+
[๐ Website Invezgo](https://invezgo.com) โข [๐ Dokumentasi API](https://api.invezgo.com/documentation)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## ๐ Mengapa Invezgo untuk API Saham Indonesia
|
|
21
|
+
|
|
22
|
+
Jika Anda mencari **API Saham Indonesia** yang siap dipakai untuk production, `@invezgo/sdk` memberikan surface integrasi yang lebih rapi dibanding request manual. SDK ini dibuat untuk mempermudah integrasi **API Saham Indonesia resmi** ke aplikasi JavaScript dan TypeScript dengan kontrak yang konsisten, typing yang jelas, dan footprint runtime yang ringan.
|
|
23
|
+
|
|
24
|
+
Keunggulan utamanya:
|
|
25
|
+
|
|
26
|
+
- โ
**Resmi**: mengikuti surface API resmi Invezgo
|
|
27
|
+
- โ
**Lengkap**: mencakup data saham, broker, index, screener, alert, watchlist, jurnal, portofolio, post, dan recommendation
|
|
28
|
+
- โ
**Cepat dan ringan**: memakai `fetch` native tanpa dependency runtime tambahan
|
|
29
|
+
- โ
**Developer-first**: mendukung TypeScript, DTO terstruktur, `CJS`, `ESM`, dan error handling yang jelas
|
|
30
|
+
- โ
**Production-ready**: cocok untuk backend service, internal tools, fintech product, dan dashboard monitoring
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## ๐ฏ Cocok untuk Use Case Berikut
|
|
35
|
+
|
|
36
|
+
- ๐ Dashboard berbasis **API Saham Indonesia**
|
|
37
|
+
- ๐ค Screener saham Indonesia dengan formula custom
|
|
38
|
+
- ๐ Alert saham dan monitoring market behavior
|
|
39
|
+
- ๐งพ Jurnal transaksi dan manajemen watchlist
|
|
40
|
+
- ๐ผ Portofolio dan personal investment tools
|
|
41
|
+
- ๐๏ธ Backend integration untuk aplikasi fintech dan wealth platform
|
|
42
|
+
- ๐ง Research tooling untuk quant, trader, dan analis
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## ๐ฆ Instalasi
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npm install @invezgo/sdk
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## ๐ Cara Mulai dan Berlangganan
|
|
55
|
+
|
|
56
|
+
Sebelum menggunakan SDK ini, Anda perlu memiliki akses aktif ke **API Saham Indonesia** dari Invezgo.
|
|
57
|
+
|
|
58
|
+
### 1. Pilih paket langganan API
|
|
59
|
+
|
|
60
|
+
Kunjungi halaman resmi API Saham Indonesia Invezgo untuk melihat paket yang tersedia dan memilih plan yang sesuai dengan kebutuhan aplikasi Anda:
|
|
61
|
+
|
|
62
|
+
- Paket API Saham Indonesia: [https://invezgo.com/id/data-api-saham-indonesia](https://invezgo.com/id/data-api-saham-indonesia)
|
|
63
|
+
|
|
64
|
+
### 2. Login ke akun Invezgo
|
|
65
|
+
|
|
66
|
+
Setelah memilih paket, login ke akun Invezgo Anda melalui website utama:
|
|
67
|
+
|
|
68
|
+
- Website Invezgo: [https://invezgo.com](https://invezgo.com)
|
|
69
|
+
|
|
70
|
+
### 3. Generate API key
|
|
71
|
+
|
|
72
|
+
Setelah langganan aktif, generate API key dari dashboard akun Invezgo Anda. API key inilah yang akan dipakai untuk autentikasi semua request ke **API Saham Indonesia**.
|
|
73
|
+
|
|
74
|
+
### 4. Install SDK
|
|
75
|
+
|
|
76
|
+
Install package JavaScript/TypeScript resmi:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npm install @invezgo/sdk
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### 5. Simpan API key di environment variable
|
|
83
|
+
|
|
84
|
+
Contoh yang direkomendasikan:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
INVEZGO_API_KEY=your_api_key_here
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 6. Mulai integrasi
|
|
91
|
+
|
|
92
|
+
Gunakan API key tersebut untuk mengakses endpoint Invezgo melalui SDK:
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import Invezgo from '@invezgo/sdk';
|
|
96
|
+
|
|
97
|
+
const client = new Invezgo({
|
|
98
|
+
apiKey: process.env.INVEZGO_API_KEY!,
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## โก Quick Start
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import Invezgo from '@invezgo/sdk';
|
|
108
|
+
|
|
109
|
+
const client = new Invezgo({
|
|
110
|
+
apiKey: process.env.INVEZGO_API_KEY!,
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
const stocks = await client.analysis.getStockList();
|
|
114
|
+
const indexes = await client.analysis.getIndexList();
|
|
115
|
+
const intraday = await client.analysis.getIntradayData('BBCA', 'RG');
|
|
116
|
+
|
|
117
|
+
console.log(stocks[0]);
|
|
118
|
+
console.log(indexes[0]);
|
|
119
|
+
console.log(intraday.close);
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## ๐งฉ Fitur Utama API Saham Indonesia di SDK Ini
|
|
125
|
+
|
|
126
|
+
### ๐ Data pasar dan analysis yang lengkap
|
|
127
|
+
|
|
128
|
+
Modul `analysis` mencakup endpoint penting untuk **API Saham Indonesia**, termasuk:
|
|
129
|
+
|
|
130
|
+
- daftar saham dan broker BEI
|
|
131
|
+
- daftar index IDX
|
|
132
|
+
- top gainer, top loser, top foreign, top accumulation, dan top retail flow
|
|
133
|
+
- chart saham dan index
|
|
134
|
+
- intraday chart, intraday summary, dan order book
|
|
135
|
+
- broker summary, broker stalker, inventory chart, momentum chart
|
|
136
|
+
- shareholder data, shareholder relation, insider activity, dan corporate action calendar
|
|
137
|
+
- financial statement dan key statistics
|
|
138
|
+
|
|
139
|
+
### ๐ก๏ธ SDK resmi yang lebih aman untuk production
|
|
140
|
+
|
|
141
|
+
Menggunakan SDK resmi membantu mengurangi mismatch pada path, query params, payload, dan struktur response. Untuk tim yang membangun produk berbasis **API Saham Indonesia resmi**, pendekatan ini membuat proses development dan maintenance lebih efisien.
|
|
142
|
+
|
|
143
|
+
### โ๏ธ Ringan dan fokus pada performa
|
|
144
|
+
|
|
145
|
+
`Invezgo SDK` tidak membawa dependency runtime tambahan. Ini relevan untuk aplikasi yang sensitif terhadap startup time, cold start, footprint container, atau deployment serverless.
|
|
146
|
+
|
|
147
|
+
### ๐จโ๐ป Developer experience yang rapi
|
|
148
|
+
|
|
149
|
+
- TypeScript-first
|
|
150
|
+
- `InvezgoError` untuk error handling terstruktur
|
|
151
|
+
- deklarasi tipe untuk DTO dan response utama
|
|
152
|
+
- output build untuk `require` dan `import`
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## ๐๏ธ Modul yang Tersedia
|
|
157
|
+
|
|
158
|
+
- `alerts`
|
|
159
|
+
- `analysis`
|
|
160
|
+
- `watchlists`
|
|
161
|
+
- `journals`
|
|
162
|
+
- `portfolios`
|
|
163
|
+
- `search`
|
|
164
|
+
- `profile`
|
|
165
|
+
- `membership`
|
|
166
|
+
- `posts`
|
|
167
|
+
- `recommendation`
|
|
168
|
+
- `trades`
|
|
169
|
+
- `screener`
|
|
170
|
+
- `usage`
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## ๐ก Contoh Integrasi API Saham Indonesia
|
|
175
|
+
|
|
176
|
+
### ๐ Alert saham
|
|
177
|
+
|
|
178
|
+
```ts
|
|
179
|
+
await client.alerts.add({
|
|
180
|
+
name: 'Breakout volume',
|
|
181
|
+
formula: 'close > ema(20) and volume > sma(volume, 20)',
|
|
182
|
+
category: ['COMPOSITE'],
|
|
183
|
+
every: 'END_OF_DAY',
|
|
184
|
+
send: 'IN_OUT',
|
|
185
|
+
});
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### ๐ Analysis dan data intraday
|
|
189
|
+
|
|
190
|
+
```ts
|
|
191
|
+
const topRetail = await client.analysis.getTopRitel('2026-03-10');
|
|
192
|
+
|
|
193
|
+
const intraday = await client.analysis.getIntradayData('BBCA', 'RG');
|
|
194
|
+
|
|
195
|
+
const calendar = await client.analysis.getCalendar({
|
|
196
|
+
code: 'BBCA',
|
|
197
|
+
page: 1,
|
|
198
|
+
limit: 10,
|
|
199
|
+
});
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### ๐ Watchlist
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
await client.watchlists.add({
|
|
206
|
+
group: 'banking',
|
|
207
|
+
code: 'BBCA',
|
|
208
|
+
price: 9000,
|
|
209
|
+
scope: ['private'],
|
|
210
|
+
note: 'Area pantau',
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
await client.watchlists.updateGroup('group-id', {
|
|
214
|
+
name: 'Big Caps',
|
|
215
|
+
});
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### ๐งพ Jurnal transaksi
|
|
219
|
+
|
|
220
|
+
```ts
|
|
221
|
+
await client.journals.add({
|
|
222
|
+
code: 'BBCA',
|
|
223
|
+
broker: 'AK',
|
|
224
|
+
date: '2026-03-10',
|
|
225
|
+
lot: 10,
|
|
226
|
+
fee: 15000,
|
|
227
|
+
price: 9050,
|
|
228
|
+
status: 'BUY',
|
|
229
|
+
scope: ['private'],
|
|
230
|
+
note: 'Entry bertahap',
|
|
231
|
+
});
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### ๐ Screener saham Indonesia
|
|
235
|
+
|
|
236
|
+
```ts
|
|
237
|
+
const results = await client.screener.screen({
|
|
238
|
+
formula: 'close > ema(20)',
|
|
239
|
+
category: ['COMPOSITE', 'IDXFINANCE'],
|
|
240
|
+
});
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### ๐ค Recommendation
|
|
244
|
+
|
|
245
|
+
```ts
|
|
246
|
+
const recommendations = await client.recommendation.getUserRecommendations();
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### ๐ API Usage Statistics
|
|
250
|
+
|
|
251
|
+
```ts
|
|
252
|
+
const usage = await client.usage.getApiUsage();
|
|
253
|
+
console.log(`Remaining API calls: ${usage.remaining}/${usage.limit}`);
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## ๐๏ธ Keunggulan untuk Tim Developer
|
|
259
|
+
|
|
260
|
+
Saat membangun aplikasi di atas **API Saham Indonesia**, tim engineering biasanya membutuhkan kontrak yang jelas, integrasi yang ringan, dan surface yang mudah dipelihara. `Invezgo SDK` membantu menyederhanakan proses tersebut sehingga tim dapat fokus pada logic produk, bukan pada detail HTTP request yang berulang.
|
|
261
|
+
|
|
262
|
+
Secara praktis, manfaatnya:
|
|
263
|
+
|
|
264
|
+
- mengurangi boilerplate request manual
|
|
265
|
+
- mengurangi risiko typo pada endpoint dan payload
|
|
266
|
+
- mempercepat onboarding engineer baru
|
|
267
|
+
- mempermudah review, testing, dan maintenance
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## ๐ Catatan Migrasi Versi 1.2.0
|
|
272
|
+
|
|
273
|
+
- ditambahkan `client.usage` untuk memantau limit dan kuota penggunaan API key
|
|
274
|
+
- ditambahkan endpoint analysis baru: `getMultiTimeChart`, `getShareholderHigh`, `getShareholderClassification`, dan `getShareholderClassifyTable`
|
|
275
|
+
- tipe data fully typed untuk seluruh endpoint yang baru ditambahkan
|
|
276
|
+
|
|
277
|
+
## ๐ Catatan Migrasi Versi 1.1.0
|
|
278
|
+
|
|
279
|
+
- ditambahkan `client.alerts`
|
|
280
|
+
- ditambahkan `client.recommendation`
|
|
281
|
+
- ditambahkan endpoint analysis baru seperti index list, top retail flow, intraday summary, sector stalker, shareholder 1%, dan corporate action calendar
|
|
282
|
+
- DTO `watchlists`, `journals`, `membership`, dan `screener` sudah mengikuti skema request terbaru
|
|
283
|
+
- `client.ai` dan `client.health` dihapus karena tidak lagi tersedia pada kontrak API terbaru
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## ๐ ๏ธ Build
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
npm run build
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## ๐ง Tipe yang Diekspor
|
|
296
|
+
|
|
297
|
+
SDK ini mengekspor tipe inti seperti:
|
|
298
|
+
|
|
299
|
+
- `InvezgoConfig`
|
|
300
|
+
- `Stock`, `Broker`, `StockIndex`
|
|
301
|
+
- `TopChangeResponse`, `TopRetailResponse`
|
|
302
|
+
- `IntradayStockData`, `IntradayIndexData`
|
|
303
|
+
- `ShareholderRelationResponse`
|
|
304
|
+
- `FinancialStatementResponse`, `KeyStatResponse`
|
|
305
|
+
- DTO endpoint seperti `AlertDto`, `CreateWatchlistDto`, `AddJournalTransactionDto`, `ScreenDto`
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
## ๐ Referensi
|
|
310
|
+
|
|
311
|
+
- ๐ Website utama: [https://invezgo.com](https://invezgo.com)
|
|
312
|
+
- ๐ Dokumentasi API: [https://api.invezgo.com/documentation](https://api.invezgo.com/documentation)
|
|
313
|
+
- ๐งช Contoh tambahan: [`docs/EXAMPLES.md`](./docs/EXAMPLES.md)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 } from '../types';
|
|
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 } from '../types';
|
|
3
3
|
export declare class AnalysisEndpoints {
|
|
4
4
|
private client;
|
|
5
5
|
constructor(client: HttpClient);
|
|
@@ -338,5 +338,23 @@ export declare class AnalysisEndpoints {
|
|
|
338
338
|
page?: number;
|
|
339
339
|
limit?: number;
|
|
340
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>;
|
|
341
359
|
}
|
|
342
360
|
//# sourceMappingURL=analysis.d.ts.map
|