bichenkk / coinmon Goto Github PK
View Code? Open in Web Editor NEWπ° The cryptocurrency price tool on CLI. π₯
License: MIT License
π° The cryptocurrency price tool on CLI. π₯
License: MIT License
Hello,
After installing, I get the output below on Raspbian:
module.js:327
throw err;
^
Error: Cannot find module 'colors'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/coinmon/src/index.js:7:16)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
Node.js is up to date. How to get the colors module?
Thank you very much in advance.
The -s flag is very useful, on smaller terminals, to limit output.
Would it be possible to add a feature: ability to limit the coin price accuracy to a fixed amount of decimal places (or better yet, total digits - useful for low value coins)
Example: The current bitcoin price shows "6282.25189496", but just "6282" would be fine...
Note: The screenshot on Readme.MD shows bitcoin price limited to 1 decimal place, which is great, however the current version of coinmon gives BTC price to 8 decimal places...
I'd like to see an Ethereum address added to the custom
property of the FUNDING.yml
file for GitHub Sponsors. This would allow a canonical address to send funds to. For example, projects could parse out the address and provide donation capabilities to the user.
Thank you for this program! I have made a simple watch and grep command to monitor some cryptocurrencies that I am interested in but there is one that is not available and that is NuCypher (NU). Is it possible for me to somehow add this in a configuration file?
I don't know js but I gather I'm missing a directory or global path. I'm using zsh.
Upon attempting install:
path.js:975
const path = i >= 0 ? args[i] : process.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at Object.resolve (path.js:975:47)
at Function.Module._resolveLookupPaths (internal/modules/cjs/loader.js:550:17)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:648:20)
at Function.Module._load (internal/modules/cjs/loader.js:580:25)
at Module.require (internal/modules/cjs/loader.js:711:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (/usr/lib/node_modules/coinmon/src/index.js:9:20)
at Module._compile (internal/modules/cjs/loader.js:805:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
at Module.load (internal/modules/cjs/loader.js:672:32)
Hey, just installed Coinmon but can't seem to get it work.
My terminal give me this "/usr/bin/env: βnodeβ: No such file or directory"
Thank you
Just want to get the total market cap
The point of a CLI, is to produce data, that can be run through an ETL pipeline, not visualizations - I could go to coinmarketcap for that. This is what I would currently have to do, just to determine price, so that it could be piped into a downstream process.
$ docker run --rm -ti jaymoulin/coinmon:0.0.22 -s 2 | sed -n '7p' | awk '{ print $2 }'
5095.99288768
...
# instrument value
$ docker run --rm -ti jaymoulin/coinmon:0.0.22 -s 2 \
| sed -n '7p' \
| awk '{ print $2 }' \
| xargs -I{} echo "price_btc {}" \
| curl pushgatway/metrics/job/cryptosamplejob
If coinmon is "The cryptocurrency price tool", then, like, give us the actual unmolested data, not a useless layout.
Hello,
I've just install coinmon (very nice project).
My issue is : with my mobilephone, the display isn't perfect because there is to much columns.
Can we delete the rank column ?
Thank you
There are two coins with the same symbol "BTG"
https://api.coinmarketcap.com/v1/ticker/bitcoin-gold/
https://api.coinmarketcap.com/v1/ticker/bitgem/
so if you have portfolio like this:
{
"btg": 10
}
You get 2 coins instead of one:
-------------------------------------------------------
β Rank β Coin β Price USD β Balance β Estimated Value β
β---------------------------------------------------β
β 22 β BTG β 76.305 β 10 β 763.05 β
β---------------------------------------------------β
β 1087 β BTG β 9.87773 β 10 β 98.78 β
β-----------------------------------------------------
Could you, please, add ability to avoid this problem?
Possible solutions:
Hello, I need some help, I can't figure out what's wrong. I installed this on my mac through the homebrew, but when I try to launch with command "coinmon" I get this error:
β ~ npm install -g coinmon
/Users/Arnas/.npm-global/bin/coinmon -> /Users/Arnas/.npm-global/lib/node_modules/coinmon/src/index.js
+ [email protected]
updated 1 package in 2.567s
β ~ coinmon
zsh: command not found: coinmon
When I just drag the alias /Users/Arnas/.npm-global/bin/coinmon to terminal all works, but it's hardway to launch this alias, any tips?
Currently values in the Market Cap column are displayed without separators, like this 136782547484. I think it would be more readable if they are displayed like this 136 782 547 484 or this 136,782,547,484.
This is a issue for public information about pyCOINMON port based on COINMON.
COINMON is a great project! Congrants! πππ
But I think that the concept of the project may be more powerfull implemented with Python π.
At this moment pyCOINMON has near to 90% of the functionality of COINMON.
https://github.com/RDCH106/pycoinmon
It will be a pleasure to exchange ideas between the projects.
aviros@DESKTOP-PPPS2LQ:/mnt/c/Users/avrum$ coinmon
Coinmon is not working now. Please try again later.
aviros@DESKTOP-PPPS2LQ:/mnt/c/Users/avrum$
Could be useful to have something like -F / --format json
, then parsing the output would be much friendlier π
All on the title, thank you for help me!
Basically I was expecting EVX to show Everex coin but I am seeing nothing, any ideas?
There is no default currency:
twaszczyk@kattomwasnb:~/workspaces/silesia-blockchain-meetup$ coinmon -c eth
We cannot convert to your currency.
twaszczyk@kattomwasnb:~/workspaces/silesia-blockchain-meetup$ coinmon -c usd
Cool to setup default currency like USD.
Thanks for the project!
Hi,
When I run coinmon -p I receive this error message : Please include a valid json file.
I don't understand why?? the other command work very well.
json :
{ "trx": 0, "snm": 2248.95860000, "ada": 0, "ast": 0, "nav": 0, "bqx": 0, "lrc": 0, "kmd": 0, "ven": 0, "omg": , "qtum": 0, "ltc": 0, "dash": 1, "xmr": 1, "dat": 1, "nas": 1 }
Thanks for the help!
Whe specyfing another currency than btc, the only attribute update is "price", change 1h, change 24h and change 7d don't update.
It would be awesome to have the displayed data fit into 80-char lines, as that is roughly the size of most terminal windows. Currently, the rows are 92 characters long, so the table rows wrap in a standard ~80 and it doesn't look great:
Personally, I'd be happy to see fewer digits of market cap and a few less whitespace characters to make this possible.
Would like a feature to get notifications or some form of alerts, based on a set of pre-configured rules ( such as BTC price increase by 1% ). Any plans for taking this up ?
Hey,
It might not make sense for a CLI project but I made a simple logo, if you'd like to use.
Editable vector files (.svg) are inside Archive.zip
Archive.zip
Font: Montserrat
Hi,
I'm kindly requesting to the developers a pure text (or json) output so that it can be inserted into a file,
something like
coinmon -f BTC,ETH -o(utput) >> price.txt
It would be very useful.
Thank you,
Luca
BTC price is far more useful for some of us.
Would you consider enabling the display of the prices in cryptocurrencies instead of fiat ones?
The -p option works fine in Linux, but in Windows I cannot specify an alternate location when running Coinmon in PowerShell.
Appears coincap api, assets limit key is now limited to 6 as the max, despite their api page stating 2000.
coinmon -t 1 thru 6 ; works
coinmon -t 7+; errors
coinmon ; errors
Not sure if much can be done on your end.
An admittedly very minor problem, but on my machine (Ubuntu 17.10, node v6.11.4) the data-row columns are not properly aligned with the header columns.... see here or the attached image for a demo. I don't know if this is perhaps an emoji related issue?
Hello,
I've been getting this issue, tried to install coinmon on a Raspberry Pi 3 with the latest Raspbian.
Node is installed.
Can you please point me in the right direction.
Thank you
`pi@raspberrypi:~ $ coinmon
/usr/local/lib/node_modules/coinmon/src/index.js:30
let portfolioEnabled;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3`
It show
Coinmon is not working now. Please try again later
I'm sorry to inform you that my GitHub token was compromised, leading to the creation of spam posts. Upon discovering this, I took action to close the issue and correct the content.
Is there a feature, or a feature on the roadmap for showing how many tokens of a specific coin you hold? I like the default output with the USD value, but sometimes I want to know how many coins I actually hold.
I love this project guy!
I use it via docker and I like to tag my image properly. I believe it would make sense to define a standard versioning for the project.
Cheers!
Pascal
Hi, thanks for this great little tool!
It would be really great if it would automatically refresh, with a configurable interval. This way, it would act a bit like web-based chart aggregators like cryptowat.ch, and be even more useful!
It would be cool to have a little price graph like the one on coinmarketcap using sparklines. (sparkly)
Enhancement Request:
Consider adding the ability to "find" multiple coins. Possibly using comma/space delimited
coinmon -f btc,neo,xrp,bcn,xmg,xmr,dash
if accepted. allow various sorting approaches, by symbol, price, change, etc....
edit: justed looked at api looks like you may have to use: /ticker/{id}/ to pull back specific coins..
Just loaded fresh via npm, -f works, but no other options.
-> % coinmon -t 50
___ ___ __ ___ ___ ___ ___ ___
/'___\ / __`\ /\_\ /' _ `\ /' __` __`\ / __`\ /' _ `\
/\ \__/ /\ \_\ \\/\ \ /\ \/\ \ /\ \/\ \/\ \ /\ \_\ \/\ \/\ \
\ \____\\ \____/ \ \ \\ \_\ \_\\ \_\ \_\ \_\\ \____/\ \_\ \_\
\/____/ \/___/ \/_/ \/_/\/_/ \/_/\/_/\/_/ \/___/ \/_/\/_/
We are not able to find coins matching your keywords
-> % coinmon
___ ___ __ ___ ___ ___ ___ ___
/'___\ / __`\ /\_\ /' _ `\ /' __` __`\ / __`\ /' _ `\
/\ \__/ /\ \_\ \\/\ \ /\ \/\ \ /\ \/\ \/\ \ /\ \_\ \/\ \/\ \
\ \____\\ \____/ \ \ \\ \_\ \_\\ \_\ \_\ \_\\ \____/\ \_\ \_\
\/____/ \/___/ \/_/ \/_/\/_/ \/_/\/_/\/_/ \/___/ \/_/\/_/
We are not able to find coins matching your keywords
I'll try to figure out what's going on, thought you'd like to know.
Hey there,
Perhaps I missed a part of some configuration but I cannot use coinmon behind a firewall.
coinmon -t 10
/'\ / __\ /\_\ /' _
\ /' __ __
\ / __\ /' _
\
/\ _/ /\ _\ \/\ \ /\ /\ \ /\ /\ /\ \ /\ _\ /\ /\ \
\ _\ _/ \ \ \ _\ _\ _\ _\ _\ _/\ _\ _
// // // //// ////// /_/ ////
Coinmon is not working now. Please try again later.
Is what I get every time running the command.
I suspect that this is a proxying issue.
Hello,
coinmon -t 100
or any number above "10" will mess up the ranks
also coinmon -t 100 -r 0
wont work
my coinmon --version is 0.0.22
Hello,
The readme mentions "Cryptocurrency price ticker CLI", but I can't seem to figure out how to make it start "ticking", i.e. display continuous updates. Is it supposed to be able to?
Sometimes the coinmon script just sits there fetching the data. I run the coinmon inside a while loop and sometimes is just stuck for an unknown amount of time.
Hi, thanks for building a great tool, loving it so far.
I found a bug in the -r (--rank) argument. I have portfolio enabled and I'm trying to sort by 'Estimated Value' but it has no impact on the order.
Here is the command that I'm using:
coinmon -p -s 1,2,4,7,8 -r 8
If I'm missing something obvious, please let me know.
Thanks again!
I love your work. Great job! π Thank you.
You inspired me to write this simple one-file shell script: https://github.com/8go/coinbash
Thank you β€οΈ and keep up the good work. The honors go to you.
Is it possible to add an extra column showing the change from a week?
Most opensource projects have a donation button. Not that I have that much luck with crypto to make you rich, but a small donation to thank you for your efforts would be nice.
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.