this should work too - one thing to note, this doesn't take into account open order margin. _Originally posted by @joshpwrk in https://github.com/8ball030/derive_client/pull/151#discussion_r2562472531_