cointop-sh / cointop Goto Github PK
View Code? Open in Web Editor NEWA fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
Home Page: https://cointop.sh
License: Apache License 2.0
A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
Home Page: https://cointop.sh
License: Apache License 2.0
Installed via homebrew on osx. First run ran fine. However, after exiting and attempting to run again I am presented with:
$ cointop
2019/02/27 00:33:15 failed to ping
I've tried this on a second machine with the same results, also from homebrew
OSX 10.12.6
$ brew --version
Homebrew 2.0.2
Homebrew/homebrew-core (git revision de949; last commit 2019-02-26)
Homebrew/homebrew-cask (git revision 18160; last commit 2019-02-27)
I was able to set the portfolio values for several altcoins, but when it came to ETH and BTC it wouldn't "stick".
I was able to set them manually in the config file however. In there they where both set as 0.0, even after editing inside cointop.
Now i am able to change the portfolio values from inside cointop as i would assume it should function.
Sorry for not having the template
Hi good day! Im Jibbie Eguna, a graphics designer, I would like to ask for your permission to propose a new designs of logo in your application/project. I would like to help projects in open-source .I would just like to propose new designs if you are needing it. Hoping for your positive response Thank You!
I installed go, latest version and used the command for windows go get -u github.com/miguelmota/cointop. It did not show any error and came to next line.
I used cointop to start but error shows up.
C:\Users\RohitSingh>go get -u github.com/miguelmota/cointop
C:\Users\RohitSingh>cointop
time="2019-06-11T21:11:07+05:30" level=fatal msg="mkdir : The system cannot find the path specified."
All that needs to happen to reproduce this error on my machine is:
~ λ cointop
panic: runtime error: index out of range [7] with length 0
goroutine 1 [running]:
github.com/jroimartin/gocui.(*View).Write(0xc0004100f0, 0xc00041e000, 0x9de, 0xa80, 0xc000465900, 0xc000465900, 0x555c389de05d)
/home/gideon/go/pkg/mod/github.com/jroimartin/[email protected]/view.go:224 +0x4e0
fmt.Fprint(0x555c390c21a0, 0xc0004100f0, 0xc000465968, 0x1, 0x1, 0x1, 0xc000650000, 0x9de)
/usr/lib/go/src/fmt/print.go:233 +0x8d
github.com/miguelmota/cointop/cointop.(*Cointop).UpdateChart.func1()
cointop/chart.go:102 +0x14c
github.com/miguelmota/cointop/cointop.(*Cointop).update.func1(0xc0003dc000, 0xc0004659c0, 0x2)
cointop/update.go:19 +0x26
github.com/jroimartin/gocui.(*Gui).MainLoop(0xc0003dc000, 0xc0003dc000, 0x0)
/home/gideon/go/pkg/mod/github.com/jroimartin/[email protected]/gui.go:377 +0x2db
github.com/miguelmota/cointop/cointop.(*Cointop).Run(0xc000170420, 0x0, 0x0)
cointop/cointop.go:353 +0x355
github.com/miguelmota/cointop/cmd.Execute.func1(0xc00017a000, 0x555c3942c4c0, 0x0, 0x0, 0x0, 0x0)
cmd/cointop.go:77 +0x249
github.com/spf13/cobra.(*Command).execute(0xc00017a000, 0xc0000201d0, 0x0, 0x0, 0xc00017a000, 0xc0000201d0)
/home/gideon/go/pkg/mod/github.com/spf13/[email protected]/command.go:826 +0x462
github.com/spf13/cobra.(*Command).ExecuteC(0xc00017a000, 0xc0000a9f18, 0x5, 0x5)
/home/gideon/go/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x2fd
github.com/spf13/cobra.(*Command).Execute(...)
/home/gideon/go/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/miguelmota/cointop/cmd.Execute()
cmd/cointop.go:152 +0xd56
main.main()
main.go:8 +0x22
This is running in urxvt on Arch Linux
yanyiwu@yanyiwudeMacBook-Air /Users/yanyiwu/code/blog/_posts master
⚡ go version
go version go1.5.1 darwin/amd64
yanyiwu@yanyiwudeMacBook-Air /Users/yanyiwu/code/blog/_posts master
⚡ go get -u github.com/miguelmota/cointop
# github.com/gizak/termui
../../../golang/src/github.com/gizak/termui/render.go:107: not enough arguments in call to stack.ParseDump
../../../golang/src/github.com/gizak/termui/render.go:112: undefined: stack.Palette
../../../golang/src/github.com/gizak/termui/render.go:113: undefined: stack.SortBuckets
../../../golang/src/github.com/gizak/termui/render.go:113: undefined: stack.Bucketize
../../../golang/src/github.com/gizak/termui/render.go:114: undefined: stack.CalcLengths
Is your feature request related to a problem? Please describe.
Coinmarket cap is now requiring an API key for the use of their API. A fresh install currently logs Pro API Key is required
. A basic account only has about 333/day requests, so it looks like there might need to be a way to either turn off polling or reduce the refresh rate.
Describe the solution you'd like
A customizable setting in the config file that will accept a refresh rate argument. It should accept a way to completely turn off refresh rates to force the user to manually refresh, and it should accept a numeric value for a refresh rate.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
None really.
When converting your portfolio to bitcoin, cointop lists all low value altcoins as 0 sats.
Does it support automatic refresh?
$ cointop --flag
panic: unknown flag: --flag
goroutine 1 [running]:
github.com/miguelmota/cointop/cointop/cmd.Execute()
/home/ubuntu/go/src/github.com/miguelmota/cointop/parts/cointop/go/src/github.com/miguelmota/cointop/cointop/cmd/cmd.go:18 +0x187
main.main()
/home/ubuntu/go/src/github.com/miguelmota/cointop/parts/cointop/go/src/github.com/miguelmota/cointop/cmd/cointop/cointop.go:8 +0x20
Hi,
Could it be possible to personnalize the background color with transparency support ?
I built a snap of cointop which you can install on Ubuntu (and other distros) with snap install cointop
. However pressing Enter on a line doesn't launch a browser (as I expect it should). It appears that cointop calls /bin/openvt
when it might be better to just call xdg-open
(without the path) which is a more robust way of launching URLs on Linux AIUI.
Is it possible to add support for conversion to NOK (Norwegian kroner) in a future release?
After running cointop
, the screen flashes for a second and some HTML is dumped into the terminal. After that, the app exits, but scrolling in the terminal remains disabled. Here is a part that fits into my terminal:
<div class="g-recaptcha"></div>
<noscript id="cf-captcha-bookmark" class="cf-captcha-info">
<div><div style="width: 302px">
<div>
<iframe src="https://www.google.com/recaptcha/api/fallback?k=6LfBixYUAAAAABhdHynFUIMA_sa4s-XsJvnjtgB0" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"></iframe>
</div>
<div style="width: 300px; border-style: none; bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px; background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
<textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid #c1c1c1; margin: 10px 25px; padding: 0px; resize: none;"></textarea>
<input type="submit" value="Submit"></input>
</div>
</div></div>
</noscript>
</form>
</div>
</div>
<div class="cf-column">
<div class="cf-screenshot-container">
<span class="cf-no-screenshot"></span>
</div>
</div>
</div><!-- /.columns -->
</div>
</div><!-- /.captcha-container -->
<div class="cf-section cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">
<h2 data-translate="why_captcha_headline">Why do I have to complete a CAPTCHA?</h2>
<p data-translate="why_captcha_detail">Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.</p>
</div>
<div class="cf-column">
<h2 data-translate="resolve_captcha_headline">What can I do to prevent this in the future?</h2>
<p data-translate="resolve_captcha_antivirus">If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.</p>
<p data-translate="resolve_captcha_network">If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.</p>
</div>
</div>
</div><!-- /.section -->
<div class="cf-error-footer cf-wrapper">
<p>
<span class="cf-footer-item">Cloudflare Ray ID: <strong>538b7116dd9e6924</strong></span>
<span class="cf-footer-separator">•</span>
<span class="cf-footer-item"><span>Your IP</span>: 194.187.249.59</span>
<span class="cf-footer-separator">•</span>
<span class="cf-footer-item"><span>Performance & security by</span> <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link" target="_blank">Cloudflare</a></span>
</p>
</div><!-- /.error-footer -->
</div><!-- /#cf-error-details -->
</div><!-- /#cf-wrapper -->
<script type="text/javascript">
window._cf_translation = {};
</script>
</body>
</html>
Apparently, cointop
attempts to access some website, runs into a CAPTCHA request and crashes.
Hi tried marking my favorites and tested out the portfolio feature. It is for some reason showing me two entries for Bitcoin in portfolio and favorites. Resulting in double the value of my holdings
Greetings!
I am an aspiring graphics designer and I have some designs for your project, I can show you the design if you wanted to do so.
e.g. /REQ
will kill the process
I get this when I try to install in Termux
$ go get -u github.com/miguelmota/cointop
# github.com/miguelmota/cointop/vendor/github.com/fatih/color
go/src/github.com/miguelmota/cointop/vendor/github.com/fatih/color/color.go:21:43: undefined: isatty.IsCygwinTerminal
Hi,
Would it be possible to add support for the BEST coin?
https://www.coingecko.com/en/coins/bitpanda-ecosystem-token
Also, would it be easy to implement price alerts?
E.g. indicating price alerts on the graph by a horizontal line would already be nice.
Then, alerting the user somehow if an alert was triggered would be a plus.
When a user has defined the environment variable XDG_CONFIG_HOME
, the expected behavior of programs that use that environment variable is to place their config directory in$XDG_CONFIG_HOME/<name of app>/
. On first startup of cointop
it does not follow the expected behavior and instead places its config directory in $XDG_CONFIG_HOME/.config/cointop/
. This breaks automation scripts that expect the app to properly leverage the environment variable (ex. scripting downloading cointop and placing the color schemes in the cointop
config directory).
One way to fix this could be to change defaultConfigFilePath
call a function that checks if XDG_CONFIG_HOME
is defined and would either return the expanded value of $XDG_CONFIG_HOME/cointop/config.toml
or ~/.config/cointop/config.toml
if XDG_CONFIG_HOME
is not defined.
System Information:
Steps to reproduce:
XDG_CONFIG_HOME
environment variable in your shell's rc file or $HOME/.profile
cointop
using go get -u github.com/miguelmota/cointop
cointop
and run ls -a $XDG_CONFIG_HOME
to verify that $XDG_CONFIG_HOME
does not contain a cointop
directory, but does contain a .config
directory with a cointop
subdirectory.Thanks for working on this, it looks awesome. Could you please consider making it available as a Flatpak as it's a much better improvement to snap packages which seem to be Ubuntu-only.
Would you also consider publishing an RPM format via COPR?
Hi, really cool project! Is there a reason that several dependencies are stored in the pkg
folder, rather than managed with go modules and stored in vendor
? I was curious what rendering library you were using (termui vs gocui) and I didn't see either in go.mod
, but noticed both libraries are stored in the pkg
folder. Looks like there's also go-cache
, termbox
, now
, and maybe some others too.
When favourite list is smaller than screen height page down causes program exit.
https://github.com/miguelmota/cointop/blob/master/cointop/navigation.go#L96 - k is negative here
hi can you please add MYR as part of the currency ?
Thank you
panic: mkdir /tmp: read-only file system
goroutine 1 [running]:
github.com/miguelmota/cointop/cointop/common/filecache.NewFileCache(0x40001f3a70, 0x5)
/data/data/com.termux/files/home/go/pkg/mod/github.com/miguelmota/[email protected]/cointop/common/filecache/filecache.go:45 +0x160
github.com/miguelmota/cointop/cointop.NewCointop(0x40001f3c50, 0x5be5b5a6f6, 0xc, 0x0)
/data/data/com.termux/files/home/go/pkg/mod/github.com/miguelmota/[email protected]/cointop/cointop.go:180 +0x1c24
github.com/miguelmota/cointop/cointop/cmd.RootCmd.func1(0x40001a6b00, 0x5be60008b0, 0x0, 0x0, 0x0, 0x0)
/data/data/com.termux/files/home/go/pkg/mod/github.com/miguelmota/[email protected]/cointop/cmd/root.go:80 +0x1d0
github.com/spf13/cobra.(*Command).execute(0x40001a6b00, 0x40001121b0, 0x0, 0x0, 0x40001a6b00, 0x40001121b0)
/data/data/com.termux/files/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x2f8
github.com/spf13/cobra.(*Command).ExecuteC(0x40001a6b00, 0x40001f3f18, 0x8, 0x8)
/data/data/com.termux/files/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x24c
github.com/spf13/cobra.(*Command).Execute(...)
/data/data/com.termux/files/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
github.com/miguelmota/cointop/cointop/cmd.Execute()
/data/data/com.termux/files/home/go/pkg/mod/github.com/miguelmota/[email protected]/cointop/cmd/cmd.go:22 +0xf4
main.main()
/data/data/com.termux/files/home/go/pkg/mod/github.com/miguelmota/[email protected]/main.go:8 +0x18
Is there a way I can get cointop to output my current holdings? Specifically the entire holdings in fiat. If not can this be implemented?
Ubuntu on Windows 10
error: cannot communicate with server: Post http://localhost/v2/snaps/cointop: dial unix /run/snapd.socket: connect: no such file or directory
From the API is possibile to select a different currency: https://api.coinmarketcap.com/v2/ticker/?convert=EUR&limit=10
Problem seems to occur when at least two currencies share the same symbol. Cointop will seemingly randomly load either one on startup.
Current example would be the symbol HOT which is used by Holochain and Hydro Protocol.
I maintain the cointop port on FreeBSD and I upgraded it to the latest version 1.3.6 released so far, on my system. After opening cointop, it seems to freeze after the data is shown on screen. Can not hit Enter, go up or down, or even quit.
Hello! I just installed the Go version and it's pretty awesome. However, I find some shortcut to be unintuitive. For example, Ctrl+d and Ctrl+u aren't exactly the first thing I'd think about in order to go up/down. Here's some ideas :
Page Up : Go to the page's first entry
Page Down : Go to the page's last entry
Home : Go to the first page
End : Go to the last page
Insert : Add to favourites
Delete : Remove from favourites
Have a nice day!
Hi there. I was attempting to use your tool on Ubuntu 19.04 with a pretty fresh install of the OS with few modifications. The app seems to crash and locks up the terminal along with it. I've included a screenshot of the error and will try to get the crashlog in text form momentarily. I believe the most recent update made this crash happen rather in a few seconds to immediately upon start.
If there's other details you'd like or would find helpful, please let me know.
It does change the behavior for me, but now it insta-crashes. I've installed from source via the go get
command and not from a package manager. I'll be around today at the keys if you want more details.
go version go1.12.3 linux/amd64
It still panics on concurrent map access. Cointop.allcoinsslugmap and Colorscheme.cache should be guarded by mutexes.
Love the app, but seem to be getting a weird issue with the sorting.
If I restart the app, the default sort order under rank is all messaged up. For me to fix it up, I need to do a cointop reset
and then it works. This has happened on a macOS and Linux host, both installe via brew
.
See the following screenshot of the sorting issue;
https://pasteboard.co/JlXcwYy.png
Any ideas?
Eventually including the possibility of adding a fixed amount of fiat (dollars, euros, ...) to the portfolio would be very useful in many cases (for example when you are monitoring the total amount - split into different currencies and cryptocurrencies - you have on an exchange).
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.