Skip to content

Comments

Wrong usage of trades fees#4

Open
Lel2PouxLait wants to merge 1 commit intofandre90:mainfrom
Lel2PouxLait:patch-1
Open

Wrong usage of trades fees#4
Lel2PouxLait wants to merge 1 commit intofandre90:mainfrom
Lel2PouxLait:patch-1

Conversation

@Lel2PouxLait
Copy link

Trades fees were added to the portfolio_purchase_price instead of removed which led to an overestimated portfolio_purchase_price.

Easily testable with :

BUY BTC 1 1000 EUR,1000 10
SELL BTC 0.375 1200 EUR 450.0 3
SELL BTC 0.625 2080 EUR 1300 7

Without the patch : [portfolio_purchase_price_net] = 1010
With the patch : [portfolio_purchase_price_net] = 990

Trades fees were added to the portfolio_purchase_price instead of removed which led to an overestimated portfolio_purchase_price.

Easily testable with :

BUY BTC 1 1000 EUR,1000 10
SELL BTC 0.375 1200 EUR 450.0 3
SELL BTC 0.625 2080 EUR 1300 7

Without the patch : [portfolio_purchase_price_net] = 1010

With the patch : [portfolio_purchase_price_net] = 990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant