diff --git a/v5_position_service.go b/v5_position_service.go index 4abca6a..c4e8d15 100644 --- a/v5_position_service.go +++ b/v5_position_service.go @@ -65,6 +65,7 @@ type V5GetPositionInfoItem struct { TrailingStop string `json:"trailingStop"` UnrealisedPnl string `json:"unrealisedPnl"` MarkPrice string `json:"markPrice"` + CurRealisedPnl string `json:"curRealisedPnl"` CumRealisedPnl string `json:"cumRealisedPnl"` AdlRankIndicator AdlRankIndicator `json:"adlRankIndicator"` IsReduceOnly bool `json:"isReduceOnly"` diff --git a/v5_position_service_test.go b/v5_position_service_test.go index 5103d50..c66c06c 100644 --- a/v5_position_service_test.go +++ b/v5_position_service_test.go @@ -38,6 +38,7 @@ func TestV5Position_GetPositionInfo(t *testing.T) { "riskId": 3, "trailingStop": "0", "unrealisedPnl": "", + "curRealisedPnl": "2.23", "markPrice": "43577.97", "cumRealisedPnl": "-1618.71655122", "adlRankIndicator": 0,