Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including commsec-advisory-services with all npm packages installed. Try it out:

var commsecAdvisoryServices = require("commsec-advisory-services")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

commsec-advisory-services v2.0.0

Scrape portfolio information from CommsecAdvisoryServices.com.au

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free