Polymarket Bot Tutorial · Chapter 26 of 32

Polymarket پر election اور politics market bots: US 2024 سے سیکھے گئے اسباق، 2028 setup، EU اور UK markets، Trump-related markets، polling-vs-market spread، long-hold sizing، اور multiple election markets کی monitoring کے لیے code.

یہ chapter کیا cover کرتا ہے

Politics Polymarket کی سب سے زیادہ volume والی category ہے۔ Strategies national elections پر multi-month hold positions سے لے کر individual political news پر headline-arb تک پھیلی ہوئی ہیں۔ یہ chapter ان approaches کی صاف اور حقیقی separation ہے جو survive کرتی ہیں اور جو loss دیتی ہیں۔

  • Politics Polymarket کی سب سے زیادہ volume والی category کیوں ہے
  • Long-hold بمقابلہ short-hold political bots
  • Polling-vs-market spread
  • News flow اور headline arb
  • International elections (EU, UK, India)
  • Risk: black-swan polls
  • Code: politics markets کو روزانہ scan کریں

Politics Polymarket کی سب سے زیادہ volume والی category کیوں ہے

Politics Polymarket کی flagship category ہے۔ 2024 کے US presidential cycle نے total Polymarket volume کو 2024 کے آغاز میں $200M lifetime سے بڑھا کر November تک $9B+ کر دیا۔ 2026 تک lifetime volume $63B+ پر ہے۔

وجہ: audience crypto traders کے ساتھ overlap کرتی ہے، event horizons اتنے لمبے ہوتے ہیں کہ price discovery کے کئی cycles آتے ہیں، اور media coverage مسلسل order flow پیدا کرتی ہے۔ دوسری markets attention کے لیے compete کرتی ہیں؛ politics platform کی تعریف کرتی ہے۔

Bot economics: high competition کے باوجود political markets اتنے deep ہیں کہ $1k position price کو نمایاں طور پر move نہیں کرتی۔ اگر edge واقعی موجود ہو تو retail bots کے لیے کافی گنجائش ہے۔

Long-hold بمقابلہ short-hold political bots

Politics کے لیے دو strategy axes ہیں۔

  • Long-hold (weeks to months): fundamental view کی بنیاد پر position لیں، news cycles کے دوران hold کریں، resolution کے قریب exit کریں۔ Edge: model accuracy + risk tolerance.
  • Short-hold (minutes to hours): specific news events پر react کریں (debate moments، court rulings، polling drops)۔ Edge: latency + interpretation speed.

زیادہ تر retail bots پہلے short-hold try کرتے ہیں اور fail ہو جاتے ہیں کیونکہ competition شدید ہوتی ہے۔ Long-hold کم crowded ہوتا ہے مگر daily noise کو ignore کرنے کی operational discipline مانگتا ہے۔ سچی assessment یہ ہے: long-hold psychologically مشکل مگر mechanically آسان ہے۔ اسے اپنے behavior کے مطابق منتخب کریں۔

Polling-vs-market spread

ایک common trade یہ ہے کہ اس candidate کو short کیا جائے جس کی poll average market price سے implied probability میں آگے ہو - یا اس کے الٹ۔

Example: 538 کی election forecast 15 Oct کو Candidate A کے لیے 65% کہتی ہے؛ Polymarket پر A 55% پر trade کر رہا ہے۔ 10c spread اس بات کی طرف اشارہ کرتا ہے کہ market سمجھتا ہے 538 غلط ہے، یا market کے پاس ایسی information ہے جو 538 نے ابھی تک absorb نہیں کی۔

Trade rule: اگر spread 7+ days تک برقرار رہے اور کوئی ایسا news نہ آئے جو اسے explain کرے، تو market غلط ہے؛ market price پر long side لیں۔ نئے gap پر action لینے سے پہلے کم از کم ایک ہفتہ انتظار کریں؛ gap بند کرنے والی news روزانہ آتی رہتی ہے۔

News flow اور headline arb

Specific news types جو مسلسل political markets کو اتنا move کرتی ہیں کہ bot کے قابل ہوں۔

  • Polling drops by NYT, Reuters, Bloomberg - major sources release پر market کو 1-3c move کرتی ہیں۔
  • Court rulings on candidate eligibility, ballot access, indictments. فوری طور پر 3-8c move کرتی ہیں۔
  • Debate moments - gaffes، strong performances۔ debate کے دوران ہی 2-5c move کرتی ہیں۔
  • Health events - کوئی بھی چیز جو واقعی candidate-replacement risk پیدا کرے۔ confirmation پر 10-20c move کرتی ہے۔

Bot pattern: news sources کی curated list subscribe کریں، keyword کے ذریعے event type classify کریں، predicted direction میں sized FOK place کریں۔ Chapter 14 general pattern cover کرتا ہے؛ political markets اس کا سب سے rewarding application ہیں۔

International elections (EU, UK, India)

Polymarket مختلف volume کے ساتھ international elections list کرتا ہے۔ UK اور EU elections عام طور پر ہر ایک میں $1-10M attract کرتی ہیں؛ Indian elections (جو بہت بڑے user base کو دلچسپ لگتی ہیں) $50M+ تک جذب کر سکتی ہیں۔ Latin American elections عموماً thinner ہوتی ہیں۔

Edge profile: international markets US markets کے مقابلے میں کم efficient ہیں کیونکہ trader population زیادہ US-centric ہے۔ مخصوص country expertise رکھنے والا bot (مثلاً German political analyst، Indian local) ان markets میں واقعی edge رکھتا ہے جو US politics میں نہیں ہوتا۔

اگر آپ اس country سے نہیں ہیں یا specific expertise نہیں رکھتے، تو international markets bot territory نہیں ہیں - US کے مقابلے میں inefficiency کی کمی کا مطلب زیادہ inefficiency نہیں ہوتا۔ Domain knowledge غالب رہتی ہے۔

Risk: black-swan polls

Political-bot کی تباہ کن failure mode ایک black swan poll یا event ہے جو 24 hours میں market کو 15-25c move کر دے۔ ایک bot جو ایک side پر بہت زیادہ positioned ہو، بری طرح crushed ہو سکتا ہے۔

Examples:

  • 2024 Biden debate performance → Biden replacement implied probability دو ہفتوں کے اندر 8% سے 65% تک گئی۔
  • Major candidate health events historically hours کے اندر markets کو 15-30c move کرتی ہیں۔
  • Indictment یا بڑا scandal ایک دن کے اندر 10-20c move کر سکتا ہے۔

Defenses: کبھی بھی اپنے capital کا 20% سے زیادہ ایک single political position میں نہ رکھیں؛ stop-loss orders استعمال کریں، اگرچہ prediction markets میں وہ imperfect ہوتے ہیں؛ جب implied volatility baseline سے 2x ہو جائے تو نئے entries روک دیں۔

Code: politics markets کو روزانہ scan کریں

Reference: high-volume politics markets کا daily scan، significant moves پر alert کریں۔

def daily_politics_scan():
    events = gamma_events(tag_id=2, limit=100, order="volume24hr")
    for ev in events:
        for m in ev["markets"]:
            prev = load_last_snapshot(m["slug"])
            curr = float(json.loads(m["outcomePrices"])[0])
            if abs(curr - prev) > 0.05:
                alert(f"big move on {m['slug']}: {prev:.2f} → {curr:.2f}")
            save_snapshot(m["slug"], curr)

Alert human review کے لیے trigger ہے (یا ان downstream bots کے لیے جو آپ کے alert feed کو subscribe کرتے ہیں)۔ بڑی moves پر auto-trade نہ کریں - political moves عموماً news-driven ہوتی ہیں اور bot کو وہ context چاہیے جو alert carry نہیں کرتا۔

اکثر پوچھے گئے سوالات

Polymarket پر political markets اتنے liquid کیوں ہیں؟
دو وجوہات: (1) Politics 24/7 news flow پیدا کرتی ہے، یعنی 24/7 trading interest۔ (2) Polymarkets کا Trumps کی 2024 win کے بارے میں درست call نے media attention اور نئے traders خاص طور پر politics میں لائے۔ Politics مسلسل Polymarkets کی سب سے زیادہ volume والی category رہی ہے۔
کیا مجھے political markets کو long-term bot کرنا چاہیے یا short-term؟
دونوں، لیکن مختلف طریقوں سے۔ Long-hold: resolution سے ہفتوں پہلے structural view (incumbent advantage, polling) کی بنیاد پر position لیں۔ Short-hold: intraday headline moves کو arb کریں۔ Long-hold slow infrastructure کو tolerate کرتا ہے؛ short-hold کو real-time news feeds درکار ہوتے ہیں۔
Polling-vs-market spread strategy کیا ہے؟
Markets کی implied probability کا موازنہ professional poll aggregators (مثلاً Fivethirtyeight، RealClearPolitics) سے کریں۔ 5-10% کے persistent gaps اس بات کا اشارہ ہیں کہ market غلط قیمت لگا رہا ہے۔ زیادہ reliable signal کی direction میں trade کریں۔ Caveat: polls بھی غلط ہو سکتی ہیں، اور markets اکثر polls سے بہتر perform کرتے ہیں (2024 اس کی canonical مثال تھی)۔
Black-swan poll سے wipe out ہونے سے کیسے بچوں؟
Position sizing rules۔ ہم کسی بھی single political market کو confidence سے قطع نظر bankroll کے 10-15% تک cap کرتے ہیں۔ Surprise poll market کو hours میں 10-20 cents move کر سکتی ہے - اپنے bankroll کا آدھا ایک ہی market میں رکھنا account suicide ہے۔
کیا international elections tradeable ہیں؟
جی ہاں، جب وہ Polymarket پر ظاہر ہوں۔ UK general elections، German federal، French presidential، Indian general - سب actual vote کے گرد sustained liquidity کے ساتھ ظاہر ہوئے ہیں۔ International markets میں اکثر inefficiency edges ہوتی ہیں کیونکہ زیادہ تر US-based bots صرف US elections پر focus کرتے ہیں۔
2026 میں CFTC regulation election bots کو کیسے affect کرتی ہے؟
US میں election markets Polymarket US (regulated DCM) پر CFTC oversight کے تحت trade کرتے ہیں، جس میں KYC شامل ہے۔ Non-US users Polymarket Global کے ذریعے access کرتے ہیں۔ Regulatory status مختلف ہوتا ہے؛ Israel اور زیادہ تر EU countries میں recreational use grey zone میں ہے۔