You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using Binance.TradeRobot.Model.Base;
|
|
|
|
using Binance.TradeRobot.Model.Dto;
|
|
|
|
|
|
|
|
namespace Binance.TradeRobot.Business
|
|
|
|
{
|
|
|
|
public interface ITradeBusiness
|
|
|
|
{
|
|
|
|
Enums.TradePolicy TradePolicy { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 趋势变化
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
/// <typeparam name="T1"></typeparam>
|
|
|
|
/// <param name="singalRequest"></param>
|
|
|
|
/// <param name="robot"></param>
|
|
|
|
void TrendChanged<T, T1>(T singalRequest, T1 robot) where T : BaseSingalRequest where T1 : RobotResponse;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 多交叉
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
/// <typeparam name="T1"></typeparam>
|
|
|
|
/// <param name="singalRequest"></param>
|
|
|
|
/// <param name="robot"></param>
|
|
|
|
/// <param name="isRemedy">是否为补救信号</param>
|
|
|
|
void LongCross<T, T1>(T singalRequest, T1 robot, bool isRemedy) where T : BaseSingalRequest where T1 : RobotResponse;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 空交叉
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
/// <typeparam name="T1"></typeparam>
|
|
|
|
/// <param name="singalRequest"></param>
|
|
|
|
/// <param name="robot"></param>
|
|
|
|
/// <param name="isRemedy">是否为补救信号</param>
|
|
|
|
void ShortCross<T, T1>(T singalRequest, T1 robot, bool isRemedy) where T : BaseSingalRequest where T1 : RobotResponse;
|
|
|
|
}
|
|
|
|
}
|