Coinbase Prime API
cURL
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.
PortfoliosService portfoliosService = PrimeServiceFactory.createPortfoliosService(client); GetPortfolioCounterpartyIDRequest request = new GetPortfolioCounterpartyIDRequest.Builder().portfolioId("PORTFOLIO_ID_HERE").build(); GetPortfolioCounterpartyIDResponse response = portfoliosService.getPortfolioCounterpartyID(request);
The portfolio ID
A successful response.
The response is of type object.
object
Was this page helpful?