Skip to main content

FinTech Platforms · StoxBox · 2021

StoxBox – Elevating Trading with Advanced Technology & AWS Solutions

StoxBox transformed its trading platform with AI recommendations, real-time analytics, cross-platform Flutter development, and scalable AWS infrastructure.

StoxBox worked with Texple to modernize its trading platform: AI stock recommendations, real-time analytics, Flutter apps, and scalable AWS infrastructure.

Client
StoxBox
Services
AI Consulting, Cloud & Infrastructure, Web Development, Mobile Development
+35%
Recommendation accuracy
-40%
App load time
99.9%
Platform uptime

Project snapshot

Industry
FinTech Platforms
Year
2021
Services

AI Consulting

Cloud & Infrastructure

Web Development

Mobile Development

Technology stack
Flutter logoFlutterAWS logoAWS ServicesAI/ML

The challenge

StoxBox needed a modern trading platform that could provide intelligent stock recommendations, real-time analytics, cross-platform access, strong security, and scalable performance during periods of high trading activity.

Intelligent Stock Recommendations

StoxBox needed an AI-driven mechanism capable of analyzing market information and user-related data to generate more relevant stock recommendations. The objective was to provide users with actionable insights rather than relying only on conventional market information.

Real-Time User Analytics

The platform required better visibility into user actions, preferences, and trading behavior. Real-time event tracking was needed to support analytics and enable more personalized experiences.

Cross-Platform Experience

StoxBox required consistent experiences across mobile and web platforms. Maintaining separate implementations would increase development and maintenance complexity, creating a need for a unified cross-platform approach.

Security and Compliance

The platform handled sensitive user and financial information, requiring strong authentication, encryption, application protection, and security controls appropriate for a financial technology environment.

Scalability and Performance

Trading activity can fluctuate significantly with market conditions. The platform therefore needed infrastructure capable of handling concurrent users, real-time updates, and periods of increased demand without creating performance bottlenecks.

The solution

Texple built a scalable trading application using Flutter for the application layer and AWS services for infrastructure, analytics, security and scalability.

AI-Powered Stock Recommendations

The solution incorporated machine-learning capabilities to analyze market trends and generate stock recommendations. AWS SageMaker was used as part of the AI/ML architecture, incorporating historical trends, user trading behavior, market conditions, and risk-related information to provide more contextual insights.

Real-Time User Tracking

AWS Kinesis and AWS Lambda were incorporated for real-time event processing and user activity tracking. The architecture enabled the platform to capture interactions and trading-related behaviors, making the resulting data available for analytics and personalized experiences.

Cross-Platform Development with Flutter

Flutter was used to create a shared application experience across iOS, Android, and web. The approach provided a consistent interface while reducing the need to maintain completely separate application implementations, and was integrated with trading APIs to support real-time market information.

Security Architecture

The platform incorporated multiple security mechanisms, including multi-factor authentication, biometric authentication, end-to-end encryption, AWS WAF, AWS Shield, fraud-detection mechanisms, and secure API access, designed to protect user information, transactions, and application endpoints.

Scalable AWS Infrastructure

AWS Auto Scaling and Amazon ECS were used to support dynamic resource allocation based on application demand. Amazon RDS with PostgreSQL provided structured data storage, Amazon S3 was used for secure document and log storage, and Amazon CloudFront and API Gateway supported application delivery and API performance.

The impact

Texple delivered a cross-platform, AI-enabled trading application supported by AWS cloud infrastructure, real-time analytics, enhanced authentication, automated scaling, and enterprise-grade security capabilities.

AI-Assisted Recommendations

AI-assisted stock recommendations based on market and user-related data, giving users more contextual insight than conventional market information alone.

Real-Time Activity Tracking

Real-time tracking of user activity and interactions, making trading behavior available for analytics and personalization.

Consistent Cross-Platform Experience

A consistent Flutter-based experience across mobile and web, replacing what would otherwise be separate application implementations.

Scalable Cloud Infrastructure

Scalable cloud infrastructure capable of adapting to changing demand during periods of high trading activity.

Enhanced Security

Enhanced authentication and application security mechanisms, including multi-factor authentication, encryption, and AWS WAF/Shield protection.

Automated CI/CD

Automated CI/CD processes for application deployment and updates, reducing manual effort in shipping platform changes.

Growth-Ready Architecture

A cloud architecture designed to support continued platform growth as StoxBox's user base and trading volume increase.

How it is built

Architecture

Users on the Flutter app reach .NET Core and Node.js services on Amazon ECS through CloudFront and API Gateway, protected by AWS WAF and Shield. Kinesis and Lambda stream user activity, SageMaker generates recommendations, and data sits in RDS PostgreSQL and S3.

  1. Client apps

    • FlutterShared app across iOS, Android and web, integrated with trading APIs
  2. Edge, API & security

    • Amazon CloudFrontApplication delivery
    • Amazon API GatewaySecure, performant API access
    • AWS WAFProtects application endpoints
    • AWS ShieldProtection against infrastructure-level threats
  3. Services & compute

    • .NET Core & Node.jsBackend API services
    • Amazon ECSRuns the application services
    • AWS Auto ScalingAllocates resources dynamically with trading demand
  4. Real-time events & AI

    • AWS KinesisStreams user activity and trading-related events
    • AWS LambdaProcesses events in real time for analytics
    • AWS SageMakerGenerates AI-based stock recommendations
  5. Data

    • Amazon RDS PostgreSQLStructured data storage
    • Amazon S3Secure document and log storage
  6. Delivery

    • GitLab CI/CDAutomated deployment of application updates

Under the hood

Implementation highlights

Illustrative snippets showing the pattern used — not the client's production code.

Processing user-activity events from Kinesis

A Lambda consuming a Kinesis stream of in-app user events, tallying them by type and landing each batch in S3 so it is available for analytics and personalisation.

python
import base64
import json
import os
from collections import Counter
from datetime import datetime, timezone

import boto3

s3 = boto3.client("s3")

def handler(event, context):
    counts = Counter()
    lines = []
    for record in event["Records"]:
        activity = json.loads(base64.b64decode(record["kinesis"]["data"]))
        counts[activity["event_type"]] += 1
        lines.append(json.dumps(activity))

    stamp = datetime.now(timezone.utc).strftime("%Y/%m/%d/%H%M%S")
    key = f"activity/{stamp}-{context.aws_request_id}.jsonl"
    s3.put_object(
        Bucket=os.environ["ACTIVITY_BUCKET"],
        Key=key,
        Body="\n".join(lines).encode("utf-8"),
    )
    return {"processed": len(lines), "by_type": dict(counts)}
Yuvraj Thakkar, Managing Director, BP wealth

Yuvraj Thakkar

Managing Director, BP wealth

Texple team has been invaluable in the development of technology for our new model stoxbox. Their professional and organised approach, agile thinking, ownership of project and most importantly their unwavering commitment to quality has been the biggest enabler for us to launch our platform in record time, they have built the entire platform using micro-services approach and with 99.9% up time. I am very happy with the services and they continue to be our primary technology partner.

Talk to the team that built this

Have a project in mind?

Let's build something impactful together.