This commit is contained in:
Ramiro Paz
2026-05-19 15:38:43 -03:00
parent 1676909cbf
commit 7cc4a96a03

View File

@ -664,17 +664,6 @@ func (m *Manager) loadActiveTrades() error {
t.Quoted = true t.Quoted = true
t.Price = getDecimal(msg.JMessage.Body, "Price") t.Price = getDecimal(msg.JMessage.Body, "Price")
} }
case "AJ": // QuoteResponse — _TRDSUMM means trade is done (flow 8.6)
if strings.HasSuffix(getString(msg.JMessage.Body, "QuoteRespID"), "_TRDSUMM") {
delete(activeTrades, quoteReqID)
}
case "8": // ExecutionReport — _TRDSUMM means trade is done (flow 8.4)
body := msg.JMessage.Body
if strings.Contains(getString(body, "ExecID"), "_TRDSUMM") {
delete(activeTrades, getString(body, "ClOrdID"))
}
} }
} }