Simon Roberts
2acbb39496
Fill in cost_price, cost, pnl, pnl_percent in "cointop holdings" output
3 years ago
Miguel Mota
e99d46b424
portfolio: Fix cost/pnl hidden value if empty text. #243
3 years ago
Miguel Mota
0e956d6358
portfolio: clean up fixes #243
3 years ago
Simon Roberts
b5b68833f5
Add support for purchase price/currency to portfolio ( #243 )
...
* Add support for declaring a BuyPrice and BuyCurrency in portfolio.
eg: ["Algorand", "125.4", "0.8", "USD"]
Add optional (default off) columns to portfolio:
"buy_price", "buy_currency", "profit", "profit_percent"
Note: there is no UI for entering this yet.
3 years ago
Simon Roberts
30fa30c057
Use stable sort for sorting coins ( #235 )
3 years ago
Simon Roberts
9fa50063e0
Allow duplicate-Symbol entries in portfolio again ( #222 )
...
* Revert PR 138 - no longer needed since PR 219 and prevents duplicate-symbol portfolio
* Rather than creating a PortfolioEntry for EVERY coin, and throwing 99% of them away, just create the PE for our actual portfolio.
3 years ago
Simon Roberts
da06d5ef14
Remove fallback to coin.Symbol when loading portfolio. Remove deprecated favoritesBySymbol. ( #219 )
...
* Remove fallback to coin.Symbol when loading portfolio (use coin.Name)
* Remove deprecated favoritesBySymbol
3 years ago
Simon Roberts
aece767608
Use new FormatTime for X-axis labels and last_updated
3 years ago
Simon Roberts
e1aded93e8
More minor cleanups (no functional change) ( #198 )
...
* Redundant type conversions
* Remove redudant type declarations. Inline one-line constructors. Remove unnecessary brackets.
* Simplify name - it's used via package name anyway
* Simplify variable initializations
* Change `var x uint = Y` to `x := uint(Y)`
* More shorthand initialization
3 years ago
Simon Roberts
9824c409ad
Feature/code cleanups ( #191 )
...
Lots of style/comment/redundancy cleanups. No functional change.
3 years ago
Miguel Mota
cfc93c92c6
fix: ClearSyncMap pass by reference ( #195 )
3 years ago
Miguel Mota
f375eec1eb
Rename org miguelmota → cointop-sh
3 years ago
Simon Roberts
0bacbe5b9d
Make favorite character configurable ( #190 )
...
* Make favorite character configurable
3 years ago
Miguel Mota
b6c0579b38
Remove redundant line. #166
3 years ago
Miguel Mota
83a35df5c4
Hide all holding amounts when hidden flag toggled
3 years ago
Miguel Mota
1d29363185
Add keybinding to toggle hide portfolio balances
3 years ago
Simon Roberts
c5445c6ffc
One log.Debugf() required
3 years ago
Simon Roberts
a73b9ede17
Convert ct.debuglog() to logrus.Debug()
3 years ago
Miguel Mota
a86077e77e
Update debuglog method names
3 years ago
Simon Roberts
6d90edfefd
Pass the current coin as context!
3 years ago
Miguel Mota
08e81cabb8
Add subpackage for expression string eval
3 years ago
Miguel Mota
271cf90460
Merge branch 'feature/value-expressions' of https://github.com/simon-anz/cointop into simon-anz-feature/value-expressions
3 years ago
Simon Roberts
b23e65cf28
Use govaluate to evaluate expressions in portfolio entry
3 years ago
Simon Roberts
fcfb0f48fe
Add support for 1Y columns - see https://github.com/miguelmota/cointop/issues/131
3 years ago
Simon Roberts
4828c3e014
Use the highest-rank coin to calculate PortfolioSlice
3 years ago
Simon Roberts
9553ec8a02
When building portfolio slice, include first coin only
3 years ago
Miguel Mota
758e8367f7
Increase number of decimals shown when price < 1. #132
3 years ago
Miguel Mota
baacfbd9ca
Add 24H% change to holdings command
3 years ago
Miguel Mota
52a1699764
Merge branch 'debuglog' of https://github.com/afh/cointop into afh-debuglog
3 years ago
Miguel Mota
220a396258
Reduce number of save calls. #120
3 years ago
Alexis Hildebrandt
5cdfd83056
Use log package for logging
3 years ago
afh
6f92573a93
Merge branch 'master' into numeric-monetary-locale
3 years ago
Miguel Mota
3c97b58e09
Add column filter option to holdings command
3 years ago
afh
7d06a536eb
pkg/humanize: Replace Commaf with Numericf and Monetaryf
...
to allow for locale aware formatting of numbers.
3 years ago
Miguel Mota
bea56532fa
Fix coins and portfolio row selection
3 years ago
Miguel Mota
3aed9846fe
Allow negative holdings balance input. #87
3 years ago
Miguel Mota
aeed426034
Table scroll fix
3 years ago
Miguel Mota
00d654aa74
Update statusbar spacing
3 years ago
Miguel Mota
7fa0af0fa3
Add 30 day percent change column
3 years ago
Miguel Mota
184ebfb497
Dynamic column widths
3 years ago
Miguel Mota
ea93f6b5ca
Table alignment fixes
3 years ago
Miguel Mota
3c9b482708
Go to portfolio page after exiting entry update menu
3 years ago
Miguel Mota
c36f3de781
Add configurable portfolio table columns
3 years ago
Miguel Mota
23fe26297f
Update holdings config
3 years ago
Miguel Mota
093084e859
Full width highlight rows
3 years ago
Miguel Mota
3bc93134c9
Add price alerts table
3 years ago
Miguel Mota
415b4c1d94
Separate out different tables
4 years ago
Miguel Mota
394d35473d
Consolidate UI packages
4 years ago
Miguel Mota
fa9274c44a
Add currency conversion option to holdings command
4 years ago
Miguel Mota
d8f88d8cf3
Add filter flags to holdings command
4 years ago