Author

Topic: Live streaming quotes for all markets on bitcoincharts.com (Read 6697 times)

sr. member
Activity: 516
Merit: 283
Can we get a weighted BTC/{your 2nd favorit currency here} exchange rate too? Something like we get for 24h on http://www.taters.net/cgi-bin/btc/matrix.pl?axisinc=0.01 that unfortunately only covers mtgox trades.

I added weighted prices to both http://bitcoincharts.com and http://bitcoinwatch.com
It's also available as json: http://bitcoincharts.com/t/weighted_prices.json

Sorry for bringing up an old thread... but can you shed light on how you're weighted USD price is calculated? specifically, which exchanged are queried and what are the weights per exchange?
sr. member
Activity: 337
Merit: 265
Can we get a weighted BTC/{your 2nd favorit currency here} exchange rate too? Something like we get for 24h on http://www.taters.net/cgi-bin/btc/matrix.pl?axisinc=0.01 that unfortunately only covers mtgox trades.

I added weighted prices to both http://bitcoincharts.com and http://bitcoinwatch.com
It's also available as json: http://bitcoincharts.com/t/weighted_prices.json
legendary
Activity: 1540
Merit: 1001
I didn't look to see if it is already there for more than 2 seconds, so forgive my lazyness. I'm in a hurry and didn't want to let this one slip;

Can we get a weighted BTC/{your 2nd favorit currency here} exchange rate too? Something like we get for 24h on http://www.taters.net/cgi-bin/btc/matrix.pl?axisinc=0.01 that unfortunately only covers mtgox trades.

If we could sum all the trades done in all the "known" exchange sites for each of the pairs (although even just BTC/USD would be very helpful) and then find the average given the volume, we would have a very solid "official exchange rate" that merchants could use, one that would soften the cyclic movements of the market a bit. And why not do that for hour, day, week and month? This way getting automated BTC pricing on USD based sites could become more dynamic with some confidence.
hero member
Activity: 482
Merit: 501
I'm following #bitcoin-market, good for overall market view, but I'll prefer tcatm's solution for automatic processing like trading bots. Currently thinking about some, it's a pitty to have such nice market stream and don't use it for anything Smiley.

indeed, if you're doing autotrading, using the direct feed from bitcoincharts is more convenient. Smiley

though since that only reports trades, while for a trading bot you'd also want the order book depth... it's probably not really useful by itself for a trading bot. you'd want to pull the book depth data for each individual market your bot trades in.
legendary
Activity: 1386
Merit: 1097
and by the way - freenode channel #bitcoin-market outputs the streaming quotes from the bitcoincharts feed, in a pretty format.

so if you have a habit of hanging out on irc - join in and watch the bitcoin market activity scroll by!

I'm following #bitcoin-market, good for overall market view, but I'll prefer tcatm's solution for automatic processing like trading bots. Currently thinking about some, it's a pitty to have such nice market stream and don't use it for anything Smiley.
legendary
Activity: 1386
Merit: 1097
tcatm, good job! Consider some 'welcome json message' after connection to calm down impatient people Smiley (and for possible check that service is responding).
hero member
Activity: 482
Merit: 501
and by the way - freenode channel #bitcoin-market outputs the streaming quotes from the bitcoincharts feed, in a pretty format.

so if you have a habit of hanging out on irc - join in and watch the bitcoin market activity scroll by!
administrator
Activity: 5222
Merit: 13032
It works for me. You have to wait a while for something to be output.

Code:
Trying 173.255.224.227...
Connected to bitcoincharts.com.
Escape character is '^]'.
{"timestamp": 1302142933, "price": "0.75", "volume": "185.78", "currency": "USD"
, "symbol": "mtgoxUSD"}
legendary
Activity: 2058
Merit: 1431
hero member
Activity: 616
Merit: 500
Firstbits.com/1fg4i :)
newbie
Activity: 2
Merit: 0
I connect but nothing happens:

Code:
$ telnet bitcoincharts.com 27007
Trying 173.255.224.227...
Connected to bitcoincharts.com.
Escape character is '^]'.

and waiting...
sr. member
Activity: 504
Merit: 252
Elder Crypto God
I hope you'll consider adding our market to your stats. What kind of API do you require to do that?
newbie
Activity: 27
Merit: 0
Awesome - Thanks!
sr. member
Activity: 337
Merit: 265
telnet bitcoincharts.com 27007

outputs JSON objects with fields: symbol, currency, timestamp, price and volume

Latency is approx. 15s.
Jump to: