Online Stock Management