JayBeams  0.1
Another project to have fun coding.
market_id.hpp
Go to the documentation of this file.
1 #ifndef jb_mktdata_market_id_hpp
2 #define jb_mktdata_market_id_hpp
3 
4 #include <boost/endian/buffers.hpp>
5 
6 namespace jb {
7 namespace mktdata {
8 
9 /**
10  * Market identifier in JayBeam messages.
11  *
12  * Sometimes it is necessary to represent a specific market in a
13  * messages. For example, for feeds that aggregate data from multiple
14  * markets, or for protocols that are shared across markets. JayBeams
15  * uses a combination of a unique identifier assigned across all
16  * applications, and the ISO-10383 codes (aka MIC).
17  * TODO() - document how the JayBeams are assigned and maintained
18  * consistently.
19  */
20 struct market_id {
21  /// The space required to send a "Market Code Identifier" (often
22  /// "MIC code", as "PIN number").
23  static constexpr std::size_t mic_size = 4;
24 
25  /// The JayBeams internal identifier for the market
26  boost::endian::little_uint32_buf_t id;
27 };
28 
29 } // namespace mktdata
30 } // namespace jb
31 
32 #endif // jb_mktdata_market_id_hpp
static constexpr std::size_t mic_size
The space required to send a "Market Code Identifier" (often "MIC code", as "PIN number").
Definition: market_id.hpp:23
Market identifier in JayBeam messages.
Definition: market_id.hpp:20
boost::endian::little_uint32_buf_t id
The JayBeams internal identifier for the market.
Definition: market_id.hpp:26
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7