curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/credit{
"post_trade_credit": {
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"currency": "USD",
"limit": "100000",
"utilized": "4000",
"available": "96000",
"frozen": true,
"frozen_reason": "Portfolio frozen manually by admin",
"amounts_due": [
{
"currency": "BTC",
"amount": "4000",
"due_date": "2021-05-31T09:59:59.000Z"
}
],
"enabled": true,
"adjusted_credit_utilized": "5000",
"adjusted_portfolio_equity": "2000"
}
}Retrieve a portfolio’s post-trade credit information.
curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/credit{
"post_trade_credit": {
"portfolio_id": "e8bbed13-fa33-41de-86d5-4335d8f08166",
"currency": "USD",
"limit": "100000",
"utilized": "4000",
"available": "96000",
"frozen": true,
"frozen_reason": "Portfolio frozen manually by admin",
"amounts_due": [
{
"currency": "BTC",
"amount": "4000",
"due_date": "2021-05-31T09:59:59.000Z"
}
],
"enabled": true,
"adjusted_credit_utilized": "5000",
"adjusted_portfolio_equity": "2000"
}
}PortfoliosService portfoliosService = PrimeServiceFactory.createPortfoliosService(client);
GetPortfolioCreditInformationRequest request = new GetPortfolioCreditInformationRequest.Builder()
.portfolioId("PORTFOLIO_ID_HERE")
.build();
GetPortfolioCreditInformationResponse response = portfoliosService.getPortfolioCreditInformation(request);
The portfolio ID
A successful response.
Show child attributes
The unique ID of the portfolio
"e8bbed13-fa33-41de-86d5-4335d8f08166"
The currency symbol credit is denoted in
"USD"
The maximum credit limit
"100000"
The amount of credit used
"4000"
The amount of credit available
"96000"
Whether or not a portfolio is frozen due to balance outstanding or other reason
true
The reason why the portfolio is frozen
"Portfolio frozen manually by admin"
Whether the portfolio has credit enabled
true
The amount of adjusted credit used
"5000"
The amount of adjusted portfolio equity
"2000"
Was this page helpful?