Module Import alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad Num Assign NameStore NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpAdd NameLoad Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index NameLoad BinOpSub NameLoad Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index NameLoad BinOpDiv BinOpAdd SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad BinOpAdd NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignMult SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad keyword ListLoad Str Str Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad Num Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpAdd NameLoad Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index NameLoad BinOpSub NameLoad Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index NameLoad BinOpDiv BinOpAdd SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad BinOpAdd NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMult NameLoad Num Assign NameStore BinOpAdd NameLoad Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignDiv SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num AugAssignMult SubscriptStore NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad keyword ListLoad Str Str Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list
N/A N/A random N/A numpy np N/A pandas pd zipline.finance.trading TradingEnvironment zipline.data.us_equity_minutes BcolzMinuteBarWriter generate_daily_test_data N/A N/A first_day last_day starting_open starting_volume multipliers_list path N/A N/A N/A days N/A N/A N/A N/A TradingEnvironment instance days_in_range first_day last_day N/A days_count N/A len days N/A o N/A N/A np zeros days_count dtype N/A np uint32 N/A h N/A N/A np zeros days_count dtype N/A np uint32 N/A l N/A N/A np zeros days_count dtype N/A np uint32 N/A c N/A N/A np zeros days_count dtype N/A np uint32 N/A v N/A N/A np zeros days_count dtype N/A np uint32 N/A last_open N/A starting_open 1000 N/A last_volume starting_volume N/A idx N/A range days_count N/A N/A new_open N/A last_open N/A round N/A N/A N/A random random 5 2 N/A N/A o N/A idx new_open N/A N/A h N/A idx N/A new_open N/A round N/A N/A N/A random random 10000 2 N/A N/A l N/A idx N/A new_open N/A round N/A N/A N/A random random 10000 2 N/A N/A c N/A idx N/A N/A N/A h N/A idx N/A l N/A idx 2 N/A N/A v N/A idx N/A int N/A last_volume N/A N/A N/A random randrange -10 10 10000.0 N/A last_open N/A o N/A idx N/A last_volume N/A v N/A idx N/A N/A N/A len multipliers_list 0 N/A N/A range_start 0 N/A multiplier_info multipliers_list N/A N/A range_end N/A N/A days searchsorted N/A multiplier_info N/A 0 N/A N/A o N/A range_start range_end N/A multiplier_info N/A 1 N/A N/A h N/A range_start range_end N/A multiplier_info N/A 1 N/A N/A l N/A range_start range_end N/A multiplier_info N/A 1 N/A N/A c N/A range_start range_end N/A multiplier_info N/A 1 N/A N/A v N/A range_start range_end N/A multiplier_info N/A 1 N/A range_start range_end N/A df N/A N/A pd DataFrame N/A open high low close volume o h l c v columns N/A open high low close volume index days N/A N/A N/A df to_csv path index_label day N/A generate_minute_test_data N/A N/A first_day last_day starting_open starting_volume multipliers_list path N/A N/A N/A 
    Utility method to generate fake minute-level CSV data.
    :param first_day: first trading day
    :param last_day: last trading day
    :param starting_open: first open value, raw value.
    :param starting_volume: first volume value, raw value.
    :param multipliers_list: ordered list of pd.Timestamp -> float, one per day
            in the range
    :param path: path to save the CSV
    :return: None
     N/A full_minutes N/A N/A BcolzMinuteBarWriter full_minutes_for_days first_day last_day N/A minutes_count N/A len full_minutes N/A minutes N/A N/A N/A N/A TradingEnvironment instance minutes_for_days_in_range first_day last_day N/A o N/A N/A np zeros minutes_count dtype N/A np uint32 N/A h N/A N/A np zeros minutes_count dtype N/A np uint32 N/A l N/A N/A np zeros minutes_count dtype N/A np uint32 N/A c N/A N/A np zeros minutes_count dtype N/A np uint32 N/A v N/A N/A np zeros minutes_count dtype N/A np uint32 N/A last_open N/A starting_open 1000 N/A last_volume starting_volume N/A minute minutes N/A N/A idx N/A N/A full_minutes searchsorted minute N/A new_open N/A last_open N/A round N/A N/A N/A random random 5 2 N/A N/A o N/A idx new_open N/A N/A h N/A idx N/A new_open N/A round N/A N/A N/A random random 10000 2 N/A N/A l N/A idx N/A new_open N/A round N/A N/A N/A random random 10000 2 N/A N/A c N/A idx N/A N/A N/A h N/A idx N/A l N/A idx 2 N/A N/A v N/A idx N/A int N/A last_volume N/A N/A N/A random randrange -10 10 10000.0 N/A last_open N/A o N/A idx N/A last_volume N/A v N/A idx N/A N/A N/A len multipliers_list 0 N/A N/A N/A idx multiplier_info N/A enumerate multipliers_list N/A N/A start_idx N/A idx 390 N/A end_idx N/A start_idx 390 N/A N/A o N/A start_idx end_idx N/A multiplier_info N/A 1 N/A N/A h N/A start_idx end_idx N/A multiplier_info N/A 1 N/A N/A l N/A start_idx end_idx N/A multiplier_info N/A 1 N/A N/A c N/A start_idx end_idx N/A multiplier_info N/A 1 N/A N/A v N/A start_idx end_idx N/A multiplier_info N/A 1 N/A df N/A N/A pd DataFrame N/A open high low close volume o h l c v columns N/A open high low close volume index minutes N/A N/A N/A df to_csv path index_label minute N/A