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.
Platform Statistics
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
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
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:
- Deposit: Users deposit assets into selected vaults
- Strategy Execution: Vault managers deploy capital across various DeFi protocols
- Yield Generation: Strategies generate returns through trading, lending, staking, and arbitrage
- Compounding: Profits are automatically reinvested to maximize compound returns
- 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
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
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
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
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
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
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
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
- Start Small: Begin with small position sizes
- Use Stop Losses: Set automatic stop-loss orders
- Diversify: Don't put all funds in a single position
- Monitor Positions: Regularly check account balance
- 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
Brand Assets
Download official MAGIC-FI brand assets for use in presentations, integrations, and marketing materials.
Logo Variations
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
Connection Steps
- Click "Connect Wallet" button
- Select your preferred wallet
- Authorize the connection in your wallet
- Switch to MAGIC-FI network if prompted
- 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
Download Links
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
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
Bridge Process
- Select source and destination networks
- Choose asset and amount to bridge
- Confirm transaction on source network
- Wait for confirmations (5-15 minutes)
- 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
Settlement Process
- Order matching in the order book
- Trade execution and price discovery
- Clearinghouse validates trade details
- Margin requirements calculated
- Positions updated in real-time
- 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
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
Order Matching
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
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
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
Native Transfers
Efficient native token transfers on MagicEVM with optimized gas usage and enhanced security features.
Transfer Features
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
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
How Perpetuals Work
- Index Price: Based on spot prices from multiple exchanges
- Mark Price: Fair price used for liquidations and unrealized P&L
- Funding Payments: Periodic payments between long/short positions
- Margin Requirements: Initial and maintenance margin levels
- 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
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
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%.
- Margin Warning: Alert when margin ratio reaches 80%
- Margin Call: Notification when ratio reaches 90%
- 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
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.
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
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
- User deposits accepted assets (USDC, ETH, BTC)
- Assets converted to vault shares based on NAV
- Strategy automatically deploys capital
- Returns compound automatically
Withdrawal Process
- User requests withdrawal of shares
- Strategy unwinds positions if needed
- Assets returned to user (may take 24-48 hours)
- 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
Performance Metrics
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
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
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
- Proposal Creation: Community or team creates proposal
- Discussion Period: 7-day community discussion
- Voting Phase: Token holders vote on proposal
- Multi-sig Execution: If passed, multi-sig executes changes
- 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);
});