Beginner's Guide
New to horse racing? No worries. Here's everything you need to know about odds, bets, and how this dashboard works.
Contents
1How This System Works
This system fetches live horse racing odds from CITIbet (a sports betting platform) and displays them on this dashboard. Here's the flow:
- 1The Scraper (runs inside Docker with a VPN) logs into CITIbet using a headless browser
- 2It navigates to the horse racing odds page and reads the live data
- 3The scraped data is saved to a cache file on the server
- 4This Dashboard reads from the cache and displays it to you
- 5Scraping only happens when you click 'Fetch' — it does NOT auto-scrape
2Reading Horse Racing Odds
Odds tell you how much you can win relative to your stake. In this system, odds are shown in decimal format:
Lower odds = more likely to win (but less profit)
Higher odds = less likely to win (but more profit)
| Odds Range | Meaning | Color |
|---|---|---|
| 1.0 — 5.0 | Strong favorite, very likely to win | Red |
| 5.0 — 15.0 | Contender, decent chance | Amber |
| 15.0+ | Longshot, unlikely but big payout | Default |
3Win vs Place Bets
Win Bet
Your horse must finish 1st. Higher payout but harder to win.
Place Bet
Your horse must finish in the top 2 or 3 (depends on field size). Lower payout but easier to win.
4HK Mode Odds Explained
This system runs in HK Mode (Hong Kong style). Key differences from other formats:
Percentage (%) — Shows the payout rate. E.g., "82%" means 82% of the pool is paid out. Higher % = better odds for bettors.
Win/Place Limit — Shown as "110/30" meaning max $110 win bet and $30 place bet on this line. "240/0" means $240 win only, no place.
Win $ / Place $ — The amount of money currently available at this odds level. Higher = more liquidity.
5Bet vs Eat (Back vs Lay)
Bet (Back)
You're betting FOR a horse to win/place. This is the normal bet — you pick a horse and hope it wins.
"I think Horse #3 will win, so I bet on it."
Eat (Lay)
You're betting AGAINST a horse. You act like the bookmaker — if the horse loses, you keep the stake. If it wins, you pay out.
"I think Horse #3 will NOT win, so I lay against it."
6Understanding the Race Card
The Today's Races sidebar shows all upcoming races across different countries and tracks:
7Race Types
Standard flat or jump horse racing. Most common type.
Horses pull a driver in a two-wheeled cart (sulky). Common in France, Sweden, US.
Dogs race around an oval track chasing a mechanical lure.
8Countries & Tracks
CITIbet covers races from many countries. Common codes:
9Using the Dashboard
Status Indicator
Buttons
Reads the latest data from cache. Instant, no browser needed.
Triggers a live fetch. The scraper will log in (if needed), navigate to the odds page, and extract fresh data. Takes ~60 seconds first time, ~5 seconds after.
Horse Cards
10API Reference
You can also access the data programmatically. The dashboard backend runs on port 4000:
/api/odds/api/odds?scrape=true/api/status/api/races/api/screenshot/api/login/api/select-race/api/disconnectcurl http://localhost:4000/api/odds12HK Mode vs SG Mode
CITIbet offers two different odds formats. Both show the same races and same horses — the only difference is how odds and payouts are calculated.
Your bet is based on the percentage (%) of the ticket value.
How it works: You bet a dollar amount. The % tells you the bookmaker's confidence. Higher % = more of your potential payout is guaranteed. A 90% on odds 5.0 means you get 90% of the full 5x return.
If horse wins: $100 × 4.8 × 0.85 = $408 return
Your bet is based on buying tickets at a fixed price.
How it works: You buy a number of tickets at a set price per ticket. If your horse wins, you get back a multiple of your ticket cost. Simpler to understand — no percentages involved.
If horse wins at 5.1/5: $45.90 return
Which should I use?
- HK Mode — Popular with Hong Kong bettors. Higher payout numbers, percentage-based. Better if you want to see the exact % confidence level.
- SG Mode — Popular in Singapore & Malaysia. Ticket-based, simpler math. Better if you prefer straightforward “buy X tickets, win Y” format.