Vuong
24a4bdedab
Fix CMC Coin ID ( #282 )
...
* Fix #297 CMC Coin ID
* Remove unused check
Co-authored-by: Simon Roberts <lyricnz@users.noreply.github.com>
2021-11-22 19:37:02 +11:00
Vuong
fdc9664842
Fix/coin link ( #275 )
2021-11-17 07:42:29 +11:00
Vuong
fee0bd9806
Set key binding if key is Uppercase rune and missing Shift
...
- Also revert matchEvent func
2021-11-11 21:46:30 +07:00
Vuong
955eb7dcef
Fix search and keybinding when using Shift
2021-11-09 00:48:24 +07:00
Simon Roberts
8b8db3bd13
Minor code style/comment cleanups; remove redundant code ( #257 )
...
* Fix comments
* Fix bug with localization param
* Remove unused modules, fix a few minor code style issues
2021-11-08 16:02:42 +11:00
Simon Roberts
9a906c3a68
Migrate from termbox-go to tcell ( #232 )
...
Lots of new functionality including:
- mouse support: click select, scroll, menus, table-sorting, etc
- 24-bit color support in themes
Co-authored-by: Simon Roberts <simon.roberts@anz.com>
Co-authored-by: ѵµσɳɠ <3168632+vuon9@users.noreply.github.com>
2021-11-07 14:03:54 +11:00
Simon Roberts
e26816b26c
Fix suffix on y-axis for Millions ( #259 )
2021-10-29 13:51:19 +11:00
Miguel Mota
0e956d6358
portfolio: clean up fixes #243
2021-10-24 12:43:37 +11:00
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.
2021-10-24 12:08:58 +11:00
Simon Roberts
acd8af949d
Add configuration for enable_mouse
2021-10-21 07:55:06 +11:00
Simon Roberts
73a00588ba
If $DEBUG_FILE is set, use that rather than /tmp/cointop.log ( #236 )
2021-10-18 16:16:23 +11:00
Simon Roberts
65bf1394b8
Emit verbose HTTP logging for coingecko when DEBUG_HTTP is set
2021-10-15 07:59:41 +11:00
Simon Roberts
6b6a18d38a
Pass $HTTPS_PROXY to ssh server ( #205 )
...
* Pass $HTTPS_PROXY to ssh server
* Emit additional error when failing to set HostKeyFile
2021-10-10 08:26:21 +11:00
Simon Roberts
e843b79ac1
Merge branch 'cointop-sh:master' into bugfix/zero-left
2021-10-09 16:56:36 +11:00
Simon Roberts
cf5270623d
Fix global chart always showing in USD, and add current currency to chart name ( #209 )
...
* Use exchange-rates to convert GlobalMarketGraphData
* Ask for global data in usd just in case it starts working again :)
* Include currency conversion in chart title #207
* Better error handling
2021-10-09 16:15:58 +11:00
Simon Roberts
bbf4144ebb
Fix edge case with resample min-time
2021-10-09 12:39:42 +11:00
Simon Roberts
1713392f08
Update comment
2021-10-08 11:46:50 +11:00
Simon Roberts
aece767608
Use new FormatTime for X-axis labels and last_updated
2021-10-08 11:26:35 +11:00
Simon Roberts
9e910402f5
New method to format date-time in locale and LC_TIME sensitive way
2021-10-08 11:20:11 +11:00
Simon Roberts
11bf5e23df
Start working on locale-sensitive date-time formatting
2021-10-07 08:06:58 +11:00
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.
2021-10-07 08:02:21 +11:00
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
2021-10-05 08:01:42 +11:00
Simon Roberts
b986017d6c
DefaultCacheDir = ":PREFERRED_CACHE_HOME:/cointop" ( #197 )
2021-10-03 16:31:50 +11:00
Simon Roberts
9824c409ad
Feature/code cleanups ( #191 )
...
Lots of style/comment/redundancy cleanups. No functional change.
2021-10-01 17:03:36 +10:00
Miguel Mota
f375eec1eb
Rename org miguelmota → cointop-sh
2021-09-29 23:17:58 -07:00
Simon Roberts
620e5c737c
Remove debug code
2021-09-27 08:28:42 +10:00
Simon Roberts
6e99e9100f
Add time labels to X axis
2021-09-27 08:21:24 +10:00
Simon Roberts
e8fcd4a7a4
Remove interpolateData()
2021-09-26 19:50:26 +10:00
Simon Roberts
370b9f3a56
Fix comments
2021-09-26 19:27:27 +10:00
Simon Roberts
49ac2fbc0f
Ask the chart how many data points it needs
2021-09-26 18:53:25 +10:00
Simon Roberts
065f23eba2
Merge branch 'master' into feature/resample-data
2021-09-26 18:43:13 +10:00
Simon Roberts
f38bc4ca3f
Continue from https://github.com/miguelmota/cointop/pull/165
2021-09-26 18:41:03 +10:00
Simon Roberts
26981df6a5
Add currency conversion to Satoshi
2021-09-25 10:27:14 +10:00
Miguel Mota
5f76e89a0b
Optimize Dockerfile #127
2021-09-07 22:31:18 -07:00
Simon Roberts
e638040372
When evaluating, take an environment to provide as context
2021-09-01 10:35:23 +10:00
Simon Roberts
0074ecfff9
Patch expression to substitute Float64 for Integer. Update docs to include '/'
2021-09-01 09:29:04 +10:00
Simon Roberts
09b66439fc
Switch to github.com/antonmedv/expr for expression evaluation
2021-08-30 11:19:34 +10:00
Miguel Mota
b0dd16f813
Unbind forward slash keybinding when not in table view. #150 #149
2021-08-29 03:22:14 -07:00
Miguel Mota
08e81cabb8
Add subpackage for expression string eval
2021-08-29 02:15:49 -07:00
Simon Roberts
fcfb0f48fe
Add support for 1Y columns - see https://github.com/miguelmota/cointop/issues/131
2021-08-26 10:29:25 +10:00
Patryk Pomykalski
ed1bcedf7b
Fix filecache locking
...
Added mutex for map access. Removed mutex for openfile.
2021-07-07 20:49:52 +02:00
Miguel Mota
758e8367f7
Increase number of decimals shown when price < 1. #132
2021-07-04 02:02:52 -07:00
Miguel Mota
f127de3048
ssh: Add support for holdings command
2021-04-25 13:51:26 -07:00
Miguel Mota
9fab6bd5b9
File cache fix
2021-04-25 12:18:53 -07:00
Alexis Hildebrandt
cae7d520f0
Merge branch 'master' into table-alignment
2021-04-21 08:20:45 +02:00
Miguel Mota
342afeadab
Merge branch 'preferred_cache_home' of https://github.com/afh/cointop into afh-preferred_cache_home
2021-04-20 22:26:02 -07:00
Alexis Hildebrandt
5933f22020
Ignore ANSI escape codes when when determining string length
...
to calculate width and padding for table alignment.
2021-04-20 10:29:09 +02:00
afh
cb2d24bc11
Add support for :PREFERRED_CACHE_HOME:
2021-04-19 07:38:49 +02:00
afh
6f92573a93
Merge branch 'master' into numeric-monetary-locale
2021-04-18 23:57:09 +02:00
Miguel Mota
6a4aac1277
Add filecache prefix based on config file path
2021-04-18 11:06:28 -07:00