zj
2025-10-17 bbc4713b23778aebc1eb3d46cb04d539179d883d
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
package com.yami.trading.huobi.tradingview.api.model;
 
import java.util.Date;
 
public class TickerData {
    private String proName;
    private String shortName;
    private String exchange;
    private String description;
    private String type;
    private Double lastPrice;
    private Double change;
    private Double changePercent;
    private Long volume;
    private Date lastUpdated;
 
    private Double open;
 
    private Double high;
 
    private Double low;
 
    private Double prevClose;
 
    public Double getPrevClose() {
        return prevClose;
    }
 
    public void setPrevClose(Double prevClose) {
        this.prevClose = prevClose;
    }
 
    public Double getOpen() {
        return open;
    }
 
    public void setOpen(Double open) {
        this.open = open;
    }
 
    public Double getHigh() {
        return high;
    }
 
    public void setHigh(Double high) {
        this.high = high;
    }
 
    public Double getLow() {
        return low;
    }
 
    public void setLow(Double low) {
        this.low = low;
    }
 
 
    public String getProName() {
        return proName;
    }
 
    public void setProName(String proName) {
        this.proName = proName;
    }
 
    public String getShortName() {
        return shortName;
    }
 
    public void setShortName(String shortName) {
        this.shortName = shortName;
    }
 
    public String getExchange() {
        return exchange;
    }
 
    public void setExchange(String exchange) {
        this.exchange = exchange;
    }
 
    public String getDescription() {
        return description;
    }
 
    public void setDescription(String description) {
        this.description = description;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public Double getLastPrice() {
        return lastPrice;
    }
 
    public void setLastPrice(Double lastPrice) {
        this.lastPrice = lastPrice;
    }
 
    public Double getChange() {
        return change;
    }
 
    public void setChange(Double change) {
        this.change = change;
    }
 
    public Double getChangePercent() {
        return changePercent;
    }
 
    public void setChangePercent(Double changePercent) {
        this.changePercent = changePercent;
    }
 
    public Long getVolume() {
        return volume;
    }
 
    public void setVolume(Long volume) {
        this.volume = volume;
    }
 
    public Date getLastUpdated() {
        return lastUpdated;
    }
 
    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }
 
    public TickerData merge(TickerData patch) {
        if (patch.proName != null)
            this.proName = patch.proName;
        if (patch.shortName != null)
            this.shortName = patch.shortName;
        if (patch.exchange != null)
            this.exchange = patch.exchange;
        if (patch.description != null)
            this.description = patch.description;
        if (patch.type != null)
            this.type = patch.type;
        if (patch.lastPrice != null)
            this.lastPrice = patch.lastPrice;
        if (patch.change != null)
            this.change = patch.change;
        if (patch.changePercent != null)
            this.changePercent = patch.changePercent;
        if (patch.volume != null)
            this.volume = patch.volume;
        if (patch.lastUpdated != null)
            this.lastUpdated = patch.lastUpdated;
        if (patch.open != null)
            this.open = patch.open;
        if (patch.high != null)
            this.high = patch.high;
        if (patch.low != null)
            this.low = patch.low;
        if (patch.prevClose != null)
            this.prevClose = patch.prevClose;
        return this;
    }
}