chessdotcom.endpoints.player_games_by_basetime_increment¶
Complete Live Archive by Time Control
API doc: https://www.chess.com/news/view/published-data-api#pubapi-endpoint-games-archive-live
- chessdotcom.endpoints.player_games_by_basetime_increment.get_player_games_by_basetime_increment(username: str, basetime: str | int, increment: str | int, tts=0, **request_options) GetPlayerGamesByBasetimeIncrementResponse¶
- Parameters:
username – username of the player.
basetime – the base time control in seconds.
increment – the increment in seconds (optional).
tts – the time the client will wait before making the first request.
- Returns:
GetPlayerGamesByBasetimeIncrementResponseobject containing a list of live Chess games that a player has finished by time control.
- class chessdotcom.endpoints.player_games_by_basetime_increment.GetPlayerGamesByBasetimeIncrementResponse(json, text, games)¶
- Variables:
json – The JSON response from the API.
text – The raw text response from the API.
games – A list of
LiveGameobjects.
- class chessdotcom.endpoints.player_games_by_basetime_increment.Game(url: str | None, pgn: str | None, time_control: str | None, end_time: int | None, rated: bool | None, accuracies: Accuracies | None, fen: str | None, time_class: str | None, rules: str | None, eco: str | None, white: PlayerStats | None, black: PlayerStats | None)¶
- Variables:
url – URL of the game.
pgn – PGN (Portable Game Notation) of the game.
time_control – Time control of the game.
end_time – End time of the game in epoch format.
rated – Whether the game was rated.
accuracies –
LiveGameAccuracies: accuracies of the players in the game.fen – FEN (Forsyth-Edwards Notation) of the game.
time_class – Time class of the game.
rules – Rules of the game.
eco – ECO (Encyclopaedia of Chess Openings) URL of the game.
white –
LivePlayerStats: stats of the white player.black –
LivePlayerStats: stats of the black player.
- class chessdotcom.endpoints.player_games_by_basetime_increment.Accuracies(white: float | None, black: float | None)¶
- Variables:
white – Accuracy score for the white player.
black – Accuracy score for the black player.
- class chessdotcom.endpoints.player_games_by_basetime_increment.PlayerStats(rating: int | None, result: str | None, username: str | None, id: str | None, uuid: str | None)¶
- Variables:
rating – The player’s rating.
result – The result of the game for the player.
username – The username of the player.
id – The ID of the player.
uuid – The UUID of the player.