Pages:
Author

Topic: Bitcoin Peak (Read 3165 times)

legendary
Activity: 1358
Merit: 1003
Ron Gross
November 05, 2013, 05:54:57 AM
#39
Crap, I checked the service yesterday and it worked ... but now it shows 0 USD peak price for some reason.
I don't have time to debug it right now ... and we're approaching a new all time peak.
legendary
Activity: 980
Merit: 1008
June 24, 2013, 07:46:32 AM
#38
Here's the authoritative source for the $266 peak, Mt. Gox' own data: https://data.mtgox.com/api/1/BTCUSD/trades?since=1365596104182691

Four trades were executed at that price:

Code:
{"date":1365597112,"price":"266","amount":"2.89855634","price_int":"26600000","amount_int":"289855634","tid":"1365597112268682","price_currency":"USD","item":"BTC","trade_type":"bid","primary":"Y","properties":"market"}

{"date":1365597288,"price":"266","amount":"9.42711773","price_int":"26600000","amount_int":"942711773","tid":"1365597288625945","price_currency":"USD","item":"BTC","trade_type":"bid","primary":"Y","properties":"market"}

{"date":1365597288,"price":"266","amount":"0.91906947","price_int":"26600000","amount_int":"91906947","tid":"1365597288780532","price_currency":"USD","item":"BTC","trade_type":"bid","primary":"Y","properties":"market"}

{"date":1365597964,"price":"266","amount":"7.94166141","price_int":"26600000","amount_int":"794166141","tid":"1365597964844406","price_currency":"USD","item":"BTC","trade_type":"bid","primary":"Y","properties":"market"}

For a total of 21.18640495 BTC ($5635.58).
legendary
Activity: 1358
Merit: 1003
Ron Gross
June 14, 2013, 09:54:50 AM
#37
I entered it manually, if anyone has an authoritative source for the exact peak, please let me know.

why don't you just write a simple program to catch the streaming ticker last price and compare it, then change the value.

I guess I might miss a momentary pick this way (if it peaks between 2 consecutive reads).

Anyway, the current design works, I don't have time to change it (pull requests welcome if they improve the product).
legendary
Activity: 1358
Merit: 1003
Ron Gross
June 14, 2013, 09:47:39 AM
#36
I entered it manually, if anyone has an authoritative source for the exact peak, please let me know.
legendary
Activity: 1792
Merit: 1008
/dev/null
June 14, 2013, 07:01:12 AM
#35
Issue resolved.

The problem was caused by BitcoinCharts API returning only 20,000 records instead of the full range (I don't know if this is documented or not).

I modified the app to save a daily snapshot of the peak price into a database, and take the max of bitcoincharts data and the previous day's peak.

Thanks again for reporting!

Was the exact peak 266.00 or did you just put that in there manually? I seem to recall it being something like 265.95 but I could be wrong.
According to the data in bitcoincharts.com it was exactly 266.
rounding
donator
Activity: 2058
Merit: 1054
June 14, 2013, 06:32:59 AM
#34
Issue resolved.

The problem was caused by BitcoinCharts API returning only 20,000 records instead of the full range (I don't know if this is documented or not).

I modified the app to save a daily snapshot of the peak price into a database, and take the max of bitcoincharts data and the previous day's peak.

Thanks again for reporting!

Was the exact peak 266.00 or did you just put that in there manually? I seem to recall it being something like 265.95 but I could be wrong.
According to the data in bitcoincharts.com it was exactly 266.
hero member
Activity: 630
Merit: 500
June 14, 2013, 06:29:53 AM
#33
Issue resolved.

The problem was caused by BitcoinCharts API returning only 20,000 records instead of the full range (I don't know if this is documented or not).

I modified the app to save a daily snapshot of the peak price into a database, and take the max of bitcoincharts data and the previous day's peak.

Thanks again for reporting!

Was the exact peak 266.00 or did you just put that in there manually? I seem to recall it being something like 265.95 but I could be wrong.
legendary
Activity: 1358
Merit: 1003
Ron Gross
June 13, 2013, 08:45:43 PM
#32
Issue resolved.

The problem was caused by BitcoinCharts API returning only 20,000 records instead of the full range (I don't know if this is documented or not).

I modified the app to save a daily snapshot of the peak price into a database, and take the max of bitcoincharts data and the previous day's peak.

Thanks again for reporting!
legendary
Activity: 1358
Merit: 1003
Ron Gross
June 13, 2013, 12:36:10 AM
#31
Could someone please explain why bitcoinpeak.org says $112.25 and not ~$266?

I mean, it's obviously only taking the last X days into account, but what is the value of X?


Yeah, I noticed the problem this week, not sure why it's behaving this way.
It doesn't just take the last X days ... it showed $32 right before the recent peek.

My guess is that the data feed I'm getting is faulty in some way.

Planning to debug it this weekend.
hero member
Activity: 630
Merit: 500
June 12, 2013, 11:54:49 PM
#30
Could someone please explain why bitcoinpeak.org says $112.25 and not ~$266?

I mean, it's obviously only taking the last X days into account, but what is the value of X?
legendary
Activity: 1358
Merit: 1003
Ron Gross
March 01, 2013, 05:49:12 AM
#29
the site isn't working...

Fixed.

Done.

New version with support for bitcoincharts and mtgox is available from http://bitcoin.gdsl.no/bitpeak.zip.

Pro tip: learn and start using github. zips are so 1990.
member
Activity: 68
Merit: 10
Al Berg
February 28, 2013, 02:08:08 PM
#28
Done.

New version with support for bitcoincharts and mtgox is available from http://bitcoin.gdsl.no/bitpeak.zip.
member
Activity: 68
Merit: 10
Al Berg
February 28, 2013, 12:32:25 PM
#27
The bug is due to reliance on blockchain.info API that only updates once a day (I hope it doesn't update less than once a day!)
This will cause both a delay in the results and inaccurate results.

The API should be switched to something like Mt. Gox API. Maybe this weekend?
I'll post it once it's done.

I agree. The blockchain update rate is too slow for my code to have any real use.

I will update the code to add bitcoincharts and mtgox as data sourses.
donator
Activity: 2058
Merit: 1054
February 28, 2013, 03:00:24 AM
#26
legendary
Activity: 1358
Merit: 1003
Ron Gross
February 28, 2013, 01:56:45 AM
#25
the site isn't working...

Yeah I know, another bug in the original algorithm, see discussion above about delivering a working product.

The bug is due to reliance on blockchain.info API that only updates once a day (I hope it doesn't update less than once a day!)
This will cause both a delay in the results and inaccurate results.

The API should be switched to something like Mt. Gox API. Maybe this weekend?
I'll post it once it's done.
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire
February 28, 2013, 01:53:43 AM
#24
the site isn't working...
legendary
Activity: 1358
Merit: 1003
Ron Gross
February 27, 2013, 12:29:57 PM
#23
How do you even know that $35 is not infact the correct price ?
Does the data contain any trades between 31.9099 and 35.0000? If not, I'd say it's pretty certain to be an error. The price jumping from 31.9099 to 35.0000 and then back again to no more than 31.9099 I'd say is highly unlikely. It would basically mean a complete absence of any asks from 31.9099 and up to 35.0000, and and a buyer entering at least $35 as his purchase price (I don't think market orders were implemented on Mt. Gox at that time).

Come on. An easier answer is "it is known". Nobody ever wrote anywhere that bitcoin went above $32.
Another hint is the exact round price of 35.0000 ... the price is never round.

I needed the peak of the bitcoin price, not the peak of the "bitcoin price as returned by blockchain.info".
legendary
Activity: 1358
Merit: 1003
Ron Gross
February 27, 2013, 12:28:30 PM
#22
Your statement that the code is bugged is untrue and dishonest. The code is available for peer review on http://bitcoin.gdsl.no/bitpeak.zip. It does return $35 as the peak price as this is the data returned by http://blockchain.info/.

It might be untrue, I haven't actually ran your PHP code, but it's not dishonest - if anything it's an honest mistake.
The reason I wrote that it returns $35 is because my code based on the exact same algorithm and returns $35.
Now, before you go accusing me of bugs in my own code ... the bug is actually in blockchain.info's data ... one of the entries it returns is has price 35, which needs to be manually ignored.

How do you even know that $35 is not infact the correct price ?
Everybody involved with Bitcoins knows that the price was never over $32.

If you disagree with the blockchain.info market data I suggest you take it up with them.

I see your attack on the code quality as an attack on me in a pathethic attempt to save face.

I will update https://bitcointalksearch.org/topic/warning-ripper234-renegs-on-full-payment-resolved-147308 with payment recived. I will however keep the recomendation not to bid on your offers.

You know, in software development you can do two things.
A) You can keep the letter of your contracts, and stick to them ... even if you know there are bugs, or the client asked for the wrong thing.
B) Or, you can try actually be helpful to your client, work around 3rd bugs instead of laying blame, and working with clients to improve the spec if needed.

You seem to choose the first approach - good luck with that.
Please don't hesitate not to bid on my offers in the future ... no need to remain angry ... I am not angry with you, as you did save me a bit of time (I could have gotten the same by asking a question on bitcoin.stackexchange for free, but I didn't, and here we are). I hope you're not angry with me, but if you are it's your problem, not mine.

Cheers.
legendary
Activity: 980
Merit: 1008
February 27, 2013, 12:26:24 PM
#21
How do you even know that $35 is not infact the correct price ?
Does the data contain any trades between 31.9099 and 35.0000? If not, I'd say it's pretty certain to be an error. The price jumping from 31.9099 to 35.0000 and then back again to no more than 31.9099 I'd say is highly unlikely. It would basically mean a complete absence of any asks from 31.9099 and up to 35.0000, and and a buyer entering at least $35 as his purchase price (I don't think market orders were implemented on Mt. Gox at that time).
member
Activity: 68
Merit: 10
Al Berg
February 27, 2013, 12:04:49 PM
#20
odsl - I offered 1 BTC for a clean implementation that works.
Your implementation was buggy. Did you even run it? It returns $35! Not to mention the other issues I mentioned.
Your code is a POC, nothing more. I wanted to pay 1 BTC for someone working and production grade to save me the work and upload a working website to somewhere (e.g. heroku ... no need for free hosting).

Your statement that the code is bugged is untrue and dishonest. The code is available for peer review on http://bitcoin.gdsl.no/bitpeak.zip. It does return $35 as the peak price as this is the data returned by http://blockchain.info/.

How do you even know that $35 is not infact the correct price ?

If you disagree with the blockchain.info market data I suggest you take it up with them.

- I didn't get a working implementation
- The code he submitted wasn't a website/webpage, it was a function
- it had severe bugs

-You did get a working implementation. The code to present the peak price is included in the source. Move the code out of the comment block and you are set.
-It was a php class with example code on how to use the class. You needed nothing more then I deliverd to present the peak price over http.
-It has no known bugs. Your rejection of the blockchain.info data is on you.

I see your attack on the code quality as a pathethic attempt to save face.

I will update https://bitcointalksearch.org/topic/warning-ripper234-renegs-on-full-payment-resolved-147308 with payment recived. I will however keep the recomendation not to bid on your offers.
Pages:
Jump to: