Order Connector Not Working for Live Trading

Hi,

The paper trading is working fine, but when we switch to live trading API with new API keys, this is the error we are getting.

I can see Autorized error
raise APIError(error, http_error)

alpaca.common.exceptions.APIError: {“code”:40110000,“message”:“request is not authorized”}

How do we fix so we can live trade?

@krobock Are you attempting to place an order using the POST orders endpoint /v2/orders? If so ensure you also change the base URL. The entire endpoint needs to be https://api.alpaca.markets/v2/orders to place live orders and https://paper-api.alpaca.markets/v2/orders to place paper account orders.

Could that be the issue?

thank you! Great feedback and you solved our issue. Bravo!