cleanup: Get rid of unecessary namespace prefixes
This commit is contained in:
1 parent
99dccbf6d1
commit
a57d38951e
1 file changed
+5
-5
@@ -45,20 +45,20 @@ PYBIND11_MODULE(python_md_module, m) {
|
||||
using BookSideGetter = PyBookSide &(PyBook::*)();
|
||||
using BookLevelGetter = PyBookLevel (PyBookSide::*)(int) const;
|
||||
// security
|
||||
py::class_<bts::md::py_interop::PySpot>(m, "PySpot")
|
||||
py::class_<PySpot>(m, "PySpot")
|
||||
.def(py::init<>())
|
||||
.def("__str__", &PySpot::to_string);
|
||||
py::class_<bts::md::py_interop::PyFuture>(m, "PyFuture")
|
||||
py::class_<PyFuture>(m, "PyFuture")
|
||||
.def(py::init<>())
|
||||
.PROP(PyFuture, expiration)
|
||||
.def("__str__", &PyFuture::to_string);
|
||||
py::class_<bts::md::py_interop::PyOption>(m, "PyOption")
|
||||
py::class_<PyOption>(m, "PyOption")
|
||||
.def(py::init<>())
|
||||
.PROP(PyOption, expiration)
|
||||
.PROP(PyOption, is_call)
|
||||
.PROP(PyOption, strike)
|
||||
.def("__str__", &PyOption::to_string);
|
||||
py::class_<bts::md::py_interop::PySecurity>(m, "PySecurity")
|
||||
py::class_<PySecurity>(m, "PySecurity")
|
||||
.def(py::init<>())
|
||||
.PROP(PySecurity, id)
|
||||
.PROP(PySecurity, exchange_id)
|
||||
@@ -85,7 +85,7 @@ PYBIND11_MODULE(python_md_module, m) {
|
||||
.PROP(PyBookSide, is_ascending)
|
||||
.def("__len__", &PyBookSide::size)
|
||||
.def("__str__", &PyBookSide::to_string);
|
||||
py::class_<bts::md::py_interop::PyBook>(m, "PyBook")
|
||||
py::class_<PyBook>(m, "PyBook")
|
||||
.def(py::init<>())
|
||||
.PROP(PyBook, venue)
|
||||
.PROP(PyBook, security_type)
|
||||
|
||||
Reference in new issue
Block a user