This project is intended to track stock allocation recorded in a mysql database table every two minutes. Target users of this software will be office workers having no time to constantly watch for change of stock market, and want to avoid sudden stock slump or want to apply results of analysis in real-world US stock trading.
- Setting up
- Assign elastic IP address (Official AWS Documentation)
- Schedule instance starting and shutting down
- Write your stock allocation data to a Mysql data table, like following
- Make sure Portfolio Tracker is running, TWS or IBGateway is on,
- Go to
/mainPanel
, and selectPortfolioTrackAdvisor
, then click "Prepare" - In the pop-up modal, input portfolio name, and desired cash to be allocated at "startingCash"
- Click button "create", then click start
- If market is closed at the time of creating this PortfolioTrackAdvisor, we can see limit orders submitted. Position of each symbol is calculated based allocation percentage and recent quote price of each symbol. If market is open at the time, we shall see orders get submitted and executed.
- Then Portfolio Tracker is going to track change of allocations of this portfolio using newest
record_date
. This means one can choose to write allocations to database each day, or write whole portfolio allocations to database only when a change has been made to portfolio allocation.
-
Will my stock selection be stolen by using this software?
Answer: no, there is no back-door code reporting stock selection, that is your intellectual property. You can choose to run the EC2 in a VPC, which blocks any unwanted network traffic. -
What is estimated AWS expense of running this software? Answer: ~13 USD per month. EC2 will only be running when marget is open.
- still thinking, want to keep this project simple, execution level only, and only for amateurs
Started at Jun. 1st. 2017