cleanup: Remove unused code

This commit is contained in:
John Colvin committed 2025-06-24 10:48:42 -04:00
1 parent 9ff7821b59
commit 1f67456cc5
2 files changed
-14

No files matched your search

@@ -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();
@@ -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: