|
|
@@ -661,12 +661,11 @@ impl Core {
|
|
|
|
|
|
if orders.is_not_empty() {
|
|
|
let mut platform_rest_fb = self.platform_rest.clone_box();
|
|
|
+ // 先更新本地记录再发单。
|
|
|
+ self._update_local_orders(&orders);
|
|
|
// info!("订单指令:{:?}", orders);
|
|
|
platform_rest_fb.command_order(&mut orders, trace_stack).await;
|
|
|
|
|
|
- // 发了单再更新本地记录。
|
|
|
- self._update_local_orders(&orders);
|
|
|
-
|
|
|
// 更新中控账户相关信息
|
|
|
{
|
|
|
let mut now_balance = self.strategy.equity / self.used_pct;
|