# Paper simulator for off hours market

**URL:** <https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952>\
**Category:** Feature Requests\
**Created:** [July 2, 2020, 9:51pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952 "2020-07-02T21:51:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![erezmichaely](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/erezmichaely/32/946_2.png) [@erezmichaely](https://forum.alpaca.markets/u/erezmichaely)\
**Post date:** [July 2, 2020, 9:51pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/1 "2020-07-02T21:51:04Z")

</div>

Can Alpaca provide a trading simulator for paper-trading on off-hours? Or weekends?

---

<div class="post-metadata">

**Author:** ![srainey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/srainey/32/2165_2.png) [@srainey](https://forum.alpaca.markets/u/srainey)\
**Post date:** [July 2, 2020, 10:30pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/2 "2020-07-02T22:30:54Z")

</div>

Seconding this. It would be really nice to be able to work with the API in the off hours for those of us who have a regular 9-5 to hold down.

---

<div class="post-metadata">

**Author:** ![BASIC\_NPC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/basic_npc/32/937_2.png) [@BASIC\_NPC](https://forum.alpaca.markets/u/BASIC_NPC)\
**Post date:** [July 3, 2020, 6:35pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/3 "2020-07-03T18:35:20Z")

</div>

+1 to this. I use the paper api mostly just for testing. It’s very hard to test if i’m at work when the markets are normally open. Maybe adding an extra boolean field to paper api orders to specify that it is just being used for testing purposes.

---

<div class="post-metadata">

**Author:** ![kris](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/kris/32/163_2.png) [@kris](https://forum.alpaca.markets/u/kris)\
**Post date:** [July 3, 2020, 11:49pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/4 "2020-07-03T23:49:22Z")

</div>

i made a sim in my old post

---

<div class="post-metadata">

**Author:** ![still-dreaming-1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/still-dreaming-1/32/981_2.png) [@still-dreaming-1](https://forum.alpaca.markets/u/still-dreaming-1)\
**Post date:** [July 6, 2020, 4:56pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/5 "2020-07-06T16:56:04Z")

</div>

I have been wanting the same thing. I am at a point now where the next thing for me to do is test that my code works, purely from a technical perspective, while the market is open. But the best time for me to do that is not always while the market is actually open.

One option that might make this possible is to somehow set the paper API to a specific day and time from the past. Then time could move forward from that point as if time were passing normally from that point. So this would really be a simulation feature that could be used for backtesting simulation, where it would use the live market data from that time to simulate what might have happened, and allowing us to test our API code during off hours would just be a side benefit.

---

<div class="post-metadata">

**Author:** ![pmendes](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@pmendes](https://forum.alpaca.markets/u/pmendes)\
**Post date:** [July 6, 2020, 10:30pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/6 "2020-07-06T22:30:02Z")

</div>

It doesn’t make sense to paper trade off hours. Paper trading is supposed to be with live data so you can test your strategy “as if” the real thing. What you guys want is a way to backtest. Backtest uses historical data, and therefore, can be run at any time. See [https://www.investopedia.com/terms/b/backtesting.asp](https://www.investopedia.com/terms/b/backtesting.asp) for more details.  
Now, that being said, it would be really nice to have a backtesting platform where you set the start date, and all passes “as if” it was a real time scenario.

---

<div class="post-metadata">

**Author:** ![still-dreaming-1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/still-dreaming-1/32/981_2.png) [@still-dreaming-1](https://forum.alpaca.markets/u/still-dreaming-1)\
**Post date:** [July 7, 2020, 4:54pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/7 "2020-07-07T16:54:16Z")

</div>

There are two kinds of testing someone might be interested in, testing whether their code works as intended, and testing your strategy. They are two different things. Backtesting is not necessarily what we are wanting, as that is more about testing your strategy. But if a backtesting feature was offered that allowed us to use the API as normal, it could kill two birds with one stone.

---

<div class="post-metadata">

**Author:** ![lvca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/lvca/32/22_2.png) [@lvca](https://forum.alpaca.markets/u/lvca)\
**Post date:** [July 9, 2020, 5:52pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/8 "2020-07-09T17:52:58Z")

</div>

If you want to run your tests when the market is off, you can use [Arcade Trader](https://arcadetrader.com) and its paper trading account. It’s a simulation but it’s pretty accurate, it can reach till the tick level. This means the entire market tape (billion of messages) is re-played from scratch and buy/sell are executed considering the real-time quote prices.

Check the 1st tutorial to see how you can write your own strategy in JS, Python, and very soon Natural Language: [https://medium.com/@arcade\_trader/algorithmic-trading-for-beginners-part-1-d6589d4beb05](https://medium.com/@arcade_trader/algorithmic-trading-for-beginners-part-1-d6589d4beb05).

Arcade is FREE for personal use.

---

<div class="post-metadata">

**Author:** ![browe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/browe/32/2694_2.png) [@browe](https://forum.alpaca.markets/u/browe)\
**Post date:** [June 3, 2021, 11:23pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/9 "2021-06-03T23:23:25Z")

</div>

Please add this feature. I don’t care about the simulation of the back testing, what I want to make sure is that I’m executing the Alpaca API’s correctly. It could even be 1 stock symbol; that moves with random prices 24hrs per day… like the ALPACA symbol… is always active in the paper account. Otherwise it takes weeks to test code - with extremely poor/outdated documentation - so its mostly trial an error and only while markets are open. So a 2 hr fix… can take a week or longer if you have another job.

---

<div class="post-metadata">

**Author:** ![brianhumphreys](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/brianhumphreys/32/3230_2.png) [@brianhumphreys](https://forum.alpaca.markets/u/brianhumphreys)\
**Post date:** [October 30, 2021, 6:04pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/10 "2021-10-30T18:04:37Z")

</div>

Is this going to happen? Why do I never see Alpaca mods in these forums? I am willing to bet that we are all developers with 9-5s. Can we at least get a response?

---

<div class="post-metadata">

**Author:** ![Riodda74](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Riodda74](https://forum.alpaca.markets/u/Riodda74)\
**Post date:** [November 15, 2021, 2:31pm UTC](https://forum.alpaca.markets/t/paper-simulator-for-off-hours-market/1952/11 "2021-11-15T14:31:18Z")

</div>

Well backtest and live paper on coding side are quite different matters.
