pse-edge
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

PSE Edge

GitHub Node.js CI

This is a wrapper of the PSE Edge backend API, useful for scraping data from PSE Edge. It provides the following services.

  • [x] Official List of stocks by sector
  • [x] Historical Prices
  • [x] Public Company disclosures
  • [x] Company Information
  • [x] Financial Reports

Usage

Typescript

import { fetchStocksAll, getCompanyDisclosures, getCompanyInfo, getHistoricalPrices } from 'pse-edge/lib'

// Fetch all stocks listed in the PSE
fetchStocksAll().then(console.log)

// Get all company disclosures of a stock symbol
getCompanyDisclosures('glo').then(console.log)

// Get company info of a stock symbol
getCompanyInfo('tel').then(console.log)

// Get Historical prices (daily OHLC) of a stock
getHistoricalPrices({ symbol: 'tel', startDate: '2021-02-02' }).then(console.log)

// Get Financial reports
getFinancialReports("glo").then(console.log)

Javascript

const { fetchStocksAll, getCompanyDisclosures, getCompanyInfo, getHistoricalPrices } = require('pse-edge/lib')

// Fetch all stocks listed in the PSE
fetchStocksAll().then(console.log)

// Get all company disclosures of a stock symbol
getCompanyDisclosures('glo').then(console.log)

// Get company info of a stock symbol
getCompanyInfo('tel').then(console.log)

// Get Historical prices (daily OHLC) of a stock
getHistoricalPrices({ symbol: 'tel', startDate: '2021-02-02' }).then(console.log)

// Get Financial reports
getFinancialReports("glo").then(console.log)

Package Sidebar

Install

npm i pse-edge

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

65.3 kB

Total Files

36

Last publish

Collaborators

  • bldulam1