nexuist / coinmarketcapapi Goto Github PK
View Code? Open in Web Editor NEWJSON API for coinmarketcap.com written in node and hosted on OpenShift.
Home Page: https://coinmarketcap-nexuist.rhcloud.com
JSON API for coinmarketcap.com written in node and hosted on OpenShift.
Home Page: https://coinmarketcap-nexuist.rhcloud.com
A system is needed to alert me when the values returned have stopped being updated.
it seems as if the server is dead :-(
/root/coinapi/lib/CoinFactory.js:25
"symbol": tds.eq(4).text().match(/\s([a-z]|[0-9])+\s/i)[0].trim().toLowerCase(),
^
TypeError: Cannot read property '0' of null
at CoinFactory.produce (/root/coinapi/lib/CoinFactory.js:25:62)
at Object. (/root/coinapi/lib/CoinCrawler.js:30:33)
at initialize.exports.each (/root/coinapi/node_modules/cheerio/lib/api/traversing.js:294:24)
at Request._callback (/root/coinapi/lib/CoinCrawler.js:29:14)
at Request.self.callback (/root/coinapi/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/root/coinapi/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
Thanks for your work, first :-)
I'd like to use your piece of code on my VPS, but I'm not a coder, so I need a more detailed README or a INSTALL file, please !
The aim would be to be able to have all cryptocurrencies prices, not just the top 100... Would you please add this option, or create an INSTALL file ;-) ?
Paycoin's price in the API is no longer updating with CoinMarketCap's price
Hi guys - are you aware that this has stopped returning currency values?
http://coinmarketcap-nexuist.rhcloud.com/api/all :
{
"Bitcoin": {
"symbol": "btc",
"position": "1",
"market_cap": {
"usd": "4324763530.88",
"eur": "NaN",
"cny": "NaN",
"cad": "NaN",
"rub": "NaN",
"btc": "13352775.0"
},
"price": {
"usd": "323.885",
"eur": "NaN",
"cny": "NaN",
"cad": "NaN",
"rub": "NaN",
"btc": "1.0"
},
"supply": "13352775",
"volume": {
"usd": "101686000",
"eur": "NaN",
"cny": "NaN",
"cad": "NaN",
"rub": "NaN",
"btc": "312041.0"
},
"change": "4.21",
"timestamp": 1412595618.315
},
Not working returns:
{"error":"Requested coin does not exist or has not been updated yet."}
I noticed if you use a full name instead of a ticker, you get outdated data.
https://coinmarketcap-nexuist.rhcloud.com/api/ltc
vs
https://coinmarketcap-nexuist.rhcloud.com/api/litecoin
Is there any way you can flush this old data from your instance? Thanks :)
Error message when you try to contact the server.
Voxels just crashed https://coinmarketcap-nexuist.rhcloud.com/api/vox
I'm developing a personal project that uses your API. It worked fine when I was using Safari to develop it, but when I tried to test in Chrome or any other browser, I got this error: "No 'Access-Control-Allow-Origin' header is present on the requested resource." I've done a bit of research into this, and most things I've found say that you have to change settings in the API server to enable CORS, but I obviously don't really have access to the server for this API. I could be using it wrong, but here is what I am doing in my code. Any advice?
$.ajax({
type: 'GET',
url: "http://coinmarketcap-nexuist.rhcloud.com/api/all",
processData: true,
data: {},
dataType: "json",
success: function (data) {
processData(data);
}
});
function processData(data){
console.log(data);
var btcvalg = data.btc.price.usd;
}
Perhaps I am getting this wrong, but I could swear that the answer of
http://coinmarketcap-nexuist.rhcloud.com/api/all
previously not only contained the SYMBOL, but also the NAME of the coin.
What happened?
Thanks
any idea where this might be coming from?
0|main | Wed Oct 18 2017 01:06:45 GMT+0000 (UTC): Server started.
0|main | TypeError: Cannot read property '0' of null
0|main | at CoinFactory.produce (/root/CoinMarketCapAPI/lib/CoinFactory.js:25:64)
0|main | at Object.<anonymous> (/root/CoinMarketCapAPI/lib/CoinCrawler.js:30:33)
0|main | at initialize.exports.each (/root/CoinMarketCapAPI/node_modules/cheerio/lib/api/traversing.js:294:24)
0|main | at Request._callback (/root/CoinMarketCapAPI/lib/CoinCrawler.js:29:14)
0|main | at Request.self.callback (/root/CoinMarketCapAPI/node_modules/request/request.js:188:22)
0|main | at emitTwo (events.js:106:13)
0|main | at Request.emit (events.js:191:7)
0|main | at Request.<anonymous> (/root/CoinMarketCapAPI/node_modules/request/request.js:1171:10)
0|main | at emitOne (events.js:96:13)
0|main | at Request.emit (events.js:188:7)
PM2 | App [main] with id [0] and pid [3189], exited with code [1] via signal [SIGINT]
PM2 | Starting execution sequence in -fork mode- for app name:main id:0
PM2 | App name:main id:0 online
q0|main | Wed Oct 18 2017 01:06:46 GMT+0000 (UTC): Server started.
0|main | TypeError: Cannot read property '0' of null
0|main | at CoinFactory.produce (/root/CoinMarketCapAPI/lib/CoinFactory.js:25:64)
0|main | at Object.<anonymous> (/root/CoinMarketCapAPI/lib/CoinCrawler.js:30:33)
0|main | at initialize.exports.each (/root/CoinMarketCapAPI/node_modules/cheerio/lib/api/traversing.js:294:24)
0|main | at Request._callback (/root/CoinMarketCapAPI/lib/CoinCrawler.js:29:14)
0|main | at Request.self.callback (/root/CoinMarketCapAPI/node_modules/request/request.js:188:22)
0|main | at emitTwo (events.js:106:13)
0|main | at Request.emit (events.js:191:7)
0|main | at Request.<anonymous> (/root/CoinMarketCapAPI/node_modules/request/request.js:1171:10)
0|main | at emitOne (events.js:96:13)
0|main | at Request.emit (events.js:188:7)
PM2 | App [main] with id [0] and pid [3215], exited with code [1] via signal [SIGINT]
PM2 | Starting execution sequence in -fork mode- for app name:main id:0
PM2 | App name:main id:0 online
0|main | Wed Oct 18 2017 01:06:47 GMT+0000 (UTC): Server started.
http://coinmarketcap-nexuist.rhcloud.com/api/BCAP
Getting error with BCAP token, and with list of other less valuable tokens.
This is exactly what I was looking for but it's not updating correctly (rates never change).
Thanks to @XBTE on Twitter for pointing this out.
For coins like "MasterCoin (Omni)" the API is returning "MasterCoin (...". This is due to the fact that this is what the text on coinmarketcap.com says. The relevant HTML is below:
<td class="no-wrap currency-name">
<img src="/static/img/coins/16x16/mastercoin.png" class="currency-logo" alt="Mastercoin (Omni)">
<a href="/currencies/mastercoin/">Mastercoin (..*</a>
</td>
Thankfully, this appears to be an easy fix. Instead of extracting the name from the anchor tag we can just get the alt text from the img tag. I'll try to get this done soon.
http://coinmarketcap-nexuist.rhcloud.com/api/btc/timestamp
It just doesn't load. This may be due to the timestamp being a Number object.
Hello everyone,
On September 30, 2017, OpenShift shut down their V2 online cloud hosting platform. This is what CoinMarketCapAPI was running on. If you try to access it now, you will get an HTTP 503 error. OpenShift is offering a new version of their platform but that will require some migration on my part to get the existing codebase to be compatible with it.
I am opening this issue to allow anyone who is interested to voice their opinion on the future of this project and provide any feedback they may have for me. If enough people want it, I will take the necessary steps to get this working on OpenShift again, or migrate to another platform like DigitalOcean.
Thank you all for your support,
Andi
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.