Merged
This commit is contained in:
1 parent
a19415dfe9
commit
2ddd467151
671 files changed
+124855
No files matched your search
@@ -0,0 +1,62 @@
|
||||
#ifndef FIX41_ADVERTISEMENT_H
|
||||
#define FIX41_ADVERTISEMENT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Advertisement : public Message
|
||||
{
|
||||
public:
|
||||
Advertisement() : Message(MsgType()) {}
|
||||
Advertisement(const FIX::Message& m) : Message(m) {}
|
||||
Advertisement(const Message& m) : Message(m) {}
|
||||
Advertisement(const Advertisement& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("7"); }
|
||||
|
||||
Advertisement(
|
||||
const FIX::AdvId& aAdvId,
|
||||
const FIX::AdvTransType& aAdvTransType,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::AdvSide& aAdvSide,
|
||||
const FIX::Shares& aShares )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aAdvId);
|
||||
set(aAdvTransType);
|
||||
set(aSymbol);
|
||||
set(aAdvSide);
|
||||
set(aShares);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::AdvId);
|
||||
FIELD_SET(*this, FIX::AdvTransType);
|
||||
FIELD_SET(*this, FIX::AdvRefID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::AdvSide);
|
||||
FIELD_SET(*this, FIX::Shares);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::URLLink);
|
||||
FIELD_SET(*this, FIX::LastMkt);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,129 @@
|
||||
#ifndef FIX41_ALLOCATION_H
|
||||
#define FIX41_ALLOCATION_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Allocation : public Message
|
||||
{
|
||||
public:
|
||||
Allocation() : Message(MsgType()) {}
|
||||
Allocation(const FIX::Message& m) : Message(m) {}
|
||||
Allocation(const Message& m) : Message(m) {}
|
||||
Allocation(const Allocation& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("J"); }
|
||||
|
||||
Allocation(
|
||||
const FIX::AllocID& aAllocID,
|
||||
const FIX::AllocTransType& aAllocTransType,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Shares& aShares,
|
||||
const FIX::AvgPx& aAvgPx,
|
||||
const FIX::TradeDate& aTradeDate )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aAllocID);
|
||||
set(aAllocTransType);
|
||||
set(aSide);
|
||||
set(aSymbol);
|
||||
set(aShares);
|
||||
set(aAvgPx);
|
||||
set(aTradeDate);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::AllocID);
|
||||
FIELD_SET(*this, FIX::AllocTransType);
|
||||
FIELD_SET(*this, FIX::RefAllocID);
|
||||
FIELD_SET(*this, FIX::AllocLinkID);
|
||||
FIELD_SET(*this, FIX::AllocLinkType);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Shares);
|
||||
FIELD_SET(*this, FIX::LastMkt);
|
||||
FIELD_SET(*this, FIX::AvgPx);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::AvgPrxPrecision);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::NetMoney);
|
||||
FIELD_SET(*this, FIX::OpenClose);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::NumDaysInterest);
|
||||
FIELD_SET(*this, FIX::AccruedInterestRate);
|
||||
FIELD_SET(*this, FIX::NoOrders);
|
||||
class NoOrders: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,66,105,0)) {}
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::SecondaryOrderID);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
};
|
||||
FIELD_SET(*this, FIX::NoExecs);
|
||||
class NoExecs: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,31,29,0)) {}
|
||||
FIELD_SET(*this, FIX::LastShares);
|
||||
FIELD_SET(*this, FIX::ExecID);
|
||||
FIELD_SET(*this, FIX::LastPx);
|
||||
FIELD_SET(*this, FIX::LastCapacity);
|
||||
};
|
||||
FIELD_SET(*this, FIX::NoAllocs);
|
||||
class NoAllocs: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,81,92,208,209,161,76,109,12,13,153,154,119,120,155,156,159,160,136,0)) {}
|
||||
FIELD_SET(*this, FIX::AllocAccount);
|
||||
FIELD_SET(*this, FIX::AllocShares);
|
||||
FIELD_SET(*this, FIX::ProcessCode);
|
||||
FIELD_SET(*this, FIX::BrokerOfCredit);
|
||||
FIELD_SET(*this, FIX::NotifyBrokerOfCredit);
|
||||
FIELD_SET(*this, FIX::AllocHandlInst);
|
||||
FIELD_SET(*this, FIX::AllocText);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::AllocAvgPx);
|
||||
FIELD_SET(*this, FIX::AllocNetMoney);
|
||||
FIELD_SET(*this, FIX::SettlCurrAmt);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::SettlCurrFxRate);
|
||||
FIELD_SET(*this, FIX::SettlCurrFxRateCalc);
|
||||
FIELD_SET(*this, FIX::AccruedInterestAmt);
|
||||
FIELD_SET(*this, FIX::SettlInstMode);
|
||||
FIELD_SET(*this, FIX::NoMiscFees);
|
||||
class NoMiscFees: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {}
|
||||
FIELD_SET(*this, FIX::MiscFeeAmt);
|
||||
FIELD_SET(*this, FIX::MiscFeeCurr);
|
||||
FIELD_SET(*this, FIX::MiscFeeType);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,41 @@
|
||||
#ifndef FIX41_ALLOCATIONINSTRUCTIONACK_H
|
||||
#define FIX41_ALLOCATIONINSTRUCTIONACK_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class AllocationInstructionAck : public Message
|
||||
{
|
||||
public:
|
||||
AllocationInstructionAck() : Message(MsgType()) {}
|
||||
AllocationInstructionAck(const FIX::Message& m) : Message(m) {}
|
||||
AllocationInstructionAck(const Message& m) : Message(m) {}
|
||||
AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("P"); }
|
||||
|
||||
AllocationInstructionAck(
|
||||
const FIX::AllocID& aAllocID,
|
||||
const FIX::TradeDate& aTradeDate,
|
||||
const FIX::AllocStatus& aAllocStatus )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aAllocID);
|
||||
set(aTradeDate);
|
||||
set(aAllocStatus);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::AllocID);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::AllocStatus);
|
||||
FIELD_SET(*this, FIX::AllocRejCode);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,55 @@
|
||||
#ifndef FIX41_DONTKNOWTRADE_H
|
||||
#define FIX41_DONTKNOWTRADE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class DontKnowTrade : public Message
|
||||
{
|
||||
public:
|
||||
DontKnowTrade() : Message(MsgType()) {}
|
||||
DontKnowTrade(const FIX::Message& m) : Message(m) {}
|
||||
DontKnowTrade(const Message& m) : Message(m) {}
|
||||
DontKnowTrade(const DontKnowTrade& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("Q"); }
|
||||
|
||||
DontKnowTrade(
|
||||
const FIX::DKReason& aDKReason,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aDKReason);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ExecID);
|
||||
FIELD_SET(*this, FIX::DKReason);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::CashOrderQty);
|
||||
FIELD_SET(*this, FIX::LastShares);
|
||||
FIELD_SET(*this, FIX::LastPx);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,67 @@
|
||||
#ifndef FIX41_EMAIL_H
|
||||
#define FIX41_EMAIL_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Email : public Message
|
||||
{
|
||||
public:
|
||||
Email() : Message(MsgType()) {}
|
||||
Email(const FIX::Message& m) : Message(m) {}
|
||||
Email(const Message& m) : Message(m) {}
|
||||
Email(const Email& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("C"); }
|
||||
|
||||
Email(
|
||||
const FIX::EmailThreadID& aEmailThreadID,
|
||||
const FIX::EmailType& aEmailType,
|
||||
const FIX::Subject& aSubject )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aEmailThreadID);
|
||||
set(aEmailType);
|
||||
set(aSubject);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::EmailThreadID);
|
||||
FIELD_SET(*this, FIX::EmailType);
|
||||
FIELD_SET(*this, FIX::OrigTime);
|
||||
FIELD_SET(*this, FIX::Subject);
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::RawDataLength);
|
||||
FIELD_SET(*this, FIX::RawData);
|
||||
FIELD_SET(*this, FIX::NoRelatedSym);
|
||||
class NoRelatedSym: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,207,106,107,0)) {}
|
||||
FIELD_SET(*this, FIX::RelatdSym);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
};
|
||||
FIELD_SET(*this, FIX::LinesOfText);
|
||||
class LinesOfText: public FIX::Group
|
||||
{
|
||||
public:
|
||||
LinesOfText() : FIX::Group(33,58,FIX::message_order(58,0)) {}
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,112 @@
|
||||
#ifndef FIX41_EXECUTIONREPORT_H
|
||||
#define FIX41_EXECUTIONREPORT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class ExecutionReport : public Message
|
||||
{
|
||||
public:
|
||||
ExecutionReport() : Message(MsgType()) {}
|
||||
ExecutionReport(const FIX::Message& m) : Message(m) {}
|
||||
ExecutionReport(const Message& m) : Message(m) {}
|
||||
ExecutionReport(const ExecutionReport& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("8"); }
|
||||
|
||||
ExecutionReport(
|
||||
const FIX::OrderID& aOrderID,
|
||||
const FIX::ExecID& aExecID,
|
||||
const FIX::ExecTransType& aExecTransType,
|
||||
const FIX::ExecType& aExecType,
|
||||
const FIX::OrdStatus& aOrdStatus,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty,
|
||||
const FIX::LastShares& aLastShares,
|
||||
const FIX::LastPx& aLastPx,
|
||||
const FIX::LeavesQty& aLeavesQty,
|
||||
const FIX::CumQty& aCumQty,
|
||||
const FIX::AvgPx& aAvgPx )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrderID);
|
||||
set(aExecID);
|
||||
set(aExecTransType);
|
||||
set(aExecType);
|
||||
set(aOrdStatus);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
set(aLastShares);
|
||||
set(aLastPx);
|
||||
set(aLeavesQty);
|
||||
set(aCumQty);
|
||||
set(aAvgPx);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::SecondaryOrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::OrigClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::ExecID);
|
||||
FIELD_SET(*this, FIX::ExecTransType);
|
||||
FIELD_SET(*this, FIX::ExecRefID);
|
||||
FIELD_SET(*this, FIX::ExecType);
|
||||
FIELD_SET(*this, FIX::OrdStatus);
|
||||
FIELD_SET(*this, FIX::OrdRejReason);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::PegDifference);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::LastShares);
|
||||
FIELD_SET(*this, FIX::LastPx);
|
||||
FIELD_SET(*this, FIX::LastSpotRate);
|
||||
FIELD_SET(*this, FIX::LastForwardPoints);
|
||||
FIELD_SET(*this, FIX::LastMkt);
|
||||
FIELD_SET(*this, FIX::LastCapacity);
|
||||
FIELD_SET(*this, FIX::LeavesQty);
|
||||
FIELD_SET(*this, FIX::CumQty);
|
||||
FIELD_SET(*this, FIX::AvgPx);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::ReportToExch);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::SettlCurrAmt);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::SettlCurrFxRate);
|
||||
FIELD_SET(*this, FIX::SettlCurrFxRateCalc);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef FIX41_HEARTBEAT_H
|
||||
#define FIX41_HEARTBEAT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Heartbeat : public Message
|
||||
{
|
||||
public:
|
||||
Heartbeat() : Message(MsgType()) {}
|
||||
Heartbeat(const FIX::Message& m) : Message(m) {}
|
||||
Heartbeat(const Message& m) : Message(m) {}
|
||||
Heartbeat(const Heartbeat& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("0"); }
|
||||
|
||||
FIELD_SET(*this, FIX::TestReqID);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,71 @@
|
||||
#ifndef FIX41_IOI_H
|
||||
#define FIX41_IOI_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class IOI : public Message
|
||||
{
|
||||
public:
|
||||
IOI() : Message(MsgType()) {}
|
||||
IOI(const FIX::Message& m) : Message(m) {}
|
||||
IOI(const Message& m) : Message(m) {}
|
||||
IOI(const IOI& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("6"); }
|
||||
|
||||
IOI(
|
||||
const FIX::IOIid& aIOIid,
|
||||
const FIX::IOITransType& aIOITransType,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::IOIShares& aIOIShares )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aIOIid);
|
||||
set(aIOITransType);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aIOIShares);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::IOIid);
|
||||
FIELD_SET(*this, FIX::IOITransType);
|
||||
FIELD_SET(*this, FIX::IOIRefID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::IOIShares);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::ValidUntilTime);
|
||||
FIELD_SET(*this, FIX::IOIQltyInd);
|
||||
FIELD_SET(*this, FIX::IOIOthSvc);
|
||||
FIELD_SET(*this, FIX::IOINaturalFlag);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::URLLink);
|
||||
FIELD_SET(*this, FIX::NoIOIQualifiers);
|
||||
class NoIOIQualifiers: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {}
|
||||
FIELD_SET(*this, FIX::IOIQualifier);
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef FIX41_LISTCANCELREQUEST_H
|
||||
#define FIX41_LISTCANCELREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class ListCancelRequest : public Message
|
||||
{
|
||||
public:
|
||||
ListCancelRequest() : Message(MsgType()) {}
|
||||
ListCancelRequest(const FIX::Message& m) : Message(m) {}
|
||||
ListCancelRequest(const Message& m) : Message(m) {}
|
||||
ListCancelRequest(const ListCancelRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("K"); }
|
||||
|
||||
ListCancelRequest(
|
||||
const FIX::ListID& aListID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef FIX41_LISTEXECUTE_H
|
||||
#define FIX41_LISTEXECUTE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class ListExecute : public Message
|
||||
{
|
||||
public:
|
||||
ListExecute() : Message(MsgType()) {}
|
||||
ListExecute(const FIX::Message& m) : Message(m) {}
|
||||
ListExecute(const Message& m) : Message(m) {}
|
||||
ListExecute(const ListExecute& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("L"); }
|
||||
|
||||
ListExecute(
|
||||
const FIX::ListID& aListID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,48 @@
|
||||
#ifndef FIX41_LISTSTATUS_H
|
||||
#define FIX41_LISTSTATUS_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class ListStatus : public Message
|
||||
{
|
||||
public:
|
||||
ListStatus() : Message(MsgType()) {}
|
||||
ListStatus(const FIX::Message& m) : Message(m) {}
|
||||
ListStatus(const Message& m) : Message(m) {}
|
||||
ListStatus(const ListStatus& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("N"); }
|
||||
|
||||
ListStatus(
|
||||
const FIX::ListID& aListID,
|
||||
const FIX::NoRpts& aNoRpts,
|
||||
const FIX::RptSeq& aRptSeq )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
set(aNoRpts);
|
||||
set(aRptSeq);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::NoRpts);
|
||||
FIELD_SET(*this, FIX::RptSeq);
|
||||
FIELD_SET(*this, FIX::NoOrders);
|
||||
class NoOrders: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoOrders() : FIX::Group(73,11,FIX::message_order(11,14,151,84,6,0)) {}
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::CumQty);
|
||||
FIELD_SET(*this, FIX::LeavesQty);
|
||||
FIELD_SET(*this, FIX::CxlQty);
|
||||
FIELD_SET(*this, FIX::AvgPx);
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef FIX41_LISTSTATUSREQUEST_H
|
||||
#define FIX41_LISTSTATUSREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class ListStatusRequest : public Message
|
||||
{
|
||||
public:
|
||||
ListStatusRequest() : Message(MsgType()) {}
|
||||
ListStatusRequest(const FIX::Message& m) : Message(m) {}
|
||||
ListStatusRequest(const Message& m) : Message(m) {}
|
||||
ListStatusRequest(const ListStatusRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("M"); }
|
||||
|
||||
ListStatusRequest(
|
||||
const FIX::ListID& aListID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,36 @@
|
||||
#ifndef FIX41_LOGON_H
|
||||
#define FIX41_LOGON_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Logon : public Message
|
||||
{
|
||||
public:
|
||||
Logon() : Message(MsgType()) {}
|
||||
Logon(const FIX::Message& m) : Message(m) {}
|
||||
Logon(const Message& m) : Message(m) {}
|
||||
Logon(const Logon& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("A"); }
|
||||
|
||||
Logon(
|
||||
const FIX::EncryptMethod& aEncryptMethod,
|
||||
const FIX::HeartBtInt& aHeartBtInt )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aEncryptMethod);
|
||||
set(aHeartBtInt);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::EncryptMethod);
|
||||
FIELD_SET(*this, FIX::HeartBtInt);
|
||||
FIELD_SET(*this, FIX::RawDataLength);
|
||||
FIELD_SET(*this, FIX::RawData);
|
||||
FIELD_SET(*this, FIX::ResetSeqNumFlag);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef FIX41_LOGOUT_H
|
||||
#define FIX41_LOGOUT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Logout : public Message
|
||||
{
|
||||
public:
|
||||
Logout() : Message(MsgType()) {}
|
||||
Logout(const FIX::Message& m) : Message(m) {}
|
||||
Logout(const Message& m) : Message(m) {}
|
||||
Logout(const Logout& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("5"); }
|
||||
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,62 @@
|
||||
#ifndef FIX41_MESSAGES_H
|
||||
#define FIX41_MESSAGES_H
|
||||
|
||||
#include "../Message.h"
|
||||
#include "../Group.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
class Header : public FIX::Header
|
||||
{
|
||||
public:
|
||||
FIELD_SET(*this, FIX::BeginString);
|
||||
FIELD_SET(*this, FIX::BodyLength);
|
||||
FIELD_SET(*this, FIX::MsgType);
|
||||
FIELD_SET(*this, FIX::SenderCompID);
|
||||
FIELD_SET(*this, FIX::TargetCompID);
|
||||
FIELD_SET(*this, FIX::OnBehalfOfCompID);
|
||||
FIELD_SET(*this, FIX::DeliverToCompID);
|
||||
FIELD_SET(*this, FIX::SecureDataLen);
|
||||
FIELD_SET(*this, FIX::SecureData);
|
||||
FIELD_SET(*this, FIX::MsgSeqNum);
|
||||
FIELD_SET(*this, FIX::SenderSubID);
|
||||
FIELD_SET(*this, FIX::SenderLocationID);
|
||||
FIELD_SET(*this, FIX::TargetSubID);
|
||||
FIELD_SET(*this, FIX::TargetLocationID);
|
||||
FIELD_SET(*this, FIX::OnBehalfOfSubID);
|
||||
FIELD_SET(*this, FIX::OnBehalfOfLocationID);
|
||||
FIELD_SET(*this, FIX::DeliverToSubID);
|
||||
FIELD_SET(*this, FIX::DeliverToLocationID);
|
||||
FIELD_SET(*this, FIX::PossDupFlag);
|
||||
FIELD_SET(*this, FIX::PossResend);
|
||||
FIELD_SET(*this, FIX::SendingTime);
|
||||
FIELD_SET(*this, FIX::OrigSendingTime);
|
||||
};
|
||||
|
||||
class Trailer : public FIX::Trailer
|
||||
{
|
||||
public:
|
||||
FIELD_SET(*this, FIX::SignatureLength);
|
||||
FIELD_SET(*this, FIX::Signature);
|
||||
FIELD_SET(*this, FIX::CheckSum);
|
||||
};
|
||||
|
||||
class Message : public FIX::Message
|
||||
{
|
||||
public:
|
||||
Message( const FIX::MsgType& msgtype )
|
||||
: FIX::Message(
|
||||
FIX::BeginString("FIX.4.1"), msgtype )
|
||||
{}
|
||||
|
||||
Message(const FIX::Message& m) : FIX::Message(m) {}
|
||||
Message(const Message& m) : FIX::Message(m) {}
|
||||
Header& getHeader() { return (Header&)m_header; }
|
||||
const Header& getHeader() const { return (Header&)m_header; }
|
||||
Trailer& getTrailer() { return (Trailer&)m_trailer; }
|
||||
const Trailer& getTrailer() const { return (Trailer&)m_trailer; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,344 @@
|
||||
/* -*- C++ -*- */
|
||||
|
||||
/****************************************************************************
|
||||
** Copyright (c) 2001-2014
|
||||
**
|
||||
** This file is part of the QuickFIX FIX Engine
|
||||
**
|
||||
** This file may be distributed under the terms of the quickfixengine.org
|
||||
** license as defined by quickfixengine.org and appearing in the file
|
||||
** LICENSE included in the packaging of this file.
|
||||
**
|
||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
**
|
||||
** See http://www.quickfixengine.org/LICENSE for licensing information.
|
||||
**
|
||||
** Contact ask@quickfixengine.org if any conditions of this licensing are
|
||||
** not clear to you.
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef FIX41_MESSAGECRACKER_H
|
||||
#define FIX41_MESSAGECRACKER_H
|
||||
|
||||
|
||||
#include "../SessionID.h"
|
||||
#include "../Exceptions.h"
|
||||
|
||||
#include "../fix41/Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
class Heartbeat;
|
||||
class TestRequest;
|
||||
class ResendRequest;
|
||||
class Reject;
|
||||
class SequenceReset;
|
||||
class Logout;
|
||||
class IOI;
|
||||
class Advertisement;
|
||||
class ExecutionReport;
|
||||
class OrderCancelReject;
|
||||
class Logon;
|
||||
class News;
|
||||
class Email;
|
||||
class NewOrderSingle;
|
||||
class NewOrderList;
|
||||
class OrderCancelRequest;
|
||||
class OrderCancelReplaceRequest;
|
||||
class OrderStatusRequest;
|
||||
class Allocation;
|
||||
class ListCancelRequest;
|
||||
class ListExecute;
|
||||
class ListStatusRequest;
|
||||
class ListStatus;
|
||||
class AllocationInstructionAck;
|
||||
class DontKnowTrade;
|
||||
class QuoteRequest;
|
||||
class Quote;
|
||||
class SettlementInstructions;
|
||||
|
||||
class MessageCracker
|
||||
{
|
||||
public:
|
||||
virtual ~MessageCracker() {}
|
||||
virtual void onMessage( const Message&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( Message&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Heartbeat&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const TestRequest&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const ResendRequest&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const Reject&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const SequenceReset&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const Logout&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const IOI&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Advertisement&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ExecutionReport&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Logon&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const News&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Email&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const NewOrderList&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Allocation&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListExecute&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListStatus&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const QuoteRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Quote&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( TestRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Reject&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Logout&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( IOI&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Advertisement&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Logon&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( News&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Email&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Allocation&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListExecute&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListStatus&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Quote&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {}
|
||||
|
||||
public:
|
||||
void crack( const Message& message,
|
||||
const FIX::SessionID& sessionID )
|
||||
{
|
||||
const std::string& msgTypeValue
|
||||
= message.getHeader().getField( FIX::FIELD::MsgType );
|
||||
|
||||
if( msgTypeValue == "0" )
|
||||
onMessage( (const Heartbeat&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "1" )
|
||||
onMessage( (const TestRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "2" )
|
||||
onMessage( (const ResendRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "3" )
|
||||
onMessage( (const Reject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "4" )
|
||||
onMessage( (const SequenceReset&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "5" )
|
||||
onMessage( (const Logout&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "6" )
|
||||
onMessage( (const IOI&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "7" )
|
||||
onMessage( (const Advertisement&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "8" )
|
||||
onMessage( (const ExecutionReport&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "9" )
|
||||
onMessage( (const OrderCancelReject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "A" )
|
||||
onMessage( (const Logon&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "B" )
|
||||
onMessage( (const News&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "C" )
|
||||
onMessage( (const Email&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "D" )
|
||||
onMessage( (const NewOrderSingle&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "E" )
|
||||
onMessage( (const NewOrderList&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "F" )
|
||||
onMessage( (const OrderCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "G" )
|
||||
onMessage( (const OrderCancelReplaceRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "H" )
|
||||
onMessage( (const OrderStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "J" )
|
||||
onMessage( (const Allocation&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "K" )
|
||||
onMessage( (const ListCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "L" )
|
||||
onMessage( (const ListExecute&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "M" )
|
||||
onMessage( (const ListStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "N" )
|
||||
onMessage( (const ListStatus&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "P" )
|
||||
onMessage( (const AllocationInstructionAck&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "Q" )
|
||||
onMessage( (const DontKnowTrade&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "R" )
|
||||
onMessage( (const QuoteRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "S" )
|
||||
onMessage( (const Quote&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "T" )
|
||||
onMessage( (const SettlementInstructions&)message, sessionID );
|
||||
else onMessage( message, sessionID );
|
||||
}
|
||||
|
||||
void crack( Message& message,
|
||||
const FIX::SessionID& sessionID )
|
||||
{
|
||||
FIX::MsgType msgType;
|
||||
message.getHeader().getField(msgType);
|
||||
std::string msgTypeValue = msgType.getValue();
|
||||
|
||||
if( msgTypeValue == "0" )
|
||||
onMessage( (Heartbeat&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "1" )
|
||||
onMessage( (TestRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "2" )
|
||||
onMessage( (ResendRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "3" )
|
||||
onMessage( (Reject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "4" )
|
||||
onMessage( (SequenceReset&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "5" )
|
||||
onMessage( (Logout&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "6" )
|
||||
onMessage( (IOI&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "7" )
|
||||
onMessage( (Advertisement&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "8" )
|
||||
onMessage( (ExecutionReport&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "9" )
|
||||
onMessage( (OrderCancelReject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "A" )
|
||||
onMessage( (Logon&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "B" )
|
||||
onMessage( (News&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "C" )
|
||||
onMessage( (Email&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "D" )
|
||||
onMessage( (NewOrderSingle&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "E" )
|
||||
onMessage( (NewOrderList&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "F" )
|
||||
onMessage( (OrderCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "G" )
|
||||
onMessage( (OrderCancelReplaceRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "H" )
|
||||
onMessage( (OrderStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "J" )
|
||||
onMessage( (Allocation&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "K" )
|
||||
onMessage( (ListCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "L" )
|
||||
onMessage( (ListExecute&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "M" )
|
||||
onMessage( (ListStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "N" )
|
||||
onMessage( (ListStatus&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "P" )
|
||||
onMessage( (AllocationInstructionAck&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "Q" )
|
||||
onMessage( (DontKnowTrade&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "R" )
|
||||
onMessage( (QuoteRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "S" )
|
||||
onMessage( (Quote&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "T" )
|
||||
onMessage( (SettlementInstructions&)message, sessionID );
|
||||
else onMessage( message, sessionID );
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,98 @@
|
||||
#ifndef FIX41_NEWORDERLIST_H
|
||||
#define FIX41_NEWORDERLIST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class NewOrderList : public Message
|
||||
{
|
||||
public:
|
||||
NewOrderList() : Message(MsgType()) {}
|
||||
NewOrderList(const FIX::Message& m) : Message(m) {}
|
||||
NewOrderList(const Message& m) : Message(m) {}
|
||||
NewOrderList(const NewOrderList& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("E"); }
|
||||
|
||||
NewOrderList(
|
||||
const FIX::ListID& aListID,
|
||||
const FIX::ListSeqNo& aListSeqNo,
|
||||
const FIX::ListNoOrds& aListNoOrds,
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::HandlInst& aHandlInst,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty,
|
||||
const FIX::OrdType& aOrdType )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
set(aListSeqNo);
|
||||
set(aListNoOrds);
|
||||
set(aClOrdID);
|
||||
set(aHandlInst);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
set(aOrdType);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::ListSeqNo);
|
||||
FIELD_SET(*this, FIX::ListNoOrds);
|
||||
FIELD_SET(*this, FIX::ListExecInst);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::HandlInst);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::MinQty);
|
||||
FIELD_SET(*this, FIX::MaxFloor);
|
||||
FIELD_SET(*this, FIX::ExDestination);
|
||||
FIELD_SET(*this, FIX::ProcessCode);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::PrevClosePx);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::LocateReqd);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::PegDifference);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::ForexReq);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::FutSettDate2);
|
||||
FIELD_SET(*this, FIX::OrderQty2);
|
||||
FIELD_SET(*this, FIX::OpenClose);
|
||||
FIELD_SET(*this, FIX::CoveredOrUncovered);
|
||||
FIELD_SET(*this, FIX::CustomerOrFirm);
|
||||
FIELD_SET(*this, FIX::MaxShow);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,88 @@
|
||||
#ifndef FIX41_NEWORDERSINGLE_H
|
||||
#define FIX41_NEWORDERSINGLE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class NewOrderSingle : public Message
|
||||
{
|
||||
public:
|
||||
NewOrderSingle() : Message(MsgType()) {}
|
||||
NewOrderSingle(const FIX::Message& m) : Message(m) {}
|
||||
NewOrderSingle(const Message& m) : Message(m) {}
|
||||
NewOrderSingle(const NewOrderSingle& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("D"); }
|
||||
|
||||
NewOrderSingle(
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::HandlInst& aHandlInst,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrdType& aOrdType )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aClOrdID);
|
||||
set(aHandlInst);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrdType);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::HandlInst);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::MinQty);
|
||||
FIELD_SET(*this, FIX::MaxFloor);
|
||||
FIELD_SET(*this, FIX::ExDestination);
|
||||
FIELD_SET(*this, FIX::ProcessCode);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::PrevClosePx);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::LocateReqd);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::CashOrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::IOIid);
|
||||
FIELD_SET(*this, FIX::QuoteID);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::ForexReq);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::FutSettDate2);
|
||||
FIELD_SET(*this, FIX::OrderQty2);
|
||||
FIELD_SET(*this, FIX::OpenClose);
|
||||
FIELD_SET(*this, FIX::CoveredOrUncovered);
|
||||
FIELD_SET(*this, FIX::CustomerOrFirm);
|
||||
FIELD_SET(*this, FIX::MaxShow);
|
||||
FIELD_SET(*this, FIX::PegDifference);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,61 @@
|
||||
#ifndef FIX41_NEWS_H
|
||||
#define FIX41_NEWS_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class News : public Message
|
||||
{
|
||||
public:
|
||||
News() : Message(MsgType()) {}
|
||||
News(const FIX::Message& m) : Message(m) {}
|
||||
News(const Message& m) : Message(m) {}
|
||||
News(const News& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("B"); }
|
||||
|
||||
News(
|
||||
const FIX::Headline& aHeadline )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aHeadline);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrigTime);
|
||||
FIELD_SET(*this, FIX::Urgency);
|
||||
FIELD_SET(*this, FIX::Headline);
|
||||
FIELD_SET(*this, FIX::URLLink);
|
||||
FIELD_SET(*this, FIX::RawDataLength);
|
||||
FIELD_SET(*this, FIX::RawData);
|
||||
FIELD_SET(*this, FIX::NoRelatedSym);
|
||||
class NoRelatedSym: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,207,106,107,0)) {}
|
||||
FIELD_SET(*this, FIX::RelatdSym);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
};
|
||||
FIELD_SET(*this, FIX::LinesOfText);
|
||||
class LinesOfText: public FIX::Group
|
||||
{
|
||||
public:
|
||||
LinesOfText() : FIX::Group(33,58,FIX::message_order(58,0)) {}
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,45 @@
|
||||
#ifndef FIX41_ORDERCANCELREJECT_H
|
||||
#define FIX41_ORDERCANCELREJECT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class OrderCancelReject : public Message
|
||||
{
|
||||
public:
|
||||
OrderCancelReject() : Message(MsgType()) {}
|
||||
OrderCancelReject(const FIX::Message& m) : Message(m) {}
|
||||
OrderCancelReject(const Message& m) : Message(m) {}
|
||||
OrderCancelReject(const OrderCancelReject& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("9"); }
|
||||
|
||||
OrderCancelReject(
|
||||
const FIX::OrderID& aOrderID,
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::OrigClOrdID& aOrigClOrdID,
|
||||
const FIX::OrdStatus& aOrdStatus )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrderID);
|
||||
set(aClOrdID);
|
||||
set(aOrigClOrdID);
|
||||
set(aOrdStatus);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::SecondaryOrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::OrigClOrdID);
|
||||
FIELD_SET(*this, FIX::OrdStatus);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::CxlRejReason);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,89 @@
|
||||
#ifndef FIX41_ORDERCANCELREPLACEREQUEST_H
|
||||
#define FIX41_ORDERCANCELREPLACEREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class OrderCancelReplaceRequest : public Message
|
||||
{
|
||||
public:
|
||||
OrderCancelReplaceRequest() : Message(MsgType()) {}
|
||||
OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {}
|
||||
OrderCancelReplaceRequest(const Message& m) : Message(m) {}
|
||||
OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("G"); }
|
||||
|
||||
OrderCancelReplaceRequest(
|
||||
const FIX::OrigClOrdID& aOrigClOrdID,
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::HandlInst& aHandlInst,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrdType& aOrdType )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrigClOrdID);
|
||||
set(aClOrdID);
|
||||
set(aHandlInst);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrdType);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::OrigClOrdID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::HandlInst);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::MinQty);
|
||||
FIELD_SET(*this, FIX::MaxFloor);
|
||||
FIELD_SET(*this, FIX::ExDestination);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::CashOrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::PegDifference);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::ForexReq);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::FutSettDate2);
|
||||
FIELD_SET(*this, FIX::OrderQty2);
|
||||
FIELD_SET(*this, FIX::OpenClose);
|
||||
FIELD_SET(*this, FIX::CoveredOrUncovered);
|
||||
FIELD_SET(*this, FIX::CustomerOrFirm);
|
||||
FIELD_SET(*this, FIX::MaxShow);
|
||||
FIELD_SET(*this, FIX::LocateReqd);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,58 @@
|
||||
#ifndef FIX41_ORDERCANCELREQUEST_H
|
||||
#define FIX41_ORDERCANCELREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class OrderCancelRequest : public Message
|
||||
{
|
||||
public:
|
||||
OrderCancelRequest() : Message(MsgType()) {}
|
||||
OrderCancelRequest(const FIX::Message& m) : Message(m) {}
|
||||
OrderCancelRequest(const Message& m) : Message(m) {}
|
||||
OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("F"); }
|
||||
|
||||
OrderCancelRequest(
|
||||
const FIX::OrigClOrdID& aOrigClOrdID,
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrigClOrdID);
|
||||
set(aClOrdID);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrigClOrdID);
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::CashOrderQty);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,51 @@
|
||||
#ifndef FIX41_ORDERSTATUSREQUEST_H
|
||||
#define FIX41_ORDERSTATUSREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class OrderStatusRequest : public Message
|
||||
{
|
||||
public:
|
||||
OrderStatusRequest() : Message(MsgType()) {}
|
||||
OrderStatusRequest(const FIX::Message& m) : Message(m) {}
|
||||
OrderStatusRequest(const Message& m) : Message(m) {}
|
||||
OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("H"); }
|
||||
|
||||
OrderStatusRequest(
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aClOrdID);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,60 @@
|
||||
#ifndef FIX41_QUOTE_H
|
||||
#define FIX41_QUOTE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Quote : public Message
|
||||
{
|
||||
public:
|
||||
Quote() : Message(MsgType()) {}
|
||||
Quote(const FIX::Message& m) : Message(m) {}
|
||||
Quote(const Message& m) : Message(m) {}
|
||||
Quote(const Quote& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("S"); }
|
||||
|
||||
Quote(
|
||||
const FIX::QuoteID& aQuoteID,
|
||||
const FIX::Symbol& aSymbol )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aQuoteID);
|
||||
set(aSymbol);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::QuoteReqID);
|
||||
FIELD_SET(*this, FIX::QuoteID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::BidPx);
|
||||
FIELD_SET(*this, FIX::OfferPx);
|
||||
FIELD_SET(*this, FIX::BidSize);
|
||||
FIELD_SET(*this, FIX::OfferSize);
|
||||
FIELD_SET(*this, FIX::ValidUntilTime);
|
||||
FIELD_SET(*this, FIX::BidSpotRate);
|
||||
FIELD_SET(*this, FIX::OfferSpotRate);
|
||||
FIELD_SET(*this, FIX::BidForwardPoints);
|
||||
FIELD_SET(*this, FIX::OfferForwardPoints);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::FutSettDate2);
|
||||
FIELD_SET(*this, FIX::OrderQty2);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,52 @@
|
||||
#ifndef FIX41_QUOTEREQUEST_H
|
||||
#define FIX41_QUOTEREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class QuoteRequest : public Message
|
||||
{
|
||||
public:
|
||||
QuoteRequest() : Message(MsgType()) {}
|
||||
QuoteRequest(const FIX::Message& m) : Message(m) {}
|
||||
QuoteRequest(const Message& m) : Message(m) {}
|
||||
QuoteRequest(const QuoteRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("R"); }
|
||||
|
||||
QuoteRequest(
|
||||
const FIX::QuoteReqID& aQuoteReqID,
|
||||
const FIX::Symbol& aSymbol )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aQuoteReqID);
|
||||
set(aSymbol);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::QuoteReqID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::MaturityMonthYear);
|
||||
FIELD_SET(*this, FIX::MaturityDay);
|
||||
FIELD_SET(*this, FIX::PutOrCall);
|
||||
FIELD_SET(*this, FIX::StrikePrice);
|
||||
FIELD_SET(*this, FIX::OptAttribute);
|
||||
FIELD_SET(*this, FIX::SecurityExchange);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::PrevClosePx);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::FutSettDate2);
|
||||
FIELD_SET(*this, FIX::OrderQty2);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef FIX41_REJECT_H
|
||||
#define FIX41_REJECT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class Reject : public Message
|
||||
{
|
||||
public:
|
||||
Reject() : Message(MsgType()) {}
|
||||
Reject(const FIX::Message& m) : Message(m) {}
|
||||
Reject(const Message& m) : Message(m) {}
|
||||
Reject(const Reject& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("3"); }
|
||||
|
||||
Reject(
|
||||
const FIX::RefSeqNum& aRefSeqNum )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aRefSeqNum);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::RefSeqNum);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,33 @@
|
||||
#ifndef FIX41_RESENDREQUEST_H
|
||||
#define FIX41_RESENDREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class ResendRequest : public Message
|
||||
{
|
||||
public:
|
||||
ResendRequest() : Message(MsgType()) {}
|
||||
ResendRequest(const FIX::Message& m) : Message(m) {}
|
||||
ResendRequest(const Message& m) : Message(m) {}
|
||||
ResendRequest(const ResendRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("2"); }
|
||||
|
||||
ResendRequest(
|
||||
const FIX::BeginSeqNo& aBeginSeqNo,
|
||||
const FIX::EndSeqNo& aEndSeqNo )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aBeginSeqNo);
|
||||
set(aEndSeqNo);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::BeginSeqNo);
|
||||
FIELD_SET(*this, FIX::EndSeqNo);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef FIX41_SEQUENCERESET_H
|
||||
#define FIX41_SEQUENCERESET_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class SequenceReset : public Message
|
||||
{
|
||||
public:
|
||||
SequenceReset() : Message(MsgType()) {}
|
||||
SequenceReset(const FIX::Message& m) : Message(m) {}
|
||||
SequenceReset(const Message& m) : Message(m) {}
|
||||
SequenceReset(const SequenceReset& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("4"); }
|
||||
|
||||
SequenceReset(
|
||||
const FIX::NewSeqNo& aNewSeqNo )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aNewSeqNo);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::GapFillFlag);
|
||||
FIELD_SET(*this, FIX::NewSeqNo);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,73 @@
|
||||
#ifndef FIX41_SETTLEMENTINSTRUCTIONS_H
|
||||
#define FIX41_SETTLEMENTINSTRUCTIONS_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class SettlementInstructions : public Message
|
||||
{
|
||||
public:
|
||||
SettlementInstructions() : Message(MsgType()) {}
|
||||
SettlementInstructions(const FIX::Message& m) : Message(m) {}
|
||||
SettlementInstructions(const Message& m) : Message(m) {}
|
||||
SettlementInstructions(const SettlementInstructions& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("T"); }
|
||||
|
||||
SettlementInstructions(
|
||||
const FIX::SettlInstID& aSettlInstID,
|
||||
const FIX::SettlInstTransType& aSettlInstTransType,
|
||||
const FIX::SettlInstMode& aSettlInstMode,
|
||||
const FIX::SettlInstSource& aSettlInstSource,
|
||||
const FIX::AllocAccount& aAllocAccount,
|
||||
const FIX::TransactTime& aTransactTime )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aSettlInstID);
|
||||
set(aSettlInstTransType);
|
||||
set(aSettlInstMode);
|
||||
set(aSettlInstSource);
|
||||
set(aAllocAccount);
|
||||
set(aTransactTime);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::SettlInstID);
|
||||
FIELD_SET(*this, FIX::SettlInstTransType);
|
||||
FIELD_SET(*this, FIX::SettlInstMode);
|
||||
FIELD_SET(*this, FIX::SettlInstSource);
|
||||
FIELD_SET(*this, FIX::AllocAccount);
|
||||
FIELD_SET(*this, FIX::SettlLocation);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::AllocID);
|
||||
FIELD_SET(*this, FIX::LastMkt);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::SecurityType);
|
||||
FIELD_SET(*this, FIX::EffectiveTime);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::StandInstDbType);
|
||||
FIELD_SET(*this, FIX::StandInstDbName);
|
||||
FIELD_SET(*this, FIX::StandInstDbID);
|
||||
FIELD_SET(*this, FIX::SettlDeliveryType);
|
||||
FIELD_SET(*this, FIX::SettlDepositoryCode);
|
||||
FIELD_SET(*this, FIX::SettlBrkrCode);
|
||||
FIELD_SET(*this, FIX::SettlInstCode);
|
||||
FIELD_SET(*this, FIX::SecuritySettlAgentName);
|
||||
FIELD_SET(*this, FIX::SecuritySettlAgentCode);
|
||||
FIELD_SET(*this, FIX::SecuritySettlAgentAcctNum);
|
||||
FIELD_SET(*this, FIX::SecuritySettlAgentAcctName);
|
||||
FIELD_SET(*this, FIX::SecuritySettlAgentContactName);
|
||||
FIELD_SET(*this, FIX::SecuritySettlAgentContactPhone);
|
||||
FIELD_SET(*this, FIX::CashSettlAgentName);
|
||||
FIELD_SET(*this, FIX::CashSettlAgentCode);
|
||||
FIELD_SET(*this, FIX::CashSettlAgentAcctNum);
|
||||
FIELD_SET(*this, FIX::CashSettlAgentAcctName);
|
||||
FIELD_SET(*this, FIX::CashSettlAgentContactName);
|
||||
FIELD_SET(*this, FIX::CashSettlAgentContactPhone);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,30 @@
|
||||
#ifndef FIX41_TESTREQUEST_H
|
||||
#define FIX41_TESTREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX41
|
||||
{
|
||||
|
||||
class TestRequest : public Message
|
||||
{
|
||||
public:
|
||||
TestRequest() : Message(MsgType()) {}
|
||||
TestRequest(const FIX::Message& m) : Message(m) {}
|
||||
TestRequest(const Message& m) : Message(m) {}
|
||||
TestRequest(const TestRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("1"); }
|
||||
|
||||
TestRequest(
|
||||
const FIX::TestReqID& aTestReqID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aTestReqID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::TestReqID);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user