backend-replacement
backend-replacement copied to clipboard
Incorrect orders in socket getMarket response
Hi,
I'm trying to mirror the live order book using the websocket api.
Currently I get the initial data of all tickers by emitting a getMarket for each token, the problem is that the response I got is full of orders with incorrect prices (I suppose are old filled orders) like this one
which is not shown in the UI

or this one
which also is not in the UI

Why is this happening? How should I filter out all these orders?
Using the etherdelta socket api I do not get these orders
Should I use ethAvailableVolumeBase > 0.001 to filters valid orders? besides state !== 'CANCELED' && !state.deleted && (order is not expired)?