JayBeams
0.1
Another project to have fun coding.
jb
itch5
message_header.cpp
Go to the documentation of this file.
1
#include "
jb/itch5/message_header.hpp
"
2
3
#include <cctype>
4
#include <iostream>
5
6
std::ostream&
jb::itch5::operator<<
(std::ostream& os,
message_header
const
& x) {
7
if
(std::isprint(x.
message_type
)) {
8
os <<
"message_type="
<<
static_cast<
char
>
(x.
message_type
);
9
}
else
{
10
os <<
"message_type=.("
<< x.
message_type
<<
")"
;
11
}
12
return
os <<
",stock_locate="
<< x.
stock_locate
13
<<
",tracking_number="
<< x.
tracking_number
14
<<
",timestamp="
<< x.
timestamp
;
15
}
jb::itch5::message_header
Define the header common to all ITCH 5.0 messages.
Definition:
message_header.hpp:15
message_header.hpp
jb::itch5::message_header::stock_locate
int stock_locate
The stock locate number.
Definition:
message_header.hpp:34
jb::itch5::operator<<
std::ostream & operator<<(std::ostream &os, add_order_message const &x)
Streaming operator for jb::itch5::add_order_message.
Definition:
add_order_message.cpp:8
jb::itch5::message_header::tracking_number
int tracking_number
The "Tracking Number", a field designed for "internal NASDAQ purposes".
Definition:
message_header.hpp:45
jb::itch5::message_header::message_type
int message_type
The type of message.
Definition:
message_header.hpp:23
jb::itch5::message_header::timestamp
jb::itch5::timestamp timestamp
The message timestamp, in nanoseconds since midnight.
Definition:
message_header.hpp:57
Generated by
1.8.13