2.0.0 • Published 8 years ago

commsec-advisory-services v2.0.0

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
8 years ago

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();