Bitcoin Forum
November 05, 2024, 12:25:14 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Peak Helper Website  (Read 834 times)
ripper234 (OP)
Legendary
*
Offline Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
February 28, 2013, 01:39:48 AM
Last edit: March 01, 2013, 08:27:17 PM by ripper234
 #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.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
knight22
Legendary
*
Offline Offline

Activity: 1372
Merit: 1000


--------------->¿?


View Profile
February 28, 2013, 01:46:10 AM
 #2

Cool
You should add the date of the last peak

ripper234 (OP)
Legendary
*
Offline Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
February 28, 2013, 06: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.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
notme
Legendary
*
Offline Offline

Activity: 1904
Merit: 1002


View Profile
March 01, 2013, 01:14:54 AM
Last edit: March 01, 2013, 05:30:34 AM by notme
 #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.

https://www.bitcoin.org/bitcoin.pdf
While no idea is perfect, some ideas are useful.
ripper234 (OP)
Legendary
*
Offline Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
March 01, 2013, 12:28:10 PM
 #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.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
Odalv
Legendary
*
Offline Offline

Activity: 1414
Merit: 1000



View Profile
March 01, 2013, 12:34:21 PM
 #6

Add date and time please. (amount)
ripper234 (OP)
Legendary
*
Offline Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
March 01, 2013, 12:36:48 PM
 #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.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
notme
Legendary
*
Offline Offline

Activity: 1904
Merit: 1002


View Profile
March 01, 2013, 07: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.

https://www.bitcoin.org/bitcoin.pdf
While no idea is perfect, some ideas are useful.
ripper234 (OP)
Legendary
*
Offline Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
March 01, 2013, 07: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.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
notme
Legendary
*
Offline Offline

Activity: 1904
Merit: 1002


View Profile
March 01, 2013, 08: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.

https://www.bitcoin.org/bitcoin.pdf
While no idea is perfect, some ideas are useful.
ripper234 (OP)
Legendary
*
Offline Offline

Activity: 1358
Merit: 1003


Ron Gross


View Profile WWW
March 01, 2013, 08:27:33 PM
 #11

No problem, I updated to OP.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!