Skip to content

Commit 93bb2e9

Browse files
author
dxcity
committed
tagging release 3.289
1 parent 698cf7a commit 93bb2e9

File tree

54 files changed

+211
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+211
-59
lines changed

ReleaseNotes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
QDS 3.289:
3+
4+
* [QD-1233] dxFeed API: Extend Trade and Profile events to support additional fields from QD records
5+
26
QDS 3.288:
37

48
* [QD-1227] QD Core: Prevent hash matrix performance degradation in worst cases

auth/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>QD</artifactId>
1616
<groupId>com.devexperts.qd</groupId>
17-
<version>3.288</version>
17+
<version>3.289</version>
1818
<relativePath>../pom.xml</relativePath>
1919
</parent>
2020
<modelVersion>4.0.0</modelVersion>

dxfeed-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>QD</artifactId>
1616
<groupId>com.devexperts.qd</groupId>
17-
<version>3.288</version>
17+
<version>3.289</version>
1818
<relativePath>../pom.xml</relativePath>
1919
</parent>
2020
<modelVersion>4.0.0</modelVersion>

dxfeed-api/src/main/java/com/dxfeed/event/market/Profile.java

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@
3636
* <li>{@link #getHaltStartTime() haltStartTime} - starting time of the trading halt interval;
3737
* <li>{@link #getHaltEndTime() haltEndTime} - ending time of the trading halt interval;
3838
* <li>{@link #getHighLimitPrice() highLimitPrice} - maximal (high) allowed price;
39-
* <li>{@link #getLowLimitPrice() lowLimitPrice} - minimal (low) allowed price.
39+
* <li>{@link #getLowLimitPrice() lowLimitPrice} - minimal (low) allowed price;
40+
* <li>{@link #getHigh52WeekPrice() high52WeekPrice} - maximal (high) price in last 52 weeks;
41+
* <li>{@link #getLow52WeekPrice() low52WeekPrice} - minimal (low) price in last 52 weeks.
4042
* </ul>
4143
*
42-
* Bid corresponds to the best (maximal price) order to buy, while
43-
* ask corresponds to the best (minimal price) order to sell.
44-
*
4544
*
4645
* <h3>Implementation details</h3>
4746
*
@@ -50,7 +49,8 @@
5049
@XmlRootElement(name = "Profile")
5150
@XmlType(propOrder = {
5251
"description", "shortSaleRestriction", "tradingStatus", "statusReason",
53-
"haltStartTime", "haltEndTime", "highLimitPrice", "lowLimitPrice"
52+
"haltStartTime", "haltEndTime", "highLimitPrice", "lowLimitPrice",
53+
"high52WeekPrice", "low52WeekPrice",
5454
})
5555
public class Profile extends MarketEvent implements LastingEvent<String> {
5656
private static final long serialVersionUID = 0;
@@ -81,6 +81,8 @@ public class Profile extends MarketEvent implements LastingEvent<String> {
8181
private long haltEndTime;
8282
private double highLimitPrice = Double.NaN;
8383
private double lowLimitPrice = Double.NaN;
84+
private double high52WeekPrice = Double.NaN;
85+
private double low52WeekPrice = Double.NaN;
8486
private int flags;
8587

8688
/**
@@ -266,6 +268,38 @@ public void setLowLimitPrice(double lowLimitPrice) {
266268
this.lowLimitPrice = lowLimitPrice;
267269
}
268270

271+
/**
272+
* Returns the maximal (high) price in last 52 weeks.
273+
* @return the maximal (high) price in last 52 weeks.
274+
*/
275+
public double getHigh52WeekPrice() {
276+
return high52WeekPrice;
277+
}
278+
279+
/**
280+
* Changes the maximal (high) price in last 52 weeks.
281+
* @param high52WeekPrice the maximal (high) price in last 52 weeks.
282+
*/
283+
public void setHigh52WeekPrice(double high52WeekPrice) {
284+
this.high52WeekPrice = high52WeekPrice;
285+
}
286+
287+
/**
288+
* Returns the minimal (low) price in last 52 weeks.
289+
* @return the minimal (low) price in last 52 weeks.
290+
*/
291+
public double getLow52WeekPrice() {
292+
return low52WeekPrice;
293+
}
294+
295+
/**
296+
* Changes the minimal (low) price in last 52 weeks.
297+
* @param low52WeekPrice the minimal (low) price in last 52 weeks.
298+
*/
299+
public void setLow52WeekPrice(double low52WeekPrice) {
300+
this.low52WeekPrice = low52WeekPrice;
301+
}
302+
269303
/**
270304
* Returns string representation of this profile event.
271305
* @return string representation of this profile event.
@@ -288,7 +322,9 @@ protected String baseFieldsToString() {
288322
", haltStartTime=" + TimeFormat.DEFAULT.format(haltStartTime) +
289323
", haltEndTime=" + TimeFormat.DEFAULT.format(haltEndTime) +
290324
", highLimitPrice=" + highLimitPrice +
291-
", lowLimitPrice=" + lowLimitPrice;
325+
", lowLimitPrice=" + lowLimitPrice +
326+
", high52WeekPrice=" + high52WeekPrice +
327+
", low52WeekPrice=" + low52WeekPrice;
292328
}
293329

294330
// ========================= protected access for delegate =========================

dxfeed-api/src/main/java/com/dxfeed/event/market/Trade.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* <li>{@link #getSequence() sequence} - sequence of the last trade;
3131
* <li>{@link #getExchangeCode() exchangeCode} - exchange code of the last trade;
3232
* <li>{@link #getPrice() price} - price of the last trade;
33+
* <li>{@link #getChange() change} - change of the last trade;
3334
* <li>{@link #getSize() size} - size of the last trade as integer number (rounded toward zero);
3435
* <li>{@link #getSizeAsDouble() sizeAsDouble} - size of the last trade as floating number with fractions;
3536
* <li>{@link #getDayVolume() dayVolume} - total volume traded for a day as integer number (rounded toward zero);
@@ -49,9 +50,9 @@
4950
*
5051
* <p>Trades that happen in <b>extended trading hours</b> (ETH, pre-market and post-market trading sessions),
5152
* which are typically defined for stocks and ETFs, do not update last trade {@link #getTime() time},
52-
* {@link #getExchangeCode() exchangeCode}, {@link #getPrice() price}, {@link #getSizeAsDouble() sizeAsDouble},
53-
* and {@link #getTickDirection() tickDirection} in the {@code Trade} event, but they do update
54-
* {@link #getDayVolumeAsDouble() dayVolumeAsDouble} and {@link #getDayTurnover() dayTurnover}.
53+
* {@link #getExchangeCode() exchangeCode}, {@link #getPrice() price}, {@link #getChange() change},
54+
* {@link #getSizeAsDouble() sizeAsDouble}, and {@link #getTickDirection() tickDirection} in the {@code Trade}
55+
* event, but they do update {@link #getDayVolumeAsDouble() dayVolumeAsDouble} and {@link #getDayTurnover() dayTurnover}.
5556
*
5657
* <p>During extended trading hours a {@link TradeETH} event is generated on each trade with its
5758
* {@link TradeETH#isExtendedTradingHours() extendedTradingHours} property set to {@code true}.</p>

dxfeed-api/src/main/java/com/dxfeed/event/market/TradeBase.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* last trade price during ETH and accumulated volume during ETH.
3737
*/
3838
@XmlType(propOrder = {
39-
"time", "timeNanoPart", "sequence", "exchangeCode", "price", "sizeAsDouble",
39+
"time", "timeNanoPart", "sequence", "exchangeCode", "price", "change", "sizeAsDouble",
4040
"dayVolumeAsDouble", "dayTurnover", "tickDirection", "extendedTradingHours"
4141
})
4242
public abstract class TradeBase extends MarketEvent implements LastingEvent<String> {
@@ -72,6 +72,7 @@ public abstract class TradeBase extends MarketEvent implements LastingEvent<Stri
7272
private int timeNanoPart;
7373
private char exchangeCode;
7474
private double price = Double.NaN;
75+
private double change = Double.NaN;
7576
private double size = Double.NaN;
7677
private double dayVolume = Double.NaN;
7778
private double dayTurnover = Double.NaN;
@@ -338,6 +339,22 @@ public void setExtendedTradingHours(boolean extendedTradingHours) {
338339
flags = extendedTradingHours ? flags | ETH : flags & ~ETH;
339340
}
340341

342+
/**
343+
* Returns change of the last trade.
344+
* @return change of the last trade.
345+
*/
346+
public double getChange() {
347+
return change;
348+
}
349+
350+
/**
351+
* Changes change of the last trade.
352+
* @param change price of the last trade.
353+
*/
354+
public void setChange(double change) {
355+
this.change = change;
356+
}
357+
341358
/**
342359
* Returns string representation of this trade event.
343360
* @return string representation of this trade event.
@@ -361,6 +378,7 @@ String baseFieldsToString() {
361378
", sequence=" + getSequence() +
362379
", exchange=" + Util.encodeChar(exchangeCode) +
363380
", price=" + price +
381+
", change=" + change +
364382
", size=" + size +
365383
", dayVolume=" + dayVolume +
366384
", dayTurnover=" + dayTurnover +

dxfeed-api/src/main/java/com/dxfeed/event/market/TradeETH.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* <li>{@link #getSequence() sequence} - sequence of the last trade;
3838
* <li>{@link #getExchangeCode() exchangeCode} - exchange code of the last trade;
3939
* <li>{@link #getPrice() price} - price of the last trade;
40+
* <li>{@link #getChange() change} - change of the last trade;
4041
* <li>{@link #getSize() size} - size of the last trade as integer number (rounded toward zero);
4142
* <li>{@link #getSizeAsDouble() sizeAsDouble} - size of the last trade as floating number with fractions;
4243
* <li>{@link #getDayVolume() dayVolume} - total extended trading hours volume traded for a day as integer number (rounded toward zero);

dxfeed-bin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>QD</artifactId>
1616
<groupId>com.devexperts.qd</groupId>
17-
<version>3.288</version>
17+
<version>3.289</version>
1818
<relativePath>../pom.xml</relativePath>
1919
</parent>
2020
<modelVersion>4.0.0</modelVersion>

dxfeed-codegen-verify/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>QD</artifactId>
1616
<groupId>com.devexperts.qd</groupId>
17-
<version>3.288</version>
17+
<version>3.289</version>
1818
</parent>
1919
<modelVersion>4.0.0</modelVersion>
2020

dxfeed-codegen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>QD</artifactId>
1616
<groupId>com.devexperts.qd</groupId>
17-
<version>3.288</version>
17+
<version>3.289</version>
1818
<relativePath>../pom.xml</relativePath>
1919
</parent>
2020
<modelVersion>4.0.0</modelVersion>

0 commit comments

Comments
 (0)