Giter Site home page Giter Site logo

commsecjs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

commsecjs's Issues

Mobile API

Hello!

I've just done a bit of research in to the commsec app using a mitm proxy and there is a great versioned api (even documented) that you could use rather than relying on the website to not change.

Just thought I would let you know in case you wanted to further extend this.

Error retrieving watchlist: Cannot convert undefined or null to object

tried the example from https://github.com/Malvineous/commsecjs/blob/master/example.js, received error

Error retrieving watchlist: Cannot convert undefined or null to object

was able to login and obtain list of trading accounts.

I have multiple trading accounts under the one login, the first account retrieved using
loginResponse = commsec.login(creds)
does not have any watchlists or holdings.

I'm not sure what to make of the commsec.getWatchlists() and commsec.getHoldings() methods as these appear to list all the holdings under all the trading accounts(?) but I'm seeing zero results which would correspond to the number of watchlists and holdings under the first trading account.

Need help with constructing API request

I am trying to construct an API request for account holdings,

http.get(
  'https://app.commsec.com.au/v5/services/service.svc/getholdings?accountId=***',
  headers: {
    'Content-Type': 'application/json',
    'Origin': 'https://app.commsec.com.au',
  },
);

However, I receive the following response from the server:

{"message":"you need to be authenticated!","messages":null,"requestToken":null,"status":"fail"}

I am able to login, receiving status: success, along with various tokens:
https://pastebin.com/VMN0rsHj

Could you verify if the getholdings endpoint is still valid?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.