Response
URL: http://localhost:8080/api/portfolio/3/order
Status code: 200
Content Type: application/json
Request Headers
Accept=*/*
Content-Type=application/json
Content Body
{
"securityCode": "SNAP",
"type": "Buy",
"amount": 5,
"priceInCents": 10000,
"id": 1,
"timestamp": "2024-08-15T19:49:43.045742447",
"totalInCents": 50000
}
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": 3,
"clientId": 3,
"history": [
{
"securityCode": "CASH",
"type": "Deposit",
"amount": 100000,
"priceInCents": 1,
"id": 3,
"timestamp": "2024-08-15T19:49:42.541998998",
"totalInCents": 100000
},
{
"securityCode": "CASH",
"type": "Sell",
"amount": 50000,
"priceInCents": 1,
"id": 6,
"timestamp": "2024-08-15T19:49:43.100268628",
"totalInCents": 50000
},
{
"securityCode": "SNAP",
"type": "Buy",
"amount": 5,
"priceInCents": 10000,
"id": 1,
"timestamp": "2024-08-15T19:49:43.045742447",
"totalInCents": 50000
}
],
"cash": 500.0
}