fixes in quotes
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user