I have put together a way to forward signals from NT7/NT8 to Robinhood.
I began by using a robinhood API that is available on github and is open source here:
If you share this you need to include the license giving credit to Anil Shanbhag
The API is written in python so you will have to install the requirements and run the api through cmd. I will be looking into converting this to an exe in the future.
Attached are my modifications as well as a script that needs to be added to your ninjatrader code.
You will have to configure the config.py file to include your robinhood username, password, buyfile path, sellfile path and the seconds for frequency of scans.
I used the StreamWriter functions in my ninjatrader code to write the signal type, instrument name, #shares, and price to the text file using the following code:
You will have to do the above code for your buy & sell signals and give a path for each (do not use the same file).
To kick off the robinhood api scanner type 'auto' as the cmd.
You would have to leave the scanner running to process new signals from ninjatrader. I have it setup to start at 9:30 and end at 2:15 (it only runs M-F). You can edit the start/stop times by opening the shell.py file and modifying line 183:
if day_of_week datetime.time(9,30) and time