Skip to content

Account report total cash divergence with manually calculated equity #2657

Answered by cjdsellers
Egisess asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Egisess

Thanks for reaching out with the detailed report.

I managed to track it down to position flip scenarios for margin accounts.

Now fixed from d3abd99 which adds tests to confirm position PnL exactly matches account PnL, including your example inputs.

Please confirm the fix on your end what you have the chance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Egisess
Comment options

Answer selected by Egisess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants