Function: hockeytechGameCorsi()
hockeytechGameCorsi(
league,gameId):Promise<Row[]>
Defined in: src/analytics/hockeytech_family.ts:198
<lg>_game_corsi: player-level on-ice Corsi/Fenwick (proxies; no missed shots) + TOI +
corsi_for_per60.
Parameters
league
string
HockeyTech league slug from HOCKEYTECH_LEAGUES.
gameId
GameId
The league's game id (number or string).
Returns
Promise<Row[]>
The game_corsi_rows rows: player_id (decimal string), corsi_for,
corsi_against, corsi_for_pct, fenwick_for, fenwick_against, fenwick_for_pct,
corsi_includes_missed (always false), toi_seconds, corsi_for_per60 (null unless
TOI > 0). [] when the game has no on-ice data (no shift feed).
Throws
AssetFetchError when any of the three fetches fails or a 200 body lacks its envelope (propagated).
Throws
NoDataError on a 404 (propagated from the getter).
Example
import sdv from "sportsdataverse";
const corsi = await sdv.hockeytech.hockeytech_game_corsi({ league: "pwhl", game_id: 42 });
corsi.sort((a, b) => Number(b.corsi_for_pct) - Number(a.corsi_for_pct))[0];
Remarks
Shares the three fetches of hockeytechEnrichedPbp; the shift payload is
parsed a second time for the TOI join. Shot attempts are shot + blocked_shot + goal
because the feed has no missed-shot event.