@sotatech/nest-quickfix
Version:
A powerful NestJS implementation of the FIX (Financial Information eXchange) protocol. Provides high-performance, reliable messaging for financial trading applications with built-in session management, message validation, and recovery mechanisms.
18 lines • 681 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RejectMessage = void 0;
const message_1 = require("./message");
const fields_1 = require("../fields");
class RejectMessage extends message_1.Message {
constructor(refSeqNum, reason, refMsgType) {
super();
this.setField(fields_1.Fields.MsgType, fields_1.MsgType.Reject);
this.setField(fields_1.Fields.RefSeqNum, refSeqNum);
this.setField(fields_1.Fields.Text, reason);
if (refMsgType) {
this.setField(fields_1.Fields.RefMsgType, refMsgType);
}
}
}
exports.RejectMessage = RejectMessage;
//# sourceMappingURL=reject.message.js.map