I'm trying to create a dashboard where I can show my clients their account positions, updated on a daily basis. I know IB offers the TWS/IB Gateway solution however I'm looking for a more lightweight way to automate the collection of account position data on a daily basis. My issue with TWS/IB Gateway is that they need to be installed and run with a GUI, which makes it difficult to do so using a headless server (e.g. using AWS).
I've considered parsing account statements using ib-flex-analyzer (I believe they are HTML) however I'm not sure how I would automatically download all individual the account statements in the first place.
queryin the above function). Also in account management, activate Flex Web Service and note thetoken. With query number and token you can now download the flex query without being logged in. – Enrico Schumann Jan 11 '18 at 21:15