def prct_curr_tick_midprice_change(data, start_idx=None, end_idx=None): midprice = data["midprice"][start_idx:end_idx] return padded_delta(midprice, side="left", prct=True)
def prct_curr_tick_midprice_change(data, start_idx=None, end_idx=None): midprice = data['midprice'][start_idx:end_idx] return padded_delta(midprice, side='left', prct=True)
def next_tick_midprice_change(data, start_idx=None, end_idx=None): midprice = data["midprice"][start_idx:end_idx] return padded_delta(midprice, side="right")
def next_tick_midprice_change(data, start_idx=None, end_idx=None): midprice = data['midprice'][start_idx:end_idx] return padded_delta(midprice, side='right')