JayBeams  0.1
Another project to have fun coding.
short_add_order_message.hpp
Go to the documentation of this file.
1 #ifndef jb_pitch2_short_add_order_message_hpp
2 #define jb_pitch2_short_add_order_message_hpp
3 
5 
6 namespace jb {
7 namespace pitch2 {
8 
9 /**
10  * Represent the short version of 'Add Order' message in the PITCH-2.X protocol.
11  *
12  * Sometimes the specification refers to this message as 'Add Order -
13  * short'.
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  : public base_add_order_message<
21  boost::endian::little_uint16_buf_t, jb::fixed_string<6>,
22  boost::endian::little_uint16_buf_t> {
23  /// Define the messsage type
24  constexpr static int type = 0x21;
25 };
26 
27 /// Streaming operator for jb::pitch2::short_add_order_message.
28 std::ostream& operator<<(std::ostream& os, short_add_order_message const& x);
29 
30 } // namespace pitch2
31 } // namespace jb
32 
33 #endif // jb_pitch2_short_add_order_message_hpp
std::ostream & operator<<(std::ostream &os, add_order_message const &x)
Streaming operator for jb::pitch2::add_order_message.
Common type for the &#39;Add Order&#39; messages in the PITCH-2.X protocol.
static constexpr int type
Define the messsage type.
Represent the short version of &#39;Add Order&#39; message in the PITCH-2.X protocol.
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7