# PHP Auto Trade Server

**URL:** <https://forum.alpaca.markets/t/php-auto-trade-server/242>\
**Category:** Alpaca Account Troubleshooting\
**Created:** [September 7, 2019, 3:20am UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242 "2019-09-07T03:20:52Z")\
**Posts on this page:** 9\
**Page:** 1

<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:** [September 7, 2019, 3:20am UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/1 "2019-09-07T03:20:52Z")

</div>

Good evening,  
My name is Kris, im posting about a project i’ve been working on its a server for algorithmic trading writing in php, ive been developing this for about a year and a half. i started with integrating with the robinhood api then moved over to alpaca (and i love it) and built my own server since i didn’t see anything out there that was what i was looking for. id like to know if anyone else would be interested in this. for the server to work it needs a couple things IE accounts with data streaming providers such as finviz and alphavantage. its in a production version and since the last few trades have been all profitable for about a month now, im thinking of posting on github or a personal site not sure at this point.

---

<div class="post-metadata">

**Author:** ![stevelloyd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/stevelloyd/32/37_2.png) [@stevelloyd](https://forum.alpaca.markets/u/stevelloyd)\
**Post date:** [September 14, 2019, 2:59am UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/2 "2019-09-14T02:59:39Z")

</div>

Kris,  
I would love to see what you have done if you do not mind sharing. I am a big PHP nerd myself.

[Steve.lloyd@gmail.com](mailto:Steve.lloyd@gmail.com)

---

<div class="post-metadata">

**Author:** ![grandpawithgreyhair](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@grandpawithgreyhair](https://forum.alpaca.markets/u/grandpawithgreyhair)\
**Post date:** [September 14, 2019, 7:09am UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/3 "2019-09-14T07:09:20Z")

</div>

Hi @kris, I’d be super curious about your data pipeline and your trading strategy/algorithms. How many trades did you do in your last month (just curious)? Do you focus on intra-day patterns or rather invest in securities for several days? How do your setups look like 🙂 Github and personal site are both great but Github is definitely better!

---

<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:** [September 14, 2019, 2:36pm UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/4 "2019-09-14T14:36:00Z")

</div>

Message me in a email [krisgcell@gmail.com](mailto:krisgcell@gmail.com)

---

<div class="post-metadata">

**Author:** ![ZZook2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/zzook2/32/471_2.png) [@ZZook2](https://forum.alpaca.markets/u/ZZook2)\
**Post date:** [February 19, 2020, 9:17pm UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/5 "2020-02-19T21:17:27Z")

</div>

@kris  
Hi, I am also programming in PHP, wonder if there is something we can share with each other in order to build a better algorithm.

I’ve taken the examples written in python and rewritten them in php but instead of using the streams of data how they have it I go directly to the source to get Quote/Trade information and base the logic of that.

Another process is going after opening profit/exit positions and at the same time a stop loss position if things go sour.

---

<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:** [February 22, 2020, 11:23pm UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/6 "2020-02-22T23:23:40Z")

</div>

did i get back to you yet ?

---

<div class="post-metadata">

**Author:** ![ZZook2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/zzook2/32/471_2.png) [@ZZook2](https://forum.alpaca.markets/u/ZZook2)\
**Post date:** [February 25, 2020, 8:58pm UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/7 "2020-02-25T20:58:50Z")

</div>

Yes sorry I’ve been busy, as soon as I have something I will send it up. For now I am trading and seeing how the market works in order to build a better strategy. I day trade though.

---

<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:** [February 25, 2020, 11:00pm UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/8 "2020-02-25T23:00:54Z")

</div>

cool cool… just making sure i sent you that email

---

<div class="post-metadata">

**Author:** ![redorbit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/redorbit/32/9196_2.png) [@redorbit](https://forum.alpaca.markets/u/redorbit)\
**Post date:** [October 31, 2026, 12:21pm UTC](https://forum.alpaca.markets/t/php-auto-trade-server/242/9 "2026-10-31T12:21:51Z")

</div>

I’m a big PHP fan for years myself. I find it great, flexible and super fast. Most communities tried to steer to Python, but few experiments showed heavy dependencies and slow for start, stop and tear down processes.

I wouldn’t base success on a month or even a couple of a months. The algo will have to survive multiple market regimes, earning session, no news, major news. So I would say keep it running to collect data which will guide your next phase.

Would love to see what’s in the works once it’s in GitHub.
