You Don’t Need a 10-Person Tech Team to Automate Trades Anymore

Let’s face it: building your own algo trading infra used to be a pain.
You’d either:
Spend weeks integrating broker APIs one-by-one
Write flaky WebSocket clients that crash mid-day
Or worse, juggle 5 tabs, 3 Excel sheets, and a prayer that your order didn’t get rejected
We built AlgoTest so you don’t have to do that anymore.
Now, we’re taking it one step further. We’ve open-sourced a full working repo to help you automate trades using our APIs.
Check out the GitHub Repo here.
For Traders Who Code (or Want To)
This repo is for you if:
You just want code-level control instead of clicking buttons on a UI.
Your strategy logic is too custom or dynamic to be built through AlgoTest’s drag-and-drop interface.
You’ve been trading using your own infra, but don’t want to maintain 10 broker integrations.
You want to run live and forward-tested trades with a few clean scripts.
No more writing broker’s orders API from scratch. No more paper trading stack. No more expired tokens. No more chaos.
What You Get Out of the Box
A plug-and-play Python setup that does it all:
Auth & Token Management
Just put your AlgoTest’s phone number and password in a .env file. We handle CSRF tokens, sessions, cookies, everything.
client = AlgoTestClient(phone_number=PHONE_NUMBER, main_url=MAIN_URL)
Fetch Contracts Programmatically
Need strike data for BTC or ETH futures? One line.
contracts = ContractFetcher(token=client.get_tokens(), underlying=UNDERLYING, prices_url=PRICES_URL)
Live Market Feed
Built-in WebSocket client that pipes in live candle data, no messy threading or retries needed.
Strategy Engine (Yes, You Can Code Your Logic)
A sample EMA-based strategy is already wired up. Replace it with your own:
Breakouts
RSI crossovers
Multi-leg setups
Machine Learning signals
All of that goes into one place: strategy.py.
Trade Execution with Retry + Tagging
When a signal fires, it creates a trade using our /trade-signal API and you see the exact request + response.
No broker dependencies. Just clean JSON and full control.
Why Use This Instead of Coding from Scratch?
We’ve already done the hard parts:
Broker integrations
Order execution infra
Forward testing infra
Daily infra ops
So you can focus on the important stuff, strategy logic.
How to Get Started
Clone the Repo:
git clone https://github.com/Algo-Test/algotest-api-trading.git
Set up .env
PHONE_NUMBER=your_number
PASSWORD=your_password
ACCESS_TOKEN=your_token
BROKER_ID=your_broker_id
Install Requirements
pip install -r requirements.txt
- Run it
python main.py
You’ll start seeing:
Candle updates
Strategy signals
Live trades getting placed
All in your terminal. All in code you understand.
Built for Indie Traders & Quant Teams Alike
You don’t need a “quant team” to automate trades anymore.
This is for:
The guy testing breakout ideas on the weekend
The discretionary trader trying to remove emotions
The quant team building multi-user execution infra
Or the 22-year-old who just wants to trade BTC options with code and chill
No matter your style, you’ll find this useful.
The Next Step Is Yours
This repo isn’t just a demo.
It’s your blueprint to build whatever you want on AlgoTest, scalping bots, trend followers, portfolio managers, delta-neutral hedgers… you name it.
And the best part?
You don’t have to think about brokers. Or infra. Or failures.
Just write your logic and hit run.
If you’re a trader who codes, this repo is for you.
And if you’re not yet, this might just convince you to start.
Here you can explore the Repo!
Have questions?Join our Telegram Community