I have a website that currently triggers a BUY order for option trading with the US Stock Market, via eTrade API, but I need to add on to this website and add an Autosell feature:
- When the market immediately opens the software places a sell order on the open positions at "sell to close" at "market" if the option % is positive.
- if the option % is negative, then the software WAITS to "sell to close" at "market" until the moment option hits 10%+ gain or 1p.m., whichever comes first.
This code is developed in Node JS. I need this added without interrupting the live website already. If this needs to be a software on my macbook or an app on my iphone that is ok for me too.