Remove candle from backtest
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Api.Models.Requests;
|
||||
|
||||
/// <summary>
|
||||
/// Request model for getting candles with indicators.
|
||||
/// </summary>
|
||||
public class GetCandlesWithIndicatorsRequest
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The ticker symbol.
|
||||
/// </summary>
|
||||
public Ticker Ticker { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The start date for the candle data.
|
||||
/// </summary>
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The end date for the candle data.
|
||||
/// </summary>
|
||||
public DateTime EndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The timeframe for the candles.
|
||||
/// </summary>
|
||||
public Timeframe Timeframe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional scenario for calculating indicators.
|
||||
/// </summary>
|
||||
public ScenarioRequest Scenario { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using Managing.Domain.Candles;
|
||||
using Managing.Domain.Strategies.Base;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Api.Models.Responses;
|
||||
|
||||
/// <summary>
|
||||
/// Response model for candles with indicators values.
|
||||
/// </summary>
|
||||
public class CandlesWithIndicatorsResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The list of candles.
|
||||
/// </summary>
|
||||
public List<Candle> Candles { get; set; } = new List<Candle>();
|
||||
|
||||
/// <summary>
|
||||
/// The calculated indicators values.
|
||||
/// </summary>
|
||||
public Dictionary<IndicatorType, IndicatorsResultBase> IndicatorsValues { get; set; } = new Dictionary<IndicatorType, IndicatorsResultBase>();
|
||||
}
|
||||
Reference in New Issue
Block a user