Endpoint to retrieve account credit information. Mostly used to obtain credit available, credit used and credit limit.
GET /api/v1/accounting/account/{accountId}/portfolio
GET /api/v1/accounting/account/test123/portfolio
// Successful Response body
{
"account": {
"accountId": "test123",
"type": "client",
"name": "Test",
"balances": {
"USDC": {
"availableToTrade": 10000.0,
"totalFunds": 0.0,
"availableFunds": 0.0,
"lockedFunds": 0.0,
"totalCredit": 10000.0,
"availableCredit": 10000.0,
"usedCredit": 0.0
},
"USDT": {
"availableToTrade": 10000.0,
"totalFunds": 0.0,
"availableFunds": 0.0,
"lockedFunds": 0.0,
"totalCredit": 10000.0,
"availableCredit": 10000.0,
"usedCredit": 0.0
},
"USD": {
"availableToTrade": 10000.0,
"totalFunds": 0.0,
"availableFunds": 0.0,
"lockedFunds": 0.0,
"totalCredit": 10000.0,
"availableCredit": 10000.0,
"usedCredit": 0.0
}
},
"sources": []
},
"notationalAsset": "USD",
"notionalTotals": {
"availableToTrade": 29997.19990373039232,
"totalFunds": 0.0,
"availableFunds": 0.0,
"lockedFunds": 0.0,
"totalCredit": 29997.19990373039232,
"availableCredit": 29997.19990373039232,
"usedCredit": 0.0
},
"status": "ok",
"httpStatusCode": 200
}
// Error Response body
{
"status": 404,
"error": "Account ID Not Found"
}