This commit introduces additional user settings properties, including TrendStrongAgreementThreshold, SignalAgreementThreshold, AllowSignalTrendOverride, and DefaultExchange, to the User entity and associated DTOs. The UserController and UserService are updated to handle these new settings, allowing users to customize their trading configurations more effectively. Database migrations are also included to ensure proper schema updates for the new fields.
23 lines
811 B
C#
23 lines
811 B
C#
using static Managing.Common.Enums;
|
|
|
|
namespace Managing.Application.Abstractions.Models;
|
|
|
|
public class UserSettingsDto
|
|
{
|
|
// Trading Configuration
|
|
public decimal? LowEthAmountAlert { get; set; }
|
|
public bool? EnableAutoswap { get; set; }
|
|
public decimal? AutoswapAmount { get; set; }
|
|
public int? MaxWaitingTimeForPositionToGetFilledSeconds { get; set; }
|
|
public decimal? MaxTxnGasFeePerPosition { get; set; }
|
|
public bool? IsGmxEnabled { get; set; }
|
|
|
|
// Indicator Combo Configuration
|
|
public Confidence? MinimumConfidence { get; set; }
|
|
public decimal? TrendStrongAgreementThreshold { get; set; }
|
|
public decimal? SignalAgreementThreshold { get; set; }
|
|
public bool? AllowSignalTrendOverride { get; set; }
|
|
public TradingExchanges? DefaultExchange { get; set; }
|
|
}
|
|
|