If someone bought at a price then someone else sold at the same price. Bitstamp matches buy and sell orders to create trades. Thus each trade consists of a matched buy and sell order (or parts thereof). Thus your trade doesn't tell you if it was a bid or ask because it's a matched pair.
I won't post again because you ask for help yet you won't take it when it's given...
it is different because the sequence, someone first place an order, then someone buy from the order list,it is called a bid.
Post
Topic
BoardService Discussion
Re: Help with Bitstamp API
by
hail
on 25/02/2014, 16:54:06 UTC
don't troll!!!!
if someone buy bitcoin at given price, then the trade type is bid!!! otherwise ask!
Post
Topic
BoardService Discussion
Re: Help with Bitstamp API
by
hail
on 25/02/2014, 15:27:19 UTC
just want know the trade is bid or ask.
Post
Topic
BoardService 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);