You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @thaaddeus, me again, starting to work on Mango perp market integrations. Have found an apparent issue with the mango-bowl message generation: basically, there are cases where an order is cancelled on the same block as some fills occur for other orders; the cancellation is published after the fills, but based on the traded prices it is clear that the cancellation had actually occurred before the trades.
An example from 20220201 SOL-PERP data:
Sell order 184393653760800704710260 added at 99.96
Order 184430547248948123813505 traded at 99.98 (slot 118762045) [At this point the order at 99.96 is still open in the book reconstruction, so that this represents an invalid trade]
Of course, if order 184393653760800704710260 was actually cancelled after the trade of order 184430547248948123813505, the incoming order would have traded against 184393653760800704710260 at 99.96 instead of against 184430547248948123813505 at 99.98.
It just so happens that in this case order 184430547248948123813505 was opened on the same block as these trades occurred, it has been observed in other cases that all involved orders were open before the block with misordered fill/done messages.
Let me know if requiring any other information.
P.S Also just to enquire if the fixes to resolve issues in serum-vial at tardis-dev/serum-vial#29tardis-dev/serum-vial#30tardis-dev/serum-vial#31 were also applied here? Haven't encountered any instances to suggest these issues exist here, but just mentioning in case this hasn't been aligned across vial and bowl.
The text was updated successfully, but these errors were encountered:
Hi @thaaddeus, me again, starting to work on Mango perp market integrations. Have found an apparent issue with the mango-bowl message generation: basically, there are cases where an order is cancelled on the same block as some fills occur for other orders; the cancellation is published after the fills, but based on the traded prices it is clear that the cancellation had actually occurred before the trades.
An example from 20220201 SOL-PERP data:
Of course, if order 184393653760800704710260 was actually cancelled after the trade of order 184430547248948123813505, the incoming order would have traded against 184393653760800704710260 at 99.96 instead of against 184430547248948123813505 at 99.98.
It just so happens that in this case order 184430547248948123813505 was opened on the same block as these trades occurred, it has been observed in other cases that all involved orders were open before the block with misordered
fill
/done
messages.Let me know if requiring any other information.
P.S Also just to enquire if the fixes to resolve issues in serum-vial at tardis-dev/serum-vial#29 tardis-dev/serum-vial#30 tardis-dev/serum-vial#31 were also applied here? Haven't encountered any instances to suggest these issues exist here, but just mentioning in case this hasn't been aligned across vial and bowl.
The text was updated successfully, but these errors were encountered: