diff --git a/src/lib_python_interop/python_interop/execution/py_create_order_request.cpp b/src/lib_python_interop/python_interop/execution/py_create_order_request.cpp index 5761a3b69..6a9cd755a 100644 --- a/src/lib_python_interop/python_interop/execution/py_create_order_request.cpp +++ b/src/lib_python_interop/python_interop/execution/py_create_order_request.cpp @@ -50,19 +50,6 @@ void PyCreateOrderRequest::set_is_buy(bool value) { is_buy_ = std::move(value); } -void PyCreateOrderRequest::copy_from(const bts::orderman::CreateOrderMsg &msg) { - key_ = msg.key.value(); - exchange_security_id_ = msg.security_name(); - venue_ = bts::api::venue_name_pretty(msg.venue()); - is_buy_ = msg.side == bts::api::SIDE_BUY; - price_ = msg.price.value(); - quantity_ = msg.quantity.full_value_float(); - order_type_ = - bts::api::orderman::native_order_type_name_pretty(msg.order_type); - time_in_force_ = - bts::api::orderman::time_in_force_name_pretty(msg.time_in_force); -} - void to_json(nlohmann::json &j, const PyCreateOrderRequest &req) { j["key"] = req.key(); j["esid"] = req.exchange_security_id(); diff --git a/src/lib_python_interop/python_interop/execution/py_create_order_request.h b/src/lib_python_interop/python_interop/execution/py_create_order_request.h index 88f08c1b0..c82e5e398 100644 --- a/src/lib_python_interop/python_interop/execution/py_create_order_request.h +++ b/src/lib_python_interop/python_interop/execution/py_create_order_request.h @@ -49,7 +49,6 @@ class PyCreateOrderRequest { std::string order_type, std::string time_in_force); - void copy_from(const bts::orderman::CreateOrderMsg &msg); std::string to_string() const; private: