Trading Sessions
Scanning markets...
0 Opportunities Found
Portfolio Overview
Performance Analytics
Active Positions
Recent Trades
🔑 API Settings
Configure exchange API keys for live trading (stored locally in browser)
Bybit API
Kraken API
Binance API
Other Exchange
How to Get API Keys
Bybit
- Login to Bybit
- Go to Account & Security → API Management
- Create API Key with "Read-Only" permissions for safety
- Copy API Key and Secret (save secret - shown only once)
Kraken
- Login to Kraken
- Go to Settings → API
- Generate New Key with "Query Funds" and "Query Open/Closed Orders" only
- Copy API Key and Private Key
Binance
- Login to Binance
- Go to Profile → API Management
- Create API with "Enable Reading" only (disable trading/withdrawals)
- Complete 2FA verification and save keys
📚 TRIARB 2.0 User Manual
Welcome to the most advanced multi-strategy arbitrage scanner. This guide will walk you through each strategy.
⚡ Strategy 1: Triangular Arbitrage
What it is: Exploits price inefficiencies between 3 trading pairs on a single exchange.
Example Path: USDT → BTC → ETH → USDT
- Start with 1000 USDT
- Buy BTC with USDT at current rate
- Trade BTC for ETH
- Sell ETH for USDT
- If you end with more than 1000 USDT, that's profit
How to use:
- Select "Triangular Arb" tab
- Set your capital (default: 1000 USDT)
- Set minimum profit threshold (default: 0.1%)
- Click "Scan Opportunities"
What the results show:
- Net Profit %: Final profit after fees and slippage
- Gross Profit %: Theoretical profit before costs
- Fees: Trading fees (maker/taker)
- Slippage: Price impact from order book depth
- Execution Path: Step-by-step trading sequence
⚠️ Risks:
- Opportunities disappear in milliseconds
- Competing with HFT bots on major pairs
- Execution speed is critical
- Works best on smaller altcoin pairs
💡 Pro tip: Triangular arb is rare on major pairs (BTC/ETH/SOL) but more common on altcoins. Lower your profit threshold to 0.05% to see more opportunities.
💰 Strategy 2: Funding Rate Arbitrage
What it is: Earn passive income by collecting perpetual contract funding payments while staying market-neutral.
The Setup:
- Buy BTC on spot market (e.g., $50,000)
- Short BTC perpetual contract (same amount)
- Your position is now delta-neutral (no directional risk)
- Every 8 hours, collect funding payment from shorts paying longs (or vice versa)
Example: BTC funding rate = 0.01% every 8 hours
- Daily: 0.01% × 3 = 0.03%
- Annual: 0.03% × 365 = 10.95% APY
- On $10,000 capital = $1,095/year passive income
How to use:
- Select "Funding Rate Arb" tab
- Set your capital
- Set minimum Net APY (default: 12%)
- Click "Scan Opportunities"
What the results show:
- Net APY: Annual return after all costs
- Funding Rate: Payment per 8-hour period
- Premium: Perp price vs spot price difference
- Daily Income: Estimated earnings per day
- Next Funding: When next payment occurs
⚠️ Risks:
- Premium cost (if perp > spot, you pay to enter)
- Funding rates can flip (become negative)
- Need capital for both spot and perp
- Rebalancing costs if positions drift
💡 Pro tip: Best during bull markets when funding rates are highest (shorts pay longs). Hold positions for 30+ days to amortize entry/exit fees.
📈 Strategy 3: Pairs Trading
What it is: Trade the relationship between two correlated assets, betting on mean reversion.
The Concept:
BTC and ETH are highly correlated (they move together). If their price ratio diverges from the historical average, you can bet it will revert.
Example Trade:
- Historical BTC/ETH ratio: 15.0 (average)
- Current ratio: 18.0 (BTC expensive relative to ETH)
- Z-score: +2.5 (unusually high)
- Trade: Short BTC, Long ETH (bet ratio will decrease)
- Exit when ratio returns to 15.0
How to use:
- Select "Pairs Trading" tab
- Set your capital
- Click "Scan Opportunities"
What the results show:
- Action: LONG (buy pair1, sell pair2) or SHORT (opposite)
- Z-Score: How far ratio is from average (>2 or <-2 = signal)
- Correlation: How strongly paired (need >70%)
- Confidence: Signal reliability
- Expected Return: Estimated profit when reverting
- Stop Loss: Exit if ratio diverges further
Entry Rules:
- Z-score > +2.0: SHORT (ratio too high)
- Z-score < -2.0: LONG (ratio too low)
- Correlation > 0.7 (70%)
Exit Rules:
- Z-score between -0.5 and +0.5: CLOSE (ratio normalized)
- Stop loss hit: CLOSE (prevent larger loss)
⚠️ Risks:
- Correlation can break down during major events
- Requires historical data (currently using mock data)
- Mean reversion isn't guaranteed
- Need to manage both positions simultaneously
💡 Pro tip: Best for highly liquid pairs (BTC/ETH, ETH/SOL). Avoid during major news events when correlations break.
⚙️ General Settings
Capital (USDT): Amount you want to deploy. Affects profit calculations and slippage estimates.
Min Profit (%): Filter threshold. Only shows opportunities above this profit level. Lower = more results, but smaller profits.
Scan Duration: How long the scan took. Faster = more real-time data. Target: <200ms.
🎯 Getting Started
- Start with Funding Rate Arb: Easiest to understand, lowest risk, passive income
- Paper trade first: Track opportunities for 1 week without executing
- Understand fees: Read your exchange's fee structure (maker/taker/VIP tiers)
- Start small: Test with 10% of your intended capital
- Monitor actively: Check positions daily, especially pairs trading
- Set stop losses: Always know your exit plan
⚠️ Important Disclaimers
This is an educational tool, not financial advice.
- All strategies carry risk of loss
- Past performance doesn't guarantee future results
- Always verify opportunities independently
- Understand exchange fees, withdrawal limits, and trading rules
- Never invest more than you can afford to lose
- Consider tax implications in your jurisdiction
Currently using public API endpoints (no authentication). For production use, add API keys in GitHub secrets.
🔧 Technical Notes
Data Sources:
- Bybit public API for spot/perp prices, order books, funding rates
- Kraken public API for additional liquidity data
- Real-time ticker data with 1-2 second cache
Calculations:
- Fees: Tiered based on 30-day volume (VIP 0-4 tiers)
- Slippage: Estimated from order book depth (simplified)
- Pairs correlation: Currently using synthetic data (mock)
Deployment: Cloudflare Workers (edge computing) for low-latency scans globally.