Update bot market type

This commit is contained in:
2025-12-11 23:32:06 +07:00
parent 35df25915f
commit a254db6d24
20 changed files with 1986 additions and 44 deletions

View File

@@ -6,27 +6,27 @@ namespace Managing.Application.Abstractions.Services;
public interface IFlagsmithService
{
/// <summary>
/// Gets flags for a specific user identity
/// Gets flags for a specific user. The username is hashed internally for privacy.
/// </summary>
/// <param name="identity">The user identity identifier</param>
/// <returns>Flags object for the identity</returns>
Task<IFlagsmithFlags> GetIdentityFlagsAsync(string identity);
/// <param name="username">The username to get flags for</param>
/// <returns>Flags object for the user</returns>
Task<IFlagsmithFlags> GetIdentityFlagsAsync(string username);
/// <summary>
/// Checks if a feature is enabled for a specific identity
/// Checks if a feature is enabled for a specific user. The username is hashed internally for privacy.
/// </summary>
/// <param name="identity">The user identity identifier</param>
/// <param name="username">The username to check</param>
/// <param name="featureName">The name of the feature flag</param>
/// <returns>True if the feature is enabled</returns>
Task<bool> IsFeatureEnabledAsync(string identity, string featureName);
Task<bool> IsFeatureEnabledAsync(string username, string featureName);
/// <summary>
/// Gets the feature value for a specific identity
/// Gets the feature value for a specific user. The username is hashed internally for privacy.
/// </summary>
/// <param name="identity">The user identity identifier</param>
/// <param name="username">The username to get feature value for</param>
/// <param name="featureName">The name of the feature flag</param>
/// <returns>The feature value as string</returns>
Task<string?> GetFeatureValueAsync(string identity, string featureName);
Task<string?> GetFeatureValueAsync(string username, string featureName);
}
/// <summary>

View File

@@ -1,3 +1,5 @@
using static Managing.Common.Enums;
namespace Managing.Application.Abstractions.Shared;
public class BacktestsFilter
@@ -12,6 +14,7 @@ public class BacktestsFilter
public IEnumerable<string>? Indicators { get; set; }
public TimeSpan? DurationMin { get; set; }
public TimeSpan? DurationMax { get; set; }
public TradingType? TradingType { get; set; }
}