International Trading Platform
Back to Projects

International Trading Platform

Complete platform rebuild for B2B2C commodity trading with 52 database tables, 77 foreign key relationships, multi-currency support, and full regulatory compliance infrastructure.

2025QA Testing
Product
Lot
ID
Grade
Qty
Period
Bid
Ask
Actions
Premium Blend A
2847
PBA-119
A+
500
Q2
$42.50
$45.00
BIDBUY
Standard Mix 12
3102
SM-2204
A
1,200
Q2
$31.20
$33.80
BIDBUY
Reserve Select
1893
RS-0087
AA
250
Q3
$78.00
$82.50
BID
Commodity Grade
4521
CG-3380
B+
3,000
Q2
$18.90
$20.10
BIDBUY
Export Certified
2210
EC-1156
A
800
Q3
$55.00
$58.25
BID
Small Batch 09
0917
SB-0441
AA
120
Q2
$92.00
$97.00
BIDBUY
Industrial Spec
5503
IS-7892
B
5,000
Q4
$12.40
$13.80
BUY
Organic Cert.
0334
OC-2281
AA
340
Q3
$88.00
$91.50
BIDBUY
12 listings3 active bids
Last update: 09:15:22

Results

52
Database Tables
Normalized relational schema
77
FK Relationships
Referential integrity
3.7M+
Production Rows
Transaction history
60%
Query Speedup
Response time optimization

Overview

This international commodity trading platform facilitates B2B2C transactions for a regulated resource across multiple jurisdictions. I led the complete rebuild of the platform, redesigning the database architecture, API layer, and React frontend to support complex multi-currency operations while maintaining regulatory compliance.

The Challenge

The existing platform had accumulated significant technical debt:

  • Monolithic codebase with tightly coupled components
  • Database design that couldn't scale with transaction volume
  • No clear separation between B2B and B2C workflows
  • Compliance tracking scattered across multiple systems

Database Architecture

The rebuild centered on a properly normalized relational schema:

Scale

  • 52 tables covering entities, transactions, inventory, and compliance
  • 77 foreign key relationships ensuring referential integrity
  • 3.7M+ rows in production with optimized query patterns

Core Entities

Key Design Decisions

Multi-Currency Support

  • Separate currency and exchange rate tables
  • Transaction amounts stored in both local and base currency
  • Audit trail for all currency conversions

Regulatory Compliance

  • Every transaction linked to compliance checkpoint records
  • Document storage with version history
  • Automated reporting exports per jurisdiction

API Architecture

Node.js/TypeScript backend with RESTful design:

Authentication & Authorization

  • JWT-based authentication
  • Role-based access control (RBAC)
  • Organization-level data isolation

Transaction Processing

  • Atomic operations for multi-step transactions
  • Optimistic locking for inventory management
  • Event sourcing for audit trail

Frontend Architecture

React frontend with complex state management:

Multi-View Filtering

  • Saved filter presets per user
  • Real-time inventory availability
  • Bulk operations support

Responsive Dashboard

  • Key metrics visualization
  • Transaction timeline
  • Compliance status indicators

Technical Highlights

Performance Optimization

  • Query optimization reducing average response time by 60%
  • Pagination and lazy loading for large datasets
  • Connection pooling for database efficiency

Developer Experience

  • TypeScript throughout the stack
  • Generated API documentation
  • Comprehensive integration test suite

Results

The rebuilt platform successfully supports:

  • Active trading operations across multiple countries
  • Thousands of transactions processed monthly
  • Full regulatory audit capabilities
  • Sub-second response times for complex queries

This project demonstrates full-stack architectural thinking, complex relational database design, and building systems that operate in heavily regulated industries.