New to Alpaca? Create your Trading API account today! Sign Up Today
why am I getting this error?
You may have an open order already (sell limit or stop loss). You will need to cancel the open orders for those shares prior to submitting your liquidating trades.