portfolio-performance / portfolio

Track and evaluate the performance of your investment portfolio across stocks, cryptocurrencies, and other assets.
http://www.portfolio-performance.info
Eclipse Public License 1.0
2.91k stars 600 forks source link

Not enough decimal places for number of shares #1814

Open markokocic opened 3 years ago

markokocic commented 3 years ago

Describe the bug Portfolio Performance allow a maximum of 6 decimal places for share when booking a transaction. This is an issue for Bitcoin where it's not that unusual to have amounts with more decimal places. In application settings it can't be configured to accept more than 6 decimal places.

To Reproduce Steps to reproduce the behavior:

  1. Create a Transaction
  2. Use number with more that 6 decimal places for shares, e.g. 0,009124491
  3. Save the transaction
  4. open the same transaction for edit.
  5. observe the share amount. It is rounden to 6 decimal places, e.g. 0,009124

Expected behavior Share amount is the same as entered. No rounding. Portfolio Performance can be configured with more than 6 decimal places.

metal450 commented 3 years ago

Similar issue to https://github.com/buchen/portfolio/issues/1796 - quotes can only have 4 places, so the limitation is even more severe (i.e. shows $0 for cryptos with micro-values).

Fenrihr commented 3 years ago

i will love see this feature implemented for cryptocurrencies tracking