@invezgo/sdk 1.0.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 +22 -0
- package/README.md +350 -0
- package/dist/client.d.ts +21 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/endpoints/ai.d.ts +98 -0
- package/dist/endpoints/ai.d.ts.map +1 -0
- package/dist/endpoints/analysis.d.ts +225 -0
- package/dist/endpoints/analysis.d.ts.map +1 -0
- package/dist/endpoints/health.d.ts +24 -0
- package/dist/endpoints/health.d.ts.map +1 -0
- package/dist/endpoints/journals.d.ts +45 -0
- package/dist/endpoints/journals.d.ts.map +1 -0
- package/dist/endpoints/membership.d.ts +33 -0
- package/dist/endpoints/membership.d.ts.map +1 -0
- package/dist/endpoints/portfolios.d.ts +14 -0
- package/dist/endpoints/portfolios.d.ts.map +1 -0
- package/dist/endpoints/posts.d.ts +42 -0
- package/dist/endpoints/posts.d.ts.map +1 -0
- package/dist/endpoints/profile.d.ts +34 -0
- package/dist/endpoints/profile.d.ts.map +1 -0
- package/dist/endpoints/screener.d.ts +34 -0
- package/dist/endpoints/screener.d.ts.map +1 -0
- package/dist/endpoints/search.d.ts +18 -0
- package/dist/endpoints/search.d.ts.map +1 -0
- package/dist/endpoints/trades.d.ts +31 -0
- package/dist/endpoints/trades.d.ts.map +1 -0
- package/dist/endpoints/watchlists.d.ts +51 -0
- package/dist/endpoints/watchlists.d.ts.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +944 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +944 -0
- package/dist/index.js.map +1 -0
- package/dist/invezgo.d.ts +38 -0
- package/dist/invezgo.d.ts.map +1 -0
- package/dist/types.d.ts +304 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +61 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Invezgo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
# 📈 Invezgo SDK
|
|
9
|
+
|
|
10
|
+
**SDK Resmi JavaScript/TypeScript untuk Invezgo API — Platform AI & Data Pasar Saham Indonesia**
|
|
11
|
+
|
|
12
|
+
SDK ini menyediakan akses mudah ke **API Saham Indonesia** dari platform **Invezgo**, mencakup data **Bursa Efek Indonesia (BEI)**, **laporan keuangan emiten**, **Bandarmology**, **Foreign Flow**, **AI Insight**, dan banyak lagi.
|
|
13
|
+
|
|
14
|
+
[✨ Fitur](#-fitur) • [⚙️ Instalasi](#-instalasi) • [🚀 Mulai Cepat](#-mulai-cepat) • [📚 Dokumentasi](#-dokumentasi) • [💡 Contoh](#-contoh) • [📖 API Reference](#-api-reference)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 🇮🇩 Tentang Invezgo
|
|
21
|
+
|
|
22
|
+
**Invezgo** adalah **platform analisis saham berbasis kecerdasan buatan (AI)** yang berfokus pada pasar modal Indonesia.
|
|
23
|
+
Misi kami adalah membantu investor ritel mendapatkan **akses setara terhadap data, wawasan, dan analisis pasar saham** melalui kombinasi teknologi data, AI, dan antarmuka yang mudah digunakan.
|
|
24
|
+
|
|
25
|
+
Invezgo menyediakan:
|
|
26
|
+
- 📊 **Data pasar saham Indonesia (BEI)** secara real-time
|
|
27
|
+
- 🧮 **Analisis otomatis** seperti Bandarmology, Foreign Flow, dan akumulasi investor
|
|
28
|
+
- 🤖 **AI Insight** yang menjelaskan pola perdagangan dan perilaku pasar
|
|
29
|
+
- 📈 **Laporan keuangan & indikator fundamental** yang terintegrasi
|
|
30
|
+
- 🧠 **Alat riset seperti screener, portofolio, watchlist, dan jurnal trading**
|
|
31
|
+
|
|
32
|
+
Dengan **Invezgo SDK**, Anda dapat mengintegrasikan seluruh fitur tersebut langsung ke aplikasi Anda — baik untuk **Fintech**, **dashboard analisis saham**, **screener otomatis**, atau **riset kuantitatif**.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## ✨ Fitur Utama
|
|
37
|
+
|
|
38
|
+
- 🔥 **Dukungan Penuh TypeScript** — Semua endpoint memiliki definisi tipe lengkap
|
|
39
|
+
- 📦 **Dual Module (CJS & ESM)** — Dapat digunakan di Node.js maupun browser modern
|
|
40
|
+
- 🎯 **Cakupan Lengkap** — Mencakup semua endpoint API Invezgo
|
|
41
|
+
- 🛡️ **Error Handling Terstruktur** — Menampilkan kode, pesan, dan detail error
|
|
42
|
+
- ⚡ **Async/Await Modern** — Memanfaatkan sintaks modern yang mudah dibaca
|
|
43
|
+
- 📚 **Dokumentasi Lengkap** — Mendukung IntelliSense & komentar JSDoc
|
|
44
|
+
- 🚀 **Tanpa Dependensi** — Ringan, cepat, dan efisien
|
|
45
|
+
- 🔐 **Keamanan Otomatis** — Autentikasi via Bearer Token
|
|
46
|
+
- 🌐 **Node.js & Browser** — Dapat digunakan di server maupun aplikasi web
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## ⚙️ Instalasi
|
|
51
|
+
|
|
52
|
+
Pasang SDK menggunakan npm, yarn, atau pnpm:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Menggunakan npm
|
|
56
|
+
npm install @invezgo/sdk
|
|
57
|
+
|
|
58
|
+
# Menggunakan yarn
|
|
59
|
+
yarn add @invezgo/sdk
|
|
60
|
+
|
|
61
|
+
# Menggunakan pnpm
|
|
62
|
+
pnpm add @invezgo/sdk
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 🚀 Mulai Cepat
|
|
68
|
+
|
|
69
|
+
### 1️⃣ Dapatkan API Key Anda
|
|
70
|
+
|
|
71
|
+
Untuk mulai menggunakan SDK, Anda membutuhkan API key dari Invezgo:
|
|
72
|
+
|
|
73
|
+
- 🔑 [Pengaturan API Key](https://invezgo.com/id/setting/api)
|
|
74
|
+
- 💳 [Paket Langganan](https://invezgo.com/subscription)
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
### 2️⃣ Contoh JavaScript (CommonJS)
|
|
79
|
+
|
|
80
|
+
```javascript
|
|
81
|
+
const { Invezgo } = require('@invezgo/sdk');
|
|
82
|
+
|
|
83
|
+
const client = new Invezgo({
|
|
84
|
+
apiKey: 'api-key-anda'
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
// Ambil daftar seluruh saham
|
|
88
|
+
(async () => {
|
|
89
|
+
try {
|
|
90
|
+
const stocks = await client.analysis.getStockList();
|
|
91
|
+
console.log(`Ditemukan ${stocks.length} saham`);
|
|
92
|
+
console.log(stocks[0]); // { code: 'BBCA', name: 'Bank Central Asia', logo: '...' }
|
|
93
|
+
} catch (error) {
|
|
94
|
+
console.error('Terjadi kesalahan:', error.message);
|
|
95
|
+
}
|
|
96
|
+
})();
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
### 3️⃣ Contoh TypeScript / ES Modules
|
|
102
|
+
|
|
103
|
+
```typescript
|
|
104
|
+
import Invezgo from '@invezgo/sdk';
|
|
105
|
+
|
|
106
|
+
const client = new Invezgo({
|
|
107
|
+
apiKey: 'api-key-anda'
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
(async () => {
|
|
111
|
+
try {
|
|
112
|
+
const info = await client.analysis.getInformation('BBCA');
|
|
113
|
+
console.log(info.name); // Bank Central Asia
|
|
114
|
+
console.log(info.sector); // Keuangan
|
|
115
|
+
} catch (error) {
|
|
116
|
+
console.error('Error:', error);
|
|
117
|
+
}
|
|
118
|
+
})();
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## 📚 Dokumentasi
|
|
124
|
+
|
|
125
|
+
### Konfigurasi
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
import Invezgo from '@invezgo/sdk';
|
|
129
|
+
|
|
130
|
+
const client = new Invezgo({
|
|
131
|
+
apiKey: 'api-key-anda', // Wajib
|
|
132
|
+
baseURL: 'https://api.invezgo.com', // Opsional
|
|
133
|
+
timeout: 30000 // Opsional (default 30 detik)
|
|
134
|
+
});
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### Kategori Endpoint
|
|
140
|
+
|
|
141
|
+
| Kategori | Deskripsi | Jumlah Metode |
|
|
142
|
+
|----------|------------|---------------|
|
|
143
|
+
| **`analysis`** | Analisis saham, grafik, data keuangan | 30+ |
|
|
144
|
+
| **`watchlists`** | Manajemen watchlist pribadi | 7 |
|
|
145
|
+
| **`journals`** | Catatan transaksi/jurnal trading | 5 |
|
|
146
|
+
| **`portfolios`** | Portofolio & ringkasan investasi | 2 |
|
|
147
|
+
| **`ai`** | Analisis saham dengan AI | 10 |
|
|
148
|
+
| **`search`** | Pencarian saham & pengguna | 3 |
|
|
149
|
+
| **`profile`** | Profil pengguna & sosial | 8 |
|
|
150
|
+
| **`membership`** | Langganan & transaksi paket | 5 |
|
|
151
|
+
| **`posts`** | Konten komunitas & postingan | 8 |
|
|
152
|
+
| **`trades`** | Data transaksi realisasi | 4 |
|
|
153
|
+
| **`screener`** | Filter saham otomatis | 3 |
|
|
154
|
+
| **`health`** | Status kesehatan API | 3 |
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 💡 Contoh Penggunaan
|
|
159
|
+
|
|
160
|
+
### 📊 Analisis Saham
|
|
161
|
+
|
|
162
|
+
```typescript
|
|
163
|
+
import Invezgo from '@invezgo/sdk';
|
|
164
|
+
const client = new Invezgo({ apiKey: 'api-key-anda' });
|
|
165
|
+
|
|
166
|
+
// Ambil seluruh daftar saham
|
|
167
|
+
const stocks = await client.analysis.getStockList();
|
|
168
|
+
console.log(`Total saham: ${stocks.length}`);
|
|
169
|
+
|
|
170
|
+
// Ambil informasi perusahaan
|
|
171
|
+
const info = await client.analysis.getInformation('BBCA');
|
|
172
|
+
console.log(info.name); // Bank Central Asia
|
|
173
|
+
console.log(info.sector); // Keuangan
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### 💰 Laporan Keuangan Emiten
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
// Ambil laporan Neraca (Balance Sheet)
|
|
182
|
+
const balanceSheet = await client.analysis.getFinancialStatement('BBCA', {
|
|
183
|
+
statement: 'BS',
|
|
184
|
+
type: 'Q',
|
|
185
|
+
limit: 10
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
console.log(balanceSheet.rows);
|
|
189
|
+
console.log(balanceSheet.columns);
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
### 🧭 Broker & Bandarmology
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
// Ambil data ringkasan broker untuk saham tertentu
|
|
198
|
+
const summary = await client.analysis.getBrokerSummaryStock('BBCA', {
|
|
199
|
+
from: '2024-12-01',
|
|
200
|
+
to: '2024-12-30',
|
|
201
|
+
investor: 'all',
|
|
202
|
+
market: 'RG'
|
|
203
|
+
});
|
|
204
|
+
console.log(summary);
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
### 🤖 Analisis AI
|
|
210
|
+
|
|
211
|
+
```typescript
|
|
212
|
+
// Analisis AI terhadap aktivitas broker
|
|
213
|
+
const result = await client.ai.analyzeInventoryChart('BBCA', {
|
|
214
|
+
from: '2024-12-01',
|
|
215
|
+
to: '2024-12-30',
|
|
216
|
+
scope: 'vol',
|
|
217
|
+
investor: 'all',
|
|
218
|
+
limit: 5,
|
|
219
|
+
market: 'RG'
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
console.log(result.summary);
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
### 🔎 Screener Saham Otomatis
|
|
228
|
+
|
|
229
|
+
```typescript
|
|
230
|
+
const results = await client.screener.screen({
|
|
231
|
+
columns: ['volume', 'close', 'value'],
|
|
232
|
+
conditions: [
|
|
233
|
+
{ ratio: 'BASIC', column: 'close', operator: '>=', value: '5000' },
|
|
234
|
+
{ ratio: 'COMPARE', column: 'value', compare: 'volume', operator: '>', multiply: 'x', value: '1' }
|
|
235
|
+
]
|
|
236
|
+
});
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## 📖 Referensi API
|
|
242
|
+
|
|
243
|
+
Tersedia lebih dari **100 endpoint terstruktur** dalam kategori berikut:
|
|
244
|
+
|
|
245
|
+
- `analysis.getStockList()`, `getBrokerList()`, `getInformation(code)`
|
|
246
|
+
- `getChart(code, {from, to})`, `getOrderBook(code)`, `getIntraday(code)`
|
|
247
|
+
- `getTopChange(date)`, `getTopForeign(date)`, `getTopAccumulation(date)`
|
|
248
|
+
- `getFinancialStatement(code, {...})`
|
|
249
|
+
- `getKeyStat(code, {...})`, `getKeyStatChart(...)`
|
|
250
|
+
- `getShareholder(code)`, `getShareholderKSEI(...)`, `getInsider(...)`
|
|
251
|
+
- `getBrokerSummaryStock(...)`, `getInventoryChartStock(...)`
|
|
252
|
+
- `ai.analyzeInventoryChart(...)`, `ai.analyzeShareholderAbove(...)`
|
|
253
|
+
- `watchlists.*`, `journals.*`, `portfolios.*`, `screener.*`, `health.*`
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## 🔐 Keamanan
|
|
258
|
+
|
|
259
|
+
1. Jangan pernah commit **API key** ke repositori publik
|
|
260
|
+
2. Gunakan **environment variable** di server:
|
|
261
|
+
```typescript
|
|
262
|
+
const client = new Invezgo({
|
|
263
|
+
apiKey: process.env.INVEZGO_API_KEY!
|
|
264
|
+
});
|
|
265
|
+
```
|
|
266
|
+
3. Gunakan kunci berbeda untuk *dev* dan *production*
|
|
267
|
+
4. Lakukan rotasi API key secara berkala
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## 🌍 Kompatibilitas
|
|
272
|
+
|
|
273
|
+
SDK ini menggunakan `fetch` API bawaan yang tersedia di:
|
|
274
|
+
|
|
275
|
+
- ✅ Browser modern (Chrome, Edge, Safari, Firefox)
|
|
276
|
+
- ✅ Node.js 18+
|
|
277
|
+
- ⚠️ Node.js 14–17 → butuh `node-fetch`
|
|
278
|
+
- ⚠️ Browser lama → butuh `whatwg-fetch`
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## ⚠️ Penanganan Error
|
|
283
|
+
|
|
284
|
+
```typescript
|
|
285
|
+
import { Invezgo, InvezgoError } from '@invezgo/sdk';
|
|
286
|
+
|
|
287
|
+
try {
|
|
288
|
+
await client.analysis.getInformation('INVALID');
|
|
289
|
+
} catch (err) {
|
|
290
|
+
if (err instanceof InvezgoError) {
|
|
291
|
+
console.error('Kode:', err.statusCode);
|
|
292
|
+
console.error('Pesan:', err.message);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## 🧠 FAQ
|
|
300
|
+
|
|
301
|
+
**Apakah data ini real-time?**
|
|
302
|
+
> Sebagian data seperti harga dan orderbook bersifat real-time (jika tersedia). Beberapa data seperti laporan keuangan bersifat periodik (EoD atau kuartalan).
|
|
303
|
+
|
|
304
|
+
**Apakah aman digunakan di frontend?**
|
|
305
|
+
> Sebaiknya gunakan server (backend) untuk menyimpan API key, atau gunakan token scoped khusus frontend.
|
|
306
|
+
|
|
307
|
+
**Apakah SDK ini gratis?**
|
|
308
|
+
> Beberapa endpoint memerlukan langganan. Lihat [Paket Langganan](https://invezgo.com/subscription).
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## 🤝 Kontribusi
|
|
313
|
+
|
|
314
|
+
Kami sangat terbuka terhadap kontribusi komunitas.
|
|
315
|
+
Langkahnya:
|
|
316
|
+
|
|
317
|
+
1. Fork repository ini
|
|
318
|
+
2. Buat branch baru: `git checkout -b fitur-baru`
|
|
319
|
+
3. Commit perubahan: `git commit -m "feat: tambah fitur baru"`
|
|
320
|
+
4. Push: `git push origin fitur-baru`
|
|
321
|
+
5. Buka Pull Request
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## 📝 Lisensi
|
|
326
|
+
|
|
327
|
+
Proyek ini dirilis di bawah **MIT License** — silakan lihat [LICENSE](LICENSE).
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## 🔗 Tautan Penting
|
|
332
|
+
|
|
333
|
+
- 🌐 [Website Invezgo](https://invezgo.com)
|
|
334
|
+
- 📚 [Dokumentasi API](https://api.invezgo.com)
|
|
335
|
+
- 🔑 [Dapatkan API Key](https://invezgo.com/id/setting/api)
|
|
336
|
+
- 💳 [Langganan Paket](https://invezgo.com/subscription)
|
|
337
|
+
- 📋 [Syarat & Ketentuan](https://invezgo.com/terms)
|
|
338
|
+
- 🔒 [Kebijakan Privasi](https://invezgo.com/privacy-policy)
|
|
339
|
+
- 🐛 [Laporkan Bug](https://github.com/invezgo/invezgo-sdk-javascript/issues)
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
<div align="center">
|
|
344
|
+
|
|
345
|
+
Made with ❤️ by the [Invezgo](https://invezgo.com) team
|
|
346
|
+
**Empowering Indonesian investors with better data, better insights, and better decisions**
|
|
347
|
+
|
|
348
|
+
⭐ [Beri bintang di GitHub](https://github.com/invezgo/invezgo-sdk-javascript)
|
|
349
|
+
|
|
350
|
+
</div>
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { InvezgoConfig, RequestOptions } from './types';
|
|
2
|
+
export declare class InvezgoError extends Error {
|
|
3
|
+
statusCode: number;
|
|
4
|
+
message: string;
|
|
5
|
+
error?: string | undefined;
|
|
6
|
+
response?: any | undefined;
|
|
7
|
+
constructor(statusCode: number, message: string, error?: string | undefined, response?: any | undefined);
|
|
8
|
+
}
|
|
9
|
+
export declare class HttpClient {
|
|
10
|
+
baseURL: string;
|
|
11
|
+
apiKey: string;
|
|
12
|
+
private timeout;
|
|
13
|
+
constructor(config: InvezgoConfig);
|
|
14
|
+
private request;
|
|
15
|
+
get<T>(path: string, params?: Record<string, any>, options?: RequestOptions): Promise<T>;
|
|
16
|
+
post<T>(path: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
17
|
+
put<T>(path: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
18
|
+
patch<T>(path: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
19
|
+
delete<T>(path: string, params?: Record<string, any>, options?: RequestOptions): Promise<T>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE7D,qBAAa,YAAa,SAAQ,KAAK;IAE5B,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,MAAM;IACf,KAAK,CAAC,EAAE,MAAM;IACd,QAAQ,CAAC,EAAE,GAAG;gBAHd,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,YAAA,EACd,QAAQ,CAAC,EAAE,GAAG,YAAA;CAMxB;AAED,qBAAa,UAAU;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,aAAa;YAYnB,OAAO;IA8Df,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;IAoBxF,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;IAgEvE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;IAyDtE,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;IAyDxE,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;CAmBlG"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+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