@@ -27,6 +27,8 @@ public class Order {
2727 @ Json (name = "time_in_force" )
2828 private TimeInForce timeInForce ;
2929 private String price ;
30+ @ Json (name = "price_average" )
31+ private String averagePrice ;
3032 private String quantity ;
3133 @ Json (name = "quantity_cumulative" )
3234 private String quantityCumulative ;
@@ -226,6 +228,19 @@ public void setPrice(String price) {
226228 this .price = price ;
227229 }
228230
231+ /**
232+ * gets the average price of the executed order quantity
233+ *
234+ * @return
235+ */
236+ public String getAveragePrice () {
237+ return averagePrice ;
238+ }
239+
240+ public void setAveragePrice (String averagePrice ) {
241+ this .averagePrice = averagePrice ;
242+ }
243+
229244 /**
230245 * Gets the order quantity
231246 *
@@ -392,9 +407,9 @@ public void setOriginalClientOrderId(String originalClientOrderId) {
392407 public String toString () {
393408 return "Order [id=" + id + ", clientOrderId=" + clientOrderId + ", orderListId=" + orderListId
394409 + ", contingencyType=" + contingencyType + ", symbol=" + symbol + ", side=" + side + ", status=" + status
395- + ", type=" + type + ", timeInForce=" + timeInForce + ", price=" + price + ", quantity =" + quantity
396- + ", quantityCumulative =" + quantityCumulative + ", createdAt =" + createdAt + ", updatedAt =" + updatedAt
397- + ", postOnly =" + postOnly + ", stopPrice =" + stopPrice + ", expireTime =" + expireTime + ", trades=" + trades
398- + ", originalClientOrderId=" + originalClientOrderId + "]" ;
410+ + ", type=" + type + ", timeInForce=" + timeInForce + ", price=" + price + ", averagePrice =" + averagePrice
411+ + ", quantity =" + quantity + ", quantityCumulative =" + quantityCumulative + ", createdAt =" + createdAt
412+ + ", updatedAt =" + updatedAt + ", postOnly =" + postOnly + ", stopPrice =" + stopPrice + ", expireTime="
413+ + expireTime + ", trades=" + trades + ", originalClientOrderId=" + originalClientOrderId + "]" ;
399414 }
400415}
0 commit comments