Hand-history grading
Send raw hand histories and get every hero decision graded against solver play, with EV loss in big blinds.
/api/grading/handsGrades every decision the hero made: the solver's frequency and EV for each action and the EV lost, in big blinds and as a share of the pot, plus totals per hand and for the batch. There are no tiers: you set your own thresholds for what counts as a mistake. For post-session review only.
Needs a Studio token.
curl https://www.pokerstudy.ai/api/grading/hands \
-H "Authorization: Bearer psk_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --rawfile text session.txt '{text: $text, accuracy: "standard"}')"
What gets graded
| Supported | |
|---|---|
| Game | No-limit hold'em |
| Cash | 2–6 players, graded against the 6-max 100bb ranges |
| Tournaments | Tournament hands and any hand with antes (2–8 players), graded against the 8-max tournament ranges: chip EV, 1bb big-blind ante, 10–300bb, at the nearest stack depth. ICM is not modelled. |
| Pots | Raised pots that reach the flop heads-up. Limped pots (limped_pot) and pots three or more players see the flop in (multiway_pot) are skipped whole. |
| Sites | PokerStars, GGPoker, Winamax, WPN/ACR, 888, PartyPoker, iPoker, CoinPoker, DriveHUD XML |
Request body
| Field | Type | Default | Meaning |
|---|---|---|---|
text | string | required | Hand-history text: one or many hands, any supported format. |
hero | string | the "Dealt to" player | Player name to grade. |
accuracy | fast | standard | precise | standard | Exploitability target for new flop solves: 2%, 1% or 0.5% of the pot. |
solveWaitSeconds | 0–300 | 30 | How long the whole request waits on live solves. It answers within that plus a few seconds. |
maxHands | 1–100 | 25 | Hands to grade. The rest are counted. |
maxFlopSolves | 0–20 | 8 | New flop solves one request may start. |
include | array | ["ranges", "strategy", "classes", "equity"] | Study data per decision. Add "combos" for per-combo reach, mix and EVs, or send [] for grades only. |
Each decision
evLossBb: the EV given up against the best action, even for an action the solver mixes in.evLossPot: that loss as a share of the pot, 0–1.bestAction, andactions(label, freq, evBb, lossBb).source:preflop_ranges,stored_flop,exact_flop_solve,nearest_floporstreet_solve.context: the node as Study shows it: both players'ranges(reach per hand class), the actor'sstrategy, handclassespostflop,heroReach, and the hero'sequityagainst each live opponent's range.context.reliableis false where the solver all but never reaches the spot (hero_off_rangeorline_off_range).
A decision we can't grade says why in reason:
| Reason | Meaning |
|---|---|
off_tree_preflop | The solved tree has no action of that kind there. |
no_solve | No solve covers the spot. |
solve_pending | The solve keeps running and is cached. Send the hand again. |
flop_solve_limit | The request used all its maxFlopSolves. Send the hand again to solve that flop. |
after_off_strategy | An earlier action was one the solver plays under 1% of the time with the hero's hand (the hand's offStrategyAt), so the solver never reaches this spot. |
Preflop
Preflop lines snap to the nearest solved line: each raise to the nearest size the solver uses, and an action the tree has no branch for (a cold call, say) to the nearest kind it has. Each preflop decision gives the rangesLine it read, and snapped: true when an earlier action changed kind. An action the solver never takes with that hand has no EV to measure: it comes back with evEstimated: true and no evLossBb (unmeasured, not 0).
Flops
A flop we have solved grades at once. Any other flop is solved exactly, at your accuracy, from the same preflop ranges, pot and stack. While that solve runs past solveWaitSeconds, the decision grades from the nearest solved flop (nearest_flop, with solvedBoard) and says exactSolve: "pending". Send the hand again once it finishes for the exact grade.
A flop we solve for the hand also solves the hand's own first flop bet (rounded to 5% of the pot) beside the tree's standard size, so that bet and every decision after it grade on the size played. Other bets and raises map to the nearest size in the solved tree: the actions labels carry the tree's sizes, while toCallBb and potBb are the hand's real amounts.
No flop is pre-solved from the tournament ranges: each tournament flop is solved from both players' walked ranges at the hand's pot and stack. Turns and rivers re-solve from the flop solve in about a second.
Accuracy and response times
A solve we have already run answers in under a second at any level. A new spot takes, on one solver box:
| Level | Target | Monotone flop | Paired flop | Dry flop |
|---|---|---|---|---|
fast | 2% of pot | 17 s | 33 s | 56 s |
standard | 1% of pot | 25 s | 49 s | 87 s |
precise | 0.5% of pot | 36 s | 70 s | 125 s |
Measured on 100bb single-raised pots (9s7s5s, 3h3d2s, 7s3h2d), 24 threads, on the 75% bet tree. A flop whose first bet was small solves on the 33% tree, which has more raises and takes about 7 minutes to 1%. A new solve needs about 4 GB of memory.