> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/dhir1007/nanoARB/llms.txt
> Use this file to discover all available pages before exploring further.

# NanoARB Documentation

> Build high-frequency trading strategies with sub-microsecond latency

<div className="relative py-20 overflow-hidden bg-gradient-to-br from-[#1a1d27] via-[#0f1117] to-[#1a1d27] dark:from-[#1a1d27] dark:via-[#0f1117] dark:to-[#1a1d27]">
  <div className="absolute inset-0 bg-[radial-gradient(circle_at_top_right,#FF6B35_0%,transparent_50%)] opacity-10" />

  <div className="absolute inset-0 bg-[radial-gradient(circle_at_bottom_left,#FFA726_0%,transparent_50%)] opacity-10" />

  <div className="relative max-w-6xl mx-auto px-6 sm:px-8 lg:px-12">
    <div className="text-center">
      <h1 className="text-5xl sm:text-6xl lg:text-7xl font-bold text-white mb-6">
        NanoARB
      </h1>

      <p className="text-xl sm:text-2xl text-gray-300 dark:text-gray-300 mb-4 max-w-3xl mx-auto">
        Nanosecond-level high-frequency trading framework for CME futures markets
      </p>

      <p className="text-base sm:text-lg text-gray-400 dark:text-gray-400 mb-10 max-w-2xl mx-auto">
        Build production-grade trading strategies in Rust with sub-microsecond inference latency, ML-powered signals, and realistic backtesting.
      </p>

      <div className="flex flex-wrap gap-4 justify-center">
        <a href="/quickstart" className="inline-flex items-center gap-2 px-8 py-3.5 rounded-lg bg-[#FF6B35] hover:bg-[#D84315] text-white font-semibold transition-colors no-underline">
          Get started

          <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
          </svg>
        </a>

        <a href="/architecture/overview" className="inline-flex items-center gap-2 px-8 py-3.5 rounded-lg border border-gray-600 dark:border-gray-600 bg-white/5 dark:bg-white/5 hover:bg-white/10 dark:hover:bg-white/10 text-white font-semibold transition-colors no-underline">
          Architecture

          <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 7l5 5m0 0l-5 5m5-5H6" />
          </svg>
        </a>
      </div>
    </div>
  </div>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <div className="grid grid-cols-1 md:grid-cols-3 gap-6 mb-20">
    <div className="p-6 rounded-xl border border-gray-200 dark:border-[#27272a] bg-white dark:bg-[#1a1d27]">
      <div className="w-12 h-12 rounded-lg bg-[#FF6B35]/10 dark:bg-[#FF6B35]/10 flex items-center justify-center mb-4">
        <svg className="w-6 h-6 text-[#FF6B35]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
        </svg>
      </div>

      <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">Sub-microsecond latency</h3>

      <p className="text-sm text-gray-600 dark:text-gray-400">
        Achieve \<800ns tick-to-trade latency with production Rust codebase and zero Python at runtime.
      </p>
    </div>

    <div className="p-6 rounded-xl border border-gray-200 dark:border-[#27272a] bg-white dark:bg-[#1a1d27]">
      <div className="w-12 h-12 rounded-lg bg-[#FF6B35]/10 dark:bg-[#FF6B35]/10 flex items-center justify-center mb-4">
        <svg className="w-6 h-6 text-[#FF6B35]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" />
        </svg>
      </div>

      <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">ML-powered strategies</h3>

      <p className="text-sm text-gray-600 dark:text-gray-400">
        Mamba State Space Models 10-50x faster than Transformers with RL-based market making.
      </p>
    </div>

    <div className="p-6 rounded-xl border border-gray-200 dark:border-[#27272a] bg-white dark:bg-[#1a1d27]">
      <div className="w-12 h-12 rounded-lg bg-[#FF6B35]/10 dark:bg-[#FF6B35]/10 flex items-center justify-center mb-4">
        <svg className="w-6 h-6 text-[#FF6B35]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
        </svg>
      </div>

      <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">Realistic backtesting</h3>

      <p className="text-sm text-gray-600 dark:text-gray-400">
        Event-driven engine with latency simulation, queue position modeling, and adverse selection.
      </p>
    </div>
  </div>

  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Get started</h2>

  <p className="text-base text-gray-600 dark:text-gray-400 mb-8">
    Follow these steps to build and run your first trading strategy with NanoARB.
  </p>

  <Steps>
    <Step title="Install Rust and dependencies">
      NanoARB requires Rust 1.75+ and optionally Node.js for the dashboard UI.

      ```bash theme={null}
      # Install Rust
      curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

      # Clone the repository
      git clone https://github.com/dhir1007/nanoARB.git
      cd nanoARB
      ```
    </Step>

    <Step title="Build and run the engine">
      Use the provided start script to build the Rust engine and launch the dashboard.

      ```bash theme={null}
      # Build and start everything
      ./start.sh
      ```

      This starts the trading engine at `http://localhost:9090` and the dashboard at `http://localhost:3000`.
    </Step>

    <Step title="Run your first backtest">
      Execute a backtest with synthetic market data to validate your setup.

      ```bash theme={null}
      # Run backtest via CLI
      cargo run --release --bin nanoarb -- --backtest

      # Or via API
      curl -X POST http://localhost:9090/api/backtest \
        -H "Content-Type: application/json" \
        -d '{"symbol":"ES","initialCapital":1000000,"useML":true}'
      ```

      <Accordion title="Example backtest results">
        ```json theme={null}
        {
          "total_pnl": 42850.75,
          "sharpe_ratio": 4.8,
          "max_drawdown_pct": 5.2,
          "win_rate": 0.543,
          "total_trades": 48231
        }
        ```
      </Accordion>
    </Step>
  </Steps>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Explore the framework</h2>

  <p className="text-base text-gray-600 dark:text-gray-400 mb-8">
    Learn about NanoARB's modular architecture and core concepts.
  </p>

  <CardGroup cols={2}>
    <Card title="Architecture overview" icon="sitemap" href="/architecture/overview">
      Understand the event-driven architecture and crate structure
    </Card>

    <Card title="Order books" icon="book" href="/concepts/order-books">
      Learn how NanoARB maintains and updates 20-level order books
    </Card>

    <Card title="Building strategies" icon="flask" href="/strategies/strategy-trait">
      Implement custom trading strategies using the Strategy trait
    </Card>

    <Card title="Feature extraction" icon="chart-line" href="/data/feature-extraction">
      Extract market microstructure features for ML models
    </Card>
  </CardGroup>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">API reference</h2>

  <p className="text-base text-gray-600 dark:text-gray-400 mb-8">
    Comprehensive documentation of NanoARB's public API surface.
  </p>

  <CardGroup cols={3}>
    <Card title="Core types" icon="cube" href="/api/core/types">
      Price, Quantity, Side, Timestamp, and OrderId types
    </Card>

    <Card title="Strategy API" icon="robot" href="/api/strategy/base">
      Strategy trait and market maker implementations
    </Card>

    <Card title="Backtest engine" icon="gears" href="/api/backtest/engine">
      Event-driven backtesting with realistic fill simulation
    </Card>

    <Card title="Order book API" icon="layer-group" href="/api/lob/orderbook">
      OrderBook construction and update methods
    </Card>

    <Card title="Configuration" icon="sliders" href="/api/config/trading">
      Trading, risk, and latency configuration options
    </Card>

    <Card title="Features" icon="waveform-lines" href="/api/lob/features">
      Microprice, OFI, VPIN, and imbalance calculations
    </Card>
  </CardGroup>
</div>

<div className="mt-20 mb-16 max-w-5xl mx-auto px-6">
  <div className="rounded-2xl border border-gray-200 dark:border-[#27272a] bg-gradient-to-br from-[#FF6B35]/5 to-[#FFA726]/5 dark:from-[#FF6B35]/5 dark:to-[#FFA726]/5 p-8 sm:p-12 text-center">
    <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">
      Ready to build?
    </h2>

    <p className="text-base text-gray-600 dark:text-gray-400 mb-8 max-w-2xl mx-auto">
      Start developing high-frequency trading strategies with NanoARB's production-grade framework.
    </p>

    <a href="/quickstart" className="inline-flex items-center gap-2 px-8 py-3.5 rounded-lg bg-[#FF6B35] hover:bg-[#D84315] text-white font-semibold transition-colors no-underline">
      Get started now

      <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
      </svg>
    </a>
  </div>
</div>
