This endpoint returns the size and average entry price of all open positions in Futures contracts. This includes Futures contracts that have matured but have not yet been settled.
curl --request GET \
--url https://futures.kraken.com/derivatives/api/v3/openpositions \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"openPositions": [
{
"side": "short",
"symbol": "PF_XBTUSD",
"price": 9392.749993345933,
"fillTime": "2020-07-22T14:39:12.376Z",
"size": 10000,
"unrealizedFunding": 0.00001045432180096817
},
{
"side": "long",
"symbol": "FI_XBTUSD_201225",
"price": 9399.749966754434,
"fillTime": "2020-07-22T14:39:12.376Z",
"size": 20000
},
{
"side": "long",
"symbol": "PF_DEFIUSD",
"price": 570,
"fillTime": "2022-04-20T19:15:25.438Z",
"size": 1,
"unrealizedFunding": -0.0073428045972263895,
"pnlCurrency": "BTC",
"maxFixedLeverage": 5
}
],
"serverTime": "2020-07-22T14:39:12.376Z"
}Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
General API key with at least read-only access
Authentication string
A list containing structures with information on open positions.
The list is sorted descending by fillTime.
Show child attributes
success "success"
Server time in Coordinated Universal Time (UTC)
"2020-08-27T17:03:33.196Z"
curl --request GET \
--url https://futures.kraken.com/derivatives/api/v3/openpositions \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"openPositions": [
{
"side": "short",
"symbol": "PF_XBTUSD",
"price": 9392.749993345933,
"fillTime": "2020-07-22T14:39:12.376Z",
"size": 10000,
"unrealizedFunding": 0.00001045432180096817
},
{
"side": "long",
"symbol": "FI_XBTUSD_201225",
"price": 9399.749966754434,
"fillTime": "2020-07-22T14:39:12.376Z",
"size": 20000
},
{
"side": "long",
"symbol": "PF_DEFIUSD",
"price": 570,
"fillTime": "2022-04-20T19:15:25.438Z",
"size": 1,
"unrealizedFunding": -0.0073428045972263895,
"pnlCurrency": "BTC",
"maxFixedLeverage": 5
}
],
"serverTime": "2020-07-22T14:39:12.376Z"
}