Remove candle from backtest

This commit is contained in:
2025-07-08 23:36:21 +07:00
parent 3439f13156
commit 9c01dce461
13 changed files with 367 additions and 68 deletions

View File

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

View File

@@ -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>();
}