Administrator
2026-08-14 57e5a8385de2d5ff2e43c72535b472e42d65ba91
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package com.xcong.excoin.modules.station.entity;
 
import com.baomidou.mybatisplus.annotation.TableName;
import com.xcong.excoin.common.system.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * 策略实时状态表(apiKeyMd5 维度,UPSERT)
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("strategy_status")
public class StrategyStatus extends BaseEntity {
 
    /** apiKey 的 MD5 */
    private String apiKeyMd5;
 
    /** 实例别名(Station 端自定义显示名) */
    private String aliasName;
 
    /** 合约名称 */
    private String contract;
 
    /** 策略状态:ACTIVE / STOPPED / WAITING_KLINE */
    private String state;
 
    /** 杠杆倍数 */
    private String leverage;
 
    /** 网格间距比例 */
    private String gridRate;
 
    /** 预期收益(USDT) */
    private String expectedProfit;
 
    /** 最大亏损(USDT) */
    private String maxLoss;
 
    /** 基底开仓张数 */
    private String baseQuantity;
 
    /** 每次下单张数 */
    private String quantity;
 
    /** 最大持仓张数(单方向),0=不限制 */
    private Integer maxPositionSize;
 
    /** 止损阶梯次数,0=禁用 */
    private Integer stopLossCount;
 
    /** 止盈网格跨度 */
    private Integer takeProfitGridSpan;
 
    /** 止损统计方式 */
    private String stopLossCountMode;
 
    /** 加仓间隔 */
    private Integer addPositionInterval;
 
    /** 加仓数量 */
    private Integer addPositionQuantity;
 
    /** 单边最大仓位 */
    private Integer maxPositionPerSide;
 
    /** 加仓启动阈值 */
    private Integer addPositionStartThreshold;
 
    /** 超额止盈开关 */
    private Boolean placeExcessTakeProfit;
 
    /** 价格驱动开关 */
    private Boolean priceDriveEnabled;
 
    /** 当前轮次 */
    private Integer currentRound;
 
    /** 总轮数上限 */
    private Integer totalRounds;
 
    /** 多头累计止损次数 */
    private Integer accumulatedLongLoss;
 
    /** 空头累计止损次数 */
    private Integer accumulatedShortLoss;
 
    /** 累计已实现盈亏 */
    private String cumulativePnl;
 
    /** 未实现盈亏 */
    private String unrealizedPnl;
 
    /** 初始本金 */
    private String principal;
}