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 *
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})
5555public 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 =========================
0 commit comments