I am just getting started using Alpaca and every time I try to use a function with TradingClient class I always get returned a “request is not authorized” message. Why is this happening?
I figured it out. I was accidentally using a live api key. Had to switch in the dashboard from live to paper.