Seeking Template for Live Paper Trading with Multiple Stocks/Cryptos Using Alpaca

Hello everyone,

I’m currently developing a paper trading system and am interested in implementing a template that handles multiple stocks or cryptocurrencies. My goal is to have live updates of data via Alpaca, and I want to visualize this data through a live plot showing both equity and cash positions alongside the individual stock/crypto performances. Additionally, I need to store this data for later analysis.

I have experimented with Backtrader and have also tried using websockets to fetch data from various sources, but I haven’t found a satisfactory solution that meets all my needs. Does anyone have a template or example that integrates these features, or can provide guidance on how to effectively set this up? Any advice on handling the live data feed and plotting in real-time would be particularly helpful.

Thank you in advance for your help!

I just found this article.

maybe thats enough

checkout this file and this file in a repo I made of basic alpaca templates.