Skip to content

Trends V4

Michal Mikulec edited this page Aug 31, 2022 · 1 revision

class siegeapi.Trends()

Attributes

  • all TrendsGameMode
  • casual TrendsGameMode
  • ranked TrendsGameMode
  • unranked TrendsGameMode
  • newcomer TrendsGameMode

Methods

  • get_timespan_dates() -> dict[str: str]
    • Gets start & end dates that get returned by the API
    • Updated with every call

    Returns {'start_date': '20211205', 'end_date': '20220405'}


class siegeapi.TrendsGameMode()

Attributes

  • all TrendData
  • attacker TrendData
  • defender TrendData

class siegeapi.TrendData()

Attributes

  • win_loss_ratio TrendDataPoint
  • kill_death_ratio TrendDataPoint
  • headshot_accuracy TrendDataPoint
  • kills_per_round TrendDataPoint
  • rounds_with_a_kill TrendDataPoint
  • rounds_with_multi_kill TrendDataPoint
  • rounds_with_opening_kill TrendDataPoint
  • rounds_with_opening_death TrendDataPoint
  • rounds_with_kost TrendDataPoint
  • rounds_survived TrendDataPoint
  • ratio_time_alive_per_match TrendDataPoint
  • distance_per_round TrendDataPoint"Distance ran in a round, in in game meters"

class siegeapi.TrendDataPoint()

Attributes

  • low float ⇒ Lowest value in .actuals
  • high float ⇒ Highest value in .actuals
  • average float ⇒ Average from all of the values in .actuals
  • trend dict[str, float]{matchNumber: value}
  • actuals dict[str, float]{matchNumber: value}

.low - from what I've seen, it's always the same as .high

.trend && .actuals - these two do NOT have the same amount of data points for some reason