JayBeams  0.1
Another project to have fun coding.
order_executed_price_message.hpp
Go to the documentation of this file.
1 #ifndef jb_pitch2_order_executed_price_message_hpp
2 #define jb_pitch2_order_executed_price_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 at Price/Size' message in the PITCH-2.X
13  * protocol.
14  *
15  * A full description of the fields can be found in the BATS PITCH-2.X
16  * specification:
17  * https://www.batstrading.com/resources/membership/BATS_MC_PITCH_Specification.pdf
18  */
20  /// Define the messsage type
21  constexpr static int type = 0x24;
22 
23  boost::endian::little_uint8_buf_t length;
24  boost::endian::little_uint8_buf_t message_type;
25  boost::endian::little_uint32_buf_t time_offset;
26  boost::endian::little_uint64_buf_t order_id;
27  boost::endian::little_uint32_buf_t executed_quantity;
28  boost::endian::little_uint32_buf_t remaining_quantity;
29  boost::endian::little_uint64_buf_t execution_id;
30  boost::endian::little_uint64_buf_t price;
31 };
32 
33 /// Streaming operator for jb::pitch2::order_executed_price_message.
34 std::ostream&
35 operator<<(std::ostream& os, order_executed_price_message const& x);
36 
37 } // namespace pitch2
38 } // namespace jb
39 
40 #endif // jb_pitch2_order_executed_price_message_hpp
std::ostream & operator<<(std::ostream &os, add_order_message const &x)
Streaming operator for jb::pitch2::add_order_message.
Represent the &#39;Order Executed at Price/Size&#39; message in the PITCH-2.X protocol.
boost::endian::little_uint32_buf_t executed_quantity
boost::endian::little_uint32_buf_t remaining_quantity
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7
static constexpr int type
Define the messsage type.