|
|
@@ -981,9 +981,9 @@ impl Quant {
|
|
|
match self.platform_rest.get_positions().await {
|
|
|
Ok(val)=>{
|
|
|
for position in val {
|
|
|
- if !position.symbol.eq_ignore_ascii_case(self.symbol.as_str()){
|
|
|
- continue;
|
|
|
- }
|
|
|
+ // if !position.symbol.eq_ignore_ascii_case(self.symbol.as_str()){
|
|
|
+ // continue;
|
|
|
+ // }
|
|
|
|
|
|
if position.amount.eq(&Decimal::ZERO) {
|
|
|
continue;
|
|
|
@@ -1014,7 +1014,7 @@ impl Quant {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- match self.platform_rest.take_order("t-123", side, price, position.amount.abs()).await {
|
|
|
+ match self.platform_rest.take_order_symbol(position.symbol, "t-123", side, price, position.amount.abs()).await {
|
|
|
Ok(order)=>{
|
|
|
info!("清仓下单,{:?}", order);
|
|
|
// 执行完当前币对 结束循环
|