Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current value is incorrectly reported with multiple open positions #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Current value is incorrectly reported with multiple open positions #10

wants to merge 1 commit into from

Conversation

zschmid
Copy link

@zschmid zschmid commented Aug 15, 2017

Currently, the way the application is laid out, the current value field on the dashboard only reports the current value of the first item in the list.

This is OK if you only have one open position, but if you are holding a currency with multiple open positions, it incorrectly reports the current value by displaying the value of the first item in the list.

This proposed change resolves this issue by taking the value of coin_trades_amount and multiplying it against List.first(trades).currency.cost_usd

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.

2 participants