Every Open Position Changes Your Risk
A position is much more than the number of contracts or coins you currently hold. As soon as a position is opened, your application needs to understand how much exposure exists, where the average entry price is, whether leverage is being used, how profit and loss evolves, and how close the position is to liquidation.