Automatic enter/exit selection?

Let’s say that I own 1 share of SPY, and I enter a limit order to SELL 1 share of SPY above the ask.

Then I enter another order to SELL 1 share of SPY at a limit price above the limit price of the first order. Will that order be rejected? Will your system consider both orders as exits, or might it treat the second one as an enter (sell-short).

The second sell order would be rejected with an error something like this APIError: insufficient qty available for order (requested: 1, available: 0). If one has an open long position, there cannot be ‘sell’ orders for more than the shares held.


Hi there,

Well, I found this great solution and wanted to share it as I am using it and works great…

Next Level Bot will help you to automate your trading. NLB use API Keys to connect to your Alpaca account to help you to execute your trades.

It is a simple WebHook setup to automate alerts from TradingView through Next Level Bot to place trades on the Alpaca exchange.

No PineScript, JSON, Python, AWS, Clouds or Chalice needed!

Next Level Bot has eliminated the necessity of coding and now you can send alerts directly to your Alpaca Real and Demo account, both!

If you are interested visit Next Level Bot