Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One Minute History Groundwork #340

Closed
wants to merge 6 commits into from
Closed

Commits on May 30, 2014

  1. 3 Configuration menu
    Copy the full SHA
    c7d7c1f View commit details
    Browse the repository at this point in the history
  2. ENH: Enhancements to TradingEnvironment.

    Adds a suite of new functions for querying data from the trading calendar.
    
    These include:
          `previous_trading_day`
          `minutes_for_days_in_range` (minutely version of `days_in_range`)
          `previous_open_and_close` (inverse of `next_open_and_close`)
          `next_market_minute`
          `previous_market_minute`
          `open_close_window` (get a range of opens/closes with slicing semantics)
          `market_minute_window` (get a range of minutes with slicing semantics)
    
    Also refactors `test_finance` to move `TradingEnvironment` tests into their own
    TestCase.
    ssanderson committed May 30, 2014
    4 Configuration menu
    Copy the full SHA
    a98b690 View commit details
    Browse the repository at this point in the history
  3. ENH: Prep work for supporting '1m' history.

    Overhauls `HistoryContainer` in prep for support of more than one frequency.
    
    Major changes:
    
       - Methods/variables referring to "day" have been renamed/generalized.
         - `current_day_panel` became `buffer_panel`, which is now a `RollingPanel`
         - `prior_day_panel` became a dictionary mapping `Frequency` objects to
           "digest panels", which are instances of `RollingPanel`.
    
       - Hard-coded daily rollover replaced with a notion of a "current window" for
         each unique frequency managed by the panel.
    
         - When the end of the current window is reached for a given frequency, we
           compute an aggregate bar (code refers to this as a "digest"), which is
           appended to a panel associated with that frequency.
    
         - Window rollover dates are managed by a pair of dictionaries,
           `cur_window_starts` and `cur_window_closes`.  The `Frequency` class is
           responsible for computing window bounds based on the open/close of the
           previous window.
    
       - Semantic change to the `open_price` field: `open_price` now always
         contains the price of the first trade occurring in the given window.
         Previously it contained the price of the first minute in the window,
         returning NaN it the security happened not to trade in the first minute.
    ssanderson committed May 30, 2014
    7 Configuration menu
    Copy the full SHA
    269fdff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7a527a4 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2014

  1. BUG: Don't return mostly nans from get_history when ffill=False.

    Fixes an issue where, if `ffill=False`, `get_history` would return nans for
    every entry in the history frame except the last one.
    ssanderson committed Jun 3, 2014
    Configuration menu
    Copy the full SHA
    7d28414 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c66d870 View commit details
    Browse the repository at this point in the history