malvineous / commsecjs Goto Github PK
View Code? Open in Web Editor NEWnode.js interface to the CommSec trading platform
node.js interface to the CommSec trading platform
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.
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.