JayBeams  0.1
Another project to have fun coding.
order_executed_message.hpp
Go to the documentation of this file.
1 #ifndef jb_pitch2_order_executed_message_hpp
2 #define jb_pitch2_order_executed_message_hpp
3 
4 #include <boost/endian/buffers.hpp>
5 
6 #include <iosfwd>
7 
8 namespace jb {
9 namespace pitch2 {
10 
11 /**
12  * Represent the 'Order Executed' message in the PITCH-2.X protocol.
13  *
14  * A full description of the fields can be found in the BATS PITCH-2.X
15  * specification:
16  * https://www.batstrading.com/resources/membership/BATS_MC_PITCH_Specification.pdf
17  */
19  /// Define the messsage type
20  constexpr static int type = 0x23;
21 
22  boost::endian::little_uint8_buf_t length;
23  boost::endian::little_uint8_buf_t message_type;
24  boost::endian::little_uint32_buf_t time_offset;
25  boost::endian::little_uint64_buf_t order_id;
26  boost::endian::little_uint32_buf_t executed_quantity;
27  boost::endian::little_uint64_buf_t execution_id;
28 };
29 
30 /// Streaming operator for jb::pitch2::order_executed_message.
31 std::ostream& operator<<(std::ostream& os, order_executed_message const& x);
32 
33 } // namespace pitch2
34 } // namespace jb
35 
36 #endif // jb_pitch2_order_executed_message_hpp
std::ostream & operator<<(std::ostream &os, add_order_message const &x)
Streaming operator for jb::pitch2::add_order_message.
static constexpr int type
Define the messsage type.
boost::endian::little_uint64_buf_t order_id
boost::endian::little_uint8_buf_t length
boost::endian::little_uint32_buf_t time_offset
boost::endian::little_uint8_buf_t message_type
boost::endian::little_uint64_buf_t execution_id
Represent the &#39;Order Executed&#39; message in the PITCH-2.X protocol.
boost::endian::little_uint32_buf_t executed_quantity
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7