Response
URL: http://localhost:8080/api/portfolio/1/order
Status code: 200
Content Type: application/json
Request Headers
Accept=*/*
Content-Type=application/json
Content Body
{
"securityCode": "AAPL",
"type": "Sell",
"amount": 3,
"priceInCents": 15000,
"id": 4,
"timestamp": "2024-08-15T19:49:43.195707926",
"totalInCents": 45000
}
Response Headers
Content-Type: application/json
Transfer-Encoding: chunked
Date: Thu, 15 Aug 2024 19:49:43 GMT
Keep-Alive: timeout=60
Connection: keep-alive
Response Body
{
"portfolioId": 1,
"clientId": 1,
"history": [
{
"securityCode": "CASH",
"type": "Deposit",
"amount": 100000,
"priceInCents": 1,
"id": 1,
"timestamp": "2024-08-15T19:49:42.099796540",
"totalInCents": 100000
},
{
"securityCode": "CASH",
"type": "Sell",
"amount": 50000,
"priceInCents": 1,
"id": 8,
"timestamp": "2024-08-15T19:49:43.109496855",
"totalInCents": 50000
},
{
"securityCode": "AAPL",
"type": "Buy",
"amount": 5,
"priceInCents": 10000,
"id": 2,
"timestamp": "2024-08-15T19:49:43.056344071",
"totalInCents": 50000
},
{
"securityCode": "CASH",
"type": "Buy",
"amount": 45000,
"priceInCents": 1,
"id": 12,
"timestamp": "2024-08-15T19:49:43.230630514",
"totalInCents": 45000
},
{
"securityCode": "AAPL",
"type": "Sell",
"amount": 3,
"priceInCents": 15000,
"id": 4,
"timestamp": "2024-08-15T19:49:43.195707926",
"totalInCents": 45000
}
],
"cash": 950.0
}