softmedia/ digital systems
PL
System online00:00:00
ROOT / CASE STUDIESSECURE CONNECTION
CASE_06 / AI_AGENT

Kernel: from a research platform to an autonomous trading agent

Kernel is a proprietary R&D platform for price prediction and simulated trading on cryptocurrency markets. It tests strategies, automatically evaluates parameter variants and compares results after costs. The long-term objective is an autonomous or semi-autonomous investment system: an agent that continuously analyses the market, makes controlled decisions and improves its models using the results of successive simulations.

Project type
R&D / trading agent / machine-learning models
Status
operational R&D platform; agent development stage
Timeframe
approximately three months to the first operational version
Scope
TIMESCALEDB / XGBOOST / LIGHTGBM / REAL_TIME
01 / CASE_BLOCK

The challenge

A single chart or several profitable trades cannot validate a strategy. A repeatable environment was needed to automate data collection, prediction, simulation, cost modelling and comparable evaluation.

Data volume and velocity were another challenge. During active periods the platform processes dozens of market transactions per second, which required deliberate retention, aggregation and compression policies.

02 / CASE_BLOCK

The solution

Kernel provides one domain model for live data, historical replay, virtual accounts, strategies and machine-learning models.

It automatically runs simulations for many parameter sets and compares profitability, stability, risk and cost impact. Every result is connected to the input data, strategy version, model version and calculated costs, making experiments reproducible.

03 / CASE_BLOCK

Direction: an autonomous trading agent

The research platform is a controlled stage rather than the project’s final destination. The target is an agent operating autonomously or semi-autonomously, depending on risk limits and the decisions reserved for human approval.

The agent is intended to monitor markets continuously, generate predictions, select a strategy and its parameters, simulate decision outcomes and manage exposure. In semi-autonomous mode, the operator receives rationale, context and a risk assessment before approving an action.

Kernel records simulated decisions and their later outcomes. Successive cycles use this material to train and evaluate new model versions from the beginning under the same data and criteria.

04 / CASE_BLOCK

Key capabilities

  • real-time and historical market data
  • dozens of market transactions processed per second
  • automated testing of strategies and parameter variants
  • backtesting, replay and virtual accounts
  • fees, spread, slippage and latency simulation
  • result ranking and exposure control
  • model training, validation, versioning and metrics
  • a complete audit trail of decisions, data, model versions and outcomes
05 / CASE_BLOCK

Machine-learning models

The current version uses proprietary models built with XGBoost and LightGBM. They return direction and confidence estimates that feed a controlled strategy engine incorporating risk, cost and exposure rules.

At this stage the platform does not autonomously trade real capital. Simulated decisions and their outcomes provide training material for subsequent model candidates.

06 / CASE_BLOCK

Data-layer optimisation

TimescaleDB storage was reduced from approximately 34 GB to 9.5 GB, a reduction of around 72%, while retaining the key information required for further experiments.

07 / CASE_BLOCK

Research and business outcome

The result is an operational environment automating the research loop from continuous data collection through prediction, simulation and model training to comparable evaluation.

Most importantly, it provides an auditable foundation for a future trading agent: one process joining market observation, a decision, simulation of its effect, evaluation and retraining.

TX / STACK

Technologies

  • .NET 8 and C#
  • Python and FastAPI
  • XGBoost and LightGBM
  • PostgreSQL and TimescaleDB
  • Redis
  • Docker and Portainer
  • Binance market-data integration
Delivery and write-upSoftMedia
Author / responsible personPiotr Szymański
Last updated
READY_FOR_DISCOVERY

Let’s discuss a similar challenge.

Tell us about your project