News for hackers. Stuff that matters.
Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @01:57AM (#18625665)
Work in progress!

The linked graph are in PDF, and should update every hour soon.

The website is made to be fast to read, and give essential information. It should load very fast. No ads. No metrics. No bullshit.

The JSON API is similar to the deprecated CMC API. But no need of API key and you get not just the last price, but bid and ask.

Feedback is much appreciated!

Re:Show HN: Coinmarketcap replacement with free JSON API by DINKDINK on Friday December 07, 2018 @04:11AM (#18626148)
Cool site! but:

Get an SSL certificate so you serve over https https://letsencrypt.org/getting-started/

"But I don't need a SSL...." Here's Why Your Static Website Needs HTTPS https://www.troyhunt.com/heres-why-your-static-website-needs...

Re:Show HN: Coinmarketcap replacement with free JSON API by bspammer on Friday December 07, 2018 @06:23AM (#18626746)
Looks like SSL is supported, they just don't auto upgrade requests.
Re:Show HN: Coinmarketcap replacement with free JSON API by 1996 on Friday December 07, 2018 @08:49AM (#18627572)
During tests, we found it was better to let people chose.

You can use whatever method you feel more comfortable with.

Sometime usability and security go in different way. We could do HSTS but if you took time to type http:// maybe you really want http not https

Re:Show HN: Coinmarketcap replacement with free JSON API by gregmac on Friday December 07, 2018 @10:36AM (#18628503)
Why is it better to let people choose? That implies there is a downside to https:// or a reason some people prefer http:// -- can you elaborate?

If you type just the domain name you get http:// by default, which, in my experience, is how most people type in site URLs.

Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @12:56PM (#18629869)
People have their reasons, we respect that. But a default to https, why not? It seems reasonable to me.

I am not sure on how to get https:// by default while still supporting http:// for people who prefer it. It may take some advanced 302 redirect.

We will investigate and see what we can do there. Suggestions are much appreciated.

Re:Show HN: Coinmarketcap replacement with free JSON API by gregmac on Friday December 07, 2018 @02:42PM (#18630868)
I'm still very unclear on a legitimate use case for this, and personally wouldn't do it until I had a good reason.

That said, a couple ideas on how to implement:

* Use an alternate domain, eg `insecure.domain.com`

* Use an alternate path prefix, eg `domain.com/insecure/` -- your app would have to be able to handle this

* Use a parameter that sets a cookie that your load balancer/reverse proxy can understand, eg, `http://domain.com/?https=false`, and will prevent redirect -- definitely the most complex from the proxy point-of-view, but means the URL (other than the scheme) is consistent for both types of user

Re:Show HN: Coinmarketcap replacement with free JSON API by exoesquitur on Friday December 07, 2018 @05:11PM (#18632163)
I sometimes parse web data with uC based devices that are not capable of doing https with the memory space available. I appreciate the ability to use http when I need to.
Re:Show HN: Coinmarketcap replacement with free JSON API by exoesquitur on Friday December 07, 2018 @05:17PM (#18632201)
I use http from embedded devices that cannot do https due to memory constraints. Http access is appreciated for this use case.

But.... Do you guys have a business model that is going to keep you around long enough for me to bother hardcoding your api into embedded devices? I build things that connect real world actions to cryptocurrency markets, diverting power, metering resource consumption, etc.

Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @05:39PM (#18632353)
Please get in touch by email if you need something more than the free API.

For your embedded devices, we can make something special just for you

Re:Show HN: Coinmarketcap replacement with free JSON API by exoesquitur on Friday December 07, 2018 @05:15PM (#18632191)
I use http from embedded devices that cannot do https due to memory constraints. Http access is appreciated for this use case.

But.... Do you guys have a business model that is going to keep you around long enough for me to bother hardcoding your api into embedded devices? I build things that connect real world actions to cryptocurrency markets, diverting power, metering resource consumption, etc.

Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @05:33PM (#18632305)
We plan to remain online for a long long time

And if you make embedded devices using our API, maybe you need more than the free API?

We sell access based on subscription for 0.1 BCH per month.

Or maybe you need our 'special services'?

From the FAQ: "I'm wealthy. I have very specific crazy needs!"

"For the right price, the above rules may not apply to you. Right price means at least 1 BTC. If you can pay that, we can do many crazy things just for you"

Re:Show HN: Coinmarketcap replacement with free JSON API by exoesquitur on Friday December 07, 2018 @05:17PM (#18632206)
Oops wrong place, sorry.
Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @05:37PM (#18632338)
No wrong question :-)

Please get in touch by email if you need something special.

If you have hard constraints, we can provide you with a special API returning only the value(s) you need so you do not even have to parse anything.

Re:Show HN: Coinmarketcap replacement with free JSON API by halfjew22 on Sunday December 09, 2018 @07:48AM (#18640625)
GraphQL :)

Not attempting to be snide, this sentiment echoes exactly what GraphQL solves.

Re:Show HN: Coinmarketcap replacement with free JSON API by 1996 on Friday December 07, 2018 @02:13AM (#18625714)
Co author here - I make the API and the backend.

The numbers come from a large sample of exchanges, with several million new datapoint added every day to cover every crypto we find important.

It is more of a hobby for me, but I hope you like it!

Re:Show HN: Coinmarketcap replacement with free JSON API by Scaur on Friday December 07, 2018 @05:48AM (#18626572)
Hi 1996 - I used to work at [Cryptopia](https://www.cryptopia.co.nz/), a exchange fairly well known for listing low marketcap coins.

If you ever decide you want to expand to more than top 50 coins, then I'd love to help in any way I can - particularly with their API - feel free to email me: "james" at $my_hackernews_username ".nz"

Re:Show HN: Coinmarketcap replacement with free JSON API by 1996 on Friday December 07, 2018 @12:09PM (#18629367)
Hi Scaur!

We are on #1 page!! Big surprise !! Now I have to reply to all questions but HN tell me 'you are posting too much'

I must fix bugs first, but I will be happy to email you!! I love cryptopia and it's approach!! Our email is in the faq: [email protected]

There is more on the website than the eye can see now. We will unveil new features soon.

Expanding beyond top #50 is something we want. We want to support more coins, and there is work in progress on that.

But after noticing what coins it will expose, we almost changed our mind and decide to just be top20.

After hard thinking, we decided to spend much more effort on methods to flags suspicious coins. Because there are many small promising coins that can benefit from exposure.

It is almost there. More algorithms to make!

Re:Show HN: Coinmarketcap replacement with free JSON API by h1d on Friday December 07, 2018 @10:53AM (#18628644)
The real work is to spot the anomalies, so your averages don't deviate from real values and I think that's what makes Coinmarketcap reliable.

If you say you made it for hobby, how are you trying to replace Coinmarketcap?

Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @11:25AM (#18628960)
1996 is rate limited on the replies, so I'll answer: Until it brings in more money than it costs to make, it is a hobby.

I hope we grow and replace coinmarketcap. But that will take hard work, and lots of luck.

We have algorithms to spot anomalies. We want to offer extremely reliable data.

Re:Show HN: Coinmarketcap replacement with free JSON API by DINKDINK on Friday December 07, 2018 @04:13AM (#18626159)
>The numbers come from a large sample of exchanges

Disclose the method and source

"average price on last calendar"

Average is a bad function to minimize error between expected values and actual values. Use median or median of the 5%-95% percentiles.

Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @09:12AM (#18627758)
Indeed, the median works better in general, even on degenerate distributions. The Cauchy distributions has no defined mean, but still has a median.

We need to upgrade the FAQ to be more specific with the methods we use.

To be quick: The price come from many exchange. We exclude suspicious points. Then we do aggregation function like the average.

Averaging may not technically be the best method, but it is simple, and it has a wide support. And with the number of data points we have, we assume the Law of Large Number apply.

Still it could be interesting to use the median. I need to think more about it.

Re:Show HN: Coinmarketcap replacement with free JSON API by DINKDINK on Friday December 07, 2018 @05:41PM (#18632370)
>we assume the Law of Large Number apply

Null hypothesis mandates you make no such assumption. Even if you did, a gaussian distribution assumes variable independence which markets are most certainly not. Even still if the variables were independent, you surely don't have enough samples of prices to report an accurate mean.

Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @11:33PM (#18633945)
Agreed. We should not make such assumptions, because the number of exchanges is still quite low.

But you would be surprised to know how many samples we have at any moment!

Re:Show HN: Coinmarketcap replacement with free JSON API by mewwts on Friday December 07, 2018 @05:14AM (#18626412)
I'd love historical API access!
Re:Show HN: Coinmarketcap replacement with free JSON API by cryptoplot on Friday December 07, 2018 @09:18AM (#18627814)
We are split on that.

We would like to offer historical API to paying customers. We have a lot of data.

But we want to retain customers. We do not want them to leave after dumping our data. At keep keep paying us :-)

So we came to the conclusion: you get data from when you start to pay us, and we add a little extra (last 2 months) but no more. It is in the FAQ.

Historical API, we must think more about that.

Re:Show HN: Coinmarketcap replacement with free JSON API by mewwts on Wednesday December 12, 2018 @01:41AM (#18661826)
You could offer historical data for a 1 time fee.