GET
/
v1
/
portfolios
/
{portfolio_id}
/
counterparty
Get Portfolio Counterparty ID
curl --request GET \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/counterparty
{
  "counterparty": {
    "counterparty_id": "CB12345678"
  }
}
Retrieve the unique counterparty ID for a given portfolio. Use the Prime SDK or CLI to test this endpoint by following the quickstart guide and running with the following examples
PortfoliosService portfoliosService = PrimeServiceFactory.createPortfoliosService(client);

GetPortfolioCounterpartyIDRequest request = new GetPortfolioCounterpartyIDRequest.Builder().portfolioId("PORTFOLIO_ID_HERE").build();

GetPortfolioCounterpartyIDResponse response = portfoliosService.getPortfolioCounterpartyID(request);
For more information, please visit the Prime Java SDK.

Path Parameters

portfolio_id
string
required

The portfolio ID

Response

200 - application/json

A successful response.

The response is of type object.