Skip to content

Commit

Permalink
added curren realised parameter to v5 position list service (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
id-petrov authored Oct 29, 2024
1 parent 355896a commit f7be9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions v5_position_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions v5_position_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7be9d9

Please sign in to comment.