# Extended hours rejecting everything with HTTP422

**URL:** <https://forum.alpaca.markets/t/extended-hours-rejecting-everything-with-http422/2374>\
**Category:** Alpaca Trading\
**Created:** [August 19, 2020, 9:05pm UTC](https://forum.alpaca.markets/t/extended-hours-rejecting-everything-with-http422/2374 "2020-08-19T21:05:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quarantine](https://avatars.discourse-cdn.com/v4/letter/q/cc9497/32.png) [@quarantine](https://forum.alpaca.markets/u/quarantine)\
**Post date:** [August 19, 2020, 9:05pm UTC](https://forum.alpaca.markets/t/extended-hours-rejecting-everything-with-http422/2374/1 "2020-08-19T21:05:58Z")

</div>

What’s the recommended format for the simplest extended hours trade: sell 1 share of asset \_\_ at market?

Operations that perform fine during market hours seem to consistently return HTTP422 in extended hours today.

Example:  
`{"extended_hours":true,"qty":"1","side":"sell","symbol":"TSLA","time_in_force":"day","type":"market"}`

Also of note:  
The “Trade \_\_” UI at the right of [https://app.alpaca.markets/paper/stocks/TSLA](https://app.alpaca.markets/paper/stocks/TSLA) does not seem to work in extended hours. Perhaps add a checkbox to this web UI to allow for requesting an extended hours trade there?

---

<div class="post-metadata">

**Author:** ![quarantine](https://avatars.discourse-cdn.com/v4/letter/q/cc9497/32.png) [@quarantine](https://forum.alpaca.markets/u/quarantine)\
**Post date:** [August 20, 2020, 11:36pm UTC](https://forum.alpaca.markets/t/extended-hours-rejecting-everything-with-http422/2374/2 "2020-08-20T23:36:13Z")

</div>

In case anybody else runs into this, I think the problem is that I got confused w/r/t timezones.

Extended hours closes as 7pm ET.

Between 7pm ET and the next pre-market extended hours:

- extended\_hours=true: HTTP422 is returned
- extended\_hours=false: placing trades with some parameters are allowed (as documented), but will not be acted upon until the market open

* * *

Update:

Looks like I got it mostly right. More details under “Extended Hours Trading” @

> **[Understand Orders - Documentation | Alpaca](https://alpaca.markets/docs/trading-on-alpaca/orders/)**
>
> Alpaca API lets you build and trade with real-time market data for free.

More specifically this part triggers HTTP422:  
_If the order is submitted between 6:00pm and 8:00pm ET on a market day, the order request is returned with error. Alpaca reserves this time window for future expansion of supported hours._
