vnstock-js

vnstock-js

Tài LiệuVí DụBài ViếtTài Chính
k

© Copyright 2026

Giới Thiệu
Danh Sách Hàm
Cài Đặt
Kiến Trúc
Hướng Dẫn Sử Dụng Nhanh
CLI
Lịch Sử Phiên Bản
Câu Hỏi Thường Gặp
Cơ Bản
Giao Dịch - Trading
Báo Giá - Quote
Niêm Yết - Listing
Tài Chính - Financials
Chỉ Báo - Indicators
AI Contextv1.4Mới
MCP Serverv1.4Mới
Watchlistv1.4Mới
Sàng Lọc - Screening
Tìm Kiếm - Search
Lịch Giao Dịch - Calendar
Realtime - Thời Gian Thực
QuoteHistory
PriceBoardItem
TopStock
CompanyProfile
ScreenResult
RealtimeQuote
ExchangeRate
  1. Tài Liệu
  2. Key Features
  3. Advanced
  4. Screening

Sàng Lọc - Screening

Lọc cổ phiếu theo tiêu chí tài chính

Sử dụng

import vnstock from 'vnstock-js';

const results = await vnstock.stock.screening.screen({
  exchange: 'HOSE',
  filters: [
    { field: 'pe', operator: '<', value: 15 },
    { field: 'roe', operator: '>', value: 0.15 },
    { field: 'marketCap', operator: '>', value: 50000 },
  ],
  sortBy: 'roe',
  order: 'desc',
  limit: 20,
});

Params

ParamTypeMô tả
exchangestring?Lọc theo sàn (HOSE/HNX/UPCOM)
filtersScreenFilter[]Danh sách điều kiện lọc
sortBystring?Sắp xếp theo field
order"asc" | "desc"Thứ tự (mặc định: desc)
limitnumber?Giới hạn kết quả

Filter operators

OperatorMô tả
<Nhỏ hơn
>Lớn hơn
<=Nhỏ hơn hoặc bằng
>=Lớn hơn hoặc bằng
=Bằng

Filterable fields

FieldMô tả
pePrice/Earnings
pbPrice/Book
epsEarnings Per Share
roeReturn on Equity
roaReturn on Assets
marketCapVốn hóa
priceGiá hiện tại
volumeKhối lượng
debtToEquityNợ/Vốn chủ

Output: ScreenResult[]

[{
  symbol: "FPT",
  companyName: "CTCP FPT",
  industry: "Công nghệ",
  exchange: "HOSE",
  pe: 12.3,
  roe: 0.22,
  marketCap: 95000,
  price: 120,
  // ...
}]
PreviousWatchlist
NextTìm Kiếm - Search

Nội Dung

Sử dụngParamsFilter operatorsFilterable fieldsOutput: `ScreenResult[]`