Stefan Simik

Results 45 comments of Stefan Simik

This issue is different (despite related) from other similar issues

There is still the same problem occuriing, it was not fixed.

# Currency / Index / Commodity Futures The [current margin calculation](https://github.com/nautechsystems/nautilus_trader/blob/acb5cb57e83bb8a14375083bb6023550ed3f4ad3/nautilus_trader/accounting/accounts/margin.pyx#L591) implementation: (`adjusted_notional = notional / leverage`) is overly simplistic and doesn't match how margins work for currency futures in...

I would agree, it could be clearer if we split it into two separate parts: - this old one addressing issue in old way of margin calculations (that was fixed)...

**My suggestion:** What should really happen on margin exceeeded event: 1. This event should be simply implemented in `on_margin_exceeded` callback / handler. Probably in the `Venue` as exchange rules decide,...