Mathematical Problems In Algorithmic Trading And Financial Regulation