Closed woniesong92 closed 6 years ago
@woniesong92 Sounds like you're looking at the information through the API, is that correct? You might be interested in looking at how backend updates orders here and query order fills on your side to get more up-to-date information in case FD backend is lagging or bugging out.
Take a look at this buy order
The state is
open
but when I try it from the UI, it says "You cannot trade this order because it already traded. Someone else already traded this order and the order book hasn't updated yet."I am curious based on what the frontend knows that the order has already been fulfilled (which I believe is true). I assume that the backend API (socket API) doesn't provide the most up-to-date orderbook information and want to know what's the alternative or how I can ensure to filter the orders that are already filled.