Back to projects
E-commerce
B2C wine investment platform

Wine Investment Platform

Fine wine trading platform with bid/ask order book and real-time portfolio valuation

Django
Docker
PostgreSQL
Python
React
Stripe
TypeScript

The Challenge

The existing platform suffered from critical technical debt: it originated from a different business model, resulting in a confusing and inadequate data model. The trading system, core of the project, was implemented but non-functional. The structural foundations to manage true exchange logics were missing: allowing users to resell wines (secondary market), place buy offers (Bid), and manage a portfolio of physical assets. The infrastructure was unable to track bottle ownership post-purchase or securely manage user funds (wallet) required for operations.

The Solution

I designed and developed the new platform core from scratch, transforming it from an online store into a full-fledged exchange. I built a custom 'Trading Engine' managing an Order Book (stock market style): users can place sell orders (Ask) and buy offers (Bid). The system automatically matches supply and demand and executes the transaction. To enable this, I implemented a digital registry ('Universal Stock') tracking the ownership of every single bottle in real-time, and an integrated financial Wallet system (based on Stripe) allowing users to deposit funds, lock amounts for offers, and securely collect sales proceeds.

Key Features

Universal Stock System for granular ownership tracking (Platform vs Users)
Trading Engine with Order Book (Bid/Ask) and automatic offer matching
Hybrid User Wallet on Stripe managing deposits, withdrawals, and fund holds
Real-time User Portfolio valuation based on market prices
Automated fee management (Trading, Monthly Storage, Exit fees)
Complete Audit Trail for financial compliance and operation traceability

Results

Unlocking of the 'Trading' business model thanks to the new wallet and order book management
Elimination of legacy technical debt with migration to a modern Python/Django stack
Total traceability of assets and financial flows
Platform ready to scale from simple e-commerce to a true asset exchange

Tech Stack

Backend: Python, Django, Django Ninja (API). Database: PostgreSQL. Payments: Stripe (Customer Balance, Payment Intents). Frontend: React. Infra: Docker, CI/CD.