refactor: Normalize sec key indexing for new (domain) md sources
This is part of a larger effort to unify the way we index securities in order to generate unique ids. Older md sources (e.g., MDP3Listener) use SecurityIDRecorder to generate ids, which uses a different database and different key-string formatting than the IDGenerator used by the newer md sources (e.g., GeneralMarketDataListener and various ccapi-based sources).
This commit is contained in:
1 parent
98f85b90ee
commit
9d08ddfa53
31 files changed
+401
-186
No files matched your search
@@ -64,6 +64,7 @@ PYBIND11_MODULE(python_md_module, m) {
|
||||
.PROP(PySecurity, id)
|
||||
.PROP(PySecurity, exchange_id)
|
||||
.PROP(PySecurity, venue)
|
||||
.def("type", &PySecurity::type)
|
||||
.PROP(PySecurity, name)
|
||||
.PROP(PySecurity, currency)
|
||||
.PROP(PySecurity, group)
|
||||
@@ -93,6 +94,7 @@ PYBIND11_MODULE(python_md_module, m) {
|
||||
py::class_<bts::md::py_interop::PyBook>(m, "PyBook")
|
||||
.def(py::init<>())
|
||||
.PROP(PyBook, venue)
|
||||
.PROP(PyBook, security_type)
|
||||
.PROP(PyBook, exchange_security_id)
|
||||
.EXPLICIT_DEF(PyBook, bids, BookSideGetter)
|
||||
.DEF(PyBook, set_bids)
|
||||
@@ -110,6 +112,7 @@ PYBIND11_MODULE(python_md_module, m) {
|
||||
py::class_<PyTrade>(m, "PyTrade")
|
||||
.def(py::init<>())
|
||||
.PROP(PyTrade, venue)
|
||||
.PROP(PyTrade, security_type)
|
||||
.PROP(PyTrade, exchange_security_id)
|
||||
.PROP(PyTrade, price)
|
||||
.PROP(PyTrade, quantity)
|
||||
@@ -143,4 +146,5 @@ PYBIND11_MODULE(python_md_module, m) {
|
||||
|
||||
#undef PROP
|
||||
#undef DEF
|
||||
#undef EXPLICIT_DEF
|
||||
#undef _STR
|
||||
Reference in new issue
Block a user