This document proposes a new risk calculation and control system for an algorithmic trading platform to address drawbacks in the current system. [1] The current system has slow risk limit updates, does not calculate portfolio margin, and has high traffic between the broker and risk agent. [2] The new proposal would move risk calculation to a risk agent to enable near real-time cross-asset portfolio margin risk management using order data. [3] This would allow for faster risk limit updates, calculation of portfolio margin, and reduction of traffic between the broker and risk agent.