JayBeams  0.1
Another project to have fun coding.
timestamp.hpp
Go to the documentation of this file.
1 #ifndef jb_mktdata_timestamp_hpp
2 #define jb_mktdata_timestamp_hpp
3 
4 #include <boost/endian/buffers.hpp>
5 
6 namespace jb {
7 namespace mktdata {
8 
9 /**
10  * Timestamp in JayBeam messages.
11  *
12  * All JayBeams timestamps are expressed in nanoseconds since midnight
13  * of the trading day, in the local time of the exchange.
14  * TODO() we need to figure out what to do for 24x7 markets
15  */
16 struct timestamp {
17  /// The timestamp value, in nanoseconds since midnight
18  boost::endian::little_uint64_buf_t nanos;
19 };
20 
21 } // namespace mktdata
22 } // namespace jb
23 
24 #endif // jb_mktdata_timestamp_hpp
Timestamp in JayBeam messages.
Definition: timestamp.hpp:16
boost::endian::little_uint64_buf_t nanos
The timestamp value, in nanoseconds since midnight.
Definition: timestamp.hpp:18
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7