curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/intx/positions/{portfolio_uuid} \
--header 'Authorization: Bearer <token>'{
"positions": [
{
"product_id": "<string>",
"product_uuid": "<string>",
"portfolio_uuid": "<string>",
"symbol": "<string>",
"vwap": {
"value": "<string>",
"currency": "<string>"
},
"entry_vwap": {
"value": "<string>",
"currency": "<string>"
},
"position_side": "POSITION_SIDE_UNKNOWN",
"margin_type": "MARGIN_TYPE_UNSPECIFIED",
"net_size": "<string>",
"buy_order_size": "<string>",
"sell_order_size": "<string>",
"im_contribution": "<string>",
"unrealized_pnl": {
"value": "<string>",
"currency": "<string>"
},
"mark_price": {
"value": "<string>",
"currency": "<string>"
},
"liquidation_price": {
"value": "<string>",
"currency": "<string>"
},
"leverage": "<string>",
"im_notional": {
"value": "<string>",
"currency": "<string>"
},
"mm_notional": {
"value": "<string>",
"currency": "<string>"
},
"position_notional": {
"value": "<string>",
"currency": "<string>"
},
"aggregated_pnl": {
"value": "<string>",
"currency": "<string>"
}
}
],
"summary": {
"aggregated_pnl": {
"value": "<string>",
"currency": "<string>"
}
}
}Get a list of open positions in your Perpetuals portfolio
curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/intx/positions/{portfolio_uuid} \
--header 'Authorization: Bearer <token>'{
"positions": [
{
"product_id": "<string>",
"product_uuid": "<string>",
"portfolio_uuid": "<string>",
"symbol": "<string>",
"vwap": {
"value": "<string>",
"currency": "<string>"
},
"entry_vwap": {
"value": "<string>",
"currency": "<string>"
},
"position_side": "POSITION_SIDE_UNKNOWN",
"margin_type": "MARGIN_TYPE_UNSPECIFIED",
"net_size": "<string>",
"buy_order_size": "<string>",
"sell_order_size": "<string>",
"im_contribution": "<string>",
"unrealized_pnl": {
"value": "<string>",
"currency": "<string>"
},
"mark_price": {
"value": "<string>",
"currency": "<string>"
},
"liquidation_price": {
"value": "<string>",
"currency": "<string>"
},
"leverage": "<string>",
"im_notional": {
"value": "<string>",
"currency": "<string>"
},
"mm_notional": {
"value": "<string>",
"currency": "<string>"
},
"position_notional": {
"value": "<string>",
"currency": "<string>"
},
"aggregated_pnl": {
"value": "<string>",
"currency": "<string>"
}
}
],
"summary": {
"aggregated_pnl": {
"value": "<string>",
"currency": "<string>"
}
}
}A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Creating API Keys section of our Coinbase App Authentication docs for information on how to generate your Bearer Token.
The portfolio UUID.
A successful response.
Show child attributes
The unique identifier of the instrument the position is in.
The unique identifier of the instrument the position is in.
The portfolio UUID.
The trading pair (e.g. 'BTC-PERP-INTX').
POSITION_SIDE_UNKNOWN, POSITION_SIDE_LONG, POSITION_SIDE_SHORT MARGIN_TYPE_UNSPECIFIED, MARGIN_TYPE_CROSS, MARGIN_TYPE_ISOLATED The size of the position with positive values reflecting a long position and negative values reflecting a short position.
Cumulative size of all the open buy orders
Cumulative size of all the open sell orders
The amount this position contributes to the initial margin
The leverage of this position
Was this page helpful?