You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains comprehensive documentation for all RLX Jane betting strategies.
Available Strategies
Football
Undervalued Yard Leaders - Identifies underdogs with significant yards advantage that are underpriced on Kalshi. Analyzes live games in Q2-Q3, requires β₯20% yards advantage.
Hockey
Underdogs - Targets extreme underdogs in NHL pre-game markets. Identifies teams priced at β€$0.39 with potential value from market overreaction.
Soccer
Leading Undervalued - Identifies winning soccer teams that are underpriced on prediction markets. Finds teams that are leading but priced <$0.70.
Strategy Structure
Each strategy guide includes:
Overview - Core concept and approach
Key Criteria - Entry conditions and filters
Value Scoring Algorithm - How opportunities are scored
Value Tiers - Classification system (GOOD, STRONG, ELITE)
Automatic Buy Logic - When and how buys are triggered
Discord Notifications - Real-time alerting format
Configuration - Environment and Firestore settings
Data Flow - End-to-end process
Firestore Schema - Data structures used
Example Scenarios - Real-world cases
Performance Tracking - Metrics and monitoring
Best Practices - Usage recommendations
Troubleshooting - Common issues and solutions
Common Features
All strategies share the following:
Value Tiers
ELITE (π₯): 90+ value score β 200 shares
STRONG (π): 60-89 value score β 200 shares
GOOD (β ): 50-59 value score β 100 shares
POOR (β): <50 value score β No buy
Buy Types
Simulated (default): Tracked buys with no real money
Live: Real purchases on Kalshi (must be explicitly enabled)
Discord Integration
Clickable Kalshi market URLs
Combined buy + signal notifications
Color-coded by tier/status
Real-time updates
Firestore Tracking
ValueSignal documents with instances array
Buy documents with profit tracking
Daily performance summaries
Strategy-specific metadata
Adding New Strategies
When creating a new strategy:
Name format: {sport}-{strategy-name}.md
Follow the structure template from existing guides
Update this README with a brief description
Ensure consistency with shared buy/notification logic in BaseStrategy
Football Undervalued Yard Leaders Strategy - Complete Guide
Overview
The "Undervalued Yard Leaders" strategy identifies underdogs with significant yards advantage that are underpriced on Kalshi. The core concept: when an underdog is dominating on yards but the market hasn't adjusted the price accordingly, there's value to capture.
This strategy applies to both NFL and NCAAF (college football).
Key Criteria
Game Phase
Q2 and Q3 only - Skips Q1 (too early to judge) and Q4 (too late, variance too high)
The "Hockey Underdogs" strategy targets extreme underdogs in NHL pre-game markets. Simple premise: when the market prices a team at β€$0.39, there's potential value to capture from market overreaction.
Strategy Details
Name: Hockey Underdogs
Sport: NHL
Type: Pre-game only (isPreGame=true, isLiveGame=false)
Max Price: $0.39 (only considers teams at or below this threshold)
Philosophy
Why Target Extreme Underdogs?
Market Inefficiency: Markets can overreact to recent performance, injuries, or perceived team strength
Binary Outcomes: Hockey games have three outcomes (win/loss/tie), creating pricing inefficiencies
Variance: Hockey is high-variance - underdogs win more often than their price suggests
Value Detection: When market dramatically undervalues a team, there's profit opportunity
The $0.39 Threshold
Teams priced above $0.39 are "expected underdogs" - no special value
Teams at $0.39 or below are "extreme underdogs" - market has written them off
This threshold captures the ~10-15% of games where markets overreact
Algorithm
Signal Criteria
A value signal is created when:
Game is pre-game - Has not started yet
Team price β€ $0.39 - Extreme underdog threshold
Value score β₯ MIN_VALUE_SCORE_HOCKEY - Default: 50.0
Update Logic
Once a signal exists for a game/team:
Ignore if price increases or decreases < 10%
Update only if price drops β₯ 10% (significant market move)
This prevents noise and focuses on meaningful price changes
Result: Update ignored - price change not significant enough.
Example 4: Rejected - Above Threshold
Game: Buffalo Sabres @ Toronto Maple Leafs
Price: $0.42
Result: Rejected - Price above $0.39 threshold. Not an extreme underdog.
Configuration
Environment Variables (.env)
# Hockey Value Thresholds
MIN_VALUE_SCORE_HOCKEY=50.0 # Minimum to log signal
MIN_BUY_VALUE_HOCKEY=80.0 # Minimum to auto-buy# Shared Settings
BUY_SHARES=100 # Shares per auto-buy
DISCORD_WEBHOOK_URL=https://...
Fetch upcoming NHL games from ESPN (pre-game status only)
Get NHL markets from Kalshi
Match games to markets by team names
For each team in each game:
Check if price β€ $0.39
Check if signal already exists
If exists: check for β₯10% price drop
Calculate value score (with price drop bonus if applicable)
Create/update signal if score β₯ MIN_VALUE_SCORE_HOCKEY
Trigger auto-buy if score β₯ MIN_BUY_VALUE_HOCKEY
Send Discord notification
Discord Notifications
New Signal
π 1 Hockey Underdog Found!
π₯ Hockey Underdog: Chicago Blackhawks vs Colorado Avalanche
Chicago Blackhawks priced at extreme underdog value: $0.08
π Underdog Team π Opponent π Matchup
Chicago Blackhawks ($0.08) Colorado Avalanche CHI @ COL
β° Status π― Ticker β Value Score
Pre-game KXNHL-... 92.5 (ELITE)
Sport: NHL | Strategy: Hockey Underdogs
Updated Signal (Price Drop)
π Hockey Underdog Updated (Instance #2)
π PRICE DROP
Was $0.25 β Now $0.18 (-28.0%)
π Hockey Underdog: Arizona Coyotes vs Vegas Golden Knights
Arizona Coyotes priced at extreme underdog value: $0.18
...
β Value Score
88.0 (STRONG)
Auto-Buy Triggered
π Hockey Underdog Updated (Instance #1)
π€ AUTO-BUY TRIGGERED
β Simulated purchase executed
π₯ Hockey Underdog: Chicago Blackhawks vs Colorado Avalanche
...
Files Created
Strategy
backend/src/strategies/hockey/hockey_underdogs.py - Main strategy
Leading Undervalued Soccer Strategy - Complete Guide
Overview
The "Leading Undervalued" strategy identifies winning soccer teams that are underpriced on prediction markets. Simple concept: if a team is leading but costs less than $0.70, there's value to capture.
Strategy Details
Name: Leading Undervalued
Sport: Soccer
Type: Live game only (isLiveGame=true, isPreGame=false)
Max Price: $0.70 (never buys above this)
Algorithm
Signal Criteria
A value signal is created when ALL of the following are true:
Game is live - Must be in progress
Team is leading - Any goal lead (1, 2, 3+ goals)
Price < $0.70 - Team must be undervalued
Value score β₯ MIN_VALUE_SCORE_SOCCER - Default: 40.0
Value Score Formula (0-100 scale)
The value score combines three factors:
1. Goal Lead (Exponential Impact)
1 goal ahead = 25 points
2 goals ahead = 45 points
3 goals ahead = 60 points
4+ goals ahead = 70 points
Why exponential? Each additional goal makes a comeback exponentially less likely.
2. Price (Inverse Impact)
Lower price = higher value
$0.10 = +35 points
$0.30 = +25 points
$0.50 = +15 points
$0.69 = +1 point
$0.70+ = Signal rejected
Formula: (0.70 - price) * 50
3. Time Remaining (Inverse Impact)
Less time = higher value
0-10 minutes = +30 points
10-20 minutes = +20 points
20-30 minutes = +12 points
30-45 minutes = +5 points
45+ minutes = +0 points
Why? Less time means less opportunity for opponent to come back.
Value Score Tiers
Tier
Score Range
Emoji
Auto-Buy?
ELITE
85-100
π₯
Yes (if β₯75)
STRONG
70-84
π
Yes (if β₯75)
GOOD
55-69
β
No
DECENT
40-54
π
No
WEAK
25-39
β οΈ
No (below min)
POOR
0-24
β
No (below min)
Example Calculations
Example 1: Elite Signal
Game: Manchester City 2 - 0 Liverpool
Time: 85' (5 minutes remaining)
Price: $0.45
# Soccer Value Thresholds
MIN_VALUE_SCORE_SOCCER=40.0 # Minimum to log signal
MIN_BUY_VALUE_SOCCER=75.0 # Minimum to auto-buy# Shared Settings
BUY_SHARES=100 # Shares per auto-buy
DISCORD_WEBHOOK_URL=https://...
Create/update signal if score β₯ MIN_VALUE_SCORE_SOCCER
Trigger auto-buy if score β₯ MIN_BUY_VALUE_SOCCER
Send Discord notification
Discord Notifications
Soccer Value Signal
β½ 1 Soccer Buying Opportunity Found!
π Soccer Value Signal: Barcelona vs Real Madrid
Barcelona leading by 2 goal(s) but priced at $0.45
β½ Leading Team π₯ Goal Lead π Score
Barcelona ($0.45) +2 Barcelona 2
Real Madrid 0
β±οΈ Time Status π― Ticker β Value Score
Period 2 - 75' KXSOCCER-... 87.5 (ELITE)
Sport: SOCCER | Strategy: Leading Undervalued
Auto-Buy Triggered
π Soccer Value Signal Updated (Instance #2)
π€ AUTO-BUY TRIGGERED
β Simulated purchase executed
π₯ Soccer Value Signal: Barcelona vs Real Madrid
...
Discovery Tool
Use the league discovery tool to find new soccer league codes:
cd backend
python scripts/discover_soccer_leagues.py
This tool:
Fetches soccer markets from Kalshi
Extracts team names
Tries known league codes on ESPN
Matches teams to find active leagues
Outputs Python dict of discovered codes
Files Created
Strategy
backend/src/strategies/soccer/leading_undervalued.py - Main strategy