From 27939233c3826b5f6145514fd319c9bb5041b8b1 Mon Sep 17 00:00:00 2001 From: shanji <18996038927@163.com> Date: Tue, 10 May 2022 19:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E4=BA=A4=E5=8F=89=20=E7=A9=BA?= =?UTF-8?q?=E4=BA=A4=E5=8F=89=E4=BF=A1=E5=8F=B7=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Business/TradeBusiness/D21TradeBusiness.cs | 14 ++++++++++++++ .../Business/TradeBusiness/ITradeBusiness.cs | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/Binance.TradeRobot.Business/Business/TradeBusiness/D21TradeBusiness.cs b/Binance.TradeRobot.Business/Business/TradeBusiness/D21TradeBusiness.cs index 76773fc..734c5bb 100644 --- a/Binance.TradeRobot.Business/Business/TradeBusiness/D21TradeBusiness.cs +++ b/Binance.TradeRobot.Business/Business/TradeBusiness/D21TradeBusiness.cs @@ -49,5 +49,19 @@ namespace Binance.TradeRobot.Business logManager.GetLogger(robot.ExecuteLogKey).Error(ex, stringBuilder.ToString()); } } + + public void LongCross(T singalRequest, T1 robot, decimal newestPrice, bool isRemedy) + where T : BaseSingalRequest + where T1 : RobotResponse + { + throw new NotImplementedException(); + } + + public void ShortCross(T singalRequest, T1 robot, decimal newestPrice, bool isRemedy) + where T : BaseSingalRequest + where T1 : RobotResponse + { + throw new NotImplementedException(); + } } } diff --git a/Binance.TradeRobot.Business/Business/TradeBusiness/ITradeBusiness.cs b/Binance.TradeRobot.Business/Business/TradeBusiness/ITradeBusiness.cs index 9a38acd..f253f75 100644 --- a/Binance.TradeRobot.Business/Business/TradeBusiness/ITradeBusiness.cs +++ b/Binance.TradeRobot.Business/Business/TradeBusiness/ITradeBusiness.cs @@ -8,5 +8,9 @@ namespace Binance.TradeRobot.Business Enums.TradePolicy TradePolicy { get; } void TrendChanged(T singalRequest, T1 robot) where T : BaseSingalRequest where T1 : RobotResponse; + + void LongCross(T singalRequest, T1 robot, decimal newestPrice,bool isRemedy) where T : BaseSingalRequest where T1 : RobotResponse; + + void ShortCross(T singalRequest, T1 robot, decimal newestPrice, bool isRemedy) where T : BaseSingalRequest where T1 : RobotResponse; } }