com.longport.quote.Trade Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-sdk Show documentation
Show all versions of openapi-sdk Show documentation
LongPort OpenAPI SDK for Java
package com.longport.quote;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
public class Trade {
private BigDecimal price;
private long volume;
private OffsetDateTime timestamp;
private String tradeType;
private TradeDirection direction;
private TradeSession tradeSession;
public BigDecimal getPrice() {
return price;
}
public long getVolume() {
return volume;
}
public OffsetDateTime getTimestamp() {
return timestamp;
}
public String getTradeType() {
return tradeType;
}
public TradeDirection getDirection() {
return direction;
}
public TradeSession getTradeSession() {
return tradeSession;
}
@Override
public String toString() {
return "Trade [direction=" + direction + ", price=" + price + ", timestamp=" + timestamp + ", tradeType="
+ tradeType + ", tradeSession=" + tradeSession + ", volume=" + volume + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy