QUOTE(polarzbearz @ Nov 5 2020, 01:28 PM)
Off topic abit - just wondering if you've got the script back up and running? Interested to know how you did it. Thinking to write the same as well but in VBA instead of Gsheets 
how I wished that they have official API and key support. As it is right now seems like I have to use classic authentication method (username / password)
I noticed that StashAway's web app does use some sort of an API to obtain data from the backend, which uses GraphQL.how I wished that they have official API and key support. As it is right now seems like I have to use classic authentication method (username / password)
I guess that is the best alternative to an official API at this point of time?
The endpoint is at: https://api.stashaway.my/graphql and requires POST HTTP method to access.
Minimally you will also need the following Request Headers (apart from the usual HTTP request headers):
CODE
Authorization: Bearer <Your session token after logging in.>
x-client-identifier: webapp@4.0.0
I have not figured out how to obtain the bearer token programmatically yet, currently just getting it from Chrome's developer tools.
Then the following Request Body (in JSON) will get you your transaction history:
» Click to show Spoiler - click again to hide... «
Which returns a JSON response that looks like:
» Click to show Spoiler - click again to hide... «
It works for most of the operations on the website, and each of them require a different GraphQL request.
I have not analysed the response data models yet.
I have just stumbled upon this today while imagining to build a consolidated investment portfolio tracking sheet across different platforms.
This post has been edited by siaush: Nov 5 2020, 10:30 PM
Nov 5 2020, 10:11 PM

Quote

0.0423sec
0.56
7 queries
GZIP Disabled