PROJECT

Automate Trading with Python Trading Software

Custom software development, Python trading automation, Broker API integration, Excel trading data, Strategy backtesting, Options trading automation, Trading dashboards

  • Industry: Financial trading
  • Poland Location: Poland
  • Delivery time: 16 weeks
  • Technologies: Python, ccxt
4+ months

This algorithmic trading firm spends time handling market data, spreadsheet inputs, strategy checks and broker orders manually. The software connects broker accounts with market data and trading strategies to automate buying and selling. It reads Excel trading inputs and returns order, position and backtesting information for the firm’s team, helping reduce manual trading work, repeated data handling and execution effort.

Summary

Problem

The company spends time manually analyzing the market, processing spreadsheets, and entering orders.

Solution

The solution was trading software in Python that connects market data, strategy logic, spreadsheets, and broker accounts.

Result

The software is designed to reduce manual work in trading, repetitive data processing, and unnecessary effort when executing trades.

Client story

The client is an investment firm from Poland focused on algorithmic trading. It runs live, backtested, and high-frequency strategies through broker APIs and trades stocks and options.

The team processes candlestick data, trading inputs, and buy and sell orders across broker accounts. Traders and trading firms need to replace manual market data analysis, trading data processing, and order entry with automated systems.

The request was simple: automate the trading workflow in Python, connect it to an Interactive Brokers or Shoonya Broker Account as needed, and validate strategies through backtesting. The company also needed Excel data to feed into the process and return as updated trading data after trades were executed.

The solution was built as interconnected screens for interval settings, candlestick analysis, live monitoring, Excel data, and backtesting. Strategy fields, order types, broker status, and trading logs remained visible so the company could manage the process according to its own rules.

The client asked for

  1. Validate strategies through backtesting and provide the required instructions or documentation.
  2. Create trading automation in Python, with Java or C++ alternatives if needed.
  3. Connect Interactive Brokers or Shoonya Broker Account as needed.
  4. Load trading inputs from Excel and update the data after execution.

Why ready-made software did not fit

Ready-made broker platforms cover buying, selling, and managing financial assets, but their offerings do not combine the company's spreadsheet inputs, configurable strategy logic, backtesting, and broker-based trade execution in one customized process. The solution was designed to keep these parts together and adapt them to the company's own rules, while documentation and training support independent use.

Project overview

The solution was designed around a trading system in Python that connects market data, strategy logic, spreadsheet inputs, and broker accounts. The structure brings the main steps together in one place: data preparation, candlestick checks, strategy validation, order execution, and position monitoring.

An Excel workspace was prepared for handling trading inputs. It loads spreadsheet data, displays candlestick data, and highlights updated trading data created after trades are executed.

The trading screen combines selectable intervals, strategy parameters, and buy and sell criteria. Broker connection status and market, limit, and stop order types are available on the same screen.

The application places orders through supported broker connections and provides execution information for monitoring purposes.

Special attention was paid to strategy validation. The backtesting screen uses historical candlestick data, strategy parameters, and result tables so the company can compare a strategy before using it in live trading.

The system was planned as modular, with room for documentation, setup instructions, post-launch support, and later extensions such as local processing or live-market debugging.

Key features delivered

  • Automated trading through broker accounts
  • Market, limit, and stop orders
  • Candlestick data loading at selectable intervals
  • Configurable strategies and buy/sell criteria
  • Import and update of trading data from Excel
  • Strategy backtesting with historical candlestick data
  • Live monitoring of orders, positions, and alerts
  • Broker account connection status
  • Trading automation in Python

Can be added

+ Fibonacci retracements + Local data processing + Custom API calls + Live-market debugging

Who else can use this solution

Other trading businesses have a similar task, and the same solution can be adapted to their data, strategies and brokerage connections.

A stock trading desk

Task It automates stock buying and selling through brokerage accounts.
How the solution helps The solution connects market data and trading rules with broker orders and monitoring.

An options trading team

Task It runs configurable options strategies with defined parameters and buy or sell criteria.
How the solution helps The solution provides strategy setup, broker execution and backtesting in one application.

An investment firm

Task It replaces spreadsheet-based trade-data handling with Python trading bots.
How the solution helps The solution reads Excel inputs, updates trading data and tracks executions.

Technology stack

Python

Trading automation language

Python runs the trading logic, broker connections and data processing.

ccxt

Trading API connections

ccxt is a library that connects trading software with exchange APIs.

hyperliquid-python-sdk

Hyperliquid API trading

hyperliquid-python-sdk connects Python trading logic with the Hyperliquid API.

python-calamine

Excel file reading

python-calamine reads Excel and spreadsheet files for trading inputs.

fastexcel

Fast Excel reading

fastexcel reads Excel data for the trading data workspace.

vectorbt

Strategy backtesting

vectorbt analyzes and backtests trading strategies at scale.

backtesting

Historical strategy testing

backtesting runs trading strategies against historical candle data.

bt

Flexible backtesting

bt provides a Python framework for testing trading strategies.

Excel / XLSX

Trading input files

Excel files provide trading inputs and receive updated trading data.

Candle data

Market data analysis

Candle data supports interval-based market analysis and strategy testing.

Integrations

Interactive Brokers

The software connects trading strategies and orders with the Interactive Brokers platform or API.

Shoonya Broker Account

Where required, the software sends trading activity through a Shoonya Broker Account.

Excel

Excel files carry trading inputs into the application and receive updated trading data after execution.

Brokerage APIs

Brokerage APIs carry market orders, limit orders, stop orders and trading updates.

The result

Trading rules stay ready for controlled execution

The trading control screen brings strategy parameters, buy and sell criteria and the selected order type together with the broker connection status. This gives the firm one place to prepare automated trading rules.

The application supports market, limit and stop orders and uses a selectable interval for the trading process.

How it works

  1. The software shows the trading interval, strategy parameters, buy and sell criteria and broker account status.
  2. The strategy module applies the selected trading rules and order type.
  3. The broker connection sends market, limit or stop orders and returns execution information.
  • Set a time filter and data interval.
  • Use configurable options strategies where required.
Note: The interface keeps broker status visible before order execution.
Trading control and interval setup

Trading control and interval setup

Functions on this screen
Set Trading Time Filter Set data interval Develop Trading Algorithms Automated Options Trading Strategy

Candle data gives the strategy a clear market view

The market data screen presents a token or instrument list, a selected interval and a candle table. The trading analysis area presents the fetched data for review.

This supports review of fetched candle data before trading decisions are executed.

How it works

  1. The candle-data module fetches candle data for the selected tokens or instruments.
  2. The software shows the selected time interval and the last 12 candle data in the candle table.
  3. The trading analysis area presents the candle data for review.
Market data and candle analysis

Market data and candle analysis

Functions on this screen
Fetch candle data

Orders and positions remain visible during trading

The live monitor brings submitted orders, open positions, execution status and trade alerts into one view. An activity log keeps buy and sell orders, executed options trades and real-time trade updates available to the trading team.

This gives the firm a direct view of what the broker process has returned without relying on separate manual notes.

How it works

  1. The monitor shows buy and sell orders and open positions.
  2. The execution area displays executed options trades and real-time trade updates.
  3. The activity log records trade alerts and trade logs.
Live order and position monitor

Live order and position monitor

Spreadsheet data returns in an updated form

The Excel workspace keeps source spreadsheet data and updated trading data together. It supports the firm’s existing spreadsheet process while connecting those inputs with candle data and execution.

An updated-data indicator makes the returned trading information easy to distinguish from the source file.

How it works

  1. The Excel workspace reads Excel file data and displays it in the spreadsheet data table.
  2. The application combines the spreadsheet inputs with candle data used in trading.
  3. The workspace shows updated Excel data and updated trading data after execution.
Excel trading data workspace

Excel trading data workspace

Functions on this screen
Update Stock Data

Backtesting supports a safer strategy review

The backtesting screen compares a configured trading strategy with historical candle data before live trading. Results and strategy parameters remain visible for iterative review.

This makes strategy validation part of the same software rather than a separate manual analysis step.

How it works

  1. The backtesting module loads the selected strategy parameters and historical candle data.
  2. The backtesting library runs the trading strategy against the historical data.
  3. The results table and comparison area show the backtesting results.
  • Compare strategy results before live trading.
  • Review parameters and historical data together.
Strategy backtesting results

Strategy backtesting results

Functions on this screen
Backtest Trading Strategy

What the solution gives

With this solution, the trading firm can:

  • Automate buying and selling through connected broker accounts.
  • Fetch candle data at selectable trading intervals.
  • Read Excel inputs and return updated trading data after execution.
  • Test strategies against historical candle data before live trading.
  • Monitor orders, positions, alerts and execution status.
  • Manage stock and options trading rules in one application.

Could ready-made systems do the job?

Before the design, the task was compared with ready-made products by their own descriptions.

What the client needs Brokerage platforms Kite, MetaTrader 5, thinkorswim Algorithmic trading platforms Galileo FX, Abbado, MetaTrader 5 Multi-asset trading platforms eToro, Dotbig platform, E*Trade Web Platform Custom solution
Validate strategies with backtesting partly —
Build Python trading automation — — —
Connect broker accounts and APIs —
Read and update Excel data — — —
Fits the client's own rules: stages, roles, reports — — —
All steps in one place — — —
No manual steps between programs — partly —

By the public descriptions of the products and their category.

Ready-made products cover parts of the task, including brokerage access, trading tools and some algorithmic functions. A ready-made product is enough when only one of these parts is needed.

This firm needed its own software because spreadsheet inputs, strategy validation, broker execution and monitoring had to follow its own rules in one place, with fewer manual steps between programs.

In the end

In the end, the solution was made to take manual work out of the path from market data and strategy rules to broker orders and updated trading records.

FAQ

Thinking about building a similar system? Read the answers below to understand the main design choices for Python trading automation, broker connections and strategy validation.