1 #ifndef ISIMUD_EXCHANGES_MIT_LSE_MESSAGES_HPP
2 #define ISIMUD_EXCHANGES_MIT_LSE_MESSAGES_HPP
23 #include "reject_codes.hpp"
25 #include "../common/messages.hpp"
26 #include "../common/ref_data.hpp"
28 #include "core/max_min.hpp"
30 #include <boost/mpl/assert.hpp>
31 #include <boost/mpl/deref.hpp>
32 #include <boost/mpl/max_element.hpp>
33 #include <boost/mpl/min_element.hpp>
34 #include <boost/mpl/placeholders.hpp>
35 #include <boost/mpl/sizeof.hpp>
36 #include <boost/mpl/transform_view.hpp>
37 #include <boost/mpl/vector.hpp>
38 #include <boost/variant/variant.hpp>
73 }
__attribute__((packed));
75 using order_qty_t=
std::int32_t;
89 }
__attribute__((packed));
108 }
__attribute__((packed));
118 }
__attribute__((packed));
121 }
__attribute__((packed));
142 }
__attribute__((packed));
148 using RejectCode_t=mit_lse::reject_codes_enum;
150 using order_qty_t=
std::int32_t;
156 }
__attribute__((packed));
164 }
__attribute__((packed));
187 }
__attribute__((packed));
212 template<
class SrcMsg>
__stdcall
228 template<
class SrcMsg>
explicit __stdcall
243 template<
class SrcMsg>
explicit __stdcall
249 static inline constexpr const exchanges::common::mic_codes::ISO_10383_MIC_Codes
MIC_code=exchanges::common::mic_codes::ISO_10383_MIC_Codes::ISO_10383_UNITED_KINGDOM_XLON;
260 using ClientOrderID_t=
common::ClientOrderID_t;
290 using Logout=LogoutRequest;
292 static inline constexpr MsgTypes_t
MatchAll=
std::numeric_limits<MsgTypes_t>::max()-1;
293 static inline constexpr MsgTypes_t
Exit=
std::numeric_limits<MsgTypes_t>::max();
324 boost::mpl::min_element<
325 boost::mpl::transform_view<client_to_exchange_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
331 boost::mpl::max_element<
332 boost::mpl::transform_view<client_to_exchange_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
338 boost::mpl::min_element<
339 boost::mpl::transform_view<exchange_to_client_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
345 boost::mpl::max_element<
346 boost::mpl::transform_view<exchange_to_client_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
350 min_msg_size=libjmmcg::min<std::size_t, min_size_client_to_exchange_msg, min_size_exchange_to_client_msg>::value,
351 max_msg_size=libjmmcg::max<std::size_t, max_size_client_to_exchange_msg, max_size_exchange_to_client_msg>::value,
354 BOOST_MPL_ASSERT_RELATION(max_msg_size, >=, header_t_size);
370 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Header_t), <=, MsgTypes::max_size_client_to_exchange_msg);
371 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Header_t), <=, MsgTypes::max_size_exchange_to_client_msg);
372 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Header_t), <=, MsgTypes::max_msg_size);
373 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::LogonRequest), ==, 80);
374 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::LogonReply), ==, 38);
375 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::LogoutRequest), ==, 24);
376 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::ClientHeartbeat), ==, 4);
377 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::ServerHeartbeat), ==, 4);
378 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::MissedMessageRequest), ==, 9);
379 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::MissedMessageRequestAck), ==, 5);
380 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::MissedMessageReport), ==, 5);
381 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Reject), ==, 59);
382 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::SystemStatus), ==, 6);
383 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::NewOrder_t), ==, 101);
384 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::NewQuote), ==, 76);
385 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderCancelReplaceRequest), ==, 116);
386 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderCancelRequest), ==, 73);
387 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderMassCancelRequest), ==, 46);
388 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::ExecutionReport), ==, 155);
389 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderCancelReject), ==, 73);
390 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderMassCancelReport), ==, 56);
391 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::BusinessReject), ==, 63);