Post
Topic
Board Service Discussion
Topic OP
Help with Bitstamp API
by
hail
on 25/02/2014, 12:48:11 UTC
i found bitstamp live trade stream api in this forum post,

my code:

Code:
var pusher = new Pusher('de504dc5763aeef9ff52');

var trades_channel = pusher.subscribe('live_trades');
trades_channel.bind('trade',  function(data) {
   console.debug(data);

and it is works,
it returns trade data like this:

Code:
amount: 0.30628
id: 3764896
price: 492.23


but it didn't return trade type. how to get?