New · Applied AI & automation — LLM workflows, OCR and forecasting already running in production. See what we have shipped →
Book a call

home / case-studies / tradeverse

Sugar price intelligence, from mill yard to market call.

A sugar trading business was making calls from prices passed around in chats and figures buried in mill spreadsheets. Comsoft built TradeVerse: one ledger for every price and volume, pipelines that bring mill data in automatically, live indicators, and an AI analyst that explains what the numbers say.

Client
Sugar & commodity trader, Pakistan
Product
TradeVerse →
Scope
Pipelines · analytics · AI
Stack
FastAPI · PostgreSQL · Airflow · Next.js
tradeverse / charts / commodity-price-chart
TradeVerse live candlestick chart of sugar prices
12,000+Price records on one ledger
5Airflow ETL pipelines for mill data
4Indicator families: RSI, ADX, Bollinger, MAs
8Candle forecast horizon per analysis

Before

  • Prices shared in chats and noted by hand
  • Mill figures locked in Excel files, PDFs and phone photos
  • No single price history to chart or test against
  • Market reads depended on whoever was on the desk

With TradeVerse

  • Every price and volume on one audited ledger
  • Mill data ingested on schedule — OCR included
  • Live candles with RSI, ADX, Bollinger and moving averages
  • A repeatable quant call, explained in a readable AI report

What we built

Five modules, one source of truth

01 · Ledger

Every price and traded volume, in one place

Prices and buy/sell volumes used to live across chats, spreadsheets and memory. TradeVerse keeps every record with its tag, timestamp and mill — searchable by ID or date, exportable to CSV, and never hard-deleted.

  • Price list with tags and recording time
  • Traded volumes with trade type, price, mill and payment date
  • Soft delete, restore and audit history on every record
  • Role-based access for traders, analysts, data entry and developers
TradeVerse prices list with price records, tags and timestamps
Prices list · production · counterparty names blurred

02 · Analytics

Bid and traded volume, read at a glance

The dashboard turns the ledger into trend lines: buy, sell and total volume over time, volume concentrated by price range, and quantity movement — filtered by tag for any trading window.

  • Trade volume over time, buy vs sell
  • Volume and quantity by price bucket
  • Tag filters for any period (e.g. a month or season)
TradeVerse bid volume analytics dashboard
Dashboard · production · counterparty names blurred

03 · Charts

Live candlesticks with the indicators traders use

A live commodity chart with daily and intraday intervals, OHLC readout per candle, and indicators computed server-side so every user sees the same numbers.

  • RSI, ADX (+DI / −DI) and Bollinger Bands
  • Moving averages with analyst-set periods (e.g. 7, 14, 20)
  • Up to 200 candles per view, with load-more history
TradeVerse price chart with Bollinger Bands, RSI and ADX panels
Charts · production · counterparty names blurred

04 · AI analysis

A quant model makes the call — an LLM explains it

Pure prompt-based forecasting reads well but does not repeat reliably. TradeVerse separates the two: a deterministic quant layer produces direction, scenarios, invalidation level and confidence; a language model then writes that up as an analyst-style report.

  • Market overview, technical signals and key levels
  • Trade bias with bull and bear scenarios and probabilities
  • Forecast models retrain automatically when prices are added or edited
  • One-click PDF export of every report
TradeVerse AI price analysis report open over the chart
AI price analysis · production · counterparty names blurred

05 · Pipelines

Mill data that arrives by itself

Crushing-season figures, date-wise sugar data and mill yard balances come from Excel files, PDFs and even photos shared on WhatsApp. Airflow DAGs ingest all of it into one schema — with Google Cloud Vision reading the figures off images — and developers can trigger or inspect any run from the dashboard.

  • 5 DAGs: crushing season, date-wise sugar, mill yard balance, wheat (multi-year), yard-balance OCR
  • Excel, PDF and image inputs normalised to one ETL schema
  • Trigger and run history in-app, restricted to the developer role
TradeVerse Airflow pipelines management screen
Pipelines · production · counterparty names blurred

Architecture

How TradeVerse is put together

A containerised FastAPI service over PostgreSQL, with Airflow for ingestion and a hybrid forecasting layer that keeps the numbers deterministic and the narrative readable.

01 · ingest

Airflow DAGs

Crushing season, date-wise sugar, mill yard balance and wheat data from Excel and PDF; yard balances read from images by OCR.

Apache AirflowCloud VisionSupabase storage
02 · store & api

FastAPI + PostgreSQL

Prices, volumes and commodities behind a typed API with role-based access, soft delete and audit history.

FastAPISQLAlchemyPostgreSQLDocker
03 · intelligence

Quant + LLM

Indicators computed server-side; lightweight forecast models retrained per commodity and interval; an LLM writes the analyst report.

pandas-taProphetLangChainGroq
04 · experience

Trader dashboard

Dashboards, live charts, report generation and pipeline controls — with CSV and PDF exports.

Next.jsChartsPDF · CSV
Candlestick chart
Candlestick chart
AI market overview
AI market overview
Scenarios & risk
Scenarios & risk
Report generator
Report generator
Traded volumes
Traded volumes
Secure sign-in
Secure sign-in

Client name withheld. Counterparty and mill names are blurred in every screenshot on this page.

Start a project

Want this view of your market?

TradeVerse can be configured for other commodities and other data sources. Tell us what you trade and where your numbers come from today.

  • A walkthrough on real screens
  • An honest read on your data sources
  • Pipelines scoped to the files you already receive

Windsor & Maidenhead, United Kingdom · Punjab, Pakistan
info@comsoftcorporation.com

Tell us what you need

Takes under a minute. We reply within one working day.

Prefer to talk? Book a 30-minute call