Simon Roberts
aece767608
Use new FormatTime for X-axis labels and last_updated
3 years ago
Simon Roberts
3b37cc34c3
Scale large numbers by adding Million Billion Trillion suffix ( #200 )
...
Add option for scaling Thousand Million Billion Trillion numbers by adding suffix.
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
a07bed9dab
command[clean]: Delete cache_dir from config
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
Simon Roberts
95a31d5488
Save chart height after change.
3 years ago
Simon Roberts
a85fb5ea50
Move maxChartWidth to [chart] section in config. Start working on persistent chart height
3 years ago
Simon Roberts
4fa05a5e88
Use constant for DefaultChartHeight
3 years ago
Simon Roberts
f0631cf2de
The world is not ready for configurable MaxTableWidth
3 years ago
Simon Roberts
caccc13ea0
Move maxChartWidth to ct.State
3 years ago
Simon Roberts
9a270d4b19
Allow configurable max_chart_width (default 175, if 0 use full width)
...
Start working on MaxTableWidth
3 years ago
Simon Roberts
562c5fd3f4
Merge pull request #184 from lyricnz/feature/x-labels
...
Show X axis labels on charts
3 years ago
Simon Roberts
5ef09ea40a
Handle 0/1 data items returned before resampling
3 years ago
Simon Roberts
2f616e2c35
When we are not aggregating multiple prices, use the oldest data available as the left hand side of chart, not the requested start.
3 years ago
Simon Roberts
72d2c997f5
Set "All Time" to 10 Years
3 years ago
Simon Roberts
9d8843389d
Use more accurate Duration for Year and Month ranges
3 years ago
Simon Roberts
6e99e9100f
Add time labels to X axis
3 years ago
Simon Roberts
370b9f3a56
Fix comments
3 years ago
Simon Roberts
a2e432bb1b
Merge branch 'feature/resample-data' of https://github.com/lyricnz/cointop into feature/resample-data
3 years ago
Simon Roberts
49ac2fbc0f
Ask the chart how many data points it needs
3 years ago
Simon Roberts
162e6cd442
Merge branch 'miguelmota:master' into feature/resample-data
3 years ago
Simon Roberts
065f23eba2
Merge branch 'master' into feature/resample-data
3 years ago
Simon Roberts
f38bc4ca3f
Continue from https://github.com/miguelmota/cointop/pull/165
3 years ago
Miguel Mota
b6c0579b38
Remove redundant line. #166
3 years ago
Miguel Mota
6a02661dc6
Merge branch 'feature/duplicate-symbols-cache-fix' of https://github.com/lyricnz/cointop into lyricnz-feature/duplicate-symbols-cache-fix
3 years ago
Miguel Mota
72805843c9
Merge branch 'bugfix/hide-portfolio-balances' of https://github.com/lyricnz/cointop into lyricnz-bugfix/hide-portfolio-balances
3 years ago
Miguel Mota
36729f8ed8
Add an extra space if it is satoshi character because it overlaps text on right
3 years ago
Simon Roberts
9c86ae5de7
Use common function to generate cache keys, and fix GlobalMarketData vs Conversion caching bug
3 years ago
Simon Roberts
26981df6a5
Add currency conversion to Satoshi
3 years ago
Simon Roberts
f2bab24d11
Remove portfolio balance from chart X-axis too
...
Hide percentChange24H when in hidePortfolioBalances mode
Update portfolio balances (private mode) screenshot
Scale portfolio chart (in hide-balances mode) so current-value is 1.0
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
dfc5ce4f21
Remove unused variable
3 years ago
Simon Roberts
f7a145a002
Fix another printf log
3 years ago
Simon Roberts
6e979f0bf9
Remove leftover code
3 years ago
Simon Roberts
32990cdbaf
Remove downsample code (feature WIP)
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
b0dd16f813
Unbind forward slash keybinding when not in table view. #150 #149
3 years ago
Miguel Mota
08e81cabb8
Add subpackage for expression string eval
3 years ago
Miguel Mota
1f0f6d39d6
Merge branch 'simon-anz-feature/value-expressions'
3 years ago
Miguel Mota
fb79419c84
Only open search if active view is table. #150
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
Miguel Mota
296590b466
Merge branch 'feature/30d-and-1y-change' of https://github.com/simon-anz/cointop into simon-anz-feature/30d-and-1y-change
3 years ago
Simon Roberts
79b2fb8ea6
Change hotkey for 1Y change to "y"
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
b32da4010c
Include currencyConversion in the cache key so changing currencies invalidates the cache. See https://github.com/miguelmota/cointop/issues/144
3 years ago
Simon Roberts
e7d32f18fc
Merge branch 'master' into bugfix/range-update-corrupt-cache
3 years ago
Miguel Mota
28a7bfbbd9
Return error if default chart range is invalid
3 years ago
Simon Roberts
e60bc6dcd6
Include DefaultChartRange in default config
3 years ago
Simon Roberts
b83d15cdc1
Store default chart range in configuration file
3 years ago
Simon Roberts
b078dbd2f6
Use the highest-rank coin to calculate PortfolioSlice
3 years ago
Simon Roberts
a34417ad61
When building portfolio slice, include first coin only
3 years ago
Simon Roberts
ba75de3c00
Cache ct.State.selectedChartRange and ct.State.currencyConversion so data-fetch is not impacted by concurrent change
3 years ago
Miguel Mota
ac93b8fbe0
Return error if default chart range is invalid
3 years ago
Miguel Mota
becca5e46c
Merge branch 'feature/configurable-chart-range' of https://github.com/simon-anz/cointop into simon-anz-feature/configurable-chart-range
3 years ago
Miguel Mota
d465970cbb
Merge branch 'bugfix/duplicate-coins' of https://github.com/simon-anz/cointop into simon-anz-bugfix/duplicate-coins
3 years ago
Simon Roberts
6ec915abe9
Include DefaultChartRange in default config
3 years ago
Simon Roberts
4828c3e014
Use the highest-rank coin to calculate PortfolioSlice
3 years ago
Simon Roberts
2a9f995286
Store default chart range in configuration file
3 years ago
Simon Roberts
9553ec8a02
When building portfolio slice, include first coin only
3 years ago
Simon Roberts
bea5c67759
When rendering portfolio chart, only append data when resizing array
3 years ago
Miguel Mota
758e8367f7
Increase number of decimals shown when price < 1. #132
3 years ago
Miguel Mota
fa1fdca5e7
Row active colorscheme fix
3 years ago
Miguel Mota
e7531ca635
Add keybinding to toggle chart fullscreen
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
Alexis Hildebrandt
dcd0410a19
Address PR comments
3 years ago
Miguel Mota
8c71604732
Merge branch 'afh-rank-color'
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
Miguel Mota
b2bcd01bfe
Merge branch 'rank-color' of https://github.com/afh/cointop into afh-rank-color
3 years ago
Miguel Mota
4c67b63422
Merge branch 'alert-price-entry' of https://github.com/afh/cointop into afh-alert-price-entry
3 years ago
afh
6f92573a93
Merge branch 'master' into numeric-monetary-locale
3 years ago
afh
b2e61bc8c9
Simplify rank cell color handling
3 years ago
Miguel Mota
3c97b58e09
Add column filter option to holdings command
3 years ago
afh
c813cff84f
Format alert target price without exponent
3 years ago
Miguel Mota
6a4aac1277
Add filecache prefix based on config file path
3 years ago
Miguel Mota
e0acaf9554
Fix custom config file path. #106
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
c79d601bbf
Price alert entry fix
3 years ago
Miguel Mota
bea56532fa
Fix coins and portfolio row selection
3 years ago
Miguel Mota
3270d12ab8
Fix next/prev column sort
3 years ago
Miguel Mota
3aed9846fe
Allow negative holdings balance input. #87
3 years ago
Miguel Mota
faabbfc8a6
Add max pages flag
3 years ago
Miguel Mota
38b279083f
Table view nil check
3 years ago
Miguel Mota
aeed426034
Table scroll fix
3 years ago
Miguel Mota
0a0530de5a
Add option to keep row focus on sort
3 years ago
Miguel Mota
296c67e6fd
Allow shortcut keys not in default config
3 years ago
Miguel Mota
6605cc548c
Chart width data interpolation
3 years ago
Miguel Mota
295f163ae2
Update CoinMarketCap graph data endpoint
3 years ago
Miguel Mota
0576b043d4
Price command flag alias
...
Remove top empty line
3 years ago
Miguel Mota
99bbeadc2d
Support multiple coins for price command
3 years ago
Miguel Mota
00d654aa74
Update statusbar spacing
3 years ago