|
|
@@ -134,7 +134,10 @@ pub async fn init(params: Params,
|
|
|
let mut core = markt_price_core_arc.lock().await;
|
|
|
match core.platform_rest.get_position().await {
|
|
|
Ok(pos) => {
|
|
|
- core.update_position(pos).await;
|
|
|
+ if pos.len() > 0 {
|
|
|
+ info!("rest仓位更新...");
|
|
|
+ core.update_position(pos).await;
|
|
|
+ }
|
|
|
},
|
|
|
Err(err) => {
|
|
|
error!("rest持仓数据获取异常 {}", err);
|