(self)
| 254 | return records[:limit] if limit else records |
| 255 | |
| 256 | def reset_session(self) -> None: |
| 257 | self._session_spent = 0.0 |
| 258 | self._session_calls = 0 |
| 259 | |
| 260 | def _window_total(self, start: float, end: float) -> float: |
| 261 | return sum(r.amount for r in self._history if start <= r.timestamp <= end) |
no outgoing calls