1
1
# PSE Edge
2
2
3
- Note: This is still a work in progress, not yet for production
4
-
5
3
![ GitHub] ( https://img.shields.io/github/license/bldulam1/pse-edge?style=plastic )
6
4
[ ![ Node.js CI] ( https://github.com/bldulam1/pse-edge/actions/workflows/node.js.yml/badge.svg )] ( https://github.com/bldulam1/pse-edge/actions/workflows/node.js.yml )
7
5
@@ -12,7 +10,7 @@ This is a wrapper of the PSE Edge backend API, useful for scraping data from PSE
12
10
- [x] Historical Prices
13
11
- [x] Public Company disclosures
14
12
- [x] Company Information
15
- - [ ] Financial Reports
13
+ - [x ] Financial Reports
16
14
17
15
18
16
## Usage
@@ -33,15 +31,26 @@ getCompanyInfo('tel').then(console.log)
33
31
// Get Historical prices (daily OHLC) of a stock
34
32
getHistoricalPrices ({ symbol: ' tel' , startDate: ' 2021-02-02' }).then (console .log )
35
33
34
+ // Get Financial reports
35
+ getFinancialReports (" glo" ).then (console .log )
36
36
```
37
37
38
38
### Javascript
39
39
``` javascript
40
40
const { fetchStocksAll , getCompanyDisclosures , getCompanyInfo , getHistoricalPrices } = require (' pse-edge/lib' )
41
41
42
+ // Fetch all stocks listed in the PSE
42
43
fetchStocksAll ().then (console .log )
44
+
45
+ // Get all company disclosures of a stock symbol
43
46
getCompanyDisclosures (' glo' ).then (console .log )
47
+
48
+ // Get company info of a stock symbol
44
49
getCompanyInfo (' tel' ).then (console .log )
50
+
51
+ // Get Historical prices (daily OHLC) of a stock
45
52
getHistoricalPrices ({ symbol: ' tel' , startDate: ' 2021-02-02' }).then (console .log )
46
53
54
+ // Get Financial reports
55
+ getFinancialReports (" glo" ).then (console .log )
47
56
```
0 commit comments