Environment
Language
Let us know what language you’re writing your code in. Please include the version number you’re running, if possible.
Python v3.8.
Alpaca SDK Version
If you’re using an SDK library to interface with the Alpaca API, please include the version number you have installed in your environment.
Python alpaca-trade-api 1.4.1
Other Environment Details
Windows 10 x64.
Problem
Summary
When I place a trade, it says the buying power is $0, despite the fact that I have no positions and no pending orders. My account appears to be mis-configured in some way - perhaps something is stuck?
In addition, for some reason I have the “Pattern Day Trader” flag set. I do not need (or want) this, so this could be switched off if it would help to reset the account to a working state.
Paper or Live Tradng?
LIVE trading.
Example Code
Same issue when attempting to open orders manually on the website.