Enhance user settings management by adding new properties and updating related functionality
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.
This commit is contained in:
@@ -25,12 +25,18 @@ public class User
|
||||
|
||||
[Id(8)] public DateTimeOffset? LastConnectionDate { get; set; }
|
||||
|
||||
// User Settings
|
||||
// User Settings - Trading Configuration
|
||||
[Id(9)] public decimal? LowEthAmountAlert { get; set; }
|
||||
[Id(10)] public bool EnableAutoswap { get; set; } = false;
|
||||
[Id(11)] public decimal? AutoswapAmount { get; set; }
|
||||
[Id(12)] public int? MaxWaitingTimeForPositionToGetFilledSeconds { get; set; }
|
||||
[Id(13)] public decimal? MaxTxnGasFeePerPosition { get; set; }
|
||||
[Id(14)] public bool IsGmxEnabled { get; set; } = false;
|
||||
|
||||
// User Settings - Indicator Combo Configuration
|
||||
[Id(15)] public Confidence? MinimumConfidence { get; set; }
|
||||
[Id(16)] public decimal? TrendStrongAgreementThreshold { get; set; }
|
||||
[Id(17)] public decimal? SignalAgreementThreshold { get; set; }
|
||||
[Id(18)] public bool? AllowSignalTrendOverride { get; set; }
|
||||
[Id(19)] public TradingExchanges? DefaultExchange { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user