curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/intx/portfolio/{portfolio_uuid} \
--header 'Authorization: Bearer <token>'{
"portfolios": [
{
"portfolio_uuid": "<string>",
"collateral": "<string>",
"position_notional": "<string>",
"open_position_notional": "<string>",
"pending_fees": "<string>",
"borrow": "<string>",
"accrued_interest": "<string>",
"rolling_debt": "<string>",
"portfolio_initial_margin": "<string>",
"portfolio_im_notional": {
"value": "<string>",
"currency": "<string>"
},
"portfolio_maintenance_margin": "<string>",
"portfolio_mm_notional": {
"value": "<string>",
"currency": "<string>"
},
"liquidation_percentage": "<string>",
"liquidation_buffer": "<string>",
"margin_type": "MARGIN_TYPE_UNSPECIFIED",
"margin_flags": "PORTFOLIO_MARGIN_FLAGS_UNSPECIFIED",
"liquidation_status": "PORTFOLIO_LIQUIDATION_STATUS_UNSPECIFIED",
"unrealized_pnl": {
"value": "<string>",
"currency": "<string>"
},
"total_balance": {
"value": "<string>",
"currency": "<string>"
}
}
],
"summary": {
"unrealized_pnl": {
"value": "<string>",
"currency": "<string>"
},
"buying_power": {
"value": "<string>",
"currency": "<string>"
},
"total_balance": {
"value": "<string>",
"currency": "<string>"
},
"max_withdrawal_amount": {
"value": "<string>",
"currency": "<string>"
}
}
}Get a summary of your Perpetuals portfolio
curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/intx/portfolio/{portfolio_uuid} \
--header 'Authorization: Bearer <token>'{
"portfolios": [
{
"portfolio_uuid": "<string>",
"collateral": "<string>",
"position_notional": "<string>",
"open_position_notional": "<string>",
"pending_fees": "<string>",
"borrow": "<string>",
"accrued_interest": "<string>",
"rolling_debt": "<string>",
"portfolio_initial_margin": "<string>",
"portfolio_im_notional": {
"value": "<string>",
"currency": "<string>"
},
"portfolio_maintenance_margin": "<string>",
"portfolio_mm_notional": {
"value": "<string>",
"currency": "<string>"
},
"liquidation_percentage": "<string>",
"liquidation_buffer": "<string>",
"margin_type": "MARGIN_TYPE_UNSPECIFIED",
"margin_flags": "PORTFOLIO_MARGIN_FLAGS_UNSPECIFIED",
"liquidation_status": "PORTFOLIO_LIQUIDATION_STATUS_UNSPECIFIED",
"unrealized_pnl": {
"value": "<string>",
"currency": "<string>"
},
"total_balance": {
"value": "<string>",
"currency": "<string>"
}
}
],
"summary": {
"unrealized_pnl": {
"value": "<string>",
"currency": "<string>"
},
"buying_power": {
"value": "<string>",
"currency": "<string>"
},
"total_balance": {
"value": "<string>",
"currency": "<string>"
},
"max_withdrawal_amount": {
"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 portfolio UUID.
The total collateral value in USDC for the portfolio
The total position notional value in USDC for all positions in the portfolio
The total position notional value in USDC for all open orders and positions
The accrued fees that has not been paid yet in USDC
Total borrow amount in USDC (nets the USDC balance, position PNL, held USDC, accured interest and rolling debt)
Interest charged for borrowed USDC balances
Amount of settled transactions that hasn't been paid
The weighted average of all the position's initial margin utilization
The maintenance margin of the portfolio
The liquidation percentage of the portfolio
The liquidation buffer of the portfolio
MARGIN_TYPE_UNSPECIFIED, MARGIN_TYPE_CROSS, MARGIN_TYPE_ISOLATED PORTFOLIO_MARGIN_FLAGS_UNSPECIFIED, PORTFOLIO_MARGIN_FLAGS_IN_LIQUIDATION PORTFOLIO_LIQUIDATION_STATUS_UNSPECIFIED, PORTFOLIO_LIQUIDATION_STATUS_CANCELING, PORTFOLIO_LIQUIDATION_STATUS_AUTO_LIQUIDATING, PORTFOLIO_LIQUIDATION_STATUS_LSP_ASSIGNMENT, PORTFOLIO_LIQUIDATION_STATUS_CUSTOMER_ASSIGNMENT, PORTFOLIO_LIQUIDATION_STATUS_MANUAL, PORTFOLIO_LIQUIDATION_STATUS_NOT_LIQUIDATING Show child attributes
Was this page helpful?