MtGox api - keeping track of bids/asks that get cancelled I'm getting started with the mtgox api. I'm primarily using this page to tell me how to use it. 

What I've currently got, is I can fetch the depth and then put the bids and asks into 'buckets' (each being a range of price), and can tell you the volume at each bucket. 

Now what I want to be able to is keep this updated every second or so. 

So I'd need to be keeping track of: 


Trades being made (ie Bids/Asks being met). 
New Bids/Asks.  
Bids/Asks being cancelled.


It appears as if the old version of the api could show the net change at each volume, but this doesn't appear to be the case for the new version.

How would I go about doing this?
Your link to the "old version of the API" is actually going to the streaming API which is still available.  Only the http version was updated and from there it looks difficult to obtain accurate  depth info reliably for precise time periods.

So I'd stick with streaming. Updated much more in real-time for your requirements.

Now they deprecated the depth:volume field but they still have volume_int, which is volume change * 1E8, so you could obtain volume from that:

//js for example
var volume = volume_int * Math.pow(10,-8);


Check out the github samples at the bottom of the wiki page to help get started.  For example, this one