Business Client need Mobile App Development
Contact person: Business Client
Phone:Show
Email:Show
Location: Bengaluru, India
Budget: Recommended by industry experts
Time to start: As soon as possible
Project description:
"Project: GMP-X (Grey Market Exchange)
Project Version: 1.0
Status: Internal Specification Document
1. Executive Summary
Project GMP-X is a specification for a high-frequency, commission-free* trading platform designed to formalize and capture the high-volume Indian IPO Grey Market.
Currently, this market is fragmented across unofficial channels (e.g., WhatsApp, dealers), operating on a high-risk, trust-based, and inefficient cash-settled system. GMP-X solves this by creating a centralized, secure, and liquid digital platform.
The core of the platform is a sophisticated Market Maker ("House") model. GMP-X acts as the principal for every trade, quoting a live, two-way (Buy/Sell) market for cash-settled contracts based on an IPO's Grey Market Premium (GMP). Profit is generated from the bid-ask spread and a dynamic, risk-based pricing algorithm.
The system is designed to be foolproof by completely eliminating counterparty risk through a pre-trade, Value-at-Risk (VaR) margin system. All trades are 100% collateralized, and all contracts are cash-settled at the official IPO listing, ensuring the integrity of the platform.
This document details the complete architecture, from user onboarding and wallet management to the core data, risk, and trading engines required for a real-world, scalable, and profitable operation.
2. Core Concept & Business Model
2.1. The Problem
High Risk: The current market runs on "trust." There is no recourse if a counterparty defaults on a trade after a volatile listing.
No Liquidity: Finding a buyer or seller at a fair price is a manual, high-friction process.
No Transparency: Prices are scattered, opaque, and cannot be tracked. There are no professional tools (charts, P&L trackers).
High Friction: Onboarding, fund management, and trade settlement are all manual and slow.
2.2. The Solution: GMP-X
GMP-X is a secure, mobile-first, and desktop-capable trading application that provides:
A Centralized Market: We are the market. Users trade directly with the house.
Guaranteed Security: We eliminate counterparty risk by acting as the central counterparty and enforcing a strict margin-to-trade system.
Total Transparency: Users have access to a professional trading terminal with live GMP charts, real-time P&L, and a full trade history.
2.3. The Business Model (Market Maker)
GMP-X operates as a Market Maker (Principal), not a broker (Agent). This is the key to our profitability and risk management.
Profit Source 1: The Spread: The platform quotes a two-way price.
Example: If the 'true' Base GMP (sourced from live APIs) is ₹18, the platform will algorithmically quote:
House Bid (You Sell): ₹15
House Ask (You Buy): ₹21
The ₹6 difference is the platform's gross profit, captured by buying low and selling high.
Profit Source 2: Brokerage: A small, flat brokerage fee (e.g., ₹20) is charged on every executed trade, regardless of size, adding a consistent revenue stream.
Risk Model: The platform holds all the inventory risk. This risk is actively managed by the Inventory Risk Engine (see Section 3.2.2).
3. Core System Architecture
The platform is comprised of three core systems, all powered by a real-time database backend (e.g., Firebase/Firestore) for instantaneous updates.
3.1. System 1: User & Wallet Management
This system handles user onboarding and fund management, identical to a modern discount broker.
User Onboarding:
Secure Email/Password or Phone OTP-based sign-up (Firebase Auth).
Mandatory e-KYC integration (e.g., with DigiLocker/Aadhaar APIs) to verify user identity for real-world compliance.
Wallet:
Each user has a private, secure wallet in the database (/users/{userId}/wallet).
The wallet is segregated into Available Cash and Locked Margin.
Funding:
Deposits: Users fund their wallet via a payment gateway integration (e.g., Razorpay, PayU) supporting UPI, NEFT, and RTGS.
Withdrawals: Users can request withdrawals of their "Available Cash" to their verified bank account.
3.2. System 2: The Data & Risk Engine (The "House Logic")
This is the platform's secret sauce, which runs server-side (or in a secure, real-time database environment).
2.1: The Live Data Feed (API Integration):
The platform subscribes to a real-time IPO data provider (e.g., [login to view URL]).
It pulls data for all open and upcoming IPOs.
This API provides the "Base GMP" or "true" market price, which is the reference for our own pricing.
2.2: The Market Maker (Dynamic Pricing Engine):
This system calculates the final House Bid and House Ask prices that are shown to the user.
Formula: House Price = Base GMP ± (Base Spread / 2) ± (Inventory Skew)
Inventory Skew (The Risk Engine): This is the automatic risk-management algorithm. The platform constantly tracks its net inventory (Total Sells - Total Buys) for each IPO.
Scenario: The house has a large net LONG position (e.g., +50,000 shares) because too many users have sold to the platform.
Action: The algorithm skews the price downwards—lowering both the Bid and Ask—to make selling less attractive and buying more attractive, encouraging users to take the inventory off the house's books.
Scenario: The house has a large net SHORT position (e.g., -50,000 shares).
Action: The algorithm skews the price upwards, raising the Bid and Ask to encourage users to sell to the house.
2.3: The Charting Engine:
Every time the Base GMP fluctuates, the system writes the new price and a timestamp to a sub-collection for that IPO (/ipos/{ipoId}/history).
This creates a permanent, queryable price history, which is fed directly to the user's charts.
3.3. System 3: The Trade Execution & Settlement Engine
This system handles the user's trades and ensures no counterparty risk.
3.1: The Dynamic Margin Engine (The "Foolproof" System):
This is a pre-trade check. A trade is REJECTED unless the user's Available Cash > Required Margin.
Margin for BUYERS: The margin is the full value of the contract.
Margin = (House Ask Price * Quantity) + Brokerage Fee
Margin for SELLERS (VaR Model): The margin is the maximum potential loss based on a stress test.
Max Potential Loss = (Stress Test Price - House Bid Price) * Quantity
Stress Test Price = (IPO Issue Price * 1.30) (i.e., a 30% upside move)
Margin = Max Potential Loss + Brokerage Fee
3.2: Trade Execution:
On a successful margin check, a writeBatch executes:
Wallet: Available Cash is debited, and Locked Margin is credited with the exact margin amount.
Positions: A new trade document is created in the user's positions collection.
House Inventory: The platform's houseNetPosition for that IPO is updated.
3.3: Settlement Engine:
On listing day (e.g., 10:00 AM), a (simulated) admin function triggers the "Settle Market" event.
A "Final Settlement Price" is set (e.g., the official listing price).
The system iterates through every user's open positions:
Calculates the P&L (P&L = (Settlement Price - Entry Price) * Quantity).
Releases the Locked Margin and adds the P&L to the user's Available Cash.
Deletes the position.
Resets the house inventory to zero.
4. User Experience (UX) & App Flow
The UI will be clean, data-dense, and professional, mirroring modern fintech applications.
1. Login/Signup: A clean, secure, high-contrast page for authentication.
2. Dashboard (Home Screen):
Portfolio Summary: A clear visual of Total Funds, Invested Value, Available Cash, and Total Unrealized P&L.
Market Movers: A watchlist of the top 3 gaining and top 3 losing IPO GMPs.
3. Marketwatch (Market Page):
A real-time, tabular list of all active IPOs.
Columns: IPO Name, GMP (Base Price), Change (₹), Change (%), House Bid, House Ask.
This page is the main navigation hub. Clicking any IPO takes the user to the Trade Page.
4. Trade Page (IPO Detail):
Live Chart: A large, interactive [login to view URL] canvas showing the historical price data for the selected IPO. Users can select timeframes (e.g., 1D, 5D).
Order Entry Panel: A professional panel to place trades.
Buy/Sell Toggle: Clear, high-contrast buttons.
Inputs: Quantity.
Live Data: Shows Issue Price, Lot Size, Est. Margin, and Brokerage Fee before trading.
Market Depth (Simulated): A visual-only panel showing 5 levels of bids and asks to build user confidence and create a professional feel.
5. Positions Page:
A tabular list of all the user's open positions.
Columns: IPO Name, Type (Buy/Sell), Qty, Avg. Entry Price, Current Market Price, and live-updating Unrealized P&L.
6. Funds Page:
Clear buttons to "Add Funds" (opens payment gateway) and "Withdraw Funds" (opens withdrawal request form)." (client-provided description)
Matched companies (5)

April Innovations

JanakiBhuvi Tech Labs Private Limited

Appsdiary Technologies

Codetreasure Co
