shanji 3 years ago
parent
commit
55c3ebd7aa
  1. 4
      Binance.TradeRobot.Business/Business/TradeBusiness/BaseTradeBusiness.cs
  2. 5
      Binance.TradeRobot.Model/Binance.TradeRobot.Model.xml

4
Binance.TradeRobot.Business/Business/TradeBusiness/BaseTradeBusiness.cs

@ -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;

5
Binance.TradeRobot.Model/Binance.TradeRobot.Model.xml

@ -199,6 +199,11 @@
借币利息 借币利息
</summary> </summary>
</member> </member>
<member name="P:Binance.TradeRobot.Model.Db.SpotOrder.ClientOrderId">
<summary>
客户端订单号
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.SpotOrder.ExchangeId"> <member name="P:Binance.TradeRobot.Model.Db.SpotOrder.ExchangeId">
<summary> <summary>
交易所Id 交易所Id

Loading…
Cancel
Save