पॉलीमार्केट Bot ट्यूटोरियल · अध्याय 31 / 32
अपने पॉलीमार्केट bot को live करना: 25-50 USD का पहला deposit, take-profit और stop-loss rules, alert thresholds (Telegram/email), reconciliation cadence, और first-week scaling plan.
इस अध्याय में क्या शामिल है
paper से live में transition वह जगह है जहाँ ज़्यादातर builders अनजाने में अपना पहला deposit खो देते हैं। यह अध्याय pre-flight checklist के साथ-साथ first-week discipline है, जो bugs को losses बनने से पहले पकड़ती है।
- उड़ान-पूर्व चेकलिस्ट
- पहली जमा: 25-50 USD
- प्रोडक्शन से TP/SL नियम
- निगरानी: Telegram, ईमेल, डैशबोर्ड
- मिलान आवृत्ति: हर fire_exits चक्र
- पहला सप्ताह: पास रहें, छोटा रखें
- स्केलिंग: और जमा कब करें
उड़ान-पूर्व चेकलिस्ट
Bot को paper से live करने से पहले, क्रमवार exact list.
- 30 closed paper trades. Written success criteria met or exceeded.
- Diary format paper और live के बीच identical है. Same JSONL schema.
- VPS deployed. Bot ही एकमात्र process है; systemd unit configured है.
- HALT file mechanism tested.
touch /opt/pmt/HALT30 seconds के भीतर bot को रोकता है. - Telegram alerts configured. A test alert successfully भेजा गया है.
- Daily-loss kill switch tested. 10% drawdown simulate करें; verify करें कि halt fires.
- On-chain reconciliation tested. Diary को manually mismatch करें; verify करें कि halt fires.
- Deposit address proxy wallet (POLY_FUNDER_ADDRESS) है, EOA नहीं. SDK
wallet showके जरिए verified. - USDC/pUSD approvals set हैं. Standard exchange और NegRisk exchange दोनों.
- Initial deposit amount लिखित रूप में agree किया गया है: smoke test के लिए $25-50.
अगर कोई item incomplete है, तो live न जाएँ। इनमें से हर एक ने past production stories में किसी builder को असली पैसा खर्च कराया है।
पहली जमा: 25-50 USD
Smoke-test deposit जानबूझकर छोटा रखा जाता है। लक्ष्य यह verify करना है कि live path काम करता है, न कि पैसा कमाना।
आप क्या test कर रहे हैं: क्या bot का order placement पॉलीमार्केट के trade view से match करता है. क्या diary सही से record होती है. क्या take-profit GTC वास्तव में post होता है. क्या bot transient API error से recover करता है. क्या daily-loss halt trigger होता है अगर आप एक simulate करें.
Expected outcome: 5-15 छोटे trades जो लगभग paper diary को mirror करें। किसी भी divergence को bug मानें, न कि "live being noisier than paper" की feature।
अगर आप यह $25-50 किसी real strategy loss में खो देते हैं, तो strategy को और paper runs चाहिए। अगर bugs की वजह से खोते हैं, तो scale करने से पहले bugs fix करें।
प्रोडक्शन से TP/SL नियम
हमारे trader से production defaults, जो हजारों trades के across टिके रहे हैं।
- Buy: FOK at ask + best ask से 1c ऊपर। अगर ask > 0.85 हो तो skip करें (0.99 trap)।
- Take-profit: entry + 4-6c पर GTC sell, buy fill + 5s settlement wait के तुरंत बाद post करें।
- Stop-loss via mark: mid monitor करें; अगर mid entry - 8c तक गिर जाए, तो best bid पर FOK sell करें (resting नहीं; mid blow-through तेज़ी से होता है)।
- Time exit: अगर position X hours के भीतर close न हो और PnL -2c से +2c के बीच हो, तो market पर FOK exit करें।
Numbers strategy के हिसाब से बदलते हैं, लेकिन pattern consistent है: take-profit हमेशा GTC, stop-loss आमतौर पर FOK (क्योंकि GTC stops तब fill नहीं होते जब mid blow through करता है), stale signals पर सवार होने से बचने के लिए time exits।
निगरानी: Telegram, ईमेल, डैशबोर्ड
Bot real time में observable होना चाहिए। तीन layers।
- Telegram alerts: हर fill, हर halt, हर error जो threshold से ऊपर हो। Dedicated channel या group इस्तेमाल करें; personal messages के साथ mix न करें।
- Daily summary email: दिन के अंत में total trades, win rate, PnL, triggered halts की सूची। हर सुबह इसे पढ़ें।
- Dashboard: optional है लेकिन useful। एक simple HTTP endpoint जो diary पढ़ता है और open positions + recent fills + cumulative PnL render करता है।
Pattern: कोई भी state change जिसके बारे में जानना ज़रूरी हो → Telegram. End-of-day summary → email. Real-time exploration → dashboard.
मिलान आवृत्ति: हर fire_exits चक्र
Reconciliation इतनी frequently चलनी चाहिए कि drift अगली trade के compound करने से पहले पकड़ में आ जाए। Cadence trade frequency पर निर्भर करती है।
- Strategies with < 10 trades/day: हर hour reconcile करें।
- Strategies with 10-100 trades/day: हर 15 minutes reconcile करें।
- HFT strategies (100+ trades/day): exit-firing loop के हर cycle पर reconcile करें।
Reconciliation का cost held हर token पर एक chain read है। 20 tokens पर, यह 20 RPC calls है; free-tier RPC पर भी, budget के भीतर। इसे over-optimize न करें।
पहला सप्ताह: पास रहें, छोटा रखें
Live deployment का पहला week सबसे dangerous होता है। आप live-path bugs खोज रहे होते हैं जिन्हें paper run miss कर गया था। Discipline:
- Close रहें - waking hours के दौरान Telegram channel हर hour check करें।
- Small रहें - position sizes minimum पर रखें (5 shares); bug की cost dollars में हो, hundreds में नहीं।
- पहले 3-5 दिनों के अंत में manually reconcile करें। Diary को पॉलीमार्केट UI से सीधे compare करें।
- हर surprise document करें। छोटी confusions भी eventually bugs बन जाती हैं।
पहले week के अंत में: अगर कोई bug नहीं है और diary reality से match करती है, तो normal size पर scale करें। अगर bugs आए हैं, तो उन्हें fix करें, और एक और smoke-test week चलाएँ।
स्केलिंग: और जमा कब करें
Capital जोड़ने के triggers, हर एक के साथ अलग threshold।
- +50% deposit: 30 live trades, win rate paper rate से 5pts के भीतर, bugs की वजह से कोई production halt नहीं।
- +100-200% deposit: 100+ live trades, sample भर consistent profitability, infrastructure कम-से-कम एक minor outage से होकर tested।
- +500%+ deposit: केवल 6+ months की consistent live profitability के बाद। Capital success से धीमे ramp होता है - आप सुनिश्चित होना चाहते हैं कि edge real है, कोई ऐसा regime नहीं जो अभी गायब होने वाला है।
Premature scaling का सबसे बड़ा single risk: जो strategy एक market regime में profitable थी, वह अगले में unprofitable हो जाती है। बड़ी size यह ठीक नहीं करती। Patience करती है।


