diag: Add sec name, venue, and type to PyBook json
This commit is contained in:
1 parent
4f184c2566
commit
38afd3055f
1 file changed
+3
@@ -145,6 +145,9 @@ inline std::string PyBook::to_string() const {
|
||||
}
|
||||
|
||||
inline void to_json(nlohmann::json &j, const PyBook &bk) {
|
||||
j["sec"] = bk.exchange_security_id();
|
||||
j["venue"] = bk.venue();
|
||||
j["typ"] = bk.security_type();
|
||||
j["bids"] = bk.bids();
|
||||
j["asks"] = bk.asks();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user