MCPcopy Create free account
hub / github.com/0xemmkty/QuantMuse / executeOrder

Method executeOrder

backend/src/order_executor.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void OrderExecutor::executeOrder(std::shared_ptr<Order> order) {
58 try {
59 // 实现实际的订单执行逻辑
60 order->setStatus(OrderStatus::FILLED);
61 spdlog::info("Order executed: {}", order->getOrderId());
62
63 } catch (const std::exception& e) {
64 order->setStatus(OrderStatus::REJECTED);
65 spdlog::error("Order execution failed: {}", e.what());
66 }
67}
68
69} // namespace trading

Callers

nothing calls this directly

Calls 2

setStatusMethod · 0.80
getOrderIdMethod · 0.80

Tested by

no test coverage detected