I have replied several comments about the security issues. Maybe you can take a look at them.
For the margin trading problem, we liquidate positions by force when the user's net value falls below maintenance. All data is transparent and you can see how far you are from being taken over.
For the margin trading problem, we liquidate positions by force when the user's net value falls below maintenance. All data is transparent and you can see how far you are from being taken over.