commsec-advisory-services
v2.0.0
Published
Scrape portfolio information from CommsecAdvisoryServices.com.au
Downloads
8
Maintainers
Readme
commsec-advisory-services
Scrape portfolio information from CommsecAdvisoryServices.com.au
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();