def get_output(data, capital=100000, leverage=1, commission=0, slippage=0):
    """
    By default, NA's are dropped
    """
    total_capital = capital * leverage
    df = data
    df['cnt'] = df.groupby('timestamp')['symbol'].transform(lambda x: len(x))
    df['qty'] = (total_capital / df['cnt'] / df['price']).round()
    df['profit'] = df.eval('(sell-buy)*qty')
    df['commission'] = df.eval('(sell+buy)*qty') * commission * 0.01
    df['slippage'] = df.eval('(sell+buy)*qty') * slippage * 0.01
    df['net_profit'] = df.eval('profit - commission - slippage')
    return df
