This project is the result of many small failed attempts to build a true commission-free trading engine. Although coupled to Robinhood API, this code is easily extendable to work with any broker or API.
- Set up a Node server and deploy it to Heroku
- Handle user auth
- Connect to market data using API
- Create and enable Buy/Sell strategies
- Calculate and incorporate RSI analysis to Buy/Sell strategies
- Perform analysis based on
rules
attributes - Instantiate initial
Rule
objects with default limits and persist data on Mongo - Fetch user
rules
from database on load - Watch for stock changes based on
rules
- After each market feed, process
rules
and ultimately place orders or update limits - Add after-hours trading logic based on volume
- Add day-trade limitations logic
- Stocks order management: Robinhood's Private API
I define a Rule
as a single instance of multiple trading strategies to be used by the Engine
. Rules can be defined by the user and will be stored in the Mongo instance
Copyright (c) 2018 Mauer Principles Inc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.