reportify-sdk 0.3.6 → 0.3.7
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 +8 -8
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -6
- package/dist/index.mjs +7 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,19 +44,19 @@ const transcripts = await client.searchTranscripts('guidance', { symbols: ['US:T
|
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
46
|
// Financial statements
|
|
47
|
-
const income = await client.stock.incomeStatement('
|
|
48
|
-
const balance = await client.stock.balanceSheet('
|
|
49
|
-
const cashflow = await client.stock.cashflowStatement('
|
|
47
|
+
const income = await client.stock.incomeStatement('AAPL', { period: 'quarterly' });
|
|
48
|
+
const balance = await client.stock.balanceSheet('AAPL');
|
|
49
|
+
const cashflow = await client.stock.cashflowStatement('AAPL');
|
|
50
50
|
|
|
51
51
|
// Price data
|
|
52
|
-
const prices = await client.stock.prices('
|
|
52
|
+
const prices = await client.stock.prices('AAPL', { startDate: '2024-01-01' });
|
|
53
53
|
|
|
54
54
|
// Real-time quote
|
|
55
|
-
const quote = await client.stock.quote('
|
|
55
|
+
const quote = await client.stock.quote('AAPL');
|
|
56
56
|
|
|
57
|
-
// Company info
|
|
58
|
-
const overview = await client.stock.overview('
|
|
59
|
-
const shareholders = await client.stock.shareholders('
|
|
57
|
+
// Company info (symbols without market prefix)
|
|
58
|
+
const overview = await client.stock.overview({ symbols: 'AAPL' });
|
|
59
|
+
const shareholders = await client.stock.shareholders('AAPL');
|
|
60
60
|
|
|
61
61
|
// Earnings calendar
|
|
62
62
|
const earnings = await client.stock.earningsCalendar({ market: 'us', startDate: '2024-01-01', endDate: '2024-01-31' });
|
package/dist/index.d.mts
CHANGED
|
@@ -289,12 +289,12 @@ declare class StockModule {
|
|
|
289
289
|
*
|
|
290
290
|
* @example
|
|
291
291
|
* ```typescript
|
|
292
|
-
* // Single stock by symbol
|
|
293
|
-
* const info = await client.stock.overview({ symbols: '
|
|
292
|
+
* // Single stock by symbol (without market prefix)
|
|
293
|
+
* const info = await client.stock.overview({ symbols: 'AAPL' });
|
|
294
294
|
* console.log(info.name, info.sector);
|
|
295
295
|
*
|
|
296
296
|
* // Multiple stocks by symbols
|
|
297
|
-
* const infos = await client.stock.overview({ symbols: '
|
|
297
|
+
* const infos = await client.stock.overview({ symbols: '000001,600519' });
|
|
298
298
|
* for (const info of infos) {
|
|
299
299
|
* console.log(info.name);
|
|
300
300
|
* }
|
package/dist/index.d.ts
CHANGED
|
@@ -289,12 +289,12 @@ declare class StockModule {
|
|
|
289
289
|
*
|
|
290
290
|
* @example
|
|
291
291
|
* ```typescript
|
|
292
|
-
* // Single stock by symbol
|
|
293
|
-
* const info = await client.stock.overview({ symbols: '
|
|
292
|
+
* // Single stock by symbol (without market prefix)
|
|
293
|
+
* const info = await client.stock.overview({ symbols: 'AAPL' });
|
|
294
294
|
* console.log(info.name, info.sector);
|
|
295
295
|
*
|
|
296
296
|
* // Multiple stocks by symbols
|
|
297
|
-
* const infos = await client.stock.overview({ symbols: '
|
|
297
|
+
* const infos = await client.stock.overview({ symbols: '000001,600519' });
|
|
298
298
|
* for (const info of infos) {
|
|
299
299
|
* console.log(info.name);
|
|
300
300
|
* }
|
package/dist/index.js
CHANGED
|
@@ -57,12 +57,12 @@ var StockModule = class {
|
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* ```typescript
|
|
60
|
-
* // Single stock by symbol
|
|
61
|
-
* const info = await client.stock.overview({ symbols: '
|
|
60
|
+
* // Single stock by symbol (without market prefix)
|
|
61
|
+
* const info = await client.stock.overview({ symbols: 'AAPL' });
|
|
62
62
|
* console.log(info.name, info.sector);
|
|
63
63
|
*
|
|
64
64
|
* // Multiple stocks by symbols
|
|
65
|
-
* const infos = await client.stock.overview({ symbols: '
|
|
65
|
+
* const infos = await client.stock.overview({ symbols: '000001,600519' });
|
|
66
66
|
* for (const info of infos) {
|
|
67
67
|
* console.log(info.name);
|
|
68
68
|
* }
|
|
@@ -78,10 +78,11 @@ var StockModule = class {
|
|
|
78
78
|
const body = {};
|
|
79
79
|
if (options.symbols) body.symbols = options.symbols;
|
|
80
80
|
if (options.names) body.names = options.names;
|
|
81
|
-
|
|
81
|
+
const response = await this.client.post(
|
|
82
82
|
"/v1/stock/company-overview",
|
|
83
83
|
body
|
|
84
84
|
);
|
|
85
|
+
return response.data;
|
|
85
86
|
}
|
|
86
87
|
/**
|
|
87
88
|
* Get list of major shareholders
|
|
@@ -1684,7 +1685,7 @@ var Reportify = class {
|
|
|
1684
1685
|
headers: {
|
|
1685
1686
|
Authorization: `Bearer ${this.apiKey}`,
|
|
1686
1687
|
"Content-Type": "application/json",
|
|
1687
|
-
"User-Agent": "reportify-sdk-js/0.3.
|
|
1688
|
+
"User-Agent": "reportify-sdk-js/0.3.7"
|
|
1688
1689
|
},
|
|
1689
1690
|
body: options.body ? JSON.stringify(options.body) : void 0,
|
|
1690
1691
|
signal: controller.signal
|
|
@@ -1745,7 +1746,7 @@ var Reportify = class {
|
|
|
1745
1746
|
headers: {
|
|
1746
1747
|
Authorization: `Bearer ${this.apiKey}`,
|
|
1747
1748
|
"Content-Type": "application/json",
|
|
1748
|
-
"User-Agent": "reportify-sdk-typescript/0.3.
|
|
1749
|
+
"User-Agent": "reportify-sdk-typescript/0.3.7"
|
|
1749
1750
|
}
|
|
1750
1751
|
});
|
|
1751
1752
|
if (!response.ok) {
|
package/dist/index.mjs
CHANGED
|
@@ -15,12 +15,12 @@ var StockModule = class {
|
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```typescript
|
|
18
|
-
* // Single stock by symbol
|
|
19
|
-
* const info = await client.stock.overview({ symbols: '
|
|
18
|
+
* // Single stock by symbol (without market prefix)
|
|
19
|
+
* const info = await client.stock.overview({ symbols: 'AAPL' });
|
|
20
20
|
* console.log(info.name, info.sector);
|
|
21
21
|
*
|
|
22
22
|
* // Multiple stocks by symbols
|
|
23
|
-
* const infos = await client.stock.overview({ symbols: '
|
|
23
|
+
* const infos = await client.stock.overview({ symbols: '000001,600519' });
|
|
24
24
|
* for (const info of infos) {
|
|
25
25
|
* console.log(info.name);
|
|
26
26
|
* }
|
|
@@ -36,10 +36,11 @@ var StockModule = class {
|
|
|
36
36
|
const body = {};
|
|
37
37
|
if (options.symbols) body.symbols = options.symbols;
|
|
38
38
|
if (options.names) body.names = options.names;
|
|
39
|
-
|
|
39
|
+
const response = await this.client.post(
|
|
40
40
|
"/v1/stock/company-overview",
|
|
41
41
|
body
|
|
42
42
|
);
|
|
43
|
+
return response.data;
|
|
43
44
|
}
|
|
44
45
|
/**
|
|
45
46
|
* Get list of major shareholders
|
|
@@ -1642,7 +1643,7 @@ var Reportify = class {
|
|
|
1642
1643
|
headers: {
|
|
1643
1644
|
Authorization: `Bearer ${this.apiKey}`,
|
|
1644
1645
|
"Content-Type": "application/json",
|
|
1645
|
-
"User-Agent": "reportify-sdk-js/0.3.
|
|
1646
|
+
"User-Agent": "reportify-sdk-js/0.3.7"
|
|
1646
1647
|
},
|
|
1647
1648
|
body: options.body ? JSON.stringify(options.body) : void 0,
|
|
1648
1649
|
signal: controller.signal
|
|
@@ -1703,7 +1704,7 @@ var Reportify = class {
|
|
|
1703
1704
|
headers: {
|
|
1704
1705
|
Authorization: `Bearer ${this.apiKey}`,
|
|
1705
1706
|
"Content-Type": "application/json",
|
|
1706
|
-
"User-Agent": "reportify-sdk-typescript/0.3.
|
|
1707
|
+
"User-Agent": "reportify-sdk-typescript/0.3.7"
|
|
1707
1708
|
}
|
|
1708
1709
|
});
|
|
1709
1710
|
if (!response.ok) {
|