UNPKG

fixparser

Version:

FIX.Latest / 5.0 SP2 Parser / AI Agent Trading

25 lines (24 loc) 1.55 kB
import { type IMessageStore } from 'fixparser-common'; import type { IFIXParser } from '../IFIXParser.ts'; import type { Message } from '../message/Message.ts'; /** * Handles the ResendRequest message in a FIX session. * This function processes the ResendRequest message, retrieves the requested messages * from the message store, and resends them with appropriate flags and timestamps. * If messages are not found, it sends a SequenceReset message to fill the gap. * * @param {IFIXParser} parser - The FIX parser instance handling the session * @param {IMessageStore<Message>} messageStore - The message store containing the messages to resend * @param {Message} message - The ResendRequest message containing the sequence range to resend */ export declare const handleResendRequest: (parser: IFIXParser, messageStore: IMessageStore<Message>, message: Message) => void; /** * Async variant of handleResendRequest for stores that implement IAsyncMessageStore. * Uses getByMsgSequenceAsync() to retrieve messages from persistent storage. * If the store is not async, delegates to the synchronous handleResendRequest. * * @param {IFIXParser} parser - The FIX parser instance handling the session * @param {IMessageStore<Message>} messageStore - The message store containing the messages to resend * @param {Message} message - The ResendRequest message containing the sequence range to resend */ export declare const handleResendRequestAsync: (parser: IFIXParser, messageStore: IMessageStore<Message>, message: Message) => Promise<void>;