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

Calculator #35

Closed
1 task done
hexley21 opened this issue May 21, 2023 · 0 comments
Closed
1 task done

Calculator #35

hexley21 opened this issue May 21, 2023 · 0 comments
Assignees
Labels
enhancement Enhancement of the code, not introducing new features.

Comments

@hexley21
Copy link
Owner

Feature Request

Describe the Feature Request

A Coin buy/sell profit calculator tab, where user can input:

  • Coin.
  • Investment amount.
  • Buy price.
  • Sell price.
  • Investment fee.
  • Exit fee.
    Profit = ((Sell Price - Buy Price) x (Investment / Buy price) - (Investment Fee + Exit Fee))

Describe Preferred Solution

  • Create new Fragment for calculations
  • Create input-fields for each value.
  • Search coin to get existing price. (SearchCoin - interactor in VM)

Describe Alternatives

Related Code

  • ProfitCalculatorFragment extends BaseFragment<FragmentProfitCalculatorBinding, ProfitCalculatorViewModel>
  • ProfitCalculatorViewModel extnds ViewModel
    • @Inject private SearchCoins searchCoins;
    • private StateLiveData<List> currentSearch;
    • private LiveData currentProfit;
    • public int calculateProfit(double investment, double buy, double sell, double invFee, double exitFee)
  • fragment_profit_calculator

Additional Context

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

  • Yes
@hexley21 hexley21 added the enhancement Enhancement of the code, not introducing new features. label May 21, 2023
@hexley21 hexley21 self-assigned this May 21, 2023
@hexley21 hexley21 mentioned this issue May 22, 2023
9 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

No branches or pull requests

1 participant