fixes in quotes

This commit is contained in:
Ramiro Paz
2026-03-13 11:35:37 -03:00
parent 3998726100
commit fbcaac95f5
4 changed files with 69 additions and 39 deletions

View File

@ -325,14 +325,15 @@ func (cont *Controller) SendQuote(ctx *gin.Context) {
return
}
bidPx, offerPx, bidSize, offerSize, err := req.toDecimals()
bidPx, offerPx, _, _, err := req.toDecimals()
if err != nil {
ctx.JSON(http.StatusBadRequest, HTTPError{Error: err.Error()})
return
}
if err = cont.fixSender.SendQuote(req.ClOrdID, req.QuoteID, req.Symbol, req.Currency, bidPx, offerPx, bidSize, offerSize); err != nil {
if err = cont.fixSender.SendQuote(
req.ClOrdID, req.QuoteID, req.Symbol, req.SecurityIDSource, req.Currency, bidPx, offerPx); err != nil {
ctx.JSON(http.StatusInternalServerError, HTTPError{Error: err.Error()})
return