About MAGIC-FI

MAGIC-FI is a comprehensive DeFi ecosystem built for the next generation of financial infrastructure. Our platform combines high-performance trading, yield optimization, and innovative financial products into a unified, user-friendly experience.

High Performance
Ultra-fast transactions with sub-second finality and minimal fees
Maximum Security
Multi-layered security with audited smart contracts and insurance coverage
Cross-Chain
Seamless integration across multiple blockchain networks
Advanced Trading
Professional-grade tools for spot, futures, and options trading

Platform Statistics

$2.1B+
Total Value Locked
500K+
Active Users
99.9%
Uptime
50ms
Average Latency

Technical Architecture

MAGIC-FI is built on a high-performance blockchain optimized for financial applications. Our architecture consists of two main components:

MagicCore: The heart of our platform, featuring native order books, perpetual futures, and spot trading with 200k+ orders per second capability.

MagicEVM: Ethereum-compatible smart contract execution environment for building custom DeFi applications.

Trade

MAGIC-FI offers a comprehensive trading platform with support for spot, perpetual futures, and options across multiple asset classes.

Trading Features

Spot Trading
Trade digital assets with deep liquidity and tight spreads
Perpetual Futures
Trade with up to 100x leverage on major crypto assets
Options Trading
Advanced derivatives for sophisticated trading strategies
Advanced Orders
Stop-loss, take-profit, and conditional orders

Order Types

Order Type Description Use Case
Market Execute immediately at current market price Quick entry/exit
Limit Execute at specific price or better Price-specific trades
Stop Loss Trigger market order when price hits threshold Risk management
Take Profit Close position when profit target reached Profit taking
Conditional Execute based on external conditions Advanced strategies

Trading Interface

Our trading interface provides professional-grade tools for both retail and institutional traders:

  • Real-time order book with market depth visualization
  • Advanced charting with 100+ technical indicators
  • One-click trading and position management
  • Portfolio analytics and P&L tracking
  • API access for algorithmic trading
// Example: Place a limit order
const order = await client.placeOrder({
  symbol: 'BTC-PERP',
  side: 'buy',
  type: 'limit',
  quantity: 1.0,
  price: 45000,
  timeInForce: 'GTC'
});

console.log('Order placed:', order.id);

Vaults

MAGIC-FI Vaults provide automated yield optimization strategies managed by experienced professionals and algorithmic systems.

Vault Categories

Conservative Vaults
Low-risk strategies focusing on stable yields (5-12% APY)
Balanced Vaults
Medium-risk strategies with moderate returns (10-25% APY)
Aggressive Vaults
High-risk strategies targeting maximum yields (20-50% APY)
AI-Powered Vaults
Machine learning algorithms for dynamic strategy optimization

Popular Vault Strategies

Strategy Type Expected APY Risk Level Min. Deposit
Stable Yield Lending + Staking 8-12% Low $100
Delta Neutral Arbitrage 12-18% Low-Medium $1,000
Momentum Trading Systematic Trading 15-30% Medium-High $5,000
Volatility Capture Options Strategies 20-40% High $10,000

How Vaults Work

MAGIC-FI Vaults operate through a sophisticated architecture:

  1. Deposit: Users deposit assets into selected vaults
  2. Strategy Execution: Vault managers deploy capital across various DeFi protocols
  3. Yield Generation: Strategies generate returns through trading, lending, staking, and arbitrage
  4. Compounding: Profits are automatically reinvested to maximize compound returns
  5. Withdrawal: Users can withdraw funds with minimal delay

Risk Warning: All vault strategies carry risk. Past performance does not guarantee future results.

Portfolio

The MAGIC-FI portfolio dashboard provides comprehensive analytics and management tools for tracking your investments across all platform features.

Portfolio Features

Real-time Analytics
Live P&L tracking across all positions and investments
Risk Management
Portfolio risk metrics and exposure analysis
Performance Reports
Detailed performance analytics and historical data
Auto-Rebalancing
Automated portfolio rebalancing based on your preferences

Portfolio Metrics

Metric Description Calculation
Total Value Combined value of all assets Sum of all positions at current prices
Unrealized P&L Paper profits/losses on open positions Current value - Entry value
Realized P&L Actual profits/losses from closed positions Exit value - Entry value
Sharpe Ratio Risk-adjusted return measure (Return - Risk-free rate) / Volatility

Staking

Earn passive income by staking your assets on MAGIC-FI. Our staking platform supports multiple assets with competitive rewards and flexible terms.

Staking Options

Native Staking
Stake MAGIC tokens for governance and rewards (12-18% APY)
Liquid Staking
Stake while maintaining liquidity through derivative tokens
Validator Staking
Run or delegate to validators for network security
Flexible Staking
Unstake anytime with no lockup period (lower rewards)

Staking Tiers

Tier Min. Amount Lock Period APY Benefits
Bronze 100 MAGIC No lock 8% Basic rewards
Silver 1,000 MAGIC 30 days 12% Fee discounts
Gold 10,000 MAGIC 90 days 16% Priority support
Platinum 100,000 MAGIC 180 days 20% Governance voting

Quick Start Guide

Get started with MAGIC-FI in just a few minutes. Follow this step-by-step guide to begin trading and earning.

Getting Started

Connect Wallet
Connect your preferred Web3 wallet (MetaMask, WalletConnect, etc.)
Deposit Funds
Deposit USDC, ETH, or other supported assets
Start Trading
Place your first trade or invest in a vault
Track Performance
Monitor your portfolio and earnings

Prerequisites

  • Web3 wallet (MetaMask recommended)
  • Some ETH for gas fees
  • Supported assets (USDC, USDT, ETH, BTC, etc.)

First Deposit

// Connect wallet and deposit
const wallet = await client.connectWallet();
const deposit = await client.deposit({
  asset: 'USDC',
  amount: 1000
});

console.log('Deposit successful:', deposit.txHash);

Referrals

Earn rewards by referring new users to MAGIC-FI. Our referral program offers competitive commission rates and bonus incentives.

Referral Tiers

Tier Referrals Commission Rate Bonus Rewards Additional Benefits
Bronze 1-10 20% $50 per referral -
Silver 11-50 25% $75 per referral Monthly bonus pool
Gold 51-200 30% $100 per referral VIP support
Platinum 200+ 35% $150 per referral Custom terms

How It Works

Get Your Link
Generate your unique referral link from the dashboard
Share & Promote
Share with friends, social media, or your community
Users Sign Up
New users register and start trading through your link
Earn Commissions
Receive ongoing commissions from their trading fees

Leaderboard

Compete with top traders and earn recognition for your performance. Our leaderboard system tracks various metrics and offers exclusive rewards for top performers.

Leaderboard Categories

Top Traders
Ranked by total trading volume and P&L performance
Vault Leaders
Top performing vault managers and strategies
Referral Champions
Most successful referral partners by volume
Diamond Hands
Longest term holders and stakers

Current Top Traders

Rank Trader Volume (30d) P&L (30d) Win Rate Tier
🥇 1 0x1234...abcd $15.2M +$452K 78% Legendary
🥈 2 0x5678...efgh $12.8M +$389K 72% Diamond
🥉 3 0x9abc...ijkl $9.5M +$287K 69% Platinum
4 0xdef0...mnop $8.1M +$198K 65% Gold

Platform Statistics

Real-time metrics and analytics for the MAGIC-FI ecosystem. Track platform growth, trading activity, and network health.

Key Platform Metrics

$2.1B
Total Value Locked
500K+
Total Users
$45B
Total Volume (All Time)
$280M
Volume (24h)
125K
Transactions (24h)
2.3M
Total Transactions
99.9%
Network Uptime
45ms
Avg Block Time

Trading Statistics

Market 24h Volume 24h Change Open Interest Active Traders
BTC-PERP $125M +12.5% $45M 8,450
ETH-PERP $89M +8.2% $32M 6,230
SOL-PERP $34M +15.7% $12M 3,120

Points System

Earn MAGIC Points through various platform activities and redeem them for exclusive rewards and benefits.

How to Earn Points

Trading Activity
1 point per $100 trading volume
Staking Rewards
Bonus points for long-term staking
Referrals
500 points per successful referral
Vault Deposits
Points based on deposit amount and duration

Points Redemption

Reward Points Required Value Description
Trading Fee Discount 1,000 10% off One month trading fee reduction
MAGIC Tokens 5,000 50 MAGIC Direct token reward
Exclusive NFT 10,000 Limited Platform commemorative NFT
VIP Status 25,000 Premium Priority support and features

Python SDK

The MAGIC-FI Python SDK provides a powerful and easy-to-use interface for algorithmic trading, portfolio management, and data analysis.

Installation

# Install via pip
pip install magic-fi-sdk

# Install from source
git clone https://github.com/magic-fi/python-sdk.git
cd python-sdk
pip install -e .

Quick Start

from magic_fi import MagicFIClient

# Initialize client
client = MagicFIClient(
    api_key="your-api-key",
    secret="your-secret",
    testnet=False
)

# Get account info
account = client.get_account()
print(f"Account balance: {account.balance}")

# Place a limit order
order = client.place_order(
    symbol="BTC-PERP",
    side="buy",
    type="limit",
    quantity=0.1,
    price=45000
)
print(f"Order placed: {order.id}")

Core Classes

Class Description Main Methods
MagicFIClient Main client for API interactions place_order(), get_positions(), get_markets()
WebSocketClient Real-time data streaming subscribe(), unsubscribe(), on_message()
Portfolio Portfolio management and analytics get_pnl(), calculate_risk(), rebalance()
Strategy Base class for trading strategies on_tick(), on_order_update(), backtest()

WebSocket API

Real-time data streaming for market data, account updates, and trading events through WebSocket connections.

Connection

# WebSocket endpoint
wss://api.magic-fi.com/ws

# Authentication required for private channels
{
  "method": "auth",
  "params": {
    "apiKey": "your-api-key",
    "signature": "signed-message",
    "timestamp": 1640995200000
  }
}

Public Channels

Channel Description Example
orderbook Level 2 order book updates orderbook.BTC-PERP
trades Recent trade executions trades.ETH-PERP
ticker 24h ticker statistics ticker.SOL-PERP
candlestick OHLCV candlestick data candlestick.1m.BTC-PERP

JavaScript Example

const ws = new WebSocket('wss://api.magic-fi.com/ws');

ws.onopen = function() {
    // Subscribe to BTC-PERP order book
    ws.send(JSON.stringify({
        method: 'subscribe',
        params: ['orderbook.BTC-PERP']
    }));
};

ws.onmessage = function(event) {
    const data = JSON.parse(event.data);
    
    if (data.channel === 'orderbook.BTC-PERP') {
        console.log('Order book update:', data.data);
    }
};

Code Examples

Practical code examples for common trading scenarios and platform integrations.

Market Making Bot

import asyncio
from magic_fi import MagicFIClient, WebSocketClient

class MarketMaker:
    def __init__(self, api_key, secret):
        self.client = MagicFIClient(api_key, secret)
        self.ws = WebSocketClient(api_key, secret)
        self.spread = 0.001  # 0.1% spread
        
    async def run(self, symbol):
        # Subscribe to order book updates
        await self.ws.subscribe(f'orderbook.{symbol}', self.on_orderbook)
        
    async def on_orderbook(self, data):
        symbol = data['symbol']
        mid_price = (float(data['bids'][0][0]) + float(data['asks'][0][0])) / 2
        
        # Calculate bid/ask prices
        bid_price = mid_price * (1 - self.spread)
        ask_price = mid_price * (1 + self.spread)
        
        # Cancel existing orders
        await self.client.cancel_all_orders(symbol)
        
        # Place new orders
        await self.client.place_order(
            symbol=symbol,
            side='buy',
            type='limit',
            quantity=1.0,
            price=bid_price
        )

# Run the market maker
maker = MarketMaker('your-api-key', 'your-secret')
asyncio.run(maker.run('BTC-PERP'))

Portfolio Rebalancing

class PortfolioRebalancer:
    def __init__(self, client, target_weights):
        self.client = client
        self.target_weights = target_weights  # {'BTC-PERP': 0.6, 'ETH-PERP': 0.4}
        
    def rebalance(self):
        account = self.client.get_account()
        total_value = account['total_value']
        
        positions = self.client.get_positions()
        current_weights = {}
        
        # Calculate current weights
        for position in positions:
            symbol = position['symbol']
            value = position['notional_value']
            current_weights[symbol] = value / total_value
            
        # Calculate required trades
        for symbol, target_weight in self.target_weights.items():
            current_weight = current_weights.get(symbol, 0)
            weight_diff = target_weight - current_weight
            
            if abs(weight_diff) > 0.01:  # 1% threshold
                trade_value = total_value * weight_diff
                current_price = self.client.get_ticker(symbol)['price']
                quantity = trade_value / current_price
                
                side = 'buy' if quantity > 0 else 'sell'
                
                self.client.place_order(
                    symbol=symbol,
                    side=side,
                    type='market',
                    quantity=abs(quantity)
                )

# Rebalance portfolio
rebalancer = PortfolioRebalancer(client, {
    'BTC-PERP': 0.6,
    'ETH-PERP': 0.3,
    'SOL-PERP': 0.1
})

rebalancer.rebalance()

Risk Disclosure

Important: Trading cryptocurrency derivatives involves substantial risk of loss and is not suitable for all investors.

Market Risks

Risk Type Description Mitigation
Volatility Risk Cryptocurrency prices can be extremely volatile Position sizing, stop losses
Leverage Risk Amplified losses when using leverage Margin requirements, liquidation protection
Liquidity Risk Difficulty executing large orders during volatile periods Deep order books, market making incentives

Risk Management Recommendations

  1. Start Small: Begin with small position sizes
  2. Use Stop Losses: Set automatic stop-loss orders
  3. Diversify: Don't put all funds in a single position
  4. Monitor Positions: Regularly check account balance
  5. Understand Leverage: Only use leverage you understand

Bug Bounty Program

MAGIC-FI offers one of the industry's most comprehensive bug bounty programs to ensure platform security.

Reward Tiers

Severity Description Reward Range Examples
Critical Complete system compromise $100,000 - $1,000,000 Remote code execution, fund drainage
High Partial system compromise $25,000 - $100,000 Authentication bypass, SQL injection
Medium Limited impact vulnerabilities $5,000 - $25,000 XSS, CSRF, information disclosure
Low Minor security issues $1,000 - $5,000 Rate limiting, input validation

In-Scope Vulnerabilities

  • Authentication & Authorization: Bypass mechanisms, privilege escalation
  • Injection Attacks: SQL, NoSQL, command injection, XXE
  • Business Logic Flaws: Trading logic, vault calculations
  • Cryptographic Issues: Weak implementations, key management
  • Smart Contract Bugs: Reentrancy, overflow, logic errors

Get Started: Email security@magic-fi.com with your findings. Average response time: 24 hours.

Security Audits

MAGIC-FI undergoes regular security audits by leading blockchain security firms to ensure the highest standards.

Completed Audits

Auditor Scope Date Status Report
Trail of Bits Core Smart Contracts Q4 2024 ✅ Complete View Report
Consensys Diligence MagicCore Protocol Q3 2024 ✅ Complete View Report
OpenZeppelin Bridge Contracts Q3 2024 ✅ Complete View Report
CertiK Full Platform Audit Q1 2025 🔄 In Progress TBA

Audit Summary

12
Total Audits
156
Issues Found
154
Issues Resolved
0
Critical Issues Open

Brand Assets

Download official MAGIC-FI brand assets for use in presentations, integrations, and marketing materials.

Logo Variations

Primary Logo
Full-color logo for light backgrounds
Dark Logo
White/light logo for dark backgrounds
Monochrome
Single-color versions for special uses
Symbol Only
Logo mark without text

Color Palette

Color Hex RGB Usage
MAGIC Green #238636 35, 134, 54 Primary brand color
Bright Green #2ea043 46, 160, 67 Hover states, accents
MAGIC Blue #1f6feb 31, 111, 235 Links, secondary actions
Dark Gray #0d1117 13, 17, 23 Primary background

Questions? Contact brand@magic-fi.com for brand asset requests or usage questions.

Connect Wallet

Connect your Web3 wallet to start trading on MAGIC-FI. We support multiple wallet types for maximum flexibility.

Supported Wallets

MetaMask
Most popular browser extension wallet
WalletConnect
Connect mobile wallets via QR code
Coinbase Wallet
Popular mobile and browser wallet
Hardware Wallets
Ledger, Trezor via WalletConnect

Connection Steps

  1. Click "Connect Wallet" button
  2. Select your preferred wallet
  3. Authorize the connection in your wallet
  4. Switch to MAGIC-FI network if prompted
  5. Start trading!

Network Configuration

Parameter Value
Network Name MAGIC-FI Network
RPC URL https://rpc.magic-fi.com
Chain ID 2024
Currency Symbol MAGIC
Block Explorer https://explorer.magic-fi.com

Your First Trade

Learn how to place your first trade on MAGIC-FI with this step-by-step guide.

Before You Start

  • Connect your wallet
  • Deposit funds (USDC recommended for beginners)
  • Understand the trading interface
  • Set your risk management preferences

Step-by-Step Guide

1. Choose Your Market

Navigate to the Trading page and select a market. BTC-PERP is recommended for beginners due to high liquidity.

2. Select Order Type

For your first trade, use a Market Order for immediate execution or a Limit Order for price control.

3. Enter Trade Details

  • Side: Buy (long) or Sell (short)
  • Size: Start small (0.01 BTC)
  • Price: For limit orders only

4. Review & Submit

Double-check your order details, estimated fees, and margin requirements before submitting.

Trading Tips for Beginners

Start Small: Begin with small positions to learn the platform. You can always increase size as you gain experience.

  • Always use stop-loss orders
  • Don't risk more than you can afford to lose
  • Monitor your positions regularly
  • Understand funding rates for perpetual futures
  • Practice with small amounts first

Mobile App

Trade on-the-go with the MAGIC-FI mobile app. Available for iOS and Android with full trading capabilities.

App Features

Full Trading
Complete trading functionality with all order types
Portfolio Tracking
Real-time portfolio analytics and P&L
Vault Management
Deposit, withdraw, and monitor vault performance
Push Notifications
Alerts for price movements and order fills

Download Links

iOS
App Store
Android
Google Play

Mobile-Specific Features

  • Biometric Authentication: Face ID and fingerprint login
  • Offline Mode: View portfolio when offline
  • Quick Actions: Swipe gestures for fast trading
  • Voice Commands: "Hey MAGIC-FI, buy 1 BTC"
  • Dark/Light Mode: Automatic theme switching

MagicCore Overview

MagicCore is the high-performance blockchain layer powering MAGIC-FI's trading infrastructure. Built for speed, security, and scalability.

Core Architecture

High Throughput
200,000+ transactions per second
Low Latency
Sub-100ms order execution
Low Fees
Average $0.001 per transaction
Decentralized
100+ validator network

Technical Specifications

Parameter Value Description
Block Time 100ms Time between blocks
Finality 1 second Transaction finalization time
Gas Limit 50M Maximum gas per block
Validators 100+ Active network validators

Bridge

Seamlessly transfer assets between MAGIC-FI and other blockchains using our secure, fast bridge infrastructure.

Supported Networks

Ethereum
Bridge ETH, USDC, USDT, and ERC-20 tokens
Bitcoin
Wrapped BTC via secure custody
Solana
SOL and SPL token bridging
More Coming
Polygon, Avalanche, BSC support planned

Bridge Process

  1. Select source and destination networks
  2. Choose asset and amount to bridge
  3. Confirm transaction on source network
  4. Wait for confirmations (5-15 minutes)
  5. Receive assets on MAGIC-FI network

Bridge Fees

Network Asset Fee Time
Ethereum ETH/USDC 0.1% 5-10 min
Bitcoin BTC 0.15% 10-15 min
Solana SOL 0.05% 2-5 min

Clearinghouse

The MAGIC-FI Clearinghouse manages all trade settlement, margin calculations, and risk management across the platform.

Core Functions

Trade Settlement
Instant settlement of all trades
Margin Management
Real-time margin calculations
Risk Controls
Automated position limits and stops
Reporting
Comprehensive trade and P&L reports

Settlement Process

  1. Order matching in the order book
  2. Trade execution and price discovery
  3. Clearinghouse validates trade details
  4. Margin requirements calculated
  5. Positions updated in real-time
  6. Settlement completed instantly

Risk Management Features

  • Position Limits: Maximum position sizes per market
  • Margin Requirements: Dynamic margin based on volatility
  • Auto-Liquidation: Automatic position closure at risk levels
  • Circuit Breakers: Trading halts during extreme volatility
  • Insurance Fund: Protection against negative balances

Oracle

MAGIC-FI's Oracle system provides accurate, tamper-resistant price feeds for all trading pairs and risk calculations.

Oracle Network

Multiple Sources
Aggregated data from 15+ exchanges
High Frequency
Price updates every 100ms
Secure
Cryptographically signed price data
Reliable
99.9% uptime guarantee

Price Feeds

Asset Sources Update Frequency Deviation Threshold
BTC/USD 15 exchanges 100ms 0.1%
ETH/USD 12 exchanges 100ms 0.1%
SOL/USD 10 exchanges 200ms 0.2%

Oracle Security

  • Multi-Source Aggregation: Data from multiple exchanges
  • Outlier Detection: Automatic filtering of anomalous prices
  • Time-Weighted Average: TWAP pricing for stability
  • Circuit Breakers: Halt trading on extreme price moves
  • Cryptographic Proofs: All price data cryptographically signed

Order Book

MAGIC-FI's high-performance order book engine handles millions of orders with sub-millisecond matching.

Engine Specifications

200K+
Orders/Second
<1ms
Matching Latency
10M+
Order Depth
100%
Uptime

Order Matching

Price-Time Priority
Best price first, then time priority
Instant Matching
Real-time order execution
Partial Fills
Support for partial order execution
Fair Matching
No preferential treatment

Market Data

  • Level 2 Data: Full order book depth
  • Trade History: All executed trades
  • Market Statistics: 24h volume, high/low, change
  • Real-time Updates: WebSocket feeds
  • Historical Data: OHLCV candles, trade data

MagicEVM Overview

MagicEVM is our Ethereum-compatible smart contract execution environment, enabling developers to build custom DeFi applications.

EVM Compatibility

Full Ethereum Compatibility
Deploy existing Ethereum smart contracts
Solidity Support
Write contracts in Solidity or Vyper
Web3 Tools
Use existing Ethereum tooling
High Performance
Faster execution with lower fees

Key Features

  • EVM Opcodes: Full support for Ethereum opcodes
  • JSON-RPC API: Compatible with Ethereum JSON-RPC
  • Web3.js/Ethers.js: Use standard JavaScript libraries
  • MetaMask Integration: Connect with popular wallets
  • Block Explorer: View transactions and contracts

Performance Comparison

Metric MagicEVM Ethereum Improvement
Transaction Speed 100ms 12 seconds 120x faster
Gas Fee $0.001 $20 20,000x cheaper
Throughput 10,000 TPS 15 TPS 666x higher

Tools for Builders

Comprehensive development tools and resources for building on MAGIC-FI's MagicEVM platform.

Development Stack

Solidity IDE
Browser-based Solidity development environment
Documentation
Comprehensive APIs and tutorials
Block Explorer
View transactions, contracts, and blocks
Developer Support
Discord community and technical support

Getting Started

# Install MAGIC-FI CLI
npm install -g @magic-fi/cli

# Create new project
magic-fi init my-dapp

# Deploy to testnet
magic-fi deploy --network testnet

Available Tools

  • Hardhat Plugin: Deploy and test on MagicEVM
  • Truffle Support: Use Truffle for development
  • Remix IDE: Browser-based development
  • Faucet: Get testnet tokens for development
  • Templates: Starter templates for common DApps

Developer Resources

$100K
Grant Program
24/7
Discord Support
50+
Code Examples
Free
Testnet Usage

Native Transfers

Efficient native token transfers on MagicEVM with optimized gas usage and enhanced security features.

Transfer Features

Fast Transfers
Sub-second transaction finality
Low Fees
Minimal gas costs for transfers
Secure
Multi-signature and time-lock support
Batch Transfers
Send to multiple recipients in one transaction

Transfer Types

Type Gas Cost Use Case Features
Simple Transfer 21,000 Basic token transfer Instant, minimal cost
Batch Transfer 15,000 per recipient Multiple recipients Gas optimization
Scheduled Transfer 45,000 Future-dated transfers Time-locked execution
Multi-sig Transfer 65,000 High-value transfers Multiple approvals required

Code Examples

// Simple transfer
await magicToken.transfer(recipientAddress, amount);

// Batch transfer
await magicToken.batchTransfer([
    {to: addr1, amount: amount1},
    {to: addr2, amount: amount2}
]);

// Scheduled transfer
await magicToken.scheduleTransfer(
    recipientAddress, 
    amount, 
    futureTimestamp
);

System Contracts

Core system contracts that power MagicEVM functionality, including governance, staking, and protocol operations.

Core Contracts

Governance
On-chain voting and proposal management
Staking
Validator staking and delegation
Bridge
Cross-chain asset bridging
Fee Management
Gas price and fee distribution

Contract Addresses

Contract Address Function
Governance 0x1234...5678 Protocol governance and voting
Staking 0x2345...6789 Validator staking and rewards
Bridge 0x3456...789A Cross-chain asset transfers
Fee Distributor 0x4567...89AB Gas fee collection and distribution

Governance Features

  • Proposal Creation: Submit protocol improvement proposals
  • Voting Power: Vote based on MAGIC token holdings
  • Execution: Automatic execution of approved proposals
  • Timelock: Delays for security-critical changes
  • Delegation: Delegate voting power to others

Perpetual Assets

Trade perpetual futures on major cryptocurrencies with up to 100x leverage. No expiration dates, 24/7 trading.

Available Perpetuals

Asset Max Leverage Minimum Size Funding Interval Status
BTC-PERP 100x 0.001 BTC 8 hours ✅ Active
ETH-PERP 100x 0.01 ETH 8 hours ✅ Active
SOL-PERP 50x 0.1 SOL 8 hours ✅ Active
AVAX-PERP 25x 1 AVAX 8 hours ✅ Active

Perpetual Features

No Expiration
Hold positions indefinitely
High Leverage
Up to 100x leverage available
Deep Liquidity
Tight spreads and minimal slippage
Low Fees
Competitive maker/taker fees

How Perpetuals Work

  1. Index Price: Based on spot prices from multiple exchanges
  2. Mark Price: Fair price used for liquidations and unrealized P&L
  3. Funding Payments: Periodic payments between long/short positions
  4. Margin Requirements: Initial and maintenance margin levels
  5. Liquidation: Positions closed when margin insufficient

Risk Warning: Perpetual futures are leveraged products with high risk of loss.

Contract Specifications

Detailed specifications for all trading contracts including perpetuals, futures, and options.

Perpetual Contracts

Contract Underlying Contract Size Price Increment Settlement
BTC-PERP Bitcoin 1 BTC $0.5 USDC
ETH-PERP Ethereum 1 ETH $0.05 USDC
SOL-PERP Solana 1 SOL $0.001 USDC

Trading Hours

  • Perpetuals: 24/7/365
  • Spot: 24/7/365
  • Options: 24/7 (except during settlement)
  • Maintenance Windows: Sundays 02:00-03:00 UTC

Position Limits

Asset Max Position Size Max Order Size Price Band
BTC-PERP 1,000 BTC 100 BTC ±10%
ETH-PERP 10,000 ETH 1,000 ETH ±10%
SOL-PERP 100,000 SOL 10,000 SOL ±15%

Risk Parameters

  • Circuit Breakers: Trading halted if price moves >20% in 5 minutes
  • Position Limits: Maximum position sizes to prevent concentration risk
  • Order Size Limits: Maximum single order sizes
  • Rate Limits: Maximum 1000 orders per second per account

Margin Tiers

Dynamic margin requirements based on position size and market volatility to optimize capital efficiency.

BTC-PERP Margin Tiers

Tier Position Size Initial Margin Maintenance Margin Max Leverage
1 0 - 10 BTC 1.0% 0.5% 100x
2 10 - 50 BTC 2.5% 1.0% 40x
3 50 - 200 BTC 5.0% 2.5% 20x
4 200 - 500 BTC 10.0% 5.0% 10x
5 500+ BTC 20.0% 10.0% 5x

Margin Calculation

Initial Margin

Required margin to open a position

Initial Margin = Position Size × Mark Price × Initial Margin Rate

Maintenance Margin

Minimum margin to maintain a position

Maintenance Margin = Position Size × Mark Price × Maintenance Margin Rate

Available Balance

Available funds for new positions

Available Balance = Wallet Balance - Initial Margin - Unrealized Loss

Dynamic Adjustments

  • Volatility Adjustment: Margin rates increase during high volatility
  • Liquidity Adjustment: Higher margins for less liquid assets
  • Concentration Risk: Additional margin for large positions
  • Cross-Margin: Use unrealized profits as collateral

Fees

Transparent fee structure with competitive rates for all trading activities on MAGIC-FI.

Trading Fees

Market Maker Fee Taker Fee VIP Discount
Perpetuals 0.02% 0.05% Up to -0.01%
Spot 0.05% 0.10% Up to 50%
Options 0.10% 0.15% Up to 25%

VIP Fee Tiers

Level 30-Day Volume MAGIC Holdings Maker Fee Taker Fee
VIP 0 < $100K 0 0.020% 0.050%
VIP 1 ≥ $100K 1K MAGIC 0.015% 0.045%
VIP 2 ≥ $500K 5K MAGIC 0.010% 0.040%
VIP 3 ≥ $1M 10K MAGIC 0.005% 0.035%
VIP 4 ≥ $5M 50K MAGIC 0.000% 0.030%
VIP 5 ≥ $10M 100K MAGIC -0.005% 0.025%
VIP 6 ≥ $25M 250K MAGIC -0.010% 0.020%

Other Fees

  • Funding Fees: Variable, paid between long/short positions
  • Bridge Fees: 0.05% - 0.15% depending on network
  • Withdrawal Fees: Network gas fees only
  • Vault Fees: 2% performance fee, 0.5% management fee
  • API Usage: Free for all users

Fee Rebates

Maker Rebates: VIP 4+ users earn rebates for providing liquidity with negative maker fees.

Order Types

Comprehensive order types for precise trade execution and risk management strategies.

Basic Order Types

Market Order
Execute immediately at best available price
Limit Order
Execute at specified price or better
Stop Order
Trigger market order at stop price
Stop Limit
Trigger limit order at stop price

Advanced Order Types

Order Type Description Use Case Parameters
Take Profit Close position at profit target Profit taking Trigger price
OCO One-Cancels-Other orders Bracket orders Two price levels
Iceberg Large order split into smaller pieces Minimize market impact Visible quantity
TWAP Time-weighted average price Gradual execution Duration, intervals
Trailing Stop Stop price follows favorable moves Trend following Trail amount/percentage

Time in Force Options

  • GTC (Good Till Canceled): Order remains until filled or canceled
  • IOC (Immediate or Cancel): Fill immediately, cancel remainder
  • FOK (Fill or Kill): Fill completely or cancel entire order
  • Day Order: Cancel at end of trading day
  • GTD (Good Till Date): Cancel at specified date/time

Order Examples

// Limit order
{
  "symbol": "BTC-PERP",
  "side": "buy",
  "type": "limit",
  "quantity": 1.0,
  "price": 45000,
  "timeInForce": "GTC"
}

// Stop loss order
{
  "symbol": "BTC-PERP",
  "side": "sell",
  "type": "stop_market",
  "quantity": 1.0,
  "stopPrice": 44000,
  "timeInForce": "GTC"
}

Margining

Flexible margin system supporting both cross-margin and isolated margin modes for optimal risk management.

Margin Modes

Cross Margin
Share margin across all positions
Isolated Margin
Separate margin for each position

Margin Components

Component Description Calculation
Initial Margin Required to open position Position Value / Leverage
Maintenance Margin Required to maintain position Position Value × Maintenance Rate
Available Margin Free margin for new positions Equity - Used Margin
Margin Ratio Current risk level Maintenance Margin / Equity

Cross Margin Benefits

  • Capital Efficiency: Use profits from one position to support others
  • Auto Margin Transfer: Automatic rebalancing between positions
  • Lower Liquidation Risk: Portfolio-level liquidation calculations
  • Flexible Leverage: Adjust leverage dynamically

Isolated Margin Benefits

  • Risk Isolation: Limit risk to allocated margin
  • Position Control: Precise risk management per trade
  • Strategy Separation: Keep different strategies separate
  • Learning Tool: Better for beginners

Margin Calls and Liquidation

Warning: Positions may be liquidated when margin ratio exceeds 100%.

  1. Margin Warning: Alert when margin ratio reaches 80%
  2. Margin Call: Notification when ratio reaches 90%
  3. Liquidation: Automatic position closure at 100%

Liquidations

Automated liquidation system to protect users and maintain platform stability during volatile market conditions.

Liquidation Process

1. Risk Monitoring

Real-time monitoring of all positions and margin ratios

2. Warning Alerts

Email and push notifications when approaching liquidation

3. Partial Liquidation

Reduce position size to bring margin ratio back to safe levels

4. Full Liquidation

Close entire position if partial liquidation insufficient

Liquidation Triggers

Margin Type Warning Level Liquidation Level Action
Cross Margin 80% 100% Close worst-performing positions
Isolated Margin 80% 100% Close specific position

Protection Mechanisms

Insurance Fund
Covers losses from failed liquidations
Dynamic Pricing
Mark price based on fair value
Partial Liquidation
Minimize loss with partial closes
ADL System
Auto-deleveraging for extreme events

Preventing Liquidation

  • Monitor Margin Ratio: Keep track of your risk level
  • Add Collateral: Deposit more funds when warned
  • Reduce Position: Close part of your position
  • Use Stop Losses: Set automatic exit points
  • Lower Leverage: Use conservative leverage levels

Liquidation Fees

Position Size Liquidation Fee Insurance Fund Fee
≤ $10K 0.5% 0.1%
$10K - $100K 0.75% 0.15%
> $100K 1.0% 0.2%

Funding

Periodic funding payments that keep perpetual contract prices aligned with underlying spot prices.

How Funding Works

Purpose

Funding payments incentivize traders to take positions that keep the perpetual price close to the spot price.

Direction

When funding is positive, long positions pay short positions. When negative, shorts pay longs.

Frequency

Funding is exchanged every 8 hours at 00:00, 08:00, and 16:00 UTC.

Funding Rate Calculation

Funding Rate = (TWAP Premium + Clamp(Interest Rate - TWAP Premium, 0.05%, -0.05%))

Where:
- TWAP Premium = (Perpetual Price - Index Price) / Index Price
- Interest Rate = (Lending Rate - Borrowing Rate) / 3
- Clamp ensures rate stays within ±0.05% bounds

Current Funding Rates

Market Current Rate Next Funding 8H Rate Predicted Rate
BTC-PERP 0.0025% 6h 32m 0.0075% 0.0030%
ETH-PERP -0.0010% 6h 32m -0.0030% -0.0015%
SOL-PERP 0.0050% 6h 32m 0.0150% 0.0045%

Funding Payment Calculation

Payment Amount

Funding Payment = Position Size × Mark Price × Funding Rate

Example

Position: 1 BTC Long at $45,000
Funding Rate: 0.01%
Payment: 1 × $45,000 × 0.01% = $4.50 (paid to shorts)

Funding History

Historical funding rates help traders understand long-term market sentiment and premium patterns.

0.0023%
BTC 24H Avg
-0.0015%
ETH 24H Avg
0.0067%
SOL 24H Avg
8 hrs
Payment Interval

Trading Strategies

  • Funding Arbitrage: Profit from funding rate differences
  • Position Timing: Open/close before funding to avoid payments
  • Sentiment Analysis: High positive funding indicates bullish sentiment
  • Mean Reversion: Extreme funding rates often revert to mean

Protocol Vaults

Core protocol vaults that power MAGIC-FI's automated trading and yield generation strategies.

Vault Categories

Insurance Vault
Protects against liquidation shortfalls
Market Making Vault
Provides liquidity across all markets
Arbitrage Vault
Captures price differences across venues
Yield Vault
Optimizes returns across DeFi protocols

Vault Performance

Vault TVL 30D APY Max Drawdown Sharpe Ratio
Insurance Vault $50M 8.2% -0.5% 2.1
Market Making $200M 15.7% -2.3% 1.8
Arbitrage $75M 12.4% -1.1% 2.3
Yield Optimization $150M 18.9% -4.7% 1.5

Vault Mechanics

Deposit Process

  1. User deposits accepted assets (USDC, ETH, BTC)
  2. Assets converted to vault shares based on NAV
  3. Strategy automatically deploys capital
  4. Returns compound automatically

Withdrawal Process

  1. User requests withdrawal of shares
  2. Strategy unwinds positions if needed
  3. Assets returned to user (may take 24-48 hours)
  4. Performance fees deducted

Risk Management

  • Position Limits: Maximum exposure per market
  • Volatility Controls: Reduce risk during high volatility
  • Correlation Monitoring: Avoid over-concentration
  • Stress Testing: Regular backtesting under extreme scenarios
  • Emergency Stops: Automatic halt during anomalous conditions

Vault Leaders

Top-performing vault managers and strategies ranked by risk-adjusted returns and consistency.

Performance Ranking

Rank Manager Vault TVL 30D Return Sharpe Ratio Max DD
🥇 1 AlgoTrader Pro Momentum Strategy $25M +28.5% 2.8 -3.2%
🥈 2 DeFi Yield Master Multi-Protocol Yield $40M +22.1% 2.1 -5.8%
🥉 3 Arbitrage King Cross-Exchange Arb $18M +19.7% 3.2 -1.5%
4 Quant Solutions Statistical Arbitrage $35M +18.3% 1.9 -6.1%
5 Market Neutral Pro Delta Neutral Plus $12M +16.8% 2.5 -2.3%

Manager Categories

Algorithmic Managers
Systematic strategies with automated execution
Professional Traders
Experienced individual and institutional managers
Hybrid Strategies
Combination of manual and automated approaches
Specialized Vaults
Focus on specific markets or strategies

Performance Metrics

45
Active Managers
$500M
Total AUM
18.2%
Avg 30D Return
2.1
Avg Sharpe Ratio

Becoming a Vault Leader

  • Track Record: Minimum 6 months of verified performance
  • AUM Threshold: Manage at least $1M in assets
  • Risk Management: Demonstrate proper risk controls
  • Transparency: Provide detailed strategy description
  • Community Rating: Positive investor feedback

Vault Depositors

Information and tools for users investing in MAGIC-FI vaults, including deposit strategies and performance tracking.

Depositor Benefits

Professional Management
Access to institutional-grade strategies
Diversification
Spread risk across multiple strategies
Auto-Compounding
Returns automatically reinvested
Transparent Reporting
Detailed performance and position reports

Top Depositor Allocations

Depositor Type Allocation Avg Deposit Size Preferred Strategy Hold Period
Retail Investors 35% $5K Balanced Growth 6 months
High Net Worth 25% $100K Conservative Yield 12 months
Family Offices 20% $500K Diversified Multi 18 months
Institutions 15% $2M Market Neutral 24 months
DAOs 5% $50K Aggressive Growth 9 months

Deposit Strategies

Dollar-Cost Averaging (DCA)

Invest fixed amounts regularly to reduce timing risk

  • Reduces volatility impact
  • Available for all vaults
  • Minimum $100 per deposit
  • Weekly or monthly frequency

Portfolio Allocation

Spread investments across multiple vault strategies

  • Risk diversification
  • Automatic rebalancing
  • Customizable allocations
  • Performance optimization

Depositor Tools

  • Portfolio Tracker: Real-time P&L and allocation view
  • Performance Analytics: Risk-adjusted return metrics
  • Withdrawal Planner: Optimize withdrawal timing
  • Tax Reporting: Detailed records for tax purposes
  • Alerts: Notifications for performance milestones

Minimum Deposits: Most vaults have a $100 minimum deposit, with some premium strategies requiring $10K+.

Multi-sig

Multi-signature wallets and governance for enhanced security and decentralized control of protocol operations.

Multi-sig Implementation

Treasury Management
5-of-9 multi-sig for protocol treasury
Emergency Controls
3-of-5 multi-sig for emergency functions
Protocol Upgrades
7-of-11 multi-sig for major upgrades
Validator Set
Validator addition/removal requires consensus

Signer Composition

Multi-sig Type Signers Threshold Composition Timelock
Treasury 9 5 Team (3), Community (3), Partners (3) 48 hours
Emergency 5 3 Core team members only None
Upgrades 11 7 Team (4), Community (4), Validators (3) 72 hours
Validator 15 10 Existing validator set 24 hours

Governance Process

  1. Proposal Creation: Community or team creates proposal
  2. Discussion Period: 7-day community discussion
  3. Voting Phase: Token holders vote on proposal
  4. Multi-sig Execution: If passed, multi-sig executes changes
  5. Timelock Delay: Critical changes have execution delay

Security Measures

  • Hardware Security: All signers use hardware wallets
  • Geographic Distribution: Signers spread across multiple time zones
  • Identity Verification: All signers are known to the community
  • Regular Rotation: Signer set updated periodically
  • Emergency Procedures: Clear protocols for crisis situations

Recent Multi-sig Activity

Date Action Multi-sig Signatures Status
2024-12-15 Treasury allocation to new vault Treasury 6/9 ✅ Executed
2024-12-10 Oracle price feed update Upgrades 8/11 ✅ Executed
2024-12-05 Emergency trading halt Emergency 4/5 ✅ Executed
2024-12-01 New validator onboarding Validator 12/15 ✅ Executed

Transparency: All multi-sig transactions are publicly viewable on the blockchain and documented in our governance forum.

API Documentation

Comprehensive REST API and WebSocket interfaces for algorithmic trading and application development on MAGIC-FI.

Authentication

All API requests require authentication using API keys:

import { MagicFIClient } from '@magic-fi/api';

const client = new MagicFIClient({
  apiKey: 'your-api-key',
  secret: 'your-secret',
  testnet: false // true for testnet
});

Core Endpoints

Endpoint Method Description Rate Limit
/api/v1/markets GET Get all available markets 10/sec
/api/v1/orderbook GET Get market order book 20/sec
/api/v1/order POST Place new order 100/sec
/api/v1/position GET Get account positions 10/sec

WebSocket Feeds

// Subscribe to real-time market data
const ws = client.websocket();

ws.subscribe('orderbook.BTC-PERP', (data) => {
  console.log('Order book update:', data);
});

ws.subscribe('trades.ETH-PERP', (data) => {
  console.log('New trade:', data);
});