sending the messages by seqnum

This commit is contained in:
Ramiro Paz
2026-05-15 17:03:54 -03:00
parent 4270284362
commit 0f3ac0dd8d
4 changed files with 29 additions and 11 deletions

View File

@ -329,11 +329,15 @@ func (cont *Controller) GetLogs(ctx *gin.Context) {
}
// AllMessages godoc
// @Summary List all FIX application messages of the day
// @Description Returns every FIX application message recorded today (no admin: heartbeats/logon/logout/etc.), sorted by CreatedAt ascending
// @Summary List FIX application messages of the day after the caller's last-seen sequence
// @Description Returns today's FIX application messages (no admin: heartbeats/logon/logout/etc.) with MsgSeqNum greater than the caller's last-seen sequence per direction. "In" is the last MsgSeqNum the caller received on the IN side; "Out" is the same for OUT. Pass 0 to receive everything on that side. Sorted by CreatedAt ascending.
// @Tags fix
// @Accept json
// @Produce json
// @Param body body AllMessagesRequest true "API key and last-seen MsgSeqNum per direction"
// @Success 200 {array} domain.Message
// @Failure 400 {object} HTTPError
// @Failure 401 {object} HTTPError
// @Router /qfixdpl/v1/messages [post]
func (cont *Controller) AllMessages(ctx *gin.Context) {
setHeaders(ctx, cont.config)
@ -349,7 +353,7 @@ func (cont *Controller) AllMessages(ctx *gin.Context) {
return
}
ctx.JSON(http.StatusOK, cont.tradeProvider.GetAllMessages())
ctx.JSON(http.StatusOK, cont.tradeProvider.GetAllMessages(req.In, req.Out))
}
// GetPendingQuoteRequests godoc