Bitcoin Forum
June 25, 2024, 03:50:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info price ticker rounding to whole ints  (Read 923 times)
Melbustus (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1003



View Profile
March 02, 2013, 07:54:42 AM
 #1

Hit their JSON ticker service: http://blockchain.info/ticker

Note that the "15m" values for every currency are rounded to whole integers. I suspect they have a data-type issue on the backend; this *can't* actually be intentional, right? I've tried contacting their support (I even tweeted them) to no avail. Note that the "24h" values look fine. Also note that their documentation shows the "15m" values as decimals/floats (http://blockchain.info/api/exchange_rates_api).

Regardless, I need to get my project out the door, so I'm just going to use the gox ticker (https://mtgox.com/api/1/BTCUSD/ticker), but I find blockchain's services elegant in general, and this bug on their part is annoying me.


Bitcoin is the first monetary system to credibly offer perfect information to all economic participants.
poly
Member
**
Offline Offline

Activity: 84
Merit: 10


Weighted companion cube


View Profile
March 02, 2013, 09:35:37 AM
 #2

It's how Blockchain.info displays it too. I recall previously it had two decimal places, so I think this is a bug.

Move to service discussion btw?

poly | My Tip Jar
Melbustus (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1003



View Profile
March 03, 2013, 05:49:32 PM
 #3

FYI, blockchain just fixed this bug. Verified that the API is now working as expected. Thanks guys!

Bitcoin is the first monetary system to credibly offer perfect information to all economic participants.
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!