JayBeams  0.1
Another project to have fun coding.
auction_update_message.hpp
Go to the documentation of this file.
1 #ifndef jb_pitch2_auction_update_message_hpp
2 #define jb_pitch2_auction_update_message_hpp
3 
4 #include <jb/fixed_string.hpp>
5 #include <boost/endian/buffers.hpp>
6 
7 #include <iosfwd>
8 #include <utility>
9 
10 namespace jb {
11 namespace pitch2 {
12 
13 /**
14  * Represent the 'Auction Update' message in the PITCH-2.X protocol.
15  *
16  * A full description of the fields can be found in the BATS PITCH-2.X
17  * specification:
18  * https://www.batstrading.com/resources/membership/BATS_MC_PITCH_Specification.pdf
19  */
21  /// Define the messsage type
22  constexpr static int type = 0x95;
23 
24  /// The type for the stock_symbol field.
26 
27  boost::endian::little_uint8_buf_t length;
28  boost::endian::little_uint8_buf_t message_type;
29  boost::endian::little_uint32_buf_t time_offset;
31  boost::endian::little_uint8_buf_t auction_type;
32  boost::endian::little_uint64_buf_t reference_price;
33  boost::endian::little_uint32_buf_t buy_shares;
34  boost::endian::little_uint32_buf_t sell_shares;
35  boost::endian::little_uint64_buf_t indicative_price;
36  boost::endian::little_uint64_buf_t auction_only_price;
37 };
38 
39 /// Streaming operator for jb::pitch2::auction_update_message.
40 std::ostream& operator<<(std::ostream& os, auction_update_message const& x);
41 
42 } // namespace pitch2
43 } // namespace jb
44 
45 #endif // jb_pitch2_auction_update_message_hpp
boost::endian::little_uint32_buf_t time_offset
std::ostream & operator<<(std::ostream &os, add_order_message const &x)
Streaming operator for jb::pitch2::add_order_message.
boost::endian::little_uint64_buf_t indicative_price
boost::endian::little_uint32_buf_t buy_shares
boost::endian::little_uint8_buf_t length
boost::endian::little_uint8_buf_t auction_type
boost::endian::little_uint8_buf_t message_type
static constexpr int type
Define the messsage type.
boost::endian::little_uint64_buf_t auction_only_price
boost::endian::little_uint32_buf_t sell_shares
Represent the &#39;Auction Update&#39; message in the PITCH-2.X protocol.
boost::endian::little_uint64_buf_t reference_price
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7