1 #ifndef ISIMUD_EXCHANGES_MIT_OSLO_MESSAGES_HPP
2 #define ISIMUD_EXCHANGES_MIT_OSLO_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>
72 }
__attribute__((packed));
74 using order_qty_t=
std::uint64_t;
88 }
__attribute__((packed));
108 }
__attribute__((packed));
127 }
__attribute__((packed));
133 using RejectCode_t=mit_oslo::reject_codes_enum;
135 using order_qty_t=
std::uint64_t;
141 }
__attribute__((packed));
156 }
__attribute__((packed));
173 }
__attribute__((packed));
198 template<
class SrcMsg>
explicit __stdcall
200 }
__attribute__((packed));
214 template<
class SrcMsg>
explicit __stdcall
216 }
__attribute__((packed));
229 template<
class SrcMsg>
explicit __stdcall
231 }
__attribute__((packed));
235 static inline constexpr const exchanges::common::mic_codes::ISO_10383_MIC_Codes
MIC_code=exchanges::common::mic_codes::ISO_10383_MIC_Codes::ISO_10383_NORWAY_XOSL;
246 using ClientOrderID_t=
common::ClientOrderID_t;
275 using Logout=LogoutRequest;
277 static inline constexpr MsgTypes_t
MatchAll=
std::numeric_limits<MsgTypes_t>::max()-1;
278 static inline constexpr MsgTypes_t
Exit=
std::numeric_limits<MsgTypes_t>::max();
308 boost::mpl::min_element<
309 boost::mpl::transform_view<client_to_exchange_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
315 boost::mpl::max_element<
316 boost::mpl::transform_view<client_to_exchange_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
322 boost::mpl::min_element<
323 boost::mpl::transform_view<exchange_to_client_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
329 boost::mpl::max_element<
330 boost::mpl::transform_view<exchange_to_client_messages_t, boost::mpl::sizeof_<boost::mpl::_1> >
334 min_msg_size=libjmmcg::min<std::size_t, min_size_client_to_exchange_msg, min_size_exchange_to_client_msg>::value,
335 max_msg_size=libjmmcg::max<std::size_t, max_size_client_to_exchange_msg, max_size_exchange_to_client_msg>::value,
338 BOOST_MPL_ASSERT_RELATION(max_msg_size, >=, header_t_size);
354 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Header_t), <=, MsgTypes::max_size_client_to_exchange_msg);
355 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Header_t), <=, MsgTypes::max_size_exchange_to_client_msg);
356 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Header_t), <=, MsgTypes::max_msg_size);
357 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::LogonRequest), ==, 80);
358 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::LogonReply), ==, 38);
359 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Logout), ==, 24);
360 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::ClientHeartbeat), ==, 4);
361 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::ServerHeartbeat), ==, 4);
362 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::MissedMessageRequest), ==, 9);
363 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::MissedMessageRequestAck), ==, 5);
364 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::MissedMessageReport), ==, 5);
365 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::Reject), ==, 59);
366 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::SystemStatus), ==, 6);
367 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::NewOrder_t), ==, 106);
368 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderCancelReplaceRequest), ==, 129);
369 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderCancelRequest), ==, 73);
370 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderMassCancelRequest), ==, 46);
371 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::ExecutionReport), ==, 229);
372 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderCancelReject), ==, 73);
373 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::OrderMassCancelReport), ==, 56);
374 BOOST_MPL_ASSERT_RELATION(
sizeof(MsgTypes::BusinessReject), ==, 63);