5.7. Cung cầu theo ngày

GET/nyx/v1/intraday/{ticker}/bsa
Lấy dữ liệu cung cầu theo ngày của một mã chứng khoán.

Header

TênKiểuBắt buộcMô tả
AuthorizationstringBearer <access token>.
Content-Typestringapplication/json.

Path variable

TênKiểuBắt buộcMô tả
tickerstringMã cổ phiếu, ví dụ TCB.

Request parameter

TênKiểuBắt buộcMô tả
typeenumLoại NĐT: sheep (cá nhân nhỏ lẻ), wolf (tổ chức vừa), shark (tổ chức lớn), all (tất cả, mặc định).
GET /nyx/v1/intraday/TCB/bsa?type=all
curl "https://openapi.tcbs.com.vn/nyx/v1/intraday/TCB/bsa?type=all" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json"

Response

TênKiểuBắt buộcMô tả
tickerstringMã cổ phiếu.
data[].bupnumberTỷ lệ % mua tích cực.
data[].sdpnumberTỷ lệ % bán tiêu cực.
data[].bsrnumberTỷ lệ mua/bán.
data[].tstringThời gian giao dịch.
{
  "ticker": "TCB",
  "data": [
    {
      "bup": 0.65,
      "sdp": 0.35,
      "bsr": 1.25,
      "t": "09:15"
    }
  ]
}