Tarea técnica
No demo account available. Developer must use personal testing setup or Bybit testnet API keys to validate connectivity, simulate runs, and deploy to the specified VPS prior to handover.
🔴 Pre-Flight Checklist (NON-NEGOTIABLE – Complete Before Coding)
- 🟥 API Validation: • Enable: Trading + Info Read (Zero withdrawal perms). • Whitelist VPS IP if enforced. • Execute 3 micro-trades (Limit Buy → Limit Sell) to verify fills, leverage application, and wallet syncs. • Test on Spot / Isolated Futures ×3.
- 🟥 Setup Essentials: • VPS: Low-latency to Bybit (e.g., Singapore DC), NTP time sync, comprehensive logging for all ops. ⚠️ Past devs skipped API linkage – halt if this fails.
💰 Core Settings • 🟢 Pair: BTC/USDT • 🟢 Mode: Spot / Isolated ×3 • 🟢 Starting Capital: 12,500 USDT → effective ~37,500 USDT • 🟡 Grid Range: 20% dynamic contraction (e.g., 65,000 → ~52,000 USDT) • 🟢 Max Grids: 400 • 🟢 Grid Size: 50 → 100 USDT (+0.06 per level) • 🟢 Grid Step: 80 → 60 USDT (−0.005 to −0.008 per level) • 🟢 Orders: Limit Buy / Limit Sell (with slippage guard) • 🟢 Profit Target per Grid: 1.20 USDT • 🟢 Profit System: Trailing = Lock gains on 0.20% uptick, compound on holds • 🟢 Exit Trigger: Trailing rebound 0.08–0.12% (net of fees) • 🟢 Reset: Auto-relocate grid post-exit to mid-range
⚙️ Strategy Flow
- 🟢 Launch initial grid at prevailing market.
- 🟢 On down-moves, deploy buys with widening sizes and narrowing steps.
- 🟢 Monitor trailing PnL; lock partial profits on rises, full close on threshold.
- 🟢 Post-close: Reposition grid dynamically from new equilibrium.
🧩 Profit Simulations (Base: 65,000 USDT) 🟡 Sim 1 – Mild Pullback (–60 USDT) • 65,000 → 64,940 → ~8 grids • Target = 8 × 1.20 = 🟢 9.6 USDT gain • 0.12% trail (~7.8 USDT) → secure & reset
🟡 Sim 2 – Steady Decline (–200 USDT) • 65,000 → 64,800 → ~25 grids • Target = 25 × 1.20 = 🟢 30 USDT gain • 0.08–0.12% trail (~5.2–7.8 USDT) → lock in
🟡 Sim 3 – Sharp 8% Dip • 65,000 → 59,800 → ~200 grids • Target = 200 × 1.20 = 🟢 240 USDT gain • 0.08% trail (~4.8 USDT) → exit & regrid
🔧 Build Specs • 🟢 Lang: Python (Bybit API or CCXT lib preferred) • 🟢 Key Components: • Setup (API creds, leverage toggle) • Grid Engine (400-level adaptive placement) • Trailing PnL Tracker (real-time, fee-adjusted) • Order Handler (Limits + Bulk Exit) • Logger + JSON/CSV for cycles • Monitor (Latency ping, sync checks)
✅ Delivery Criteria
- 🟢 API & env fully validated.
- 🟢 Grid scaling adheres to size/step dynamics.
- 🟢 Trailing close activates on profit lock (post-fees).
- 🟢 Auto-reset repositions correctly.
- 🟢 Full logs & cycle exports operational.