node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

commsec-advisory-services

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