Polymarket Bot Tutorial · अध्याय 31 of 32
अपने Polymarket 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 बनने से पहले पकड़ती है।
- Pre-flight checklist
- First deposit: 25-50 USD
- Production से TP/SL rules
- Monitoring: Telegram, email, dashboards
- Reconcile cadence: every fire_exits cycle
- First week: close रहें, small रहें
- Scaling: more deposit कब करें
Pre-flight checklist
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 है - यानी वह smart-contract wallet जिससे Polymarket आपकी ओर से ट्रेड करता है (POLY_FUNDER_ADDRESS) - न कि आपका निजी खाता, यानी externally-owned account या 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 को असली पैसा खर्च कराया है।
First deposit: 25-50 USD
Smoke-test deposit जानबूझकर छोटा रखा जाता है। लक्ष्य यह verify करना है कि live path काम करता है, न कि पैसा कमाना।
आप क्या test कर रहे हैं: क्या bot का order placement Polymarket के 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 करें।
Production से TP/SL rules
पहले दो छोटी परिभाषाएँ, क्योंकि यह सेक्शन इन्हीं पर टिका है। take-profit (TP) एक पहले से सेट किया गया सेल ऑर्डर है जो कीमत के आपके लक्ष्य तक पहुँचते ही मुनाफ़ा लॉक कर देता है; stop-loss (SL) कीमत के किसी सीमा से नीचे गिरते ही पोज़िशन बेच देता है, ताकि एक बुरा ट्रेड बेकाबू न हो जाए। नीचे इस्तेमाल किए गए दो ऑर्डर टाइप हैं GTC (Good-Til-Cancelled - एक ऐसा ऑर्डर जो भरने या आपके रद्द करने तक ऑर्डर बुक में रुका रहता है) और FOK (Fill-Or-Kill - पूरा ऑर्डर तुरंत भरता है या पूरी तरह रद्द कर देता है)। एक और शब्द जो आपको मिलेगा, mark, बिल्कुल भी ऑर्डर टाइप नहीं है - इसका मतलब बस मौजूदा mid-price है जिसके सापेक्ष आप पोज़िशन मापते हैं। नीचे हमारे trader से production defaults दिए गए हैं, जो हज़ारों trades में टिके रहे हैं।
- Buy: best ask से 1c ऊपर FOK। अगर ask 0.85 से ऊपर हो तो ट्रेड skip करें - यही «0.99 trap» है: 0.90+ पर भाव वाला लगभग तय बाज़ार बहुत मामूली ऊपरी संभावना देता है, लेकिन पलटने पर तेज़ी से गिरता है, इसलिए risk/reward उल्टा हो जाता है।
- 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।
Monitoring: Telegram, email, dashboards
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.
Reconcile cadence: every fire_exits cycle
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 न करें।
First week: close रहें, small रहें
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 को Polymarket UI से सीधे compare करें।
- हर surprise document करें। छोटी confusions भी eventually bugs बन जाती हैं।
पहले week के अंत में: अगर कोई bug नहीं है और diary reality से match करती है, तो normal size पर scale करें। अगर bugs आए हैं, तो उन्हें fix करें, और एक और smoke-test week चलाएँ।
Scaling: more deposit कब करें
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 करती है।












