Market Depth Generator

A robust simulation engine for market depth, trades, and candlesticks— trusted by developers and analysts to power next-gen trading experiences.

Explore Features

Trusted by Leading Platforms

From crypto exchanges to quant funds, our library is a favorite among industry leaders.

Why Choose Market Depth Generator?

Empower your trading platform with lightning-fast, realistic simulations. From rapid prototyping to production-ready apps, our library is carefully engineered to give you complete control over market scenarios.

Enterprise-Grade Reliability

Built with Redis caching and robust data structures, ensuring minimal downtime and high availability—no matter how big your user base gets.

Highly Customizable

Tweak middle prices, intervals, volumes, and more. Perfect for simulating everything from crypto assets to traditional equities.

Built for Performance

Scalable architecture easily handles multiple symbols with real-time trade data and candlestick updates over WebSockets.

Developer Friendly

Simple APIs, active community support, and comprehensive documentation to get you started in minutes.

Key Features

Customize your simulations, seamlessly integrate with Redis, and broadcast real-time data for an unmatched trading experience.

Simulate Market Depth

Generate dynamic buy/sell orders for crypto or any financial markets. Perfect for stress-testing new features and analyzing liquidity.

Generate OHLC Candlesticks

Configure intervals and track open, high, low, close values in real-time. Ideal for charting and analytical dashboards.

WebSocket Integration

Broadcast market depth and trade stats to multiple clients concurrently for true real-time experiences.

Redis Support

Cache candlestick data and stats for efficient real-time performance, even at scale.

Multi-Symbol Support

Simulate trading pairs like BTCUSD, ETHUSD, and beyond—adaptable to any market scenario.

Fully Customizable

Developer-friendly configuration for adjusting pricing models, intervals, volumes, and more.

Ready to Elevate Your Trading Simulations?

Visit our npm package page to download, explore documentation, and get started in just a few clicks.

Go to npm Package

Pricing

Choose from flexible plans tailored to your project size and complexity.

Free

Ideal for personal projects and small-scale testing.

$0

• Single-symbol simulation
• Community support

Get Started

Pro

Advanced simulation for multiple symbols with Redis integration and priority support.

$19/mo

• Up to 10 symbols
• Priority email support

Start Pro

Enterprise

Best for mission-critical applications needing unlimited symbols, dedicated support, and custom SLAs.

Custom

• Unlimited symbols
• Phone & Slack support

Contact Us

How to Use

Quickly integrate into any Node.js project. Scale on-demand, and build advanced trading simulations in minutes.

1. Installation

Install via npm: npm install market-depth-generator

2. Basic Setup

    const MarketDepthGenerator = require("market-depth-generator");
    const generator = new MarketDepthGenerator({
      redisHost: "127.0.0.1",
      redisPort: 6379,
      symbols: ["BTCUSD", "ETHUSD"],
      middlePrice: 305.12,
    });
    
    (async () => {
      await generator.init();
      // Start your simulation
      setInterval(() => {
        generator.simulateTrade("BTCUSDT");
      }, 1000);
    })();
          

3. Connect WebSocket

Create a WebSocket server to broadcast real-time depth, stats, and candlestick data. Serve multiple clients seamlessly.

Contact Us

Have questions? We’re here to help you succeed.

Send us a Message

Reach Out Directly

Email: monupareeklg@gmail.com

GitHub: monupareeklg

License: MIT

Downloads: See npm statistics for more info

We appreciate contributions! Fork our repo and submit a pull request.