Thomson Mathews
3 min readNov 3, 2019

Alpaca Dashboard for Python Lovers

GUI interface in python for Alpaca Trade API and PySide2 (PyQty5)

This has the following features: Allows you to easily switch between Live and Paper environment, maintain multiple watch-list, implement multiple scanners watch-list, implement multiple algorithm that can run in the background and can be selected independently for each environment and display chart for a selected symbols

Watch-lists

Displays real-time bid,last and ask price, right clicking on bid or ask price allows you sell or buy the stock, enter a symbol and press add button to add stock to the selected watch-list, enter <watch-list-name>.<symbol> and press add button to add the symbol to new watch-list-name.

Currently the watch-list are stored locally using a pickle file, i will make use of the Alpaca watch-list API when its available on the python SDK

Positions

Displays a list of your positions in your portfolio, displays current qty, last price, average purchase price, profit and filled-at time, right click to close the position

Open-orders

Displays a list of all open orders, right click will allows you to cancel the selected or all open position

Closed-Orders

Displays the last 500 closed orders

Real-time Candle-Stick chart

Clicking on the any symbol in watch-list, positions, open-orders or closed-order will display real-time candle stick chart, you can select the following time-frames: Minute, 5Minute, 15Minute or Day, cross-hair shows the price and time. Allows to zoom into the chart, Right click on the chart allows you buy or sell the stock at limit or stop price depending on where you click, it also allow you to reset zoom

Buy and Sell Dialog

When you select buy or sell from any where on the dashboard you will be presented with this dialog box

Scanner Watch-list

Scanner can be easily implemented in the userlogic.py by inheriting the Scanners class, the name of the sub-classed scanner will appear in the scanner drop down, scanner will run periodically based on the assigned seconds

Algorithms

Algorithm can be easily implement in the userlogic.py by inheriting Algos class, the name of subclass will appear in the Algo drop down

Where to find it