Using API v2, you can submit and fill orders during pre-market and after-hours. Full Extended hours trading has specific risks due to the less liquidity. Please read through Alpaca's Extended Hours Trading Risk Disclosure for more details.
Currently, we support full extended hours:
Pre-market: 4:00 am - 9:30 am ET
After-hours: 4:00 pm - 8:00 pm ET