4.7. Lấy sức mua
GET
Lấy sức mua của một tiểu khoản. Có biến thể theo mã (/ppse/{symbol}) và theo mã + giá (/ppse/{symbol}/{price}).
/aion/v1/accounts/{accountNo}/ppseHeader
| 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. | |
symbol | string | Mã chứng khoán (biến thể theo mã). | |
price | string | Giá tính sức mua (biến thể theo giá). |
GET /aion/v1/accounts/0001170730/ppse/FPT/52000
curl "https://openapi.tcbs.com.vn/aion/v1/accounts/0001170730/ppse/FPT/52000" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"Response
| Tên | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
purchasingPower | number | Sức mua khả dụng. | |
maxQuantity | int64 | Số lượng tối đa có thể mua. |
{
"purchasingPower": 150000000,
"maxQuantity": 2884
}