Skip to content

Commit

Permalink
Update FundPosition.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed May 21, 2024
1 parent 6230b00 commit c5726e1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions java/javasrc/src/main/java/com/longport/trade/FundPosition.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.longport.trade;

import java.math.BigDecimal;
import java.time.OffsetDateTime;

public class FundPosition {
private String symbol;
private BigDecimal currentNetAssetValue;
private BigDecimal netAssetValueDay;
private OffsetDateTime netAssetValueDay;
private String symbolName;
private String currency;
private BigDecimal costNetAssetValue;
Expand All @@ -19,7 +20,7 @@ public BigDecimal getCurrentNetAssetValue() {
return currentNetAssetValue;
}

public BigDecimal getNetAssetValueDay() {
public OffsetDateTime getNetAssetValueDay() {
return netAssetValueDay;
}

Expand All @@ -41,8 +42,9 @@ public BigDecimal getHoldingUnits() {

@Override
public String toString() {
return "FundPosition [costNetAssetValue=" + costNetAssetValue + ", currency=" + currency
+ ", currentNetAssetValue=" + currentNetAssetValue + ", holdingUnits=" + holdingUnits
+ ", netAssetValueDay=" + netAssetValueDay + ", symbol=" + symbol + ", symbolName=" + symbolName + "]";
return "FundPosition [symbol=" + symbol + ", currentNetAssetValue=" + currentNetAssetValue
+ ", netAssetValueDay=" + netAssetValueDay + ", symbolName=" + symbolName + ", currency=" + currency
+ ", costNetAssetValue=" + costNetAssetValue + ", holdingUnits=" + holdingUnits + "]";
}

}

0 comments on commit c5726e1

Please sign in to comment.