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:
@@ -49,6 +49,24 @@ export interface User {
|
||||
ownerWalletAddress?: string | null;
|
||||
isAdmin?: boolean;
|
||||
lastConnectionDate?: Date | null;
|
||||
lowEthAmountAlert?: number | null;
|
||||
enableAutoswap?: boolean;
|
||||
autoswapAmount?: number | null;
|
||||
maxWaitingTimeForPositionToGetFilledSeconds?: number | null;
|
||||
maxTxnGasFeePerPosition?: number | null;
|
||||
isGmxEnabled?: boolean;
|
||||
minimumConfidence?: Confidence | null;
|
||||
trendStrongAgreementThreshold?: number | null;
|
||||
signalAgreementThreshold?: number | null;
|
||||
allowSignalTrendOverride?: boolean | null;
|
||||
defaultExchange?: TradingExchanges | null;
|
||||
}
|
||||
|
||||
export enum Confidence {
|
||||
Low = "Low",
|
||||
Medium = "Medium",
|
||||
High = "High",
|
||||
None = "None",
|
||||
}
|
||||
|
||||
export interface Balance {
|
||||
@@ -586,13 +604,6 @@ export enum SignalStatus {
|
||||
Expired = "Expired",
|
||||
}
|
||||
|
||||
export enum Confidence {
|
||||
Low = "Low",
|
||||
Medium = "Medium",
|
||||
High = "High",
|
||||
None = "None",
|
||||
}
|
||||
|
||||
export interface Candle {
|
||||
exchange: TradingExchanges;
|
||||
ticker: Ticker;
|
||||
@@ -1490,6 +1501,20 @@ export interface LoginRequest {
|
||||
ownerWalletAddress?: string | null;
|
||||
}
|
||||
|
||||
export interface UpdateUserSettingsRequest {
|
||||
lowEthAmountAlert?: number | null;
|
||||
enableAutoswap?: boolean | null;
|
||||
autoswapAmount?: number | null;
|
||||
maxWaitingTimeForPositionToGetFilledSeconds?: number | null;
|
||||
maxTxnGasFeePerPosition?: number | null;
|
||||
isGmxEnabled?: boolean | null;
|
||||
minimumConfidence?: Confidence | null;
|
||||
trendStrongAgreementThreshold?: number | null;
|
||||
signalAgreementThreshold?: number | null;
|
||||
allowSignalTrendOverride?: boolean | null;
|
||||
defaultExchange?: TradingExchanges | null;
|
||||
}
|
||||
|
||||
export interface PaginatedWhitelistAccountsResponse {
|
||||
accounts?: WhitelistAccount[] | null;
|
||||
totalCount?: number;
|
||||
|
||||
Reference in New Issue
Block a user