MCPcopy
hub / github.com/quantopian/zipline / history

Method history

zipline/algorithm.py:1981–1996  ·  view source on GitHub ↗

DEPRECATED: use ``data.history`` instead.

(self, bar_count, frequency, field, ffill=True)

Source from the content-addressed store, hash-verified

1979 @api_method
1980 @require_initialized(HistoryInInitialize())
1981 def history(self, bar_count, frequency, field, ffill=True):
1982 """DEPRECATED: use ``data.history`` instead.
1983 """
1984 warnings.warn(
1985 "The `history` method is deprecated. Use `data.history` instead.",
1986 category=ZiplineDeprecationWarning,
1987 stacklevel=4
1988 )
1989
1990 return self.get_history_window(
1991 bar_count,
1992 frequency,
1993 self._calculate_universe(),
1994 field,
1995 ffill
1996 )
1997
1998 def get_history_window(self, bar_count, frequency, assets, field, ffill):
1999 if not self._in_before_trading_start:

Calls 2

get_history_windowMethod · 0.95
_calculate_universeMethod · 0.95