Interface Trade
public interface Trade
-
Method Summary
Modifier and TypeMethodDescriptionGets the ID of the account that this execution occurred on.float
Gets the average fill price.double
Gets the commission paid for this trade (if available).getId()
Gets the unique ID of this execution.Gets the instrument that was traded.float
Gets the quantity that was executed.long
getTime()
Gets the time this execution occurred.boolean
isBuy()
-
Method Details
-
getId
String getId()Gets the unique ID of this execution. -
getAccountId
String getAccountId()Gets the ID of the account that this execution occurred on. -
getInstrument
Instrument getInstrument()Gets the instrument that was traded. -
getTime
long getTime()Gets the time this execution occurred. -
isBuy
boolean isBuy()- Returns:
- true if this was a buy (vs a sell)
-
getQuantity
float getQuantity()Gets the quantity that was executed. -
getAvgPrice
float getAvgPrice()Gets the average fill price. -
getCommission
double getCommission()Gets the commission paid for this trade (if available).
-