|
@ -61,8 +61,8 @@ namespace Binance.TradeRobot.Business |
|
|
if (baseAPIClient == null) |
|
|
if (baseAPIClient == null) |
|
|
baseAPIClient = GetBaseAPIClient(d21Robot.ExchangeId, d21Robot.ExchangeAPIKey.AccountId, d21Robot.ExchangeAPIKey.APIKey, d21Robot.ExchangeAPIKey.SecretKey); |
|
|
baseAPIClient = GetBaseAPIClient(d21Robot.ExchangeId, d21Robot.ExchangeAPIKey.AccountId, d21Robot.ExchangeAPIKey.APIKey, d21Robot.ExchangeAPIKey.SecretKey); |
|
|
var stopLossOrderList = fsql.Select<SpotOrder>().Where(o => o.OrderType == Enums.OrderType.STOP_LOSS_LIMIT && |
|
|
var stopLossOrderList = fsql.Select<SpotOrder>().Where(o => o.OrderType == Enums.OrderType.STOP_LOSS_LIMIT && |
|
|
o.State == Enums.SpotOrderState.Created && |
|
|
o.State == Enums.SpotOrderState.Created && |
|
|
o.RobotId == d21Robot.Id).ToList(o => new { o.Id, o.ClientOrderId }); |
|
|
o.RobotId == d21Robot.Id).ToList(o => new { o.Id, o.ClientOrderId }); |
|
|
if (stopLossOrderList == null || stopLossOrderList.Count() == 0) |
|
|
if (stopLossOrderList == null || stopLossOrderList.Count() == 0) |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|