Response
URL: http://localhost:8080/api/client/2/portfolio
Status code: 200
Content Type: application/json
Request Headers
Accept=*/*
Content-Type=application/json
Response Headers
Content-Type: application/json
Transfer-Encoding: chunked
Date: Thu, 15 Aug 2024 19:49:42 GMT
Keep-Alive: timeout=60
Connection: keep-alive
Response Body
{
"portfolioId": 2,
"clientId": 2,
"history": [
{
"securityCode": "CASH",
"type": "Deposit",
"amount": 100000,
"priceInCents": 1,
"id": 2,
"timestamp": "2024-08-15T19:49:42.100228063",
"totalInCents": 100000
}
],
"marketPositions": {
"CASH": {
"securityCode": "CASH",
"amount": 100000,
"totalPurchasePriceInDollars": 1000.0,
"marketValueInDollars": 0.01,
"totalValueInDollars": 1000.0,
"profit": 0.0
}
},
"profit": 0.0,
"cash": 1000.0
}