I need I need a Python application that will buy and sell stocks through the ETRADE API.
The python application will have to first check how much cash is available to trade.
I need the python application to: 1. check two lists of stocks, a Sell Short Stock List and a Buy Long Stock List, the lists are created and cut/pasted into the application / provided by me daily 2. if stocks in the list are already existing in the portfolio, do nothing 3. if stock is not in the portfolio, buy the stock if in Buy Long Stock List, Sell Short the stock if in Sell Short Stock List, with a market order 4. when stock is sold short or bought, immediately issue a sell limit order / or buy to cover limit order at a certain $ amount above the executed opening order price 5. run this application on a loop every 20 seconds (time should be adjustable)
I'd also like to be able to adjust the loop timing if possible if it was two different applications, one for selling short and one for buying long