commsec-advisory-services

2.0.0 • Public • Published

commsec-advisory-services

Scrape portfolio information from CommsecAdvisoryServices.com.au

build status

Installation

This module is installed via npm:

$ npm install commsec-advisory-services

Example Usage

var CSA = require('commsec-advisor-services');
var cas = new CSA({ browserName: process.env.BROWSER || 'phantomjs' });
cas
  .init()
  .login('my username', 'my password')
  .portfolioSummary(function (err, summary) {
    if (err) throw err;
    console.log(summary);
    /*
      { balance: 305527.07,
        marketValue: 302584.65,
        totalCost: 299825.16,
        profitLoss: 2759.49,
        changePct: 0.9 }
    */
  })
  .quit();

Package Sidebar

Install

npm i commsec-advisory-services

Weekly Downloads

3

Version

2.0.0

License

BSD-3-Clause

Last publish

Collaborators

  • eugeneware