> For the complete documentation index, see [llms.txt](https://leveracc.gitbook.io/leveracc-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leveracc.gitbook.io/leveracc-docs/basics/interactive-blocks.md).

# Multi-Mode Trading Architecture

## 1. Trading Mode Differentiation

**Perpetual Contracts: Hyper-Leveraged Trading**

<figure><img src="/files/WVIlK4grLC0RQuuotGR8" alt=""><figcaption></figcaption></figure>

**Key Characteristics**:

* Leverage Acceleration: Combines pre-funding with native exchange leverage
* Execution Model: Hybrid architecture with HyperLiquid order matching
* Risk Management: Embedded stop-loss orders in HyperCore layer
* Capital Efficiency: 85-92% utilization through pre-positioning
* Max Exposure: 200x+ effective leverage (40x native × 5x pre-funding)

**Workflow**:

1. Trader deposits collateral (e.g., 1,000 USDC)
2. System provides pre-funded capital (4,000 USDC)
3. Combined collateral deployed on HyperLiquid
4. Trader executes at 40x exchange leverage → 200x effective exposure
5. Dynamic stops protect loan principal
6. Position closed via HyperLiquid's native engine

**Spot Trading: Decentralized Leverage**

<figure><img src="/files/4SGdYjTTUIqXP83pUAPy" alt=""><figcaption></figcaption></figure>

**Key Characteristics**:

* Leverage Range: Conservative 2-5x amplification
* Execution Model: Pure smart contract settlement
* Liquidation: Incentivized liquidator marketplace
* Transparency: All operations on HyperEVM
* Security: Non-custodial asset handling

**Workflow**:

1. Trader deposits collateral to smart contract
2. Protocol lends additional assets (up to 5x)
3. Trade executed through decentralized liquidity pools
4. Position monitored for collateral health
5. If under collateralized: Liquidator auction triggered
6. Loan automatically repaid to vault

## 2. Trading Entry Points

### **DApp: Comprehensive Trading Hub**

<figure><img src="/files/p1hBpRGd4Xa1z8PieS64" alt=""><figcaption></figcaption></figure>

**Features**:

* Unified Account Management: View all sub-accounts in single interface
* Leverage Optimizer: Calculate ideal pre-funding ratios
* Live Position Monitoring: Track stop-loss thresholds in real-time
* Historical Analytics: Review trade performance metrics
* Integrated Wallet: Single-signature transaction approval
* Cross-Market View: Simultaneous spot and perpetual monitoring

### **Telegram Bot: Mobile-Optimized Trading**

<figure><img src="/files/OgkjTog7K1N41oFJwJoD" alt=""><figcaption></figcaption></figure>

**Key Features**:

* Instant Access: Trade from any mobile device
* Simplified Commands: Natural language processing
* Position Notifications: Real-time alerts
* Portfolio Snapshot: /balance command
* Liquidation Warnings: Proactive risk alerts
* One-Click Closing: /close\_position \[ID]

**Command Structure**:

| Command  | Function           | Example                 |
| -------- | ------------------ | ----------------------- |
| /trade   | Open new position  | /trade ETH 5x 500       |
| /close   | Exit position      | /close 0x3a7d           |
| /fund    | Deposit assets     | /fund 1000 USDC         |
| /balance | Portfolio summary  | /balance                |
| /stops   | Manage protections | /stops adjust 0x3a7d 3% |
| /help    | Support menu       | /help leverage          |

## 3. System-Wide Integration

**Unified Security Framework**

<div data-full-width="true"><figure><img src="/files/9iXxdaUrWeh9qcEwkLtM" alt=""><figcaption></figcaption></figure></div>

**Shared Components**:

* Identity Verification: MPC-based authentication
* Risk Parameters: Unified β coefficient models
* Liquidation Protocols: Cross-platform alerting
* API Wallet Management: Automatic rotation
* Transaction Signing: Standardized security checks

**Performance Benchmarks**

| Metric          | Perpetual Mode | Spot Mode     | DApp         | Telegram Bot   |
| --------------- | -------------- | ------------- | ------------ | -------------- |
| Order Execution | <100ms         | 500-2000ms    | 80ms         | 120ms          |
| Leverage Range  | 10-200x        | 2-5x          | Full range   | Limited to 50x |
| Asset Coverage  | 50+ pairs      | 20+ pairs     | All assets   | Major pairs    |
| Risk Controls   | Advanced       | Basic         | Full suite   | Core only      |
| User Activity   | 65% of volume  | 35% of volume | 70% of users | 30% of users   |

#### Architecture Advantages

1. **Mode-Optimized Execution**
   * Perpetuals: Maximize leverage through exchange integration
   * Spot: Prioritize decentralization via smart contracts
2. **Access Flexibility**
   * DApp: Comprehensive tools for professional traders
   * Telegram: Instant access for retail/mobile users
3. **Shared Security Core**
   * Unified MPC authentication
   * Consistent risk parameters
   * Cross-platform position monitoring
4. **Capital Efficiency**
   * Single collateral pool serves all modes
   * Liquidity shared across trading types
   * Unified point system rewards all activity

This multi-architecture approach creates a complete trading ecosystem: professionals access ultra-high leverage through the DApp's sophisticated interface, while retail traders enjoy simple mobile access via Telegram. Both leverage the same security foundation and capital pool, creating network effects that enhance liquidity and efficiency across all trading modes.
