@classmethod
    def make_minute_bar_data(cls):
        asset_minutes = cls.env.minutes_for_days_in_range(
            cls.sim_params.period_start,
            cls.sim_params.period_end,
        )

        minutes_count = len(asset_minutes)
        minutes_arr = np.arange(1, 1 + minutes_count)

        # normal test data, but volume is pinned at 1 share per minute
        return {
            1: pd.DataFrame(
                {
                    'open': minutes_arr + 1,
                    'high': minutes_arr + 2,
                    'low': minutes_arr - 1,
                    'close': minutes_arr,
                    'volume': np.full(minutes_count, 1),
                },
                index=asset_minutes,
            ),
        }
dataset/ETHPy150Open quantopian/zipline/tests/test_algorithm.py/TestOrderCancelation.make_minute_bar_data/original