Skip to content

Get Closed Futures Positions Summary

GET
/v1/positions/closed/summary

Returns a summary of the closed futures positions for an account, including side, quantity, realised PnL, average entry price, position ID, currency pair, average close price, fees, and position created timestamp.

Authorizations

apiKey

Your API key

Type
API Key (header: X-VALR-API-KEY)
+
apiSignature

HMAC SHA512 signature of the request (see Authentication section)

Type
API Key (header: X-VALR-SIGNATURE)
+
apiTimestamp

Request timestamp in milliseconds

Type
API Key (header: X-VALR-TIMESTAMP)

Responses

Closed futures positions summary retrieved successfully

application/json
JSON
[
{
"currencyPair": "USDTZARPERP",
"side": "buy",
"quantity": "44",
"averageEntryPrice": "19.01",
"averageClosePrice": "19",
"realisedPnl": "-1.27622",
"fees": "0.83622",
"positionCreatedAt": "2023-11-14T19:49:09.317Z",
"positionId": "046f52a0-758c-6ec8-28a9-03fe7b0b51bc"
}
]

Playground

Authorization

Samples