Algorithmic trading framework