I have a program that buys a stock at market open and sells it at market close daily. When I ran it today, I get an error when I sell a stock with the API. It says
APIError: trade denied due to pattern day trading protection
Where can I get more detail of this error? Is there a reference doc?