JayBeams  0.1
Another project to have fun coding.
quote_defaults.hpp
Go to the documentation of this file.
1 #ifndef jb_itch5_quote_defaults_hpp
2 #define jb_itch5_quote_defaults_hpp
3 
5 
6 namespace jb {
7 namespace itch5 {
8 
9 /// A simple representation for price + quantity
10 using half_quote = std::pair<price4_t, int>;
11 
12 /// convenient value to represent an empty bid limit price
14  return price4_t(0);
15 }
16 
17 /// convenient value to represent an empty offer limit price
19  return max_price_field_value<price4_t>();
20 }
21 
22 /// The value used to represent an empty bid
24  return half_quote(empty_bid_price(), 0);
25 }
26 
27 /// The value used to represent an empty offer
29  return half_quote(empty_offer_price(), 0);
30 }
31 
32 } // namespace itch5
33 } // namespace jb
34 
35 #endif // jb_itch5_quote_defaults_hpp
half_quote empty_bid()
The value used to represent an empty bid.
std::pair< price4_t, int > half_quote
A simple representation for price + quantity.
price4_t empty_offer_price()
convenient value to represent an empty offer limit price
half_quote empty_offer()
The value used to represent an empty offer.
price4_t empty_bid_price()
convenient value to represent an empty bid limit price
price_field< std::uint32_t, 10000 > price4_t
Convenience definition for Price(4) fields.
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7