backend-replacement icon indicating copy to clipboard operation
backend-replacement copied to clipboard

Incorrect orders in socket getMarket response

Open bugduino opened this issue 7 years ago • 2 comments

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 screenshot from 2018-09-02 15-31-00 which is not shown in the UI screenshot from 2018-09-02 15-33-14

or this one screenshot from 2018-09-02 15-31-57 which also is not in the UI screenshot from 2018-09-02 15-34-46

Why is this happening? How should I filter out all these orders?

bugduino avatar Sep 02 '18 13:09 bugduino

Using the etherdelta socket api I do not get these orders

bugduino avatar Sep 02 '18 13:09 bugduino

Should I use ethAvailableVolumeBase > 0.001 to filters valid orders? besides state !== 'CANCELED' && !state.deleted && (order is not expired)?

bugduino avatar Sep 03 '18 08:09 bugduino