pub fn margin_account_from_account_events(
events: Vec<Bound<'_, PyDict>>,
calculate_account_state: bool,
) -> PyResult<MarginAccount>
pub fn margin_account_from_account_events(
events: Vec<Bound<'_, PyDict>>,
calculate_account_state: bool,
) -> PyResult<MarginAccount>