4.14. Tra cứu tài sản cổ phiếu
GET
Tra cứu tài sản cổ phiếu theo tiểu khoản. Số dư tiền dùng /cashInvestments; sao kê tiền dùng /erebos/v2/digital/trans-hist-cashStatements.
/aion/v1/accounts/{accountNo}/seHeader
| Tên | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
Authorization | string | Bearer <access token>. | |
Content-Type | string | application/json. |
Path variable
| Tên | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
accountNo | string | Số tiểu khoản. |
GET /aion/v1/accounts/0001170730/se
curl "https://openapi.tcbs.com.vn/aion/v1/accounts/0001170730/se" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"Response
| Tên | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
assets | array | Danh sách tài sản cổ phiếu. | |
assets[].symbol | string | Mã chứng khoán. | |
assets[].quantity | int64 | Số lượng nắm giữ. | |
assets[].avgPrice | number | Giá trung bình. | |
assets[].marketValue | number | Giá trị thị trường. |
{
"assets": [
{
"symbol": "VNM",
"quantity": 500,
"avgPrice": 78500,
"marketValue": 40250000
}
]
}