Market Buy Order Accpted but never Filled, Sell order as new or accepted

Hi
Today while using my paper account, all of market orders were going as Accepted,but never filled up. For sell orders had the same issue,the status became new or accepted.
When I tried to cancel all orders status was pending cancel for a long while. This is very scary to me. I believe people didn’t get same problem in the live account.

Can anyone tell me what has happened today with Paper API?

Thanks.

Yes same problem with me. My main question is is this how Live is?

I would also like to know what “RestClientErrorException: service unavailable” means…and if this is common within the Live environment.

I’m really having doubts about the stability of this platform for legitimate trading.

What type of order was it? Can you send the output of the order.

This is what I got at 12:03 EST:

Alpaca.Markets.RestClientErrorException: Service Unavailable —> Alpaca.Markets.RestClientErrorException: service unavailable at Alpaca.Markets.HttpClientExtensions.d__32.MoveNext() --- End of inner exception stack trace --- at Alpaca.Markets.HttpClientExtensions.<DeserializeAsync>d__32.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Alpaca.Markets.AlpacaTradingClient.d__14.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

No, what type of order was it, was it marker or limit?

@Brian67 - Sorry for this looks like the service is busy I think you’re getting “error_code: 500! error_message: Internal Server Error!”, this does happen you need to set up loops with sleep and retries. I am not sure why it happens but something from their end does it. It could be an error or it could be because you’re doing too many requests…

Try contacting them directly see if they can trace the error.

mine was market order…this has been an on going issue, off and on for weeks.

Orders don’t get placed(error above)
or they do get placed and stuck as ACCEPTED
or they rejected with FORBIDDEN even though there is $300k and I’m buying 1 share(as a test)

AND…it also happens using the Alpaca website…so I don’t think it’s my code. But it works 80% of the time. Just worked fine 5 minutes ago.

I don’t rely on market, try using limit instead and see if that works. It is easy to get the current price of the stock, you can GET https://api.polygon.io/v1/last_quote/stocks/{symbol}?apiKey=YOURKEY. And use the bidprice in the result.

I don’t see how it would matter. Market orders are filled against an existing bid/ask, and if they are having problems with getting that done…then this whole thing will break down eventually. A market order should be the easiest to get done… Thanks.

Yes but as the price changes may be causing the issue with the one they send to execute. I haven’t had issues like this with limit orders only with market.