Skip to content

Commit 1a3675a

Browse files
author
caodianming
committed
feat: support price change percentage
1 parent 21749d4 commit 1a3675a

3 files changed

Lines changed: 100 additions & 1 deletion

File tree

src/main/java/com/tigerbrokers/stock/openapi/client/https/domain/quote/item/HourTrading.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public class HourTrading implements Serializable {
2121

2222
private Long volume;
2323

24+
private Double change;
25+
26+
private Double changeRate;
27+
28+
private Double amplitude;
29+
2430
private Long timestamp;
2531

2632
public String getTag() {
@@ -63,6 +69,30 @@ public void setVolume(Long volume) {
6369
this.volume = volume;
6470
}
6571

72+
public Double getChange() {
73+
return change;
74+
}
75+
76+
public void setChange(Double change) {
77+
this.change = change;
78+
}
79+
80+
public Double getChangeRate() {
81+
return changeRate;
82+
}
83+
84+
public void setChangeRate(Double changeRate) {
85+
this.changeRate = changeRate;
86+
}
87+
88+
public Double getAmplitude() {
89+
return amplitude;
90+
}
91+
92+
public void setAmplitude(Double amplitude) {
93+
this.amplitude = amplitude;
94+
}
95+
6696
public Long getTimestamp() {
6797
return timestamp;
6898
}
@@ -79,6 +109,9 @@ public String toString() {
79109
", preClose=" + preClose +
80110
", latestTime='" + latestTime + '\'' +
81111
", volume=" + volume +
112+
", change=" + change +
113+
", changeRate=" + changeRate +
114+
", amplitude=" + amplitude +
82115
", timestamp=" + timestamp +
83116
'}';
84117
}

src/main/java/com/tigerbrokers/stock/openapi/client/https/domain/quote/item/QuoteOvernight.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ public class QuoteOvernight implements Serializable {
2929

3030
private Double amount;
3131

32+
private Double change;
33+
34+
private Double changeRate;
35+
36+
private Double amplitude;
37+
3238
private Long timestamp;
3339

3440
public String getSymbol() {
@@ -103,6 +109,30 @@ public void setAmount(Double amount) {
103109
this.amount = amount;
104110
}
105111

112+
public Double getChange() {
113+
return change;
114+
}
115+
116+
public void setChange(Double change) {
117+
this.change = change;
118+
}
119+
120+
public Double getChangeRate() {
121+
return changeRate;
122+
}
123+
124+
public void setChangeRate(Double changeRate) {
125+
this.changeRate = changeRate;
126+
}
127+
128+
public Double getAmplitude() {
129+
return amplitude;
130+
}
131+
132+
public void setAmplitude(Double amplitude) {
133+
this.amplitude = amplitude;
134+
}
135+
106136
public Long getTimestamp() {
107137
return timestamp;
108138
}
@@ -121,8 +151,11 @@ public String toString() {
121151
", bidPrice=" + bidPrice +
122152
", bidSize=" + bidSize +
123153
", preClose=" + preClose +
124-
", amount=" + amount +
125154
", volume=" + volume +
155+
", amount=" + amount +
156+
", change=" + change +
157+
", changeRate=" + changeRate +
158+
", amplitude=" + amplitude +
126159
", timestamp=" + timestamp +
127160
'}';
128161
}

src/main/java/com/tigerbrokers/stock/openapi/client/https/domain/quote/item/RealTimeQuoteItem.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ public class RealTimeQuoteItem extends ApiModel {
8080
*/
8181
private StockStatus status;
8282

83+
private Double change;
84+
85+
private Double changeRate;
86+
87+
private Double amplitude;
88+
8389
private HourTrading hourTrading;
8490

8591
public String getSymbol() {
@@ -194,6 +200,30 @@ public void setStatus(StockStatus status) {
194200
this.status = status;
195201
}
196202

203+
public Double getChange() {
204+
return change;
205+
}
206+
207+
public void setChange(Double change) {
208+
this.change = change;
209+
}
210+
211+
public Double getChangeRate() {
212+
return changeRate;
213+
}
214+
215+
public void setChangeRate(Double changeRate) {
216+
this.changeRate = changeRate;
217+
}
218+
219+
public Double getAmplitude() {
220+
return amplitude;
221+
}
222+
223+
public void setAmplitude(Double amplitude) {
224+
this.amplitude = amplitude;
225+
}
226+
197227
public HourTrading getHourTrading() {
198228
return hourTrading;
199229
}
@@ -219,6 +249,9 @@ public String toString() {
219249
", bidSize=" + bidSize +
220250
", volume=" + volume +
221251
", status=" + status +
252+
", change=" + change +
253+
", changeRate=" + changeRate +
254+
", amplitude=" + amplitude +
222255
", hourTrading=" + hourTrading +
223256
'}';
224257
}

0 commit comments

Comments
 (0)