Author

Topic: Bitcoin Peak Helper Website (Read 835 times)

legendary
Activity: 1358
Merit: 1003
Ron Gross
March 01, 2013, 03:27:33 PM
#11
No problem, I updated to OP.
legendary
Activity: 1904
Merit: 1002
March 01, 2013, 03:23:01 PM
#10
My bad.  I just took a quick glance at the github page and saw a similar directory layout to a rails project.  Looking more closely I clearly jumped the gun.  I can understand your desire for statelessness, but adding the mtgox api check a few time per day in addition would keep the data fresher than updating once a day, but you could keep your stateless updates just in case.  I guess it wouldn't make a difference most of the time, but when btc is in rally mode your page is pretty useless.

The page updates once per minute ... it's very fresh.
I fixed it yesterday morning ... until then it only updated once per day and even missed a few rallies, and was useless. Now I find it quite useful.

Ah, okay.  I missed the part where you said you updated it.  I was still going off the OP where it said it updated once per day.  Sorry for the thread clutter.
legendary
Activity: 1358
Merit: 1003
Ron Gross
March 01, 2013, 02:38:14 PM
#9
My bad.  I just took a quick glance at the github page and saw a similar directory layout to a rails project.  Looking more closely I clearly jumped the gun.  I can understand your desire for statelessness, but adding the mtgox api check a few time per day in addition would keep the data fresher than updating once a day, but you could keep your stateless updates just in case.  I guess it wouldn't make a difference most of the time, but when btc is in rally mode your page is pretty useless.

The page updates once per minute ... it's very fresh.
I fixed it yesterday morning ... until then it only updated once per day and even missed a few rallies, and was useless. Now I find it quite useful.
legendary
Activity: 1904
Merit: 1002
March 01, 2013, 02:11:37 PM
#8
My bad.  I just took a quick glance at the github page and saw a similar directory layout to a rails project.  Looking more closely I clearly jumped the gun.  I can understand your desire for statelessness, but adding the mtgox api check a few time per day in addition would keep the data fresher than updating once a day, but you could keep your stateless updates just in case.  I guess it wouldn't make a difference most of the time, but when btc is in rally mode your page is pretty useless.
legendary
Activity: 1358
Merit: 1003
Ron Gross
March 01, 2013, 07:36:48 AM
#7
Add date and time please. (amount)

Send in a pull request Smiley

I'm super busy ... I know it's a small change, but I'm sleeping less than 5 hours a night for the last week+, so no time right now.

There is an issue I opened about this, and I might get to it sometime soon, but right now I can't devote more time to this.
legendary
Activity: 1414
Merit: 1000
March 01, 2013, 07:34:21 AM
#6
Add date and time please. (amount)
legendary
Activity: 1358
Merit: 1003
Ron Gross
March 01, 2013, 07:28:10 AM
#5
Looks like you are using ruby.  Here you go:

Wrong, I'm using scala. What confused you perhaps is heroku? Heroku supports many many platforms including scala, ruby, php, nodejs.

https://github.com/sferik/mtgox

Code:
puts MtGox.ticker.high

gives you the high for the past 24 hours.  Check it twice a day and you're golden.

I find it easier writing a completely stateless websites that reads the entire trade history from BitcoinCharts. In fact, I only need to read the history since the last known peak - I coded in the date of 1 week ago.

With your idea, if my service is down for 24 hours, I could get the wrong results.
legendary
Activity: 1904
Merit: 1002
February 28, 2013, 08:14:54 PM
#4
Looks like you are using ruby.  Here you go:

https://github.com/sferik/mtgox

Code:
puts MtGox.ticker.high

gives you the high for the past 24 hours.  Check it twice a day and you're golden.
legendary
Activity: 1358
Merit: 1003
Ron Gross
February 28, 2013, 01:09:50 AM
#3
Cool
You should add the date of the last peak

Yeah.

Issue reports (and dare I say pull requests?) are welcome.
legendary
Activity: 1372
Merit: 1000
--------------->¿?
February 27, 2013, 08:46:10 PM
#2
Cool
You should add the date of the last peak
legendary
Activity: 1358
Merit: 1003
Ron Gross
February 27, 2013, 08:39:48 PM
#1
Hi all!

This morning, just in time I might add, I registered & coded bitcoinpeak.org.

The site will always show the peak in bitcoin prices.
Sad fact is that right now there's a rather huge issue ... the price is based on blockchain.info API, which is only updated once a day from what I could tell. So the site still shows $31.9099 Issue was fixed, price is updated once per minute.

But ... tomorrow it will show a higher figure Smiley

I guess I should just use Mt. Gox API directly and get my data from there. We'll see when I get around to making that change.

In the meantime ... enjoy ... and congrats to all of us bit speculators for breaking the previous high.
To the moon and beyond.
Jump to: