Note there is a hack around this to use the trades API and look for type: TYPE_NETWORK_CLOSE_OUT_BAD, but you cant filter for this so we'd end up having to download all teh trade history for that party on that market and filter on the client which could get painful quite quickly if someone trades a lot.
We have a positionStatus field which can be used to show when you have been closed out, but it doesn't reset after liquidation or closing the position.
The Chore
Question:
Tasks
Additional details / background info
Core ticket to store these: https://github.com/vegaprotocol/vega/issues/10352
Thread with some background: https://vegaprotocol.slack.com/archives/CFXA4EGN7/p1704824959615729?thread_ts=1704316209.787389&cid=CFXA4EGN7
Note there is a hack around this to use the trades API and look for type: TYPE_NETWORK_CLOSE_OUT_BAD, but you cant filter for this so we'd end up having to download all teh trade history for that party on that market and filter on the client which could get painful quite quickly if someone trades a lot.