From 9cb99ca4dd6a1f9b53a4c1ca6585e919f55497e8 Mon Sep 17 00:00:00 2001
From: mrthinh Câu hỏi thường gặp (FAQs)Microsoft Learn, Coursera, Free Code Camp, vv.
Dũng Nguyễn @ Nhà quản lý quỹ | Hà Nội
@@ -2100,7 +2107,11 @@Chi Vũ - Marketing Solution @ Tiktok | HCM
+======= +Chi Vũ - Marketing Solution @ Tiktok, HCM
+>>>>>>> Stashed changesCảm ơn Thịnh nhiều, các kiến thức trong khoá khá nhiều nhưng được sắp xếp cô đọng, tớ học xong thấy tự tin khi nhìn dữ liệu hơn hẳn kaka.
vnstock l\u00e0 th\u01b0 vi\u1ec7n Python \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 t\u1ea3i d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng v\u00e0 mi\u1ec5n ph\u00ed. vnstock s\u1eed d\u1ee5ng c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u \u0111\u00e1ng tin c\u1eady, bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n t\u1eeb c\u00f4ng ty ch\u1ee9ng kho\u00e1n v\u00e0 c\u00f4ng ty ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng t\u1ea1i Vi\u1ec7t Nam. G\u00f3i th\u01b0 vi\u1ec7n \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf d\u1ef1a tr\u00ean nguy\u00ean t\u1eafc v\u1ec1 s\u1ef1 \u0111\u01a1n gi\u1ea3n v\u00e0 m\u00e3 ngu\u1ed3n m\u1edf, h\u1ea7u h\u1ebft c\u00e1c h\u00e0m \u0111\u01b0\u1ee3c vi\u1ebft d\u1ef1a tr\u00ean th\u01b0 vi\u1ec7n request v\u00e0 pandas c\u00f3 s\u1eb5n tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab do \u0111\u00f3 ng\u01b0\u1eddi d\u00f9ng kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam c\u00e1c g\u00f3i th\u01b0 vi\u1ec7n k\u00e8m theo.
C\u1eadp nh\u1eadt b\u1ea3n 0.2.8.8
C\u1eadp nh\u1eadt thay \u0111\u1ed5i t\u1eeb ng\u00e0y 16/12/2023 \u1edf phi\u00ean b\u1ea3n beta
sang main
v\u00e0 ph\u00e1t h\u00e0nh ch\u00ednh th\u1ee9c phi\u00ean b\u1ea3n 0.2.8.8.
financial_report
s\u1eeda l\u1ed7i tri\u1ec7t \u0111\u1ec3 l\u1ed7i s\u1eed d\u1ee5ng 'Excel file format cannot be determined, you must specify an engine manually' do d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 kh\u00f4ng ph\u1ea3i \u0111\u1ecbnh d\u1ea1ng Excel.OrganCode
\u0111\u1ec3 tra c\u1ee9u th\u00f4ng tin c\u00f4ng ty trong \u0111\u00f3 c\u00f3 b\u00e1o c\u00e1o t\u00e0i ch\u00ednh. C\u00f3 kho\u1ea3ng > 600 m\u00e3 c\u1ed5 phi\u1ebfu c\u00f3 m\u00e3 symbol kh\u00e1c OrganCode do \u0111\u00f3 c\u00f3 nhi\u1ec1u m\u00e3 khi tra c\u1ee9u BCTC v\u1edbi m\u00e3 symbol s\u1ebd g\u00e2y ra r\u1ed7i trong khi v\u1edbi c\u00e1c m\u00e3 kh\u00e1c th\u00ec kh\u00f4ng. V\u00ed d\u1ee5 YTC
c\u00f3 OrganCode l\u00e0 YTECO
d\u00f9ng \u0111\u1ec3 tra c\u1ee9u BCTC.openpyxl
l\u00e0 g\u00f3i ph\u1ee5 thu\u1ed9c \u0111\u1ec3 \u0111\u1ecdc d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 t\u1eeb API d\u01b0\u1edbi d\u1ea1ng file Excel. L\u1ed7i n\u00e0y x\u1ea3y ra khi c\u00e0i b\u1ea3n Python thu\u1ea7n. Kh\u00f4ng g\u1eb7p l\u1ed7i v\u1edbi Google Colab ho\u1eb7c Anaconda.C\u1eadp nh\u1eadt khung ch\u01b0\u01a1ng tr\u00ecnh kh\u00f3a h\u1ecdc Python 5 khai gi\u1ea3ng 21/1/2024
B\u1ed5 sung t\u00ednh n\u0103ng hi\u1ec7n banner th\u00f4ng b\u00e1o quan tr\u1ecdng tr\u00ean trang t\u00e0i li\u1ec7u.
vnstock-data-pro
C\u1eadp nh\u1eadt t\u00e0i li\u1ec7u d\u1ef1 \u00e1n
B\u1ed5 sung h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng t\u00edch h\u1ee3p SSI Fast Connect API trong g\u00f3i vnstock-pro-data
t\u1ea1i \u0111\u00e2y
B\u1ed5 sung th\u00f4ng tin chi ti\u1ebft ch\u01b0\u01a1ng tr\u00ecnh Vnstock Insider Program t\u1ea1i \u0111\u00e2y
B\u1ed5 sung requirements.txt
cho tr\u00ecnh t\u1ea1o trang t\u0129nh MKDocs gi\u00fap c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c \u0111\u1ec3 thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u v\u00e0 xem tr\u01b0\u1edbc d\u1ec5 d\u00e0ng.
Ch\u00ednh th\u1ee9c ph\u00e1t h\u00e0nh c\u00e1c thay \u0111\u1ed5i t\u1eeb nh\u00e1nh Beta trong phi\u00ean b\u1ea3n 2.8.7. Chi ti\u1ebft c\u1eadp nh\u1eadt qua blog: t\u1ea1i \u0111\u00e2y
Ra m\u1eaft Vnstock Insiders Program cung c\u1ea5p quy\u1ec1n truy c\u1eadp t\u1edbi c\u00e1c kho ch\u1ee9a m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0 (private repo)
Ra m\u1eaft vnstock-pro-data
trong ch\u01b0\u01a1ng tr\u00ecnh Insiders, cung c\u1ea5p kh\u1ea3 n\u0103ng truy c\u1eadp d\u1eef li\u1ec7u ch\u1ea5t l\u01b0\u1ee3ng cao v\u1edbi \u0111\u1ed9 tr\u1ec5 th\u1ea5p.
T\u1ea3i d\u1eef li\u1ec7u gi\u00e1 OHLCV nhanh ch\u00f3ng, ch\u00ednh x\u00e1c kh\u00f4ng c\u1ea7n x\u00e1c th\u1ef1c qua Public API c\u1ee7a SSI.
T\u1ea3i v\u00e0 streaming d\u1eef li\u1ec7u qua SSI Fast Connect API ch\u00ednh th\u1ee9c (c\u1ea7n \u0111\u0103ng k\u00fd v\u00e0 x\u00e1c th\u1ef1c ng\u01b0\u1eddi d\u00f9ng)
Ch\u00ednh th\u1ee9c ph\u00e1t h\u00e0nh t\u00ednh n\u0103ng truy c\u1eadp d\u1eef li\u1ec7u qu\u1ef9 m\u1edf. H\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y
H\u1ed7 tr\u1ee3 xu\u1ea5t d\u1eef li\u1ec7u time series cho OpenBB Terminal. H\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y
C\u1eadp nh\u1eadt t\u00e0i li\u1ec7u d\u1ef1 \u00e1n
andrey_jef
\u0111\u00f3ng g\u00f3p. T\u00e0i li\u1ec7u m\u00f4 t\u1ea3 v\u00e0 demo notebook \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt t\u01b0\u01a1ng \u1ee9ng.plotly
th\u00e0nh th\u01b0 vi\u1ec7n t\u00f9y ch\u1ecdn, ch\u1ec9 ph\u1ea3i import v\u00e0o d\u1ef1 \u00e1n n\u1ebfu ng\u01b0\u1eddi d\u00f9ng c\u00f3 nhu c\u1ea7u s\u1eed d\u1ee5ng t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb. Vi\u1ec7c n\u00e0y gi\u00fap vnstock ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng kh\u00e1c Google Colab kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam plotly
theo m\u1eb7c \u0111\u1ecbnh. M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean b\u1ea3n beta tr\u00ean Github, thay \u0111\u1ed5i s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ea9y l\u00ean PyPI trong tu\u1ea7n t\u1edbi.andrey_jef
\u0111\u00f3ng g\u00f3p. T\u00e0i li\u1ec7u m\u00f4 t\u1ea3 v\u00e0 demo notebook \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt t\u01b0\u01a1ng \u1ee9ng.plotly
th\u00e0nh th\u01b0 vi\u1ec7n t\u00f9y ch\u1ecdn, ch\u1ec9 ph\u1ea3i import v\u00e0o d\u1ef1 \u00e1n n\u1ebfu ng\u01b0\u1eddi d\u00f9ng c\u00f3 nhu c\u1ea7u s\u1eed d\u1ee5ng t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb. Vi\u1ec7c n\u00e0y gi\u00fap vnstock ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng kh\u00e1c Google Colab kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam plotly
theo m\u1eb7c \u0111\u1ecbnh. M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean b\u1ea3n beta tr\u00ean Github, thay \u0111\u1ed5i s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ea9y l\u00ean PyPI trong tu\u1ea7n t\u1edbi.Ph\u00e1t h\u00e0nh phi\u00ean b\u1ea3n 0.2.8.5
stock_intraday_data
investor_segment
, m\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb True
cho ph\u00e9p tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh theo ph\u00e2n nh\u00f3m nh\u00e0 \u0111\u1ea7u t\u01b0 (nh\u01b0 c\u00e1c phi\u00ean b\u1ea3n tr\u01b0\u1edbc), khi \u0111\u1eb7t l\u00e0 False
cho ph\u00e9p tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u th\u00f4, kh\u00f4ng g\u1ed9p th\u00f4ng tin l\u1ec7nh theo ph\u00e2n nh\u00f3m.amibroker_ohlc_export
cho ph\u00e9p xu\u1ea5t d\u1eef li\u1ec7u sang \u0111\u1ecbnh d\u1ea1ng CSV \u0111\u1ec3 n\u1ea1p d\u1eef li\u1ec7u cho Amibroker. Chi ti\u1ebft t\u1ea1i \u0111\u00e2yPh\u00e1t h\u00e0nh phi\u00ean b\u1ea3n 0.2.8.4
T\u00f9y bi\u1ebfn h\u00e0m stock_historical_data
gi\u00fap d\u1ec5 d\u00e0ng s\u1eed d\u1ee5ng v\u1edbi c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt kh\u00e1c trong Python.
Th\u00eam tham s\u1ed1 decor
, nh\u1eadn gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
(kh\u00f4ng thay \u0111\u1ed5i d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 v\u1edbi c\u00e1ch s\u1eed d\u1ee5ng hi\u1ec7n t\u1ea1i c\u1ee7a ng\u01b0\u1eddi d\u00f9ng). Khi \u0111\u1eb7t decor=True
, \u00e1p d\u1ee5ng thay t\u00ean c\u00e1c c\u1ed9t trong DataFrame tr\u1ea3 v\u1ec1 d\u01b0\u1edbi d\u1ea1ng Title Case t\u1ee9c Open, High, Low, Close, Time, Ticker
thay v\u00ec open, high, low, close, time, ticker
nh\u01b0 hi\u1ec7n t\u1ea1i \u0111\u1ed3ng th\u1eddi \u0111\u1eb7t c\u1ed9t Time l\u00e0 index. Vi\u1ec7c n\u00e0y gi\u1ea3m b\u1edbt cho ng\u01b0\u1eddi d\u00f9ng ph\u1ea3i vi\u1ebft th\u00eam c\u00e2u l\u1ec7nh khi s\u1eed d\u1ee5ng d\u1eef li\u1ec7u vnstock k\u1ebft h\u1ee3p c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt ph\u1ed5 bi\u1ebfn v\u1ed1n d\u00f9ng th\u01b0 vi\u1ec7n Yahoo Finance l\u00e0m ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u.
B\u1ed5 sung tham s\u1ed1 source
cho ph\u00e9p ch\u1ecdn ngu\u1ed3n t\u1ea3i d\u1eef li\u1ec7u l\u00e0 TCBS
hay DNSE
. Ngu\u1ed3n d\u1eef li\u1ec7u TCBS
cho l\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed theo ng\u00e0y (resolution = 1D
) trong th\u1eddi gian d\u00e0i, kh\u00f4ng h\u1ed7 tr\u1ee3 khung th\u1eddi gian nh\u1ecf h\u01a1n. Trong khi \u0111\u00f3 ngu\u1ed3n d\u1eef li\u1ec7u DNSE
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u v\u1edbi nhi\u1ec1u khung th\u1eddi gian kh\u00e1c nhau, gi\u1edbi h\u1ea1n 90 ng\u00e0y g\u1ea7n nh\u1ea5t \u0111\u1ed1i v\u1edbi d\u1eef li\u1ec7u ph\u00fat, 10 n\u0103m g\u1ea7n nh\u1ea5t \u0111\u1ed1i v\u1edbi d\u1eef li\u1ec7u ng\u00e0y.
C\u1eadp nh\u1eadt tcbs_headers s\u1eed d\u1ee5ng cho c\u00e1c request \u0111\u1ebfn API c\u1ee7a TCBS
pip install -U vnstock
\u0111\u1ec3 c\u1eadp nh\u1eadt phi\u00ean b\u1ea3n.listing_companies
nay \u0111\u01b0\u1ee3c cung c\u1ea5p th\u00eam kh\u1ea3 n\u0103ng l\u1ea5y danh s\u00e1ch c\u00f4ng ty ni\u00eam y\u1ebft t\u1eeb SSI/FiinTrade. Vi\u1ec7c n\u00e0y gi\u00fap ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 tham chi\u1ebfu m\u00e3 c\u00f4ng ty t\u1eeb m\u00e3 c\u1ed5 phi\u1ebfu \u0111\u1ec3 l\u1ea5y th\u00f4ng tin trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p \u0111\u1eb7c bi\u1ec7t FiinTrade s\u1eed d\u1ee5ng m\u00e3 n\u00e0y thay cho m\u00e3 c\u1ed5 phi\u1ebfu. V\u00ed d\u1ee5, thay v\u00ec d\u00f9ng m\u00e3 c\u1ed5 phi\u1ebfu BCM
g\u00e2y ra l\u1ed7i cho h\u00e0m, b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u00e3 c\u00f4ng ty t\u01b0\u01a1ng \u1ee9ng l\u00e0 BIDC
indices_listing
cho ph\u00e9p li\u1ec7t k\u00ea t\u1ea5t c\u1ea3 m\u00e3 ch\u1ec9 s\u1ed1 hi\u1ec7n c\u00f3 tr\u00ean s\u00e0n.financial_ratio_compare
cho ph\u00e9p so s\u00e1nh ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh c\u1ee7a m\u1ed9t danh s\u00e1ch c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu.financial_report
, fr_trade_heatmap
, market_top_mover
do SSI hi\u1ec7n t\u1ea1i \u0111\u00e3 g\u1ee1 b\u1ecf m\u1ecdi h\u1ea1n ch\u1ebf v\u1ec1 k\u1ef9 thu\u1eadt \u00e1p d\u1ee5ng cho bot th\u1ef1c hi\u1ec7n web scraping.\u1ee8ng d\u1ee5ng & T\u00edch h\u1ee3p
Chuy\u1ec3n \u0111\u1ed5i n\u1ec1n t\u1ea3ng t\u00e0i li\u1ec7u t\u1eeb Pretty-Docs sang MkDocs Matterial th\u00e2n thi\u1ec7n v\u00e0 nhi\u1ec1u t\u00ednh n\u0103ng h\u1eefu \u00edch h\u01a1n.
C\u1eadp nh\u1eadt m\u00f4 t\u1ea3 c\u00e1c h\u00e0m \u0111\u1ec3 ti\u1ec7n theo d\u00f5i bao g\u1ed3m:
Xoay DataFrame k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 \u0111\u1ec3 c\u00f3 th\u1ec3 hi\u1ec3n th\u1ecb \u0111\u1ea7y \u0111\u1ee7 t\u00ean c\u00e1c c\u1ed9t d\u1eef li\u1ec7u
Phi\u00ean b\u1ea3n: 0.2.2: \u0110\u01b0a t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb ch\u00ednh th\u1ee9c v\u00e0o phi\u00ean b\u1ea3n \u1ed5n \u0111\u1ecbnh, c\u1eadp nh\u1eadt h\u00e0m truy xu\u1ea5t gi\u00e1 l\u1ecbch s\u1eed
C\u1eadp nh\u1eadt h\u00e0m stock_historical_data
\u0111\u1ec3 tr\u1ea3 v\u1ec1 th\u00f4ng tin ch\u00ednh x\u00e1c
Lo\u1ea1i b\u1ecf b\u01b0\u1edbc t\u00ednh to\u00e1n nh\u00e2n ch\u1ec9 s\u1ed1 v\u00e0 m\u00e3 ph\u00e1i sinh v\u1edbi 1000 khi tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u. C\u00e1ch t\u00ednh n\u00e0y l\u00e0m sai l\u1ec7ch gi\u00e1 tr\u1ecb c\u1ee7a ch\u1ec9 s\u1ed1 v\u00e0 m\u00e3 ph\u00e1i sinh v\u00ec b\u1ea3n ch\u1ea5t gi\u00e1 tr\u1ecb OHLC n\u00e0y kh\u00e1c v\u1edbi gi\u00e1 c\u1ed5 phi\u1ebfu.
B\u1ed5 sung th\u00eam tham s\u1ed1 beautify, \u0111\u1eb7t gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 True \u0111\u1ec3 gi\u1eef nguy\u00ean c\u00e1ch nh\u00e2n 1000 cho gi\u00e1 c\u1ed5 phi\u1ebfu. Ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 chuy\u1ec3n v\u1ec1 False \u0111\u1ec3 gi\u1eef nguy\u00ean gi\u00e1 tr\u1ecb OHLC d\u1ea1ng th\u1eadp ph\u00e2n r\u00fat g\u1ecdn.
Ch\u00ednh th\u1ee9c \u0111\u01b0a c\u00e1c h\u00e0m v\u1ebd \u0111\u1ed3 th\u1ecb v\u00e0o phi\u00ean b\u1ea3n ch\u00ednh th\u1ee9c c\u1ee7a vnstock sau qu\u00e1 tr\u00ecnh th\u1eed nghi\u1ec7m
H\u00e0m candlestick_chart cho ph\u00e9p v\u1ebd \u0111\u1ed3 th\u1ecb n\u1ebfn c\u00f9ng c\u00e1c \u0111\u01b0\u1eddng trung b\u00ecnh \u0111\u1ed9ng, h\u1ed7 tr\u1ee3, kh\u00e1ng c\u1ef1 c\u01a1 b\u1ea3n.
H\u00e0m bollinger_bands_chart cho ph\u00e9p v\u1ebd \u0111\u1ed3 th\u1ecb n\u1ebfn (ho\u1eb7c \u0111\u01b0\u1eddng) k\u00e8m c\u00e1c d\u1ea3i Bollinger Bands. H\u00e0m n\u00e0y c\u1ea7n s\u1eed d\u1ee5ng k\u00e8m h\u00e0m bollinger_bands \u0111\u1ec3 chuy\u1ec3n \u0111\u1ed5i d\u1eef li\u1ec7u OHLC ti\u00eau chu\u1ea9n sang d\u1eef li\u1ec7u Bollinger Bands.
Thay \u0111\u1ed5i c\u1ea5u tr\u00fac th\u01b0 m\u1ee5c v\u00e0 t\u00e0i li\u1ec7u vnstock repo tr\u00ean Github
vnstock docs Phi\u00ean b\u1ea3n 1.1 s\u1eed d\u1ee5ng Pretty-Docs theme
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng v\u00e0 ra m\u1eaft phi\u00ean b\u1ea3n th\u1eed nghi\u1ec7m 1.0 cho trang t\u00e0i li\u1ec7u vnstock docs s\u1eed d\u1ee5ng pretty-docs theme.
"},{"location":"changes_log/#22-08-2023","title":"22-08-2023","text":"Ph\u00e2n lo\u1ea1i c\u00e1c t\u00ednh n\u0103ng c\u1ee7a vnstock trong file Demo Jupyter Notebook theo 5 nh\u00f3m ch\u00ednh:
Th\u1ecb tr\u01b0\u1eddng (Market Watch)
Trung t\u00e2m giao d\u1ecbch (Trading Center)
\u0110\u00e3 s\u1eeda l\u1ea1i file demo notebook \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00e1c h\u00e0m m\u1edbi.
Kh\u00f4i ph\u1ee5c gi\u00e1 \u0111\u01a1n v\u1ecb c\u1ee7a stock_historical_data t\u1eeb 1000 VND th\u00e0nh VND b\u1eb1ng c\u00e1ch nh\u00e2n v\u1edbi 1000.
H\u00e0m price_board \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt.
B\u1ed5 sung h\u00e0m m\u1edbi trong m\u00f4 \u0111un utils.py \u0111\u1ec3 tr\u00edch xu\u1ea5t gi\u00e1 tr\u1ecb ng\u00e0y th\u00e1ng theo \u0111\u1ecbnh d\u1ea1ng YYYY-mm-dd.
Ch\u00ednh th\u1ee9c h\u1ed7 tr\u1ee3 h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng b\u1eb1ng ti\u1ebfng Vi\u1ec7t cho t\u1ec7p th\u01b0 vi\u1ec7n th\u00f4ng qua file README.md, gi\u00fap th\u00fac \u0111\u1ea9y kh\u1ea3 n\u0103ng ti\u1ebfp c\u1eadn v\u1edbi vnstock cho ng\u01b0\u1eddi d\u00f9ng Vi\u1ec7t Nam.
"},{"location":"changes_log/#20-05-2023","title":"20-05-2023","text":"Gi\u1edbi thi\u1ec7u
Python l\u00e0 ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh \u0111a d\u1ee5ng, m\u00e3 ngu\u1ed3n m\u1edf. Trong l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh, Python \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u (data analysis), x\u00e2y d\u1ef1ng chi\u1ebfn l\u01b0\u1ee3c giao d\u1ecbch, thi\u1ebft k\u1ebf bot giao d\u1ecbch t\u1ef1 \u0111\u1ed9ng gi\u00fap lo\u1ea1i b\u1ecf y\u1ebfu t\u1ed1 c\u1ea3m x\u00fac c\u1ee7a con ng\u01b0\u1eddi trong vi\u1ec7c ra quy\u1ebft \u0111\u1ecbnh \u0111\u1ea7u t\u01b0 chuy\u00ean nghi\u1ec7p. Python c\u0169ng l\u00e0 ng\u00f4n ng\u1eef ch\u00ednh s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i cho c\u00e1c d\u1ef1 \u00e1n khoa h\u1ecdc d\u1eef li\u1ec7u (data science) nh\u01b0 m\u00f4 h\u00ecnh m\u00e1y h\u1ecdc (ML), tr\u00ed tu\u1ec7 nh\u00e2n t\u1ea1o (AI).
"},{"location":"course/#khoa-hoc-ang-trien-khai","title":"Kh\u00f3a h\u1ecdc \u0111ang tri\u1ec3n khai","text":"Thinh Vu @ LEarn Anything m\u1edf Kh\u00f3a h\u1ecdc Ph\u00e2n t\u00edch d\u1eef li\u1ec7u & t\u1ea1o bot giao d\u1ecbch ch\u1ee9ng kho\u00e1n v\u1edbi Python \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf ri\u00eang cho trader/nh\u00e0 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n.
B\u1eaft \u0111\u1ea7u t\u1eeb Kh\u00f3a 5 (K5), ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e0o t\u1ea1o Python \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng theo ki\u1ec3u \"tutorial\" gi\u00fap b\u00ecnh d\u00e2n h\u00f3a Python trong l\u0129nh v\u1ef1c x\u1eed l\u00fd d\u1eef li\u1ec7u v\u00e0 \u1ee9ng d\u1ee5ng v\u00e0o thu\u1eadt to\u00e1n giao d\u1ecbch ch\u1ee9ng kho\u00e1n.
"},{"location":"course/#tai-sao-khoa-hoc-ang-quan-tam","title":"T\u1ea1i sao kh\u00f3a h\u1ecdc \u0111\u00e1ng quan t\u00e2m?","text":"Gi\u1edbi thi\u1ec7u
B\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc K6 v\u00e0 \u0111\u1ed3ng th\u1eddi xem video ghi h\u00ecnh kh\u00f3a h\u1ecdc hi\u1ec7n t\u1ea1i (K5) c\u0169ng nh\u01b0 tham gia bu\u1ed5i h\u1ecdc tr\u1ef1c ti\u1ebfp ngay khi \u0111\u0103ng k\u00fd m\u00e0 kh\u00f4ng ph\u00e1t sinh th\u00eam chi ph\u00ed.
Trao \u0111\u1ed5i v\u1edbi Th\u1ecbnh
"},{"location":"course/#ai-nen-tham-gia-khoa-hoc","title":"Ai n\u00ean tham gia kh\u00f3a h\u1ecdc?","text":""},{"location":"course/#nghe-nghiep","title":"Ngh\u1ec1 nghi\u1ec7p","text":"Ghi ch\u00fa
N\u1ed9i dung kh\u00f3a h\u1ecdc \u0111\u01b0\u1ee3c chia th\u00e0nh 6 ph\u1ea7n ch\u00ednh (module) v\u1edbi n\u1ed9i dung chi ti\u1ebft t\u1eebng module \u0111\u01b0\u1ee3c m\u00f4 t\u1ea3 d\u01b0\u1edbi \u0111\u00e2y. N\u1ed9i dung l\u00fd thuy\u1ebft c\u1ee7a ch\u01b0\u01a1ng tr\u00ecnh s\u1ebd \u0111\u01b0\u1ee3c k\u1ebft h\u1ee3p v\u1edbi c\u00e1c b\u00e0i h\u1ecdc th\u1ef1c h\u00e0nh v\u00e0 h\u01b0\u1edbng d\u1eabn th\u1ef1c t\u1ebf b\u00e1m s\u00e1t c\u00e1c b\u01b0\u1edbc tri\u1ec3n khai ph\u00e2n t\u00edch & giao d\u1ecbch th\u1ef1c t\u1ebf.
1: T\u1ed5ng qu\u00e1t2: Thu th\u1eadp d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n3: B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu4: Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c5: T\u1ed1i \u01b0u thu\u1eadt to\u00e1n6: \u0110\u00f3ng g\u00f3i ch\u01b0\u01a1ng tr\u00ecnh "},{"location":"course/#cau-hoi-thuong-gap-faqs","title":"C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p (FAQs)","text":"V\u00ec sao ch\u1ecdn Python cho ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n?Python \u0111em l\u1ea1i nhi\u1ec1u l\u1ee3i \u00edch trong th\u1ef1c t\u1ebf s\u1eed d\u1ee5ng, \u0111\u1ed1i v\u1edbi l\u0129nh v\u1ef1c ch\u1ee9ng kho\u00e1n/\u0111\u1ea7u t\u01b0 t\u00e0i ch\u00ednh th\u00ec Python c\u00f3 nh\u1eefng \u01b0u \u0111i\u1ec3m sau:
Macbook
, Windows
, Linux
hay b\u1ea5t c\u1ee9 thi\u1ebft b\u1ecb n\u00e0o hi\u1ec7n nay. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y Python tr\u00ean Cloud qua Google Colab, Kaglle ho\u1eb7c ch\u1ea1y tr\u00ean m\u00e1y t\u00ednh c\u1ee7a m\u00ecnh t\u00f9y \u00fd. K\u1ec3 c\u1ea3 d\u00f9ng m\u00e1y t\u00ednh b\u1ea3ng/\u0111i\u1ec7n tho\u1ea1i c\u0169ng c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n th\u00f4ng qua Cloud. Tr\u1ea3i nghi\u1ec7m tr\u00ean t\u1ea5t c\u1ea3 thi\u1ebft b\u1ecb \u0111\u1ec1u \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng. \u0110i\u1ec1u n\u00e0y c\u00e1c \u1ee9ng d\u1ee5ng truy\u1ec1n th\u1ed1ng nh\u01b0 Amibroker, Excel kh\u00f4ng l\u00e0m \u0111\u01b0\u1ee3c ho\u1eb7c t\u00ednh n\u0103ng b\u1ecb gi\u1edbi h\u1ea1n \u1edf m\u1ed9t s\u1ed1 thi\u1ebft b\u1ecb c\u1ee5 th\u1ec3. Amibroker ch\u1ec9 ch\u1ea1y tr\u00ean Windows. Excel c\u00f3 t\u00ednh n\u0103ng kh\u00e1c nhau t\u00f9y v\u00e0o h\u1ec7 \u0111i\u1ec1u h\u00e0nh, kh\u00f4ng h\u1ed7 tr\u1ee3 Linux.Kh\u00f3a h\u1ecdc ch\u1ecdn m\u00f4i tr\u01b0\u1eddng s\u1eed d\u1ee5ng Python ti\u00eau chu\u1ea9n l\u00e0 Google Colab tr\u00ean Cloud cho gi\u1ea3ng d\u1ea1y v\u00e0 th\u1ef1c h\u00e0nh. To\u00e0n b\u1ed9 gi\u00e1o tr\u00ecnh \u0111\u01b0\u1ee3c bi\u00ean so\u1ea1n v\u1edbi \u0111\u1ecbnh d\u1ea1ng file Colab Notebook gi\u00fap b\u1ea1n ch\u1ea1y l\u1ec7nh \u0111\u1ec3 th\u1ea5y k\u1ebft qu\u1ea3 ngay l\u1eadp t\u1ee9c. Anh/ch\u1ecb c\u00f3 th\u1ec3 xem h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng Google Colab to\u00e0n t\u1eadp \u0111\u01b0\u1ee3c Th\u1ecbnh chia s\u1ebb t\u1ea1i \u0111\u00e2y. Gi\u00e1o tr\u00ecnh kh\u00f3a h\u1ecdc tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab
Google Colab l\u00e0 g\u00ec? L\u00e0m sao \u0111\u1ec3 s\u1eed d\u1ee5ng?Google Colab l\u00e0 d\u1ecbch v\u1ee5 \u0111\u00e1m m\u00e2y c\u1ee7a Google ph\u1ee5c v\u1ee5 cho Khoa h\u1ecdc d\u1eef li\u1ec7u. Google Colab \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong c\u1ed9ng \u0111\u1ed3ng v\u1ec1 tr\u00ed th\u00f4ng minh nh\u00e2n t\u1ea1o (AI), m\u00e1y h\u1ecdc (machine learning). G\u1ea7n \u0111\u00e2y nh\u1ea5t v\u1edbi s\u1ef1 ra \u0111\u1eddi c\u1ee7a c\u00e1c m\u00f4 h\u00ecnh AI t\u1ea1o \u1ea3nh, b\u1ea1n c\u0169ng s\u1ebd nghe \u0111\u1ebfn vi\u1ec7c s\u1eed d\u1ee5ng Colab \u0111\u1ec3 ch\u1ea1y m\u00f4 h\u00ecnh Stable Diffusion v\u1edbi c\u00e1c b\u1ea1n l\u00e0m c\u00f4ng vi\u1ec7c thi\u1ebft k\u1ebf (designer). Google Colab cho ph\u00e9p b\u1ea1n s\u1eed d\u1ee5ng t\u00e0i nguy\u00ean ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed v\u1edbi b\u1ed9 nh\u1edb RAM cao v\u00e0 dung l\u01b0\u1ee3ng l\u01b0u tr\u1eef t\u1ea1m th\u1eddi \u0111\u1ee7 l\u1edbn \u0111\u1ec3 v\u1eadn h\u00e0nh c\u00e1c d\u1ef1 \u00e1n v\u1ec1 AI.
Trong khu\u00f4n kh\u1ed5 l\u1edbp h\u1ecdc Python, ch\u00fang ta s\u1eed d\u1ee5ng Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng Python th\u1ef1c h\u00e0nh b\u1edfi t\u00ednh ti\u1ec7n l\u1ee3i v\u00e0 t\u00ednh n\u0103ng \u0111a d\u1ea1ng. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng Colab AI \u0111\u1ec3 h\u1ed7 tr\u1ee3 l\u1eadp tr\u00ecnh nhanh ch\u00f3ng v\u00e0 ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed (c\u00f3 gi\u1edbi h\u1ea1n).
S\u1eed d\u1ee5ng v\u00e0 chia s\u1ebb file v\u1edbi Google Colab r\u1ea5t \u0111\u01a1n gi\u1ea3n, t\u01b0\u01a1ng t\u1ef1 c\u00e1ch b\u1ea1n s\u1eed d\u1ee5ng \u1ee9ng d\u1ee5ng b\u1ea3ng t\u00ednh (Sheets) hay t\u00e0i li\u1ec7u (Docs) c\u1ee7a Google. Ngo\u00e0i ra Colab cho ph\u00e9p b\u1ea1n k\u1ebft n\u1ed1i v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi d\u1eef li\u1ec7u l\u01b0u tr\u1eef trong Google Drive c\u0169ng nh\u01b0 d\u1ecbch v\u1ee5 Google Cloud c\u1ee7a b\u1ea1n d\u1ec5 d\u00e0ng.
T\u00f4i mu\u1ed1n \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc. C\u1ea7n th\u1ef1c hi\u1ec7n nh\u01b0 th\u1ebf n\u00e0o?\u0110\u1ec3 \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc, anh/ch\u1ecb vui l\u00f2ng trao \u0111\u1ed5i tr\u1ef1c ti\u1ebfp v\u1edbi Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c gi\u1ea3i \u0111\u00e1p chi ti\u1ebft v\u1ec1 th\u00f4ng tin h\u1ecdc ph\u00ed, ch\u01b0\u01a1ng tr\u00ecnh h\u1ecdc, l\u1ed9 tr\u00ecnh v\u00e0 b\u1ea5t k\u1ef3 c\u00e2u h\u1ecfi n\u00e0o.
Sau khi th\u1ed1ng nh\u1ea5t v\u1ec1 m\u1ee9c h\u1ecdc ph\u00ed, m\u1ee5c ti\u00eau v\u00e0 k\u1ebf ho\u1ea1ch h\u1ecdc t\u1eadp, anh/ch\u1ecb s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c bi\u1ec3u m\u1eabu \u0111\u0103ng k\u00fd qua Google. Anh ch\u1ecb s\u1ebd gi\u00fap Th\u1ecbnh chia s\u1ebb m\u1ed9t s\u1ed1 th\u00f4ng tin c\u01a1 b\u1ea3n \u0111\u1ec3 ti\u1ec7n giao ti\u1ebfp, li\u00ean l\u1ea1c v\u00e0 m\u1ee5c ti\u00eau h\u1ecdc t\u1eadp \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 trong qu\u00e1 tr\u00ecnh h\u1ecdc t\u1eadp m\u1ed9t c\u00e1ch s\u00e2u s\u00e1t nh\u1ea5t.
Th\u00f4ng tin email anh/ch\u1ecb chia s\u1ebb \u0111\u01b0\u1ee3c d\u00f9ng \u0111\u1ec3 t\u1ea1o t\u00e0i kho\u1ea3n qua trang web h\u1ecdc t\u1eadp Learn Anything cho ph\u00e9p anh/ch\u1ecb truy c\u1eadp t\u00e0i nguy\u00ean h\u1ecdc t\u1eadp tr\u1ef1c tuy\u1ebfn bao g\u1ed3m: video, gi\u00e1o tr\u00ecnh, b\u00e0i t\u1eadp v\u00e0 \u0111\u00e1p \u00e1n c\u00f9ng c\u00e1c t\u00e0i nguy\u00ean h\u1ecdc t\u1eadp kh\u00e1c.
Chat qua Messenger
M\u00f4i tr\u01b0\u1eddng h\u1ecdc t\u1eadp \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf nh\u01b0 th\u1ebf n\u00e0o?Kh\u00f4ng gian h\u1ecdc t\u1eadp \u0111\u01b0\u1ee3c chia th\u00e0nh c\u00e1c nh\u00f3m ch\u00ednh sau \u0111\u00e2y:
Nh\u00f3m Telegram cho t\u1eebng kh\u00f3a h\u1ecdc: S\u1eed d\u1ee5ng l\u00e0m k\u00eanh trao \u0111\u1ed5i ch\u00ednh th\u1ee9c cho c\u00e1c t\u01b0\u01a1ng t\u00e1c l\u1edbp h\u1ecdc, h\u1ecfi \u0111\u00e1p, th\u00f4ng b\u00e1o, vv. C\u00e1c t\u00ednh n\u0103ng nh\u1eafn tin c\u1ea3nh b\u00e1o trong khu\u00f4n kh\u1ed5 l\u1edbp h\u1ecdc c\u0169ng s\u1ebd \u0111\u01b0\u1ee3c h\u01b0\u1edbng d\u1eabn \u0111\u1ec3 \u00e1p d\u1ee5ng v\u1edbi Telegram b\u1edfi t\u00ednh m\u1edf v\u00e0 ti\u1ec7n l\u1ee3i c\u1ee7a n\u00f3.
Microsoft Teams l\u00e0 c\u00f4ng c\u1ee5 h\u1ed9i th\u1ea3o tr\u1ef1c tuy\u1ebfn s\u1eed d\u1ee5ng \u0111\u1ec3 tham gia l\u1edbp h\u1ecdc tr\u1ef1c tuy\u1ebfn m\u1ed7i ch\u1ee7 nh\u1eadt h\u00e0ng tu\u1ea7n. C\u00f4ng c\u1ee5 n\u00e0y t\u01b0\u01a1ng t\u1ef1 nh\u01b0 Zoom hay Google Meets m\u00e0 anh/ch\u1ecb \u0111\u00e3 bi\u1ebft. \u0110\u1ec3 tham gia h\u1ecdc, anh/ch\u1ecb c\u00f3 th\u1ec3 m\u1edf link ngay trong tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam ph\u1ea7n m\u1ec1m tr\u00ean m\u00e1y t\u00ednh.
Google Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng/c\u00f4ng c\u1ee5 th\u1ef1c h\u00e0nh Python ti\u00eau chu\u1ea9n c\u1ee7a l\u1edbp h\u1ecdc. T\u1ea5t c\u1ea3 t\u00e0i li\u1ec7u gi\u00e1o tr\u00ecnh Python chi ti\u1ebft d\u01b0\u1edbi d\u1ea1ng s\u00e1ch gi\u00e1o khoa \u0111\u01b0\u1ee3c bi\u00ean so\u1ea1n b\u1eb1ng \u0111\u1ecbnh d\u1ea1ng Colab Notebook gi\u00fap b\u1ea1n h\u1ecdc v\u00e0 th\u1ef1c h\u00e0nh \u0111\u01a1n gi\u1ea3n, d\u1ec5 hi\u1ec3u.
Kh\u00f3a h\u1ecdc tr\u1ef1c tuy\u1ebfn LEarn Anything: l\u00e0 n\u01a1i \u0111\u1ec3 anh/ch\u1ecb truy c\u1eadp c\u00e1c t\u00e0i nguy\u00ean kh\u00f3a h\u1ecdc nh\u01b0 slide b\u00e0i gi\u1ea3ng, gi\u00e1o tr\u00ecnh, video, code m\u1eabu, vv v\u00e0 xem l\u1ea1i video c\u00e1c bu\u1ed5i h\u1ecdc \u0111\u00e3 qua. \u0110\u1ed1i v\u1edbi anh/ch\u1ecb kh\u00f4ng c\u00f3 \u0111i\u1ec1u ki\u1ec7n tham gia h\u1ecdc ngay t\u1eeb \u0111\u1ea7u th\u00ec \u0111\u00e2y l\u00e0 n\u01a1i m\u00ecnh xem l\u1ea1i c\u00e1c video bu\u1ed5i h\u1ecdc \u0111\u00e3 qua v\u00e0 ch\u1ee7 \u0111\u1ed9ng th\u1eddi gian h\u1ecdc khi c\u00f3 th\u1ec3.
K\u00eanh Youtube LEarn Anything: l\u00e0 n\u01a1i Th\u1ecbnh chia s\u1ebb c\u00e1c h\u01b0\u1edbng d\u1eabn, minh h\u1ecda tr\u1ef1c ti\u1ebfp qua video gi\u00fap anh/ch\u1ecb n\u1eafm b\u1eaft c\u00e1c kh\u00e1i ni\u1ec7m v\u00e0 th\u1ef1c h\u00e0nh m\u1ed9t c\u00e1ch ch\u00ednh x\u00e1c, d\u1ec5 hi\u1ec3u. H\u00e3y b\u1ea5m n\u00fat theo d\u00f5i \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00e1c n\u1ed9i dung m\u1edbi nh\u1ea5t.
Github thinh-vu v\u00e0 vnstock-hq Th\u1ecbnh chia s\u1ebb c\u00e1c d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf, ch\u01b0\u01a1ng tr\u00ecnh Python v\u00e0 gi\u00fap h\u1ecdc vi\u00ean l\u00e0m quen v\u1edbi c\u00f4ng c\u1ee5 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n n\u00e0y khi l\u1eadp tr\u00ecnh.
M\u1eb7c \u0111\u1ecbnh t\u00e0i kho\u1ea3n h\u1ecdc t\u1eadp c\u1ee7a anh/ch\u1ecb c\u00f3 gi\u00e1 tr\u1ecb trong 1 n\u0103m khi \u0111\u01b0\u1ee3c t\u1ea1o. \u0110i\u1ec1u n\u00e0y c\u0169ng khuy\u1ebfn kh\u00edch anh/ch\u1ecb th\u1ef1c s\u1ef1 ch\u00fa t\u00e2m v\u00e0o khai th\u00e1c nh\u1eefng n\u1ed9i dung m\u00ecnh \u0111\u00e3 tr\u1ea3 ph\u00ed \u0111\u1ec3 s\u1edf h\u1eefu. Ki\u1ebfn th\u1ef1c th\u1ef1c s\u1ef1 h\u1eefu d\u1ee5ng khi \u0111i v\u00e0o th\u1ef1c t\u1ebf ch\u1ee9 kh\u00f4ng ph\u1ea3i l\u01b0u trong kho. Do \u0111\u00f3 d\u00f9 c\u00f3 th\u1eddi gian truy c\u1eadp v\u00f4 h\u1ea1n n\u00f3 c\u0169ng tr\u1edf n\u00ean v\u00f4 gi\u00e1 tr\u1ecb.
T\u00f9y ch\u00ednh s\u00e1ch c\u1ee7a kh\u00f3a h\u1ecdc theo t\u1eebng th\u1eddi k\u1ef3 m\u00e0 vi\u1ec7c n\u00e0y c\u00f3 th\u1ec3 thay \u0111\u1ed5i, tuy nhi\u00ean anh/ch\u1ecb c\u00f3 th\u1ec3 nh\u1eafn Th\u1ecbnh \u0111\u1ec3 y\u00eau c\u1ea7u xem l\u1ea1i n\u1ed9i dung n\u1ebfu c\u1ea7n thi\u1ebft m\u00e0 kh\u00f4ng ph\u00e1t sinh th\u00eam ph\u00ed.
L\u1edbp h\u1ecdc tr\u1ef1c tuy\u1ebfn th\u00ec vi\u1ec7c th\u1ef1c h\u00e0nh di\u1ec5n ra nh\u01b0 th\u1ebf n\u00e0o?Anh/ch\u1ecb \u0111\u01b0\u1ee3c c\u1ecd x\u00e1t v\u1edbi ki\u1ebfn th\u1ee9c th\u1ef1c t\u1ebf v\u00e0 l\u00fd thuy\u1ebft qua m\u1ed7i b\u00e0i gi\u1ea3ng m\u1ed7i bu\u1ed5i h\u1ecdc. B\u00e0i t\u1eadp th\u1ef1c h\u00e0nh \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang kh\u00f3a h\u1ecdc tr\u1ef1c tuy\u1ebfn theo s\u00e1t n\u1ed9i dung m\u1ed7i bu\u1ed5i h\u1ecdc.
Anh/ch\u1ecb c\u1ea7n d\u00e0nh th\u1eddi gian tr\u1ed1ng trong tu\u1ea7n gi\u1eefa 2 bu\u1ed5i h\u1ecdc \u0111\u1ec3 thao t\u00e1c th\u1ef1c h\u00e0nh v\u00e0 gi\u1ea3i quy\u1ebft c\u00e1c b\u00e0i t\u1eadp \u0111\u1ecbnh h\u01b0\u1edbng trong n\u1ed9i dung th\u1ef1c h\u00e0nh. Vi\u1ec7c t\u1ef1 l\u00e0m b\u00e0i t\u1eadp gi\u00fap anh ch\u1ecb v\u1ee1 ra nhi\u1ec1u \u0111i\u1ec1u so v\u1edbi ch\u1ec9 \u0111\u1ecdc l\u00fd thuy\u1ebft v\u00e0 th\u1ef1c s\u1ef1 bi\u1ebfn ki\u1ebfn th\u1ee9c tr\u1edf th\u00e0nh m\u1ed9t ph\u1ea7n c\u1ee7a m\u00ecnh.
Anh/ch\u1ecb s\u1ebd g\u1eedi l\u1ea1i ph\u1ea7n b\u00e0i t\u1eadp \u0111\u00e3 ho\u00e0n th\u00e0nh cho email c\u1ee7a Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c nh\u1eadn x\u00e9t v\u00e0 s\u1eeda b\u00e0i (n\u1ebfu c\u1ea7n thi\u1ebft). \u0110\u00e1p \u00e1n m\u1eabu c\u0169ng \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang kh\u00f3a h\u1ecdc \u0111\u1ec3 c\u1ea3 l\u1edbp c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 \u0111\u1ed1i chi\u1ebfu v\u1edbi c\u00e1ch l\u00e0m c\u1ee7a m\u00ecnh. Vi\u1ec7c xem b\u00e0i t\u1eadp th\u1ef1c h\u00e0nh c\u1ee7a anh/ch\u1ecb v\u00e0 nh\u1eadn x\u00e9t gi\u00fap Th\u1ecbnh n\u1eafm \u0111\u01b0\u1ee3c t\u00ecnh h\u00ecnh h\u1ecdc t\u1eadp v\u00e0 m\u1ee9c \u0111\u1ed9 hi\u1ec3u b\u00e0i c\u1ee7a anh/ch\u1ecb \u0111\u1ec3 h\u1ed7 tr\u1ee3. \u0110\u00e2y c\u0169ng l\u00e0 c\u00e1ch \"c\u1ea7m tay ch\u1ec9 vi\u1ec7c\" tuy kh\u00f4ng ng\u1ed3i c\u00f9ng nhau nh\u01b0ng t\u01b0 duy chung 1 h\u01b0\u1edbng r\u1ea5t hi\u1ec7u qu\u1ea3.
T\u00f4i mu\u1ed1n s\u1edf h\u1eefu ki\u1ebfn th\u1ee9c nhanh h\u01a1n, c\u00f3 c\u00e1ch n\u00e0o thay v\u00ec ph\u1ea3i tr\u1ea3i qua 2 th\u00e1ng r\u01b0\u1ee1i?Th\u1ecbnh r\u1ea5t vui khi nh\u1eadn \u0111\u01b0\u1ee3c th\u1eafc m\u1eafc n\u00e0y c\u1ee7a anh/ch\u1ecb. . L\u1ed9 tr\u00ecnh h\u1ecdc hi\u1ec7n t\u1ea1i tr\u1ea3i qua 10 bu\u1ed5i h\u1ecdc \u0111\u01b0\u1ee3c chia th\u00e0nh 10 tu\u1ea7n b\u1edfi l\u01b0\u1ee3ng ki\u1ebfn th\u1ee9c t\u01b0\u01a1ng \u0111\u1ed1i bao qu\u00e1t v\u00e0 \u0111\u1ee7 s\u00e2u \u0111\u1ec3 anh/ch\u1ecb s\u1edf h\u1eefu \u0111\u1ee7 ki\u1ebfn th\u1ee9c/k\u1ef9 n\u0103ng khi ho\u00e0n th\u00e0nh do \u0111\u00f3 1 bu\u1ed5i/tu\u1ea7n l\u00e0 ph\u00f9 h\u1ee3p theo kinh nghi\u1ec7m t\u1ed5 ch\u1ee9c l\u1edbp h\u1ecdc \u0111\u1ebfn hi\u1ec7n t\u1ea1i.
Anh ch\u1ecb c\u00f3 th\u1ec3 \u0111\u1ea9y nhanh t\u1ed1c \u0111\u1ed9 h\u1ecdc b\u1eb1ng c\u00e1ch y\u00eau c\u1ea7u Th\u1ecbnh m\u1edf truy c\u1eadp \u0111\u1ec3 xem video ghi h\u00ecnh c\u1ee7a c\u00e1c kh\u00f3a tr\u01b0\u1edbc n\u1ebfu c\u00f3 th\u1eddi gian v\u00e0 c\u00f3 b\u1eaft k\u1ecbp ki\u1ebfn th\u1ee9c t\u1ed1t.
\"Good things take time\" - Nh\u1eefng \u0111i\u1ec1u t\u1ed1t \u0111\u1eb9p th\u01b0\u1eddng c\u1ea7n nhi\u1ec1u th\u1eddi gian
Anh l\u1edbn tu\u1ed5i r\u1ed3i c\u00f3 tham gia h\u1ecdc \u0111\u01b0\u1ee3c kh\u00f4ng?Ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u1edbi Python kh\u00f4ng y\u00eau c\u1ea7u m\u1ee9c \u0111\u1ed9 chuy\u00ean nghi\u1ec7p cao nh\u01b0 l\u1eadp tr\u00ecnh \u1ee9ng d\u1ee5ng. Tuy nhi\u00ean \u0111\u1ec3 tr\u1edf n\u00ean th\u00e0nh th\u1ea1o v\u1eabn y\u00eau c\u1ea7u c\u00f3 nh\u1eefng ki\u1ebfn th\u1ee9c n\u1ec1n t\u1ed1t \u0111\u1eb7c bi\u1ec7t l\u00e0 l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh/ch\u1ee9ng kho\u00e1n trong kh\u00f3a h\u1ecdc n\u00e0y.
C\u00e1c ki\u1ebfn th\u1ee9c v\u1ec1 d\u1eef li\u1ec7u, l\u1eadp tr\u00ecnh \u0111\u1ec1u c\u00f3 th\u1ec3 h\u1ecdc v\u00e0 r\u00e8n luy\u1ec7n \u0111\u01b0\u1ee3c t\u00f9y t\u1ed1c \u0111\u1ed9 hi\u1ec3u c\u1ee7a m\u1ed7i ng\u01b0\u1eddi m\u00e0 y\u00eau c\u1ea7u th\u1eddi gian nghi\u00ean c\u1ee9u d\u00e0i hay ng\u1eafn.
N\u1ebfu anh quan t\u00e2m t\u1edbi kh\u00f3a h\u1ecdc v\u00e0 c\u00f2n e ng\u1ea1i v\u1ec1 \u0111\u1ed9 tu\u1ed5i v\u00e0 s\u1ee3 m\u00ecnh kh\u00f3 b\u1eaft k\u1ecbp th\u00ec h\u00e3y trao \u0111\u1ed5i tr\u1ef1c ti\u1ebfp v\u1edbi Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c t\u01b0 v\u1ea5n v\u00e0 hi\u1ec3u r\u00f5 m\u1ee9c \u0111\u1ed9 ph\u00f9 h\u1ee3p c\u1ee7a m\u00ecnh tr\u01b0\u1edbc khi \u0111\u0103ng k\u00fd kh\u00f3a h\u1ecdc.
Ch\u1ec9 c\u1ea7n anh/ch\u1ecb c\u00f3 tinh th\u1ea7n h\u1ecdc t\u1eadp b\u1ec1n b\u1ec9 v\u00e0 c\u1ed1 g\u1eafng, Th\u1ecbnh lu\u00f4n s\u1eb5n s\u00e0ng h\u1ed7 tr\u1ee3 v\u00e0 gi\u1ea3i th\u00edch \u0111\u1ec3 anh/ch\u1ecb b\u1eaft k\u1ecbp c\u00e1c ki\u1ebfn th\u1ee9c trong ph\u1ea1m vi l\u1edbp h\u1ecdc v\u00e0 \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf.
Th\u1ef1c t\u1ebf kh\u00f3a h\u1ecdc n\u00e0y \u0111\u00e3 ti\u1ebfp nh\u1eadn c\u00e1c anh l\u1edbn tu\u1ed5i, ng\u01b0\u1eddi l\u1edbn nh\u1ea5t sinh n\u0103m 1963 v\u00e0 nhi\u1ec1u U50 kh\u00e1c. C\u00e1c anh c\u00f3 kinh nghi\u1ec7m l\u00e0m vi\u1ec7c l\u00e2u n\u0103m, ti\u1ebfp c\u1eadn c\u00f4ng ngh\u1ec7 t\u1ed1t v\u00e0 cam k\u1ebft h\u1ecdc t\u1eadp m\u1ea1nh m\u1ebd n\u00ean ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 b\u1eaft k\u1ecbp ki\u1ebfn th\u1ee9c trong l\u1edbp h\u1ecdc.
Kh\u00f3a h\u1ecdc c\u00f3 c\u1ea5p ch\u1ee9ng ch\u1ec9 khi ho\u00e0n th\u00e0nh kh\u00f4ng?Kh\u00f3a h\u1ecdc ch\u00fa tr\u1ecdng v\u00e0o vi\u1ec7c ti\u1ebfp c\u1eadn v\u00e0 l\u00e0m quen v\u1edbi l\u1eadp tr\u00ecnh v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u b\u1eb1ng Python mang t\u00ednh \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf cao gi\u00fap \u0111\u1ea3m b\u1ea3o h\u1ecdc vi\u00ean c\u00f3 th\u1ec3 s\u1edf h\u1eefu k\u1ef9 n\u0103ng c\u1ea7n thi\u1ebft khi ho\u00e0n th\u00e0nh kh\u00f3a h\u1ecdc.
Kh\u00f3a h\u1ecdc ch\u1ec9 ghi nh\u1eadn s\u1ef1 tham gia v\u00e0 ho\u00e0n th\u00e0nh kh\u00f3a h\u1ecdc mang t\u00ednh kh\u00edch l\u1ec7 h\u01a1n l\u00e0 \u00fd ngh\u0129a v\u1ec1 h\u1ecdc thu\u1eadt hay ph\u00e1p l\u00fd c\u1ee7a t\u1ed5 ch\u1ee9c \u0111\u00e0o t\u1ea1o. N\u1ebfu b\u1ea1n th\u1ef1c s\u1ef1 c\u00f3 nhu c\u1ea7u \u0111\u01b0\u1ee3c c\u1ea5p ch\u1ee9ng ch\u1ec9 \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng cho qu\u00e1 tr\u00ecnh \u0111i l\u00e0m th\u00ec n\u00ean c\u00e2n nh\u1eafc y\u1ebfu t\u1ed1 n\u00e0y khi tham gia kh\u00f3a h\u1ecdc. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 tham gia kh\u00f3a h\u1ecdc \u0111\u1ec3 t\u0103ng t\u00ednh tr\u1ea3i nghi\u1ec7m th\u1ef1c t\u1ebf v\u00e0 b\u1ed3i d\u01b0\u1ee1ng ki\u1ebfn th\u1ee9c sau \u0111\u00f3 \u00f4n luy\u1ec7n thi ch\u1ee9ng ch\u1ec9 v\u1edbi ti\u00eau chu\u1ea9n ng\u00e0nh \u0111\u01b0\u1ee3c ch\u1ea5p nh\u1eadn r\u1ed9ng r\u00e3i th\u00f4ng qua Microsoft Learn, Coursera, Free Code Camp, vv.
"},{"location":"course/#chia-se-cua-hoc-vien","title":"Chia s\u1ebb c\u1ee7a h\u1ecdc vi\u00ean","text":"Thanh Nguy\u1ec5nD\u0169ng Nguy\u1ec5nThanh L\u00eaTr\u01b0\u1eddng H\u00e0Trang Nguy\u1ec5nChi VuBonnie \u0110inh
Thanh Nguy\u1ec5n @ Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n | HCM
Sau kho\u00e1 h\u1ecdc em c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u1ecbnh gi\u00e1 h\u00e0ng lo\u1ea1t, c\u00f3 th\u1ec3 bi\u1ebft \u0111\u01b0\u1ee3c c\u00f4ng ty n\u00e0o c\u00f3 c\u00e1i g\u00ec m\u1edbi. Bi\u1ebft c\u00e1i m\u1edbi n\u00e0y l\u00e0 theo ki\u1ec3u h\u00e0ng lo\u1ea1t. C\u00e1i \u0111\u00f3 m\u00e0 ng\u1ed3i soi t\u1eebng b\u00e1o c\u00e1o th\u00ec t\u1edbi t\u1ebft C\u00f4ng g\u00f4!
D\u0169ng Nguy\u1ec5n @ Nh\u00e0 qu\u1ea3n l\u00fd qu\u1ef9 | H\u00e0 N\u1ed9i
Ch\u1ec9 s\u1ee3 ko h\u1ecdc th\u00f4i, ch\u1ee9 c\u1ee9 \u0111i l\u00e0 s\u1ebd \u0111\u1ebfn. C\u00f3 em d\u1eabn \u0111\u01b0\u1eddng r\u1ed3i ch\u1ee9 a t\u1ef1 m\u00f2 m\u1eabm ch\u1eafc nhanh c\u0169ng ph\u1ea3i n\u1eeda n\u0103m. H\u1ecdc ph\u00ed cao ch\u00fat nh\u01b0ng anh th\u1ea5y em r\u1ea5t chuy\u00ean nghi\u1ec7p, l\u01b0\u1ee3ng ki\u1ebfn th\u1ee9c cung c\u1ea5p nhi\u1ec1u. C\u0169ng \u0111\u00e1ng gi\u00e1
Thanh L\u00ea @ Nh\u00e0 \u0111\u1ea7u t\u01b0 chuy\u00ean nghi\u1ec7p | H\u00e0 N\u1ed9i
Anh th\u1ea5y em h\u1ecdc kinh t\u1ebf, marketing ra r\u1ed3i l\u00e0m c\u00e1i n\u00e0y th\u00ec th\u1eadt \u0111am m\u00ea v\u00e0 th\u1ef1c t\u1ebf m\u1edbi c\u00f3 \u0111\u01b0\u1ee3c nh\u01b0 n\u00e0y, c\u00f3 g\u00ec em truy\u1ec1n \u0111am m\u00ea cho b\u1ea1n nh\u00e0 anh v\u1edbi nh\u00e9.
Anh Thanh sinh n\u0103m 1978 v\u00e0 con g\u00e1i 19 tu\u1ed5i \u0111ang h\u1ecdc n\u0103m nh\u1ea5t t\u1ea1i \u0110H Kinh T\u1ebf Qu\u1ed1c D\u00e2n, H\u00e0 N\u1ed9i c\u00f9ng tham gia kh\u00f3a h\u1ecdc. C\u00e2u chuy\u1ec7n v\u1ec1 anh \u0111\u01b0\u1ee3c chia s\u1ebb t\u00e0i b\u00e0i vi\u1ebft tr\u00ean trang c\u00e1 nh\u00e2n c\u1ee7a Th\u1ecbnh.
Tr\u01b0\u1eddng H\u00e0 @ Ng\u00e2n h\u00e0ng BIDV, H\u00e0 N\u1ed9i
Tr\u01b0\u1edbc m\u00ecnh c\u00f3 h\u1ecdc ch\u1ee9ng ch\u1ec9 qu\u1ea3n l\u00fd r\u1ee7i ro FRM, c\u00f3 kha kh\u00e1 \u00fd t\u01b0\u1edfng v\u1ec1 \u0111\u1ea7u t\u01b0 v\u00e0 trading nh\u01b0ng b\u1ecb v\u01b0\u1edbng m\u1ea5t ph\u1ea7n tri\u1ec3n khai gi\u1edd h\u1ecdc th\u00ec m\u1edbi t\u1ef1 tin \u0111\u1ec3 l\u00e0m \u0111\u01b0\u1ee3c.
Trang Nguy\u1ec5n - Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n, x\u00e2y d\u1ef1ng bot ph\u00e1i sinh, \u0110\u1ed3ng Nai
Th\u1ecbnh chia s\u1ebb r\u1ea5t nhi\u1ec7t t\u00ecnh chi ti\u1ebft v\u1ec1 c\u00e1ch requests webscaping. H\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 pandas. Nhi\u1ec7t t\u00ecnh h\u1ed7 tr\u1ee3 1 k\u00e8m 1. M\u00ecnh th\u00edch nh\u1ea5t c\u00e1ch request c\u00e0o d\u1eef li\u1ec7u tr\u00ean web v\u1ec1 python m\u00e0 Th\u1ecbnh chia s\u1ebb.
Chi V\u0169 - Marketing Solution @ Tiktok | HCM
C\u1ea3m \u01a1n Th\u1ecbnh nhi\u1ec1u, c\u00e1c ki\u1ebfn th\u1ee9c trong kho\u00e1 kh\u00e1 nhi\u1ec1u nh\u01b0ng \u0111\u01b0\u1ee3c s\u1eafp x\u1ebfp c\u00f4 \u0111\u1ecdng, t\u1edb h\u1ecdc xong th\u1ea5y t\u1ef1 tin khi nh\u00ecn d\u1eef li\u1ec7u h\u01a1n h\u1eb3n kaka.
Th\u00fay \u0110inh - Data Analayst @ Imerys, France
Con \u0111\u01b0\u1eddng chuy\u1ec3n ng\u00e0nh d\u00e0i gh\u00ea, m\u00e0 b\u01b0\u1edbc ch\u00e2n \u0111\u1ea7u ti\u00ean l\u00e0 v\u00e0o l\u1edbp Python c\u1ee7a Th\u1ecbnh :))
\u0110\u00e2y l\u00e0 chia s\u1ebb c\u1ee7a Th\u00fay v\u00e0 c\u0169ng l\u00e0 tin r\u1ea5t vui t\u1eeb b\u1ea1n v\u00ec \u0111\u00e3 ch\u1ecdn \u0111\u01b0\u1ee3c c\u00f4ng vi\u1ec7c m\u00ecnh y\u00eau th\u00edch t\u1ea1i Ph\u00e1p.
"},{"location":"disclaimer/","title":"Mi\u1ec5n tr\u1eeb tr\u00e1ch nhi\u1ec7m","text":""},{"location":"disclaimer/#oi-voi-nguoi-dung","title":"\u0110\u1ed1i v\u1edbi ng\u01b0\u1eddi d\u00f9ng","text":"Quan \u0111i\u1ec3m ph\u00e1t tri\u1ec3n s\u1ea3n ph\u1ea9m
vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n nh\u1eb1m m\u1ee5c \u0111\u00edch cung c\u1ea5p c\u00e1c c\u00f4ng c\u1ee5 nghi\u00ean c\u1ee9u \u0111\u01a1n gi\u1ea3n v\u00e0 mi\u1ec5n ph\u00ed, nh\u1eb1m gi\u00fap ng\u01b0\u1eddi nghi\u00ean c\u1ee9u ti\u1ebfp c\u1eadn v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c cung c\u1ea5p ph\u1ee5 thu\u1ed9c v\u00e0o ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u, do \u0111\u00f3, khi s\u1eed d\u1ee5ng, b\u1ea1n c\u1ea7n th\u1eadn tr\u1ecdng v\u00e0 c\u00e2n nh\u1eafc.
\ud83d\udcb0 Trong b\u1ea5t k\u1ef3 tr\u01b0\u1eddng h\u1ee3p n\u00e0o, ng\u01b0\u1eddi s\u1eed d\u1ee5ng ho\u00e0n to\u00e0n ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u1ec1 quy\u1ebft \u0111\u1ecbnh s\u1eed d\u1ee5ng d\u1eef li\u1ec7u tr\u00edch xu\u1ea5t t\u1eeb vnstock v\u00e0 ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u1edbi b\u1ea5t k\u1ef3 t\u1ed5n th\u1ea5t n\u00e0o c\u00f3 th\u1ec3 ph\u00e1t sinh. B\u1ea1n n\u00ean t\u1ef1 m\u00ecnh \u0111\u1ea3m b\u1ea3o t\u00ednh ch\u00ednh x\u00e1c v\u00e0 \u0111\u00e1ng tin c\u1eady c\u1ee7a d\u1eef li\u1ec7u tr\u01b0\u1edbc khi s\u1eed d\u1ee5ng ch\u00fang. M\u00e3 ngu\u1ed3n m\u1edf c\u1ee7a d\u1ef1 \u00e1n cho ph\u00e9p b\u1ea1n x\u00e1c th\u1ef1c th\u00f4ng tin v\u00e0 qu\u00e1 tr\u00ecnh bi\u1ebfn \u0111\u1ed5i \u0111\u1ec3 tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u cu\u1ed1i c\u00f9ng.
Vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n v\u00e0 quy\u1ebft \u0111\u1ecbnh \u0111\u1ea7u t\u01b0 l\u00e0 ho\u1ea1t \u0111\u1ed9ng c\u00f3 r\u1ee7i ro v\u00e0 c\u00f3 th\u1ec3 g\u00e2y m\u1ea5t m\u00e1t t\u00e0i s\u1ea3n. B\u1ea1n n\u00ean t\u00ecm ki\u1ebfm l\u1eddi khuy\u00ean t\u1eeb c\u00e1c chuy\u00ean gia t\u00e0i ch\u00ednh v\u00e0 tu\u00e2n th\u1ee7 c\u00e1c quy \u0111\u1ecbnh ph\u00e1p lu\u1eadt v\u1ec1 ch\u1ee9ng kho\u00e1n t\u1ea1i Vi\u1ec7t Nam v\u00e0 qu\u1ed1c t\u1ebf khi tham gia v\u00e0o ho\u1ea1t \u0111\u1ed9ng giao d\u1ecbch ch\u1ee9ng kho\u00e1n.
Xin l\u01b0u \u00fd r\u1eb1ng vnstock kh\u00f4ng ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 tr\u00e1ch nhi\u1ec7m ph\u00e1p l\u00fd n\u00e0o \u0111\u1ed1i v\u1edbi b\u1ea5t k\u1ef3 t\u1ed5n th\u1ea5t ho\u1eb7c thi\u1ec7t h\u1ea1i n\u00e0o ph\u00e1t sinh t\u1eeb vi\u1ec7c s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y.
Vi\u1ec7c truy xu\u1ea5t d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t th\u00f4ng qua c\u00e1c v\u00f2ng l\u1eb7p ho\u1eb7c ch\u01b0\u01a1ng tr\u00ecnh g\u1eedi y\u00eau c\u1ea7u (request) h\u00e0ng lo\u1ea1t trong th\u1eddi gian ng\u1eafn \u0111\u1ebfn c\u01a1 s\u1edf d\u1eef li\u1ec7u c\u00f9a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u kh\u00f4ng \u0111\u01b0\u1ee3c khuy\u1ebfn kh\u00edch. Ng\u01b0\u1eddi d\u00f9ng c\u1ea7n \u00fd th\u1ee9c \u0111\u01b0\u1ee3c h\u00e0nh \u0111\u1ed9ng c\u1ee7a m\u00ecnh \u0111\u1ec3 tr\u00e1nh g\u00e2y t\u1ed5n th\u1ea5t \u0111\u1ebfn h\u1ec7 th\u1ed1ng c\u1ee7a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u v\u00e0 li\u00ean quan \u0111\u1ebfn c\u00e1c r\u1ee7i ro ph\u00e1p l\u00fd li\u00ean quan, b\u1edfi ranh gi\u1edbi c\u1ee7a vi\u1ec7c truy c\u1eadp d\u1eef li\u1ec7u v\u00e0 t\u1ea1o ra m\u1ed9t cu\u1ed9c t\u1ea5n c\u00f4ng t\u1eeb ch\u1ed1i truy c\u1eadp t\u1edbi m\u00e1y ch\u1ee7 c\u1ee7a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u l\u00e0 t\u01b0\u01a1ng \u0111\u1ed1i mong manh.
"},{"location":"disclaimer/#oi-voi-cong-ty-chung-khoan-nguon-cap-du-lieu","title":"\u0110\u1ed1i v\u1edbi c\u00f4ng ty ch\u1ee9ng kho\u00e1n, ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u","text":"Quan \u0111i\u1ec3m thi\u1ebft k\u1ebf
\ud83d\udc31\u200d\ud83d\udc64 vnstock \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf ho\u00e0n to\u00e0n cho m\u1ee5c \u0111\u00edch ph\u00e2n t\u00edch v\u00e0 th\u1ef1c h\u00e0nh nghi\u00ean c\u1ee9u \u0111\u1ea7u t\u01b0. M\u1ecdi h\u00ecnh th\u1ee9c s\u1eed d\u1ee5ng kh\u00f4ng \u0111\u00fang m\u1ee5c \u0111\u00edch ho\u1eb7c vi\u1ec7c s\u1eed d\u1ee5ng tr\u00e1i ph\u00e9p th\u01b0 vi\u1ec7n v\u1edbi m\u1ee5c \u0111\u00edch x\u1ea5u nh\u01b0 t\u1ea5n c\u00f4ng public API hay g\u00e2y h\u1ea1i cho h\u1ec7 th\u1ed1ng th\u00f4ng qua t\u1eeb ch\u1ed1i truy c\u1eadp ho\u1eb7c c\u00e1c h\u00e0nh \u0111\u1ed9ng t\u01b0\u01a1ng t\u1ef1, ho\u00e0n to\u00e0n n\u1eb1m ngo\u00e0i ph\u1ea1m vi s\u1eed d\u1ee5ng d\u1ef1 \u0111\u1ecbnh v\u00e0 kh\u00f4ng thu\u1ed9c tr\u00e1ch nhi\u1ec7m c\u1ee7a nh\u00f3m ph\u00e1t tri\u1ec3n.
Nh\u1eadn th\u1ee9c \u0111\u01b0\u1ee3c nh\u1eefng r\u1ee7i ro h\u1ec7 th\u1ed1ng ti\u1ec1m t\u00e0ng, vnstock ch\u1ec9 ch\u00ednh th\u1ee9c cung c\u1ea5p c\u00e1c h\u00e0m truy xu\u1ea5t d\u1eef li\u1ec7u ri\u00eang l\u1ebb, vi\u1ec7c s\u1eed d\u1ee5ng k\u1ebft h\u1ee3p c\u00e1c h\u00e0m \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t g\u00e2y t\u1ed5n th\u1ea5t \u0111\u1ebfn h\u1ec7 th\u1ed1ng c\u1ee7a c\u00f4ng ty ch\u1ee9ng kho\u00e1n/ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u n\u1eb1m ngo\u00e0i ph\u1ea1m vi ch\u00fang t\u00f4i c\u00f3 th\u1ec3 ki\u1ec3m so\u00e1t.
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/","title":"Tr\u00edch d\u1eabn & gi\u1ea5y ph\u00e9p","text":""},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#trich-dan","title":"Tr\u00edch d\u1eabn","text":"Khi b\u1ea1n s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m vnstock trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh, h\u00e3y tu\u00e2n th\u1ee7 c\u00e1c h\u01b0\u1edbng d\u1eabn v\u1ec1 Tr\u00edch d\u1eabn (Cite) d\u01b0\u1edbi \u0111\u00e2y:
N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng d\u1eef li\u1ec7u ho\u1eb7c m\u00e3 ngu\u1ed3n c\u1ee7a Vnstock trong d\u1ef1 \u00e1n/b\u00e0i vi\u1ebft/video c\u1ee7a m\u00ecnh, xin vui l\u00f2ng cung c\u1ea5p tr\u00edch d\u1eabn (cite) t\u1edbi d\u1ef1 \u00e1n Vnstock. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 v\u00ed d\u1ee5 tr\u00edch d\u1eabn m\u1eabu:
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c l\u1ea5y t\u1eeb Vnstock - g\u00f3i ph\u1ea7n m\u1ec1m Python ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam. (thinh-vu @ Github, Copyright (c) 2022).\n
Tr\u00edch d\u1eabn cho m\u00e3 ngu\u1ed3n:
M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c l\u1ea5y t\u1eeb Vnstock - g\u00f3i ph\u1ea7n m\u1ec1m Python ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam. (thinh-vu @ Github, Copyright (c) 2022).\n
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#giay-phep","title":"Gi\u1ea5y ph\u00e9p","text":"Vnstock \u0111\u01b0\u1ee3c c\u1ea5p ph\u00e9p theo Gi\u1ea5y ph\u00e9p MIT. N\u1ed9i dung c\u1ee7a gi\u1ea5y ph\u00e9p nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y, v\u00e0 th\u1ec3 hi\u1ec7n trong file LICENSE.
Khi s\u1eed d\u1ee5ng Vnstock trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh, b\u1ea1n ph\u1ea3i tu\u00e2n th\u1ee7 v\u00e0 gi\u1eef nguy\u00ean gi\u1ea5y ph\u00e9p MIT c\u1ee7a Vnstock. \u0110\u1ed3ng th\u1eddi, h\u00e3y ch\u1eafc ch\u1eafn r\u1eb1ng b\u1ea1n \u0111\u00e3 bao g\u1ed3m t\u00ean t\u00e1c gi\u1ea3 v\u00e0 gi\u1ea5y ph\u00e9p trong d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n.
L\u01b0u \u00fd: Vnstock l\u00e0 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf, do \u0111\u00f3 vi\u1ec7c tu\u00e2n th\u1ee7 gi\u1ea5y ph\u00e9p v\u00e0 tr\u00edch d\u1eabn \u0111\u00f3ng vai tr\u00f2 quan tr\u1ecdng trong vi\u1ec7c h\u1ed7 tr\u1ee3 v\u00e0 duy tr\u00ec c\u1ed9ng \u0111\u1ed3ng ngu\u1ed3n m\u1edf.
C\u1ea3m \u01a1n b\u1ea1n \u0111\u00e3 s\u1eed d\u1ee5ng Vnstock v\u00e0 tu\u00e2n th\u1ee7 c\u00e1c h\u01b0\u1edbng d\u1eabn Tr\u00edch d\u1eabn v\u00e0 Gi\u1ea5y ph\u00e9p n\u00e0y. N\u1ebfu b\u1ea1n c\u00f3 b\u1ea5t k\u1ef3 c\u00e2u h\u1ecfi ho\u1eb7c g\u00f3p \u00fd n\u00e0o, xin vui l\u00f2ng li\u00ean h\u1ec7 v\u1edbi t\u00f4i qua m\u1ee5c Th\u1ea3o lu\u1eadn c\u1ee7a repo Github n\u00e0y ho\u1eb7c nh\u1eafn tin tr\u1ef1c ti\u1ebfp.
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#tieng-viet","title":"Ti\u1ebfng Vi\u1ec7t","text":"B\u1ea3n quy\u1ec1n (c) 2022 Thinh Vu | thinh-vu @ Github | MIT\n\n\u0110\u01b0\u1ee3c c\u1ea5p ph\u00e9p theo quy\u1ec1n t\u1ef1 do, mi\u1ec5n ph\u00ed, cho b\u1ea5t k\u1ef3 c\u00e1 nh\u00e2n n\u00e0o nh\u1eadn \u0111\u01b0\u1ee3c m\u1ed9t b\u1ea3n sao c\u1ee7a ph\u1ea7n m\u1ec1m n\u00e0y v\u00e0 c\u00e1c t\u1ec7p t\u00e0i li\u1ec7u li\u00ean quan (g\u1ecdi chung l\u00e0 \"Ph\u1ea7n m\u1ec1m\"), \u0111\u1ec3 s\u1eed d\u1ee5ng Ph\u1ea7n m\u1ec1m m\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 h\u1ea1n ch\u1ebf n\u00e0o, bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n quy\u1ec1n s\u1eed d\u1ee5ng, sao ch\u00e9p, s\u1eeda \u0111\u1ed5i, h\u1ee3p nh\u1ea5t, xu\u1ea5t b\u1ea3n, ph\u00e2n ph\u1ed1i, c\u1ea5p ph\u00e9p l\u1ea1i v\u00e0/ho\u1eb7c b\u00e1n c\u00e1c b\u1ea3n sao c\u1ee7a Ph\u1ea7n m\u1ec1m, v\u00e0 cho ph\u00e9p nh\u1eefng ng\u01b0\u1eddi nh\u1eadn Ph\u1ea7n m\u1ec1m \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o Ph\u1ea7n m\u1ec1m n\u00e0y, tu\u00e2n th\u1ee7 c\u00e1c \u0111i\u1ec1u ki\u1ec7n sau \u0111\u00e2y:\n\nTh\u00f4ng b\u00e1o b\u1ea3n quy\u1ec1n tr\u00ean v\u00e0 th\u00f4ng b\u00e1o gi\u1ea5y ph\u00e9p n\u00e0y ph\u1ea3i \u0111\u01b0\u1ee3c bao g\u1ed3m trong t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n sao ho\u1eb7c ph\u1ea7n quan tr\u1ecdng c\u1ee7a Ph\u1ea7n m\u1ec1m.\n\nPH\u1ea6N M\u1ec0M \u0110\u01af\u1ee2C CUNG C\u1ea4P \"NGUY\u00caN B\u1ea2N\", KH\u00d4NG C\u00d3 B\u1ea4T K\u1ef2 H\u00ccNH TH\u1ee8C B\u1ea2O \u0110\u1ea2M N\u00c0O, BAO G\u1ed2M NH\u01afNG KH\u00d4NG GI\u1edaI H\u1ea0N \u0110\u1ebeN S\u1ef0 B\u1ea2O \u0110\u1ea2M V\u1ec0 CH\u1ea4T L\u01af\u1ee2NG KINH DOANH, PH\u00d9 H\u1ee2P V\u1edaI M\u1ee4C \u0110\u00cdCH C\u1ee4 TH\u1ec2 V\u00c0 VI PH\u1ea0M QUY\u1ec0N S\u1ede H\u1eeeU. TRONG M\u1eccI TR\u01af\u1edcNG H\u1ee2P, T\u00c1C GI\u1ea2 HO\u1eb6C CH\u1ee6 S\u1ede H\u1eeeU B\u1ea2N QUY\u1ec0N KH\u00d4NG CH\u1ecaU TR\u00c1CH NHI\u1ec6M \u0110\u1ed0I V\u1edaI B\u1ea4T K\u1ef2 Y\u00caU C\u1ea6U B\u1ed2I TH\u01af\u1edcNG, THI\u1ec6T H\u1ea0I HO\u1eb6C TR\u00c1CH NHI\u1ec6M PH\u00c1P L\u00dd N\u00c0O PH\u00c1T SINH T\u1eea HO\u1eb6C LI\u00caN QUAN \u0110\u1ebeN S\u1eec D\u1ee4NG HO\u1eb6C HI\u1ec6N H\u1eeeU C\u1ee6A PH\u1ea6N M\u1ec0M.\n
Xin c\u1ea3m \u01a1n v\u00e0 ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#english","title":"English","text":"Copyright (c) 2022 Thinh Vu | thinh-vu @ Github\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n
"},{"location":"assets/templates/Button/","title":"Button","text":"Download
"},{"location":"assets/templates/Photo%20layout/","title":"Photo layout","text":"\u1ea2nh + m\u00f4 t\u1ea3 + CTA: C\u0103n l\u1ec1 tr\u00e1i, r\u1ed9ng 600px
V\u0103n b\u1ea3n m\u00f4 t\u1ea3
CTA c\u1ee7a b\u1ea1n
Image caption"},{"location":"assets/templates/Social%20link/","title":"Social link","text":"
Website: http://learn-anything.vn Youtube: https://www.youtube.com/@learn_anything_az?sub_confirmation=1 Fanpage: https://www.facebook.com/learn.anything.az
"},{"location":"assets/templates/Youtube%20Video%20embed/","title":"Youtube Video embed","text":""},{"location":"assets/templates/announcement/","title":"Announcement","text":"Ch\u00e8n \u0111o\u1ea1n code sau v\u00e0o cu\u1ed1i trang docs\\docs\\material\\overrides\\main.html
-sau d\u00f2ng 10 \u0111\u1ec3 hi\u1ec3n th\u1ecb banner th\u00f4ng b\u00e1o.
{% block announce %}
{% endblock %}
"},{"location":"assets/templates/new-post/","title":"New post","text":"date: {{date}} title: {{title}} alias: {{title}} description: description goes here tags: - example categories: - example authors: [thinh-vu] draft: false links: - setup/setting-up-a-blog.md readtime: 10
"},{"location":"assets/templates/substack%20subscribe/","title":"Substack subscribe","text":"\u0110\u1ec3 theo d\u00f5i nh\u1eefng n\u1ed9i dung \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt m\u1edbi nh\u1ea5t c\u1ee7a LEarn Anything, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ec3 l\u1ea1i email \u0111\u1ec3 nh\u1eadn th\u00f4ng b\u00e1o qua Substack nh\u00e9.
"},{"location":"blog/","title":"Ki\u1ebfn th\u1ee9c","text":""},{"location":"blog/category/how-to/","title":"H\u01b0\u1edbng d\u1eabn","text":"\u0110\u00e2y l\u00e0 d\u00f2ng ch\u1eef th\u1ee9 hai
"},{"location":"blog/category/knowledge/","title":"Ki\u1ebfn th\u1ee9c","text":"\u0110\u00e2y l\u00e0 d\u00f2ng ch\u1eef \u0111\u1ea7u ti\u00ean
"},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/","title":"Thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u Vnstock s\u1eed d\u1ee5ng Mkdocs Matterial","text":"V\u00ec sao c\u00f3 b\u00e0i vi\u1ebft n\u00e0y?
Ghi ch\u00fa v\u1ec1 c\u00e1c thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u v\u1edbi Mkdocs Matterial gi\u00fap c\u00e1c b\u1ea1n \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n v\u00e0 t\u00e0i li\u1ec7u cho d\u1ef1 \u00e1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng c\u1ea5u h\u00ecnh m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh c\u1ee7a m\u00ecnh v\u00e0 xem tr\u01b0\u1edbc n\u1ed9i dung s\u1ebd chia s\u1ebb tr\u00ean trang t\u00e0i li\u1ec7u vnstock. Ho\u1eb7c \u0111\u01a1n gi\u1ea3n l\u00e0 b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng MKDocs t\u01b0\u01a1ng t\u1ef1 vnstocho m\u1ee5c \u0111\u00edch c\u00e1 nh\u00e2n c\u1ee7a m\u00ecnh.
","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cai-at-moi-truong","title":"C\u00e0i \u0111\u1eb7t m\u00f4i tr\u01b0\u1eddng","text":"","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cai-at-python","title":"C\u00e0i \u0111\u1eb7t Python","text":"MKDocs ch\u1ea1y b\u1eb1ng ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python. H\u00e3y \u0111\u1ea3m b\u1ea3o r\u1eb1ng thi\u1ebft b\u1ecb b\u1ea1n \u0111ang d\u00f9ng \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t Python.
Th\u01b0 m\u1ee5c MKDocs c\u1ee7a vnstock \u0111\u01b0\u1ee3c \u0111\u1eb7t t\u1ea1i th\u01b0 m\u1ee5c vnstock/docs
c\u1ee7a d\u1ef1 \u00e1n.
\u0110\u1ec3 c\u00e0i \u0111\u1eb7t c\u00e1c g\u00f3i ph\u1ee5 thu\u1ed9c c\u1ea7n thi\u1ebft \u0111\u1ec3 ch\u1ea1y th\u1eed v\u00e0 xem tr\u01b0\u1edbc trang t\u00e0i li\u1ec7u, b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc sau:
/vnstock/docs
. B\u1ea1n c\u1ea7n copy/paste \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c t\u01b0\u01a1ng \u1ee9ng tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n.pip install -r requirements.txt
C\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t s\u1ebd \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n trong kho\u1ea3ng 30s. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u n\u00e2ng c\u1ea5p pip
tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh tr\u00ean n\u1ebfu pip \u0111\u00e3 ra m\u1eaft phi\u00ean b\u1ea3n m\u1edbi.
Gi\u1edbi thi\u1ec7u
T\u00ednh n\u0103ng xem tr\u01b0\u1edbc (live preview) cho ph\u00e9p b\u1ea1n xem c\u00e1c thay \u0111\u1ed5i th\u1ec3 hi\u1ec7n tr\u1ef1c ti\u1ebfp qua tr\u00ecnh duy\u1ec7t web t\u1eeb m\u00f4i tr\u01b0\u1eddng localhost m\u1ed7i khi b\u1ea1n th\u1ef1c hi\u1ec7n thay \u0111\u1ed5i v\u1edbi c\u1ea5u h\u00ecnh v\u00e0 n\u1ed9i dung trang t\u00e0i li\u1ec7u. Vi\u1ec7c n\u00e0y cho ph\u00e9p b\u1ea1n ph\u00e1t hi\u1ec7n ra l\u1ed7i v\u00e0 t\u00f9y ch\u1ec9nh m\u1ed9t c\u00e1ch nhanh ch\u00f3ng thay v\u00ec ph\u1ea3i chia s\u1ebb c\u00f4ng khai c\u00e1c thay \u0111\u1ed5i \u0111\u1ec3 xem.
vnstock/docs
, ch\u1ea1y l\u1ec7nh sau mkdocs serve
http://127.0.0.1:8000/
\u0111\u1ec3 xem trang t\u00e0i li\u1ec7u.Giao di\u1ec7n l\u00e0m vi\u1ec7c v\u1edbi MKDocs t\u1eeb Github Codespace","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cau-truc-trang-tai-lieu","title":"C\u1ea5u tr\u00fac trang t\u00e0i li\u1ec7u","text":"
Gi\u1edbi thi\u1ec7u
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u1ea5u tr\u00fac c\u00e2y th\u01b0 m\u1ee5c c\u1ee7a trang t\u00e0i li\u1ec7u Vnstock t\u01b0\u01a1ng \u1ee9ng v\u1edbi c\u00e1c m\u1ee5c tr\u00ean thanh \u0111i\u1ec1u h\u01b0\u1edbng v\u00e0 m\u00f4 t\u1ea3 n\u1ed9i dung chi ti\u1ebft \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 hi\u1ec3u \u0111\u01b0\u1ee3c \u0111\u1ec3 b\u1eaft \u0111\u1ea7u d\u1ec5 d\u00e0ng.
docs/\n\u251c\u2500start/\n\u2502 \u251c\u2500tai-nguyen-quan-trong-vnstock-website.md\n\u2502 \u251c\u2500huong-dan-su-dung-nhanh-vnstock.md\n\u2502 \u2514\u2500huong-dan-cai-dat-vnstock-python.md\n\u251c\u2500functions/\n\u2502 \u251c\u2500fundamental.md\n\u2502 \u251c\u2500market.md\n\u2502 \u251c\u2500ratio.md\n\u2502 \u251c\u2500listing.md\n\u2502 \u251c\u2500chart.md\n\u2502 \u251c\u2500rating.md\n\u2502 \u251c\u2500financial.md\n\u2502 \u251c\u2500export.md\n\u2502 \u251c\u2500screener.md\n\u2502 \u251c\u2500funds.md\n\u2502 \u251c\u2500comparison.md\n\u2502 \u251c\u2500technical.md\n\u2502 \u2514\u2500evaluation.md\n\u251c\u2500integrate/\n\u2502 \u251c\u2500huggingface.md\n\u2502 \u251c\u2500messaging.md\n\u2502 \u251c\u2500dnse_api.md\n\u2502 \u251c\u2500backtesting.md\n\u2502 \u251c\u2500ta_lib.md\n\u2502 \u251c\u2500web_app.md\n\u2502 \u251c\u2500google_sheets.md\n\u2502 \u251c\u2500pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban.md\n\u2502 \u251c\u2500amibroker.md\n\u2502 \u2514\u2500ssi_fast_connect_api.md\n\u251c\u2500insiders-program/\n\u2502 \u2514\u2500gioi-thieu-chuong-trinh-vnstock-insiders-program.md\n\u251c\u2500community/\n\u2502 \u251c\u2500contribute.md\n\u2502 \u251c\u2500tai-tro-du-an-vnstock.md\n\u2502 \u251c\u2500support.md\n\u2502 \u251c\u2500vnstock-contributors-thanh-vien-tich-cuc.md\n\u2502 \u251c\u2500feedback.md\n\u2502 \u251c\u2500join.md\n\u2502 \u2514\u2500lan-toa-trai-nghiem-voi-vnstock.md\n\u2514\u2500faq/\n\u2502 \u251c\u2500feature.md\n\u2502 \u251c\u2500ung-ho-du-an-vnstock.md\n\u2502 \u251c\u2500community.md\n\u2502 \u2514\u2500vnstock-ho-tro-nguoi-dung.md\n\u251c\u2500changes_log.md\n\u251c\u2500course.md\n\u251c\u2500trich-dan-va-giay-phep-su-dung-vnstock.md\n\u2514\u2500disclaimer.md\n\u251c\u2500assets/\n\u2502 \u2514\u2500images/\n\u251c\u2500material/\n\u2502 \u2514\u2500overrides/\n\u251c\u2500stylesheets/\n\u2502 \u2514\u2500extra.css\n\u251c\u2500requirements.txt\n
","tags":["blog"]},{"location":"community/contribute/","title":"\u0110\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n","text":"L\u1eddi n\u00f3i \u0111\u1ea7u
C\u00e1m \u01a1n b\u1ea1n \u0111\u00e3 quan t\u00e2m \u0111\u1ebfn vi\u1ec7c \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho d\u1ef1 \u00e1n Vnstock. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn nhi\u1ec1u h\u00ecnh th\u1ee9c \u0111\u00f3ng g\u00f3p kh\u00e1c nhau, trong \u0111\u00f3 bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n c\u00e1c vi\u1ec7c nh\u01b0 x\u00e2y d\u1ef1ng v\u00e0 c\u1ea3i ti\u1ebfn m\u00e3 ngu\u1ed3n ho\u1eb7c d\u1ecbch t\u00e0i li\u1ec7u c\u1ee7a d\u1ef1 \u00e1n.
"},{"location":"community/contribute/#triet-ly-thiet-ke","title":"Tri\u1ebft l\u00fd thi\u1ebft k\u1ebf","text":"H\u1ea7u h\u1ebft m\u00e3 ngu\u1ed3n Vnstock cho \u0111\u1ebfn th\u1eddi \u0111i\u1ec3m 11/2023 \u0111\u1ec1u do m\u1ed9t m\u00ecnh t\u00e1c gi\u1ea3 ph\u00e1t tri\u1ec3n v\u00e0 th\u1ef1c s\u1ef1 \u0111\u00e2y l\u00e0 m\u1ed9t n\u1ed7 l\u1ef1c r\u1ea5t l\u1edbn v\u1edbi kh\u1ed1i l\u01b0\u1ee3ng c\u00f4ng vi\u1ec7c kh\u1ed5ng l\u1ed3. Nh\u1eb1m t\u1ed1i \u01b0u h\u00f3a ngu\u1ed3n l\u1ef1c v\u00e0 t\u1eadp trung v\u00e0o nh\u1eefng \u0111i\u1ec1u c\u00f3 gi\u00e1 tr\u1ecb, nh\u1eefng \u01b0u ti\u00ean v\u00e0 tri\u1ebft l\u00fd thi\u1ebft k\u1ebf Vnstock \u0111\u01b0\u1ee3c t\u00f4i s\u1eed d\u1ee5ng nh\u01b0 sau:
B\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p t\u00ednh n\u0103ng m\u00ecnh c\u1ea3m th\u1ea5y c\u1ea7n thi\u1ebft ho\u1eb7c ph\u00f9 h\u1ee3p v\u1edbi nh\u1eefng g\u00ec vnstock hi\u1ec7n c\u00f3. Vnstock kh\u00f4ng ch\u1ec9 d\u1eebng l\u1ea1i \u1edf m\u1ed9t g\u00f3i ph\u1ea7n m\u1ec1m truy xu\u1ea5t d\u1eef li\u1ec7u hay ch\u1ec9 gi\u1edbi h\u1ea1n v\u1edbi ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u00e0 m\u1ee5c ti\u00eau l\u1edbn nh\u1ea5t l\u00e0 ph\u1ee5c v\u1ee5 ng\u01b0\u1eddi Vi\u1ec7t, v\u00e0 do ng\u01b0\u1eddi Vi\u1ec7t ph\u00e1t tri\u1ec3n.
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c nh\u00f3m th\u00f4ng tin/t\u00ednh n\u0103ng b\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o \u0111\u1ec3 ph\u00e1t tri\u1ec3n.
"},{"location":"community/contribute/#truy-xuat-du-lieu","title":"Truy xu\u1ea5t d\u1eef li\u1ec7u","text":"T\u00f4i tin l\u00e0 t\u1edbi \u0111\u00e2y, b\u1ea1n \u0111\u00e3 c\u00f3 \u0111\u1ee7 th\u00f4ng tin \u0111\u1ec3 b\u1eaft \u0111\u1ea7u h\u00e0nh tr\u00ecnh code d\u1ea1o c\u00f9ng Vnstock. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 nh\u1eefng h\u01b0\u1edbng d\u1eabn gi\u00fap b\u1ea1n b\u1eaft \u0111\u1ea7u d\u1ec5 d\u00e0ng h\u01a1n.
beta
\u0111\u1ec3 y\u00eau c\u1ea7u duy\u1ec7t v\u00e0 c\u1eadp nh\u1eadt m\u00e3 ngu\u1ed3n khi c\u00f4ng vi\u1ec7c ho\u00e0n th\u00e0nh. Nh\u1eefng thay \u0111\u1ed5i do b\u1ea1n \u0111\u00f3ng g\u00f3p s\u1ebd \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean nh\u00e1nh beta
\u0111\u1ec3 th\u1eed nghi\u1ec7m, sau \u0111\u00f3 ph\u00e1t h\u00e0nh ch\u00ednh th\u1ee9c trong phi\u00ean b\u1ea3n ti\u1ebfp theo c\u1ee7a vnstock tr\u00ean Pypi.org c\u00f9ng nh\u1eefng c\u1eadp nh\u1eadt c\u1ee7a t\u00e1c gi\u1ea3.C\u00e1c trao \u0111\u1ed5i v\u1edbi t\u00e1c gi\u1ea3 trong vi\u1ec7c l\u1eadp tr\u00ecnh v\u00e0 \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho d\u1ef1 \u00e1n Vnstock, b\u1ea1n vui l\u00f2ng s\u1eed d\u1ee5ng m\u1ed9t trong c\u00e1c t\u00f9y ch\u1ecdn sau.
T\u00f4i h\u01b0\u1edbng \u0111\u1ebfn m\u1ed9t m\u00f4i tr\u01b0\u1eddng trao \u0111\u1ed5i th\u00e2n thi\u1ec7n, t\u00edch c\u1ef1c v\u00e0 th\u00fac \u0111\u1ea9y h\u1ee3p t\u00e1c khi m\u1eddi c\u00e1c b\u1ea1n tham gia x\u00e2y d\u1ef1ng vnstock. \u0110\u1ec3 m\u1ecdi th\u1ee9 r\u00f5 r\u00e0ng v\u00e0 minh b\u1ea1ch, t\u00f4i chia s\u1ebb t\u1edbi c\u00e1c b\u1ea1n nh\u1eefng nguy\u00ean t\u1eafc gi\u00fap ch\u00fang ta h\u1ee3p t\u00e1c d\u1ec5 d\u00e0ng h\u01a1n trong khu\u00f4n kh\u1ed5 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf nh\u01b0 sau:
Ch\u00fang t\u00f4i c\u1ea3m \u01a1n s\u1ef1 \u0111\u00f3ng g\u00f3p c\u1ee7a b\u1ea1n cho Vnstock. Nh\u00f3m ph\u00e1t tri\u1ec3n s\u1eb5n l\u00f2ng h\u1ed7 tr\u1ee3 v\u00e0 xem x\u00e9t m\u1ecdi \u0111\u00f3ng g\u00f3p \u0111\u1ec3 n\u00e2ng cao ch\u1ea5t l\u01b0\u1ee3ng v\u00e0 t\u00ednh n\u0103ng c\u1ee7a d\u1ef1 \u00e1n. H\u00e3y c\u00f9ng nhau t\u1ea1o n\u00ean m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd h\u1ed7 tr\u1ee3 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam! \ud83d\ude80
"},{"location":"community/feedback/","title":"\u0110\u00f3ng g\u00f3p \u00fd ki\u1ebfn v\u00e0 ph\u1ea3n h\u1ed3i","text":""},{"location":"community/feedback/#bao-loi","title":"B\u00e1o l\u1ed7i","text":"B\u1ea1n c\u00f3 th\u1ec3 gi\u00fap t\u00e1c gi\u1ea3 ki\u1ec3m tra m\u1ee5c Issues tr\u00ean Github v\u00e0 m\u1ee5c B\u00e1o l\u1ed7i tr\u00ean Discord xem v\u1ea5n \u0111\u1ec1 c\u1ee7a b\u1ea1n \u0111\u00e3 \u0111\u01b0\u1ee3c \u0111\u1ec1 c\u1eadp tr\u01b0\u1edbc \u0111\u00f3 ch\u01b0a tr\u01b0\u1edbc khi g\u1eedi b\u00e1o l\u1ed7i.
N\u1ebfu ch\u01b0a, h\u00e3y t\u1ea1o m\u1ed9t issue m\u1edbi \u0111\u1ec3 b\u00e1o c\u00e1o l\u1ed7i ho\u1eb7c y\u00eau c\u1ea7u t\u00ednh n\u0103ng. Vui l\u00f2ng cung c\u1ea5p m\u1ed9t m\u00f4 t\u1ea3 chi ti\u1ebft v\u1ec1 v\u1ea5n \u0111\u1ec1 c\u1ee7a b\u1ea1n, bao g\u1ed3m c\u00e1c b\u01b0\u1edbc \u0111\u1ec3 t\u00e1i t\u1ea1o v\u1ea5n \u0111\u1ec1 (n\u1ebfu c\u00f3 th\u1ec3) v\u00e0 \u1ea3nh ch\u1ee5p m\u00e0nh h\u00ecnh l\u1ed7i. C\u00e1c b\u00e1o l\u1ed7i m\u01a1 h\u1ed3 s\u1ebd kh\u00f4ng \u0111\u01b0\u1ee3c xem x\u00e9t.
N\u1ebfu b\u1ea1n kh\u00f4ng quen v\u1edbi Github, b\u1ea1n c\u1ee9 tho\u1ea3i m\u00e1i chia s\u1ebb l\u1ed7i qua c\u00e1c k\u00eanh m\u00e0 b\u1ea1n th\u1ea5y thu\u1eadn ti\u1ec7n nh\u1ea5t v\u00e0 gi\u00fap t\u00f4i c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam \u0111\u1ec3 hi\u1ec3u r\u00f5 v\u1ea5n \u0111\u1ec1 b\u1ea1n g\u1eb7p ph\u1ea3i.
"},{"location":"community/feedback/#gop-y","title":"G\u00f3p \u00fd","text":"vnstock l\u00e0 m\u1ed9t d\u1ef1 \u00e1n t\u00f4i t\u00e2m huy\u1ebft, \u0111\u1ea7u t\u01b0 nhi\u1ec1u th\u1eddi gian \u0111\u1ec3 ph\u00e1t tri\u1ec3n gi\u00fap b\u1ea3n th\u00e2n v\u00e0 c\u1ed9ng \u0111\u1ed3ng ti\u1ebfp c\u1eadn ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n mi\u1ec5n ph\u00ed v\u00e0 \u0111\u00e1ng tin c\u1eady.
\u0110\u1ec3 \u0111\u1ea3m b\u1ea3o r\u1eb1ng vnstock ph\u00e1t tri\u1ec3n theo h\u01b0\u1edbng \u0111\u00e1p \u1ee9ng nhu c\u1ea7u c\u1ee7a b\u1ea1n, t\u00f4i r\u1ea5t mong nh\u1eadn \u0111\u01b0\u1ee3c ph\u1ea3n h\u1ed3i t\u1eeb b\u1ea1n. B\u1ea1n l\u00e0 ng\u01b0\u1eddi d\u00f9ng quan tr\u1ecdng c\u1ee7a vnstock v\u00e0 \u00fd ki\u1ebfn c\u1ee7a b\u1ea1n s\u1ebd gi\u00fap ch\u00fang t\u00f4i x\u00e2y d\u1ef1ng m\u1ed9t k\u1ebf ho\u1ea1ch ph\u00e1t tri\u1ec3n vnstock m\u1ed9t c\u00e1ch to\u00e0n di\u1ec7n. B\u1ea1n h\u00e3y d\u00e0nh ra 5 ph\u00fat \u0111\u1ec3 ho\u00e0n th\u00e0nh b\u1ea3n kh\u1ea3o s\u00e1t n\u00e0y. C\u1ea3m \u01a1n b\u1ea1n r\u1ea5t nhi\u1ec1u!
\u0110ang t\u1ea3i\u2026"},{"location":"community/join/","title":"C\u1ed9ng \u0111\u1ed3ng vnstock","text":"Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi d\u1ef1 \u00e1n Vnstock! Ch\u00fang t\u00f4i tr\u00e2n tr\u1ecdng m\u1ecdi \u0111\u00f3ng g\u00f3p t\u1eeb c\u1ed9ng \u0111\u1ed3ng \u0111\u1ec3 ph\u00e1t tri\u1ec3n g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y th\u00e0nh m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd h\u1ed7 tr\u1ee3 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n t\u1ea1i th\u1ecb tr\u01b0\u1eddng Vi\u1ec7t Nam.
B\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn tham gia c\u00e1c c\u1ed9ng \u0111\u1ed3ng Vnstock hi\u1ec7n c\u00f3:
"},{"location":"community/lan-toa-trai-nghiem-voi-vnstock/","title":"Gi\u1edbi thi\u1ec7u vnstock t\u1edbi c\u1ed9ng \u0111\u1ed3ng c\u1ee7a b\u1ea1n","text":"\ud83d\udd90 N\u1ebfu vnstock gi\u00fap \u00edch cho b\u1ea1n, h\u00e3y g\u00f3p s\u1ee9c t\u00e0i tr\u1ee3 cho s\u1ef1 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n theo kh\u1ea3 n\u0103ng c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn h\u00ecnh th\u1ee9c ph\u00f9 h\u1ee3p v\u1edbi m\u00ecnh nh\u1ea5t trong c\u00e1c h\u00ecnh th\u1ee9c d\u01b0\u1edbi \u0111\u00e2y. M\u1ecdi kho\u1ea3n \u0111\u00f3ng g\u00f3p \u0111\u1ec1u \u0111\u00e1ng tr\u00e2n qu\u00fd v\u00e0 l\u00e0 ngu\u1ed3n t\u00e0i ch\u00ednh gi\u00fap duy tr\u00ec vnstock lu\u00f4n \u0111\u01b0\u1ee3c n\u00e2ng c\u1ea5p, m\u00e3 ngu\u1ed3n m\u1edf, v\u00e0 d\u1ec5 ti\u1ebfp c\u1eadn cho c\u1ed9ng \u0111\u1ed3ng.
"},{"location":"community/support/#tai-tro-du-an-qua-github","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Github","text":"L\u1ef1a ch\u1ecdn Sponsor (t\u00e0i tr\u1ee3) cho d\u1ef1 \u00e1n qua Github l\u00e0 m\u1ed9t c\u00e1ch minh b\u1ea1ch v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t cho b\u1ea5t k\u1ef3 ai s\u1edf h\u1eefu th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa, Master, vv \u0110\u1ed3ng th\u1eddi b\u1ea1n c\u00f3 c\u00e1c t\u00f9y ch\u1ecdn t\u00e0i tr\u1ee3 linh ho\u1ea1t theo th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n. C\u00f9ng v\u1edbi \u0111\u00f3, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c x\u1ebfp v\u00e0o c\u00e1c tier (h\u1ea1ng) ng\u01b0\u1eddi d\u00f9ng kh\u00e1c nhau \u0111\u1ec3 s\u1edf h\u1eefu nh\u1eefng quy\u1ec1n l\u1ee3i \u0111i k\u00e8m, v\u00ed d\u1ee5 truy c\u1eadp nh\u1eefng b\u1ea3n n\u00e2ng c\u1ea5p v\u00e0 t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n cho nh\u00e0 t\u00e0i tr\u1ee3 (\u0111ang tri\u1ec3n khai). T\u1ea5t c\u1ea3 kho\u1ea3n t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho m\u1ee5c \u0111\u00edch ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n v\u00e0 duy tr\u00ec h\u1ea1 t\u1ea7ng c\u00f4ng ngh\u1ec7 cho nh\u00f3m ph\u00e1t tri\u1ec3n.
L\u01b0u \u00fd: \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n qua Github Sponsor, b\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp Github v\u00e0 s\u1eed d\u1ee5ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf.
B1. Ch\u1ecdn m\u1ee5c SponsorB2. Ch\u1ecdn lo\u1ea1i h\u00ecnh v\u00e0 m\u1ee9c t\u00e0i tr\u1ee3 B3. Nh\u1eadp th\u00f4ng tin thanh to\u00e1nB\u1ea1n c\u00f3 th\u1ec3 t\u00ecm th\u1ea5y m\u1ee5c Sponsor t\u1ea1i Github repo c\u1ee7a Vnstock, t\u1ea1i Github profile Th\u1ecbnh V\u0169 ho\u1eb7c ph\u1ea7n th\u00f4ng tin Sponsor \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o web \u1edf tr\u00ean \ud83d\udc46.
"},{"location":"community/support/#gui-tang-mot-ly-cafe","title":"G\u1eedi t\u1eb7ng m\u1ed9t ly cafe","text":"T\u1eb7ng m\u1ed9t ly cafe
B\u1ea1n c\u00f3 th\u1ec3 g\u1eedi t\u1eb7ng t\u00e1c gi\u1ea3 m\u1ed9t ly cafe \u0111\u1ec3 c\u1ea3m \u01a1n v\u00e0 \u0111\u1ed9ng vi\u00ean n\u1ebfu th\u1ea5y Vnstock gi\u00fap \u00edch nhi\u1ec1u cho b\u1ea1n. B\u1ea1n ch\u1ecdn m\u1ed9t trong 4 c\u00e1ch sau t\u00f9y theo h\u00ecnh th\u1ee9c n\u00e0o thu\u1eadn ti\u1ec7n cho b\u1ea1n nh\u1ea5t. C\u00e1m \u01a1n b\u1ea1n th\u1eadt nhi\u1ec1u!
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Ng\u00e2n h\u00e0ng nh\u1eadn: Vietcombank
chi nh\u00e1nh Thanh \u0110a
T\u00e0i kho\u1ea3n: nh\u1eadp t\u00ean VNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"community/support/#su-dung-dich-vu","title":"S\u1eed d\u1ee5ng d\u1ecbch v\u1ee5","text":"
D\u1ecbch v\u1ee5
N\u1ebfu b\u1ea1n n\u00e0o quan t\u00e2m v\u00e0 c\u00f3 nhu c\u1ea7u v\u1ec1 code
theo y\u00eau c\u1ea7u ho\u1eb7c h\u1ecdc python, vui l\u00f2ng inbox v\u1edbi Th\u1ecbnh \u0111\u1ec3 trao \u0111\u1ed5i th\u00eam. Ho\u1ea1t \u0111\u1ed9ng n\u00e0y c\u0169ng gi\u00fap t\u00e1c gi\u1ea3 hi\u1ec3u th\u00eam v\u1ec1 nh\u1eefng \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf v\u00e0 ph\u00e1t tri\u1ec3n vnstock trong t\u01b0\u01a1ng lai.
Kh\u00f3a h\u1ecdc
N\u1ebfu b\u1ea1n y\u00eau th\u00edch vnstock, mu\u1ed1n \u1ee7ng h\u1ed9 t\u00e1c gi\u1ea3 \u0111\u1ed3ng th\u1eddi quan t\u00e2m v\u1ec1 h\u1ecdc l\u1eadp tr\u00ecnh Python cho vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u n\u00f3i chung v\u00e0 ch\u1ee9ng kho\u00e1n n\u00f3i ri\u00eang, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd c\u00e1c kh\u00f3a h\u1ecdc ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u1eeb t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Hi\u1ec7n t\u1ea1i, AI c\u0169ng c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 b\u1ea1n th\u1ef1c hi\u1ec7n h\u1ea7u h\u1ebft c\u00f4ng vi\u1ec7c l\u1eadp tr\u00ecnh mi\u1ec5n l\u00e0 b\u1ea1n c\u00f3 ki\u1ebfn th\u1ee9c c\u0103n b\u1ea3n v\u00e0 bi\u1ebft c\u00e1ch s\u1eed d\u1ee5ng ch\u00fang. Tham gia kh\u00f3a h\u1ecdc gi\u00fap b\u1ea1n c\u00f3 n\u1ec1n t\u1ea3ng ki\u1ebfn th\u1ee9c t\u1ed1t \u0111\u1ec3 t\u1eadn d\u1ee5ng s\u1ee9c m\u1ea1nh c\u1ee7a AI.
Kh\u00f3a h\u1ecdc Ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u1edbi Python #4 \u0111\u01b0\u1ee3c tri\u1ec3n khai v\u00e0o 29/10/2023, b\u1ea1n n\u00e0o quan t\u00e2m h\u00e3y inbox cho t\u00f4i \u0111\u1ec3 trao \u0111\u1ed5i th\u00eam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 tham kh\u1ea3o b\u00e0i vi\u1ebft gi\u1edbi thi\u1ec7u kh\u00f3a h\u1ecdc tr\u00ean blog v\u1ec1 ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u00f4i \u0111\u00e3 t\u1eebng t\u1ed5 ch\u1ee9c t\u1ea1i \u0111\u00e2y
"},{"location":"community/tai-tro-du-an-vnstock/","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n Vnstock","text":"\ud83d\udd90 N\u1ebfu vnstock gi\u00fap \u00edch cho b\u1ea1n, h\u00e3y g\u00f3p s\u1ee9c t\u00e0i tr\u1ee3 cho s\u1ef1 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n theo kh\u1ea3 n\u0103ng c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn h\u00ecnh th\u1ee9c ph\u00f9 h\u1ee3p v\u1edbi m\u00ecnh nh\u1ea5t trong c\u00e1c h\u00ecnh th\u1ee9c d\u01b0\u1edbi \u0111\u00e2y. M\u1ecdi kho\u1ea3n \u0111\u00f3ng g\u00f3p \u0111\u1ec1u \u0111\u00e1ng tr\u00e2n qu\u00fd v\u00e0 l\u00e0 ngu\u1ed3n t\u00e0i ch\u00ednh gi\u00fap duy tr\u00ec vnstock lu\u00f4n \u0111\u01b0\u1ee3c n\u00e2ng c\u1ea5p, m\u00e3 ngu\u1ed3n m\u1edf, v\u00e0 d\u1ec5 ti\u1ebfp c\u1eadn cho c\u1ed9ng \u0111\u1ed3ng.
"},{"location":"community/tai-tro-du-an-vnstock/#tai-tro-du-an-qua-github","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Github","text":"L\u1ef1a ch\u1ecdn Sponsor (t\u00e0i tr\u1ee3) cho d\u1ef1 \u00e1n qua Github l\u00e0 m\u1ed9t c\u00e1ch minh b\u1ea1ch v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t cho b\u1ea5t k\u1ef3 ai s\u1edf h\u1eefu th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa, Master, vv \u0110\u1ed3ng th\u1eddi b\u1ea1n c\u00f3 c\u00e1c t\u00f9y ch\u1ecdn t\u00e0i tr\u1ee3 linh ho\u1ea1t theo th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n. C\u00f9ng v\u1edbi \u0111\u00f3, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c x\u1ebfp v\u00e0o c\u00e1c tier (h\u1ea1ng) ng\u01b0\u1eddi d\u00f9ng kh\u00e1c nhau \u0111\u1ec3 s\u1edf h\u1eefu nh\u1eefng quy\u1ec1n l\u1ee3i \u0111i k\u00e8m, v\u00ed d\u1ee5 truy c\u1eadp nh\u1eefng b\u1ea3n n\u00e2ng c\u1ea5p v\u00e0 t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n cho nh\u00e0 t\u00e0i tr\u1ee3 (\u0111ang tri\u1ec3n khai). T\u1ea5t c\u1ea3 kho\u1ea3n t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho m\u1ee5c \u0111\u00edch ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n v\u00e0 duy tr\u00ec h\u1ea1 t\u1ea7ng c\u00f4ng ngh\u1ec7 cho nh\u00f3m ph\u00e1t tri\u1ec3n.
L\u01b0u \u00fd: \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n qua Github Sponsor, b\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp Github v\u00e0 s\u1eed d\u1ee5ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf.
B1. Ch\u1ecdn m\u1ee5c SponsorB2. Ch\u1ecdn lo\u1ea1i h\u00ecnh v\u00e0 m\u1ee9c t\u00e0i tr\u1ee3 B3. Nh\u1eadp th\u00f4ng tin thanh to\u00e1nB\u1ea1n c\u00f3 th\u1ec3 t\u00ecm th\u1ea5y m\u1ee5c Sponsor t\u1ea1i Github repo c\u1ee7a Vnstock, t\u1ea1i Github profile Th\u1ecbnh V\u0169 ho\u1eb7c ph\u1ea7n th\u00f4ng tin Sponsor \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o web \u1edf tr\u00ean \ud83d\udc46.
"},{"location":"community/tai-tro-du-an-vnstock/#gui-tang-mot-ly-cafe","title":"G\u1eedi t\u1eb7ng m\u1ed9t ly cafe","text":"T\u1eb7ng m\u1ed9t ly cafe
B\u1ea1n c\u00f3 th\u1ec3 g\u1eedi t\u1eb7ng t\u00e1c gi\u1ea3 m\u1ed9t ly cafe \u0111\u1ec3 c\u1ea3m \u01a1n v\u00e0 \u0111\u1ed9ng vi\u00ean n\u1ebfu th\u1ea5y Vnstock gi\u00fap \u00edch nhi\u1ec1u cho b\u1ea1n. B\u1ea1n ch\u1ecdn m\u1ed9t trong 4 c\u00e1ch sau t\u00f9y theo h\u00ecnh th\u1ee9c n\u00e0o thu\u1eadn ti\u1ec7n cho b\u1ea1n nh\u1ea5t. C\u00e1m \u01a1n b\u1ea1n th\u1eadt nhi\u1ec1u!
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Vietcombank
chi nh\u00e1nh Thanh \u0110aVNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"community/tai-tro-du-an-vnstock/#ao-tao-python","title":"\u0110\u00e0o t\u1ea1o Python","text":"
Kh\u00f3a h\u1ecdc
N\u1ebfu b\u1ea1n y\u00eau th\u00edch vnstock, mu\u1ed1n \u1ee7ng h\u1ed9 t\u00e1c gi\u1ea3 \u0111\u1ed3ng th\u1eddi quan t\u00e2m v\u1ec1 h\u1ecdc l\u1eadp tr\u00ecnh Python cho vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u n\u00f3i chung v\u00e0 ch\u1ee9ng kho\u00e1n n\u00f3i ri\u00eang, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd c\u00e1c kh\u00f3a h\u1ecdc ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u1eeb t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Hi\u1ec7n t\u1ea1i, AI c\u0169ng c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 b\u1ea1n th\u1ef1c hi\u1ec7n h\u1ea7u h\u1ebft c\u00f4ng vi\u1ec7c l\u1eadp tr\u00ecnh mi\u1ec5n l\u00e0 b\u1ea1n c\u00f3 ki\u1ebfn th\u1ee9c c\u0103n b\u1ea3n v\u00e0 bi\u1ebft c\u00e1ch s\u1eed d\u1ee5ng ch\u00fang. Tham gia kh\u00f3a h\u1ecdc gi\u00fap b\u1ea1n c\u00f3 n\u1ec1n t\u1ea3ng ki\u1ebfn th\u1ee9c t\u1ed1t \u0111\u1ec3 t\u1eadn d\u1ee5ng s\u1ee9c m\u1ea1nh c\u1ee7a AI.
B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o kh\u00f3a h\u1ecdc \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi Th\u1ecbnh t\u1ea1i m\u1ee5c Kh\u00f3a h\u1ecdc t\u1ea1i trang web n\u00e0y.
"},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/","title":"Vinh danh th\u00e0nh vi\u00ean ti\u00eau bi\u1ec3u","text":"Gi\u1edbi thi\u1ec7u
vnstock mu\u1ed1n b\u00e0y t\u1ecf l\u00f2ng bi\u1ebft \u01a1n ch\u00e2n th\u00e0nh \u0111\u1ed1i v\u1edbi c\u00e1c th\u00e0nh vi\u00ean t\u00edch c\u1ef1c \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n n\u00e0y qua nhi\u1ec1u c\u00e1ch kh\u00e1c nhau b\u00ean c\u1ea1nh t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Nh\u1edd v\u00e0o s\u1ef1 n\u1ed7 l\u1ef1c c\u1ee7a c\u00e1c b\u1ea1n, c\u1ed9ng \u0111\u1ed3ng vnstock c\u00f3 c\u01a1 h\u1ed9i ti\u1ebfp c\u1eadn m\u1ed9t s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n m\u1edf ch\u1ea5t l\u01b0\u1ee3ng. Ngo\u00e0i ra, tuy kh\u00f4ng li\u1ec7t k\u00ea c\u1ee5 th\u1ec3 nh\u01b0ng c\u00e1c th\u00e0nh vi\u00ean tham gia g\u1eedi t\u1eb7ng cafe \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n \u0111\u00e3 g\u00f3p ph\u1ea7n kh\u00edch l\u1ec7 r\u1ea5t l\u1edbn \u0111\u1ec3 Vnstock ti\u1ebfn xa \u0111\u1ebfn hi\u1ec7n t\u1ea1i. Xin c\u00e1m \u01a1n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea1n!
"},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/#thanh-vien-tich-cuc","title":"Th\u00e0nh vi\u00ean t\u00edch c\u1ef1c","text":"# Avatar Th\u00e0nh vi\u00ean \u0110\u00f3ng g\u00f3p n\u1ed5i b\u1eadt 1 andrey-jef - G\u1ee3i \u00fd s\u1eed d\u1ee5ng mkdocs matterial cho trang t\u00e0i li\u1ec7u Vnstock hi\u1ec7n t\u1ea1i - \u0110\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho modul Qu\u1ef9 m\u1edf - \u0110\u1ec1 xu\u1ea5t v\u00e0 vi\u1ebft m\u00e3 ngu\u1ed3n cho pytest s\u1eed d\u1ee5ng \u0111\u1ec3 ki\u1ec3m th\u1eed d\u1ef1 \u00e1n - H\u1ed7 tr\u1ee3 g\u1ee1 l\u1ed7i - \u0110\u00f3ng g\u00f3p v\u00e0 s\u1eeda t\u00e0i li\u1ec7u..."},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/#thanh-vien-khac","title":"Th\u00e0nh vi\u00ean kh\u00e1c","text":"D\u01b0\u1edbi \u0111\u00e2y l\u00e0 danh s\u00e1ch c\u00e1c th\u00e0nh vi\u00ean \u0111\u00e3 h\u1ed7 tr\u1ee3 s\u1eeda l\u1ed7i v\u00e0 \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n.
# Avatar Th\u00e0nh vi\u00ean \u0110\u00f3ng g\u00f3p n\u1ed5i b\u1eadt 1 hungdq11 G\u00f3p \u00fd & s\u1eeda l\u1ed7i 2 nvh95 G\u00f3p \u00fd & s\u1eeda l\u1ed7i"},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/","title":"Vnstock road map lo trinh phat trien vnstock","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#lo-trinh-phat-trien-vnstock-nam-2024","title":"L\u1ed9 tr\u00ecnh ph\u00e1t tri\u1ec3n vnstock n\u0103m 2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q1-2024","title":"Q1-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q2-2024","title":"Q2-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q3-2024","title":"Q3-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q4-2024","title":"Q4-2024","text":""},{"location":"faq/community/","title":"C\u1ed9ng \u0111\u1ed3ng","text":""},{"location":"faq/community/#he-sinh-thai-vnstock-bao-gom-nhung-gi","title":"H\u1ec7 sinh th\u00e1i vnstock bao g\u1ed3m nh\u1eefng g\u00ec?","text":"Hi\u1ec7n t\u1ea1i Vnstock cung c\u1ea5p c\u00e1c s\u1ea3n ph\u1ea9m/k\u00eanh th\u00f4ng tin sau: - G\u00f3i ph\u1ea7n m\u1ec1m python: vnstock python & vnstock web app
Website:
C\u1ed9ng \u0111\u1ed3ng v\u00e0 k\u00eanh th\u00f4ng tin:
N\u1ebfu b\u1ea1n ch\u01b0a s\u1eb5n s\u00e0ng \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n 100K \u0111\u1ec3 tham gia nh\u00f3m c\u0169ng kh\u00f4ng sao. B\u1ea1n v\u1eabn c\u00f3 th\u1ec3 tham gia nh\u00f3m Discord \u0111\u1ec3 nh\u1eadn h\u1ed7 tr\u1ee3 chung t\u1eeb c\u1ed9ng \u0111\u1ed3ng. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
"},{"location":"faq/community/#lam-the-nao-e-tham-gia-cong-ong-vnstock-tra-phi","title":"L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 tham gia c\u1ed9ng \u0111\u1ed3ng vnstock tr\u1ea3 ph\u00ed?","text":"H\u01b0\u1edbng d\u1eabn
\u0110\u1ec3 c\u00f3 th\u1ec3 tham gia c\u1ed9ng \u0111\u1ed3ng tr\u1ea3 ph\u00ed c\u1ee7a vnstock \u0111\u01b0\u1ee3c t\u1ed5 ch\u1ee9c tr\u00ean n\u1ec1n t\u1ea3ng Facebook, b\u1ea1n vui l\u00f2ng \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n t\u1ed1i thi\u1ec3u 100K theo h\u00ecnh th\u1ee9c chuy\u1ec3n ti\u1ec1n Momo ho\u1eb7c chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng nh\u01b0 th\u00f4ng tin b\u00ean d\u01b0\u1edbi. Sau \u0111\u00f3 b\u1ea1n g\u1eedi y\u00eau c\u1ea7u tham gia nh\u00f3m v\u00e0 tr\u1ea3 l\u1eddi 3 c\u00e2u h\u1ecfi \u0111\u01a1n gi\u1ea3n \u0111\u1ec3 \u0111\u01b0\u1ee3c duy\u1ec7t tham gia nh\u00f3m. Ngay khi nh\u1eadn \u0111\u01b0\u1ee3c chuy\u1ec3n kho\u1ea3n, admin s\u1ebd duy\u1ec7t y\u00eau c\u1ea7u c\u1ee7a b\u1ea1n ngay l\u1eadp t\u1ee9c.
C\u00e1m \u01a1n b\u1ea1n \u0111\u00e3 tin t\u01b0\u1edfng, \u0111\u1ed3ng h\u00e0nh v\u00e0 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n.
"},{"location":"faq/community/#ai-la-nguoi-dung-cua-vnstock","title":"Ai l\u00e0 ng\u01b0\u1eddi d\u00f9ng c\u1ee7a vnstock?","text":"Qua giao l\u01b0u v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi ng\u01b0\u1eddi d\u00f9ng, c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng ng\u01b0\u1eddi d\u00f9ng ch\u00ednh hi\u1ec7n ghi nh\u1eadn \u0111\u01b0\u1ee3c bao g\u1ed3m:
Chuy\u00ean gia d\u1eef li\u1ec7u/l\u1eadp tr\u00ecnh vi\u00ean: \u0111\u00e2y l\u00e0 nh\u1eefng ng\u01b0\u1eddi c\u00f3 chuy\u00ean m\u00f4n c\u00f4ng ngh\u1ec7 v\u00e0 d\u1eef li\u1ec7u, l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng tr\u1ef1c ti\u1ebfp s\u1eed d\u1ee5ng th\u00e0nh th\u1ea1o python cho d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh ho\u1eb7c x\u00e2y d\u1ef1ng s\u1ea3n ph\u1ea9m d\u1ef1a tr\u00ean b\u1ed9 API m\u00e0 vnstock cung c\u1ea5p.
Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n: Xu h\u01b0\u1edbng giao d\u1ecbch thu\u1eadt to\u00e1n \u0111ang ph\u00e1t tri\u1ec3n n\u00f3ng trong th\u1eddi gian g\u1ea7n \u0111\u00e2y, c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n t\u00ecm ki\u1ebfm gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 l\u00e0m l\u1ee3i th\u1ebf giao d\u1ecbch c\u1ee7a m\u00ecnh v\u00e0 t\u1ef1 x\u00e2y d\u1ef1ng h\u1ec7 th\u1ed1ng ph\u00e2n t\u00edch ho\u1eb7c bot giao d\u1ecbch \u0111\u1ec3 hi\u1ec7n th\u1ef1c h\u00f3a chi\u1ebfn l\u01b0\u1ee3c \u0111\u1ea7u t\u01b0.
Sinh vi\u00ean: Sinh vi\u00ean c\u00e1c tr\u01b0\u1eddng \u0111\u1ea1i h\u1ecdc kh\u1ed1i ng\u00e0nh kinh t\u1ebf to\u00e0n qu\u1ed1c l\u00e0 m\u1ed9t b\u1ed9 ph\u1eadn ng\u01b0\u1eddi d\u00f9ng quan tr\u1ecdng c\u1ee7a vnstock. \u0110\u00e2y c\u0169ng l\u00e0 ngu\u1ed3n l\u1ef1c \u0111\u1ed5i m\u1edbi, s\u00e1ng t\u1ea1o trong vi\u1ec7c \u00e1p d\u1ee5ng c\u00f4ng ngh\u1ec7 r\u1ed9ng r\u00e3i v\u00e0o vi\u1ec7c ph\u00e1t tri\u1ec3n th\u1ecb tr\u01b0\u1eddng t\u00e0i ch\u00ednh Vi\u1ec7t Nam.
Nh\u00e0 nghi\u00ean c\u1ee9u: L\u0129nh v\u1ef1c nghi\u00ean c\u1ee9u t\u01b0\u01a1ng \u0111\u1ed1i \u0111a d\u1ea1ng, qua trao \u0111\u1ed5i c\u00e1 nh\u00e2n th\u00ec vnstock \u0111\u01b0\u1ee3c c\u00e1c b\u1ea1n l\u00e0m c\u00f4ng t\u00e1c nghi\u00ean c\u1ee9u y\u00eau th\u00edch b\u1edfi cho ph\u00e9p truy c\u1eadp d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t, c\u1eadp nh\u1eadt d\u1ec5 d\u00e0ng v\u00e0 ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed (ph\u00f9 h\u1ee3p v\u1edbi ng\u00e2n s\u00e1ch gi\u1edbi h\u1ea1n).
D\u00f9 b\u1ea1n l\u00e0 ai, l\u00e0m l\u0129nh v\u1ef1c g\u00ec, vnstock mu\u1ed1n \u0111\u1ed3ng h\u00e0nh v\u1edbi b\u1ea1n c\u00f9ng ph\u00e1t tri\u1ec3n. N\u1ebfu c\u00f3 nh\u1eefng y\u00eau c\u1ea7u \u0111\u1eb7c bi\u1ec7t c\u1ea7n \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 ho\u1eb7c g\u00f3p \u00fd ph\u00e1t tri\u1ec3n s\u1ea3n ph\u1ea9m, b\u1ea1n c\u00f3 th\u1ec3 li\u00ean h\u1ec7 v\u1edbi ch\u00fang t\u00f4i qua email: support@vnstock.site ho\u1eb7c c\u00e1c k\u00eanh trao \u0111\u1ed5i c\u1ed9ng \u0111\u1ed3ng. \u00dd ki\u1ebfn c\u1ee7a b\u1ea1n lu\u00f4n \u0111\u01b0\u1ee3c \u0111\u00f3n nh\u1eadn v\u00e0 \u0111\u00e1nh gi\u00e1 cao.
"},{"location":"faq/feature/","title":"S\u1ea3n ph\u1ea9m","text":""},{"location":"faq/feature/#co-so-cua-phuong-phap-thu-thap-du-lieu-do-vnstock-cung-cap-la-gi","title":"C\u01a1 s\u1edf c\u1ee7a ph\u01b0\u01a1ng ph\u00e1p thu th\u1eadp d\u1eef li\u1ec7u do vnstock cung c\u1ea5p l\u00e0 g\u00ec?","text":"Vnstock cung c\u1ea5p gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 s\u1eed d\u1ee5ng Python \u0111\u1ec3 thu th\u1eadp d\u1eef li\u1ec7u t\u1eeb c\u00e1c ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam th\u00f4ng qua c\u00e1c APIs c\u00f4ng khai. N\u00f3i m\u1ed9t c\u00e1ch d\u1ec5 hi\u1ec3u, c\u00e1c APIs n\u00e0y \u0111\u01b0\u1ee3c kh\u00e1m ph\u00e1 th\u00f4ng qua th\u1ee7 thu\u1eadt Web Scraping hay c\u00f2n g\u1ecdi l\u00e0 Reverse Engineering t\u1ee9c d\u00f2 c\u00e1c APIs \u0111\u01b0\u1ee3c website ch\u1ee9ng kho\u00e1n s\u1eed d\u1ee5ng \u0111\u1ec3 g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u gi\u1eefa h\u1ec7 th\u1ed1ng c\u01a1 s\u1edf d\u1eef li\u1ec7u (back-end) v\u1edbi giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng cu\u1ed1i (front-end).
C\u00e1c API n\u00e0y kh\u00f4ng \u0111\u01b0\u1ee3c chia s\u1ebb c\u00f4ng khai k\u00e8m t\u00e0i li\u1ec7u h\u01b0\u1edbng d\u1eabn cho ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng, tuy nhi\u00ean th\u00f4ng qua bi\u1ec7n ph\u00e1p so s\u00e1nh d\u1eef li\u1ec7u c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng g\u00e1n nh\u00e3n v\u00e0 t\u00e1i t\u1ea1o d\u1eef li\u1ec7u thu \u0111\u01b0\u1ee3c t\u1eeb API v\u1edbi \u0111\u1ed9 ch\u00ednh x\u00e1c g\u1ea7n nh\u01b0 tuy\u1ec7t \u0111\u1ed1i so v\u1edbi d\u1eef li\u1ec7u hi\u1ec3n th\u1ecb tr\u00ean website.
Vi\u1ec7c truy c\u1eadp c\u00e1c APIs d\u1eef li\u1ec7u n\u00e0y l\u00e0 h\u1ee3p ph\u00e1p v\u00ec ph\u01b0\u01a1ng ph\u00e1p truy c\u1eadp t\u01b0\u01a1ng \u0111\u01b0\u01a1ng v\u1edbi vi\u1ec7c g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u c\u1ee7a ng\u01b0\u1eddi d\u00f9ng th\u00f4ng qua tr\u00ecnh duy\u1ec7t web, tuy nhi\u00ean s\u1ed1 l\u01b0\u1ee3t g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u c\u00f3 th\u1ec3 ph\u00e1t sinh \u0111\u1ed9t bi\u1ebfn do ng\u01b0\u1eddi d\u00f9ng g\u1ecdi API li\u00ean t\u1ee5c th\u00f4ng qua l\u1eadp tr\u00ecnh do v\u00f4 t\u00ecnh hay c\u1ed1 \u00fd.
Do \u0111\u00f3, vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c APIs n\u00e0y c\u1ea7n \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n v\u1edbi tinh th\u1ea7n tr\u00e1ch nhi\u1ec7m v\u00e0 t\u00f4n tr\u1ecdng ngu\u1ed3n d\u1eef li\u1ec7u nh\u1eb1m tr\u00e1nh g\u1eedi y\u00eau c\u1ea7u g\u00e2y qu\u00e1 t\u1ea3i h\u1ec7 th\u1ed1ng c\u1ee7a ngu\u1ed3n d\u1eef li\u1ec7u (c\u00f4ng ty ch\u1ee9ng kho\u00e1n). Ch\u00fang t\u00f4i khuy\u00ean ng\u01b0\u1eddi d\u00f9ng h\u1ea1n ch\u1ebf s\u1eed d\u1ee5ng API h\u00e0ng lo\u1ea1t trong khung gi\u1edd giao d\u1ecbch \u0111\u1ec3 tr\u00e1nh l\u00e0m \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn ho\u1ea1t \u0111\u1ed9ng th\u01b0\u1eddng xuy\u00ean c\u1ee7a c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 kh\u00e1c v\u00e0 b\u1ea3n th\u00e2n ngu\u1ed3n d\u1eef li\u1ec7u. Trong th\u1eddi gian t\u1edbi, Vnstock s\u1ebd nghi\u00ean c\u1ee9u c\u00e1c gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 m\u1edbi nh\u1eb1m t\u1ea1o v\u00e0 l\u01b0u tr\u1eef c\u01a1 s\u1edf d\u1eef li\u1ec7u ri\u00eang \u0111\u1ec3 h\u1ea1n ch\u1ebf \u0111\u1ebfn m\u1ee9c th\u1ea5p nh\u1ea5t \u1ea3nh h\u01b0\u1edfng ti\u00eau c\u1ef1c \u0111\u1ebfn ngu\u1ed3n d\u1eef li\u1ec7u g\u1ed1c.
V\u1ec1 ph\u00eda c\u00f4ng ty ch\u1ee9ng kho\u00e1n, c\u00e1c anh ch\u1ecb c\u00f3 th\u1ec3 h\u1ee3p t\u00e1c ch\u00ednh th\u1ee9c v\u1edbi Vnstock \u0111\u1ec3 cung c\u1ea5p d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n th\u00f4ng qua c\u00e1c APIs ri\u00eang bi\u1ec7t cho ng\u01b0\u1eddi d\u00f9ng n\u00e2ng cao. Nh\u01b0 v\u1eady, h\u1ec7 th\u1ed1ng giao d\u1ecbch cho ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng s\u1ebd kh\u00f4ng b\u1ecb \u1ea3nh h\u01b0\u1edfng do thao t\u00e1c Web Scraping g\u00e2y ra. Ho\u1ea1t \u0111\u1ed9ng n\u00e0y gi\u00fap anh ch\u1ecb x\u00e2y d\u1ef1ng s\u1ef1 g\u1eafn k\u1ebft kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n v\u1edbi c\u00f4ng ty m\u00ecnh, \u0111\u1ed3ng th\u1eddi th\u00fac \u0111\u1ea9y kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n gia t\u0103ng giao d\u1ecbch qua n\u1ec1n t\u1ea3ng m\u00e0 c\u00f4ng ty cung c\u1ea5p b\u1edfi d\u1eef li\u1ec7u l\u00e0 minh b\u1ea1ch v\u00e0 d\u1ec5 d\u00e0ng truy c\u1eadp. Giao d\u1ecbch thu\u1eadt to\u00e1n l\u00e0 xu th\u1ebf t\u1ea5t y\u1ebfu c\u1ee7a t\u01b0\u01a1ng lai, vi\u1ec7c ng\u01b0\u1eddi d\u00f9ng t\u00ecm ki\u1ebfm gi\u1ea3i ph\u00e1p x\u1eed l\u00fd d\u1eef li\u1ec7u hi\u1ec7u qu\u1ea3 v\u00e0 t\u1ed1c \u0111\u1ed9 h\u01a1n khi d\u00f9ng vnstock v\u00e0 python l\u00e0 m\u1ed9t nhu c\u1ea7u thi\u1ebft y\u1ebfu n\u00ean \u0111\u01b0\u1ee3c \u0111\u00e1p \u1ee9ng. Vnstock r\u1ea5t s\u1eb5n l\u00f2ng gi\u1edbi thi\u1ec7u th\u01b0\u01a1ng hi\u1ec7u c\u1ee7a qu\u00fd c\u00f4ng ty t\u1edbi c\u1ed9ng \u0111\u1ed3ng ng\u01b0\u1eddi d\u00f9ng v\u00e0 h\u1ee3p t\u00e1c v\u1edbi qu\u00fd c\u00f4ng ty trong vi\u1ec7c x\u00e2y d\u1ef1ng h\u1ec7 sinh th\u00e1i c\u00f4ng ngh\u1ec7 cho kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n.
\u0110\u1ec3 li\u00ean h\u1ec7 h\u1ee3p t\u00e1c, anh/ch\u1ecb vui l\u00f2ng trao \u0111\u1ed5i qua email: support@vnstock.site
"},{"location":"faq/feature/#tai-sao-vnstock-chon-phat-trien-ma-nguon-mo","title":"T\u1ea1i sao vnstock ch\u1ecdn ph\u00e1t tri\u1ec3n M\u00e3 Ngu\u1ed3n M\u1edf?","text":"Kh\u00e1c v\u1edbi c\u00e1c s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n \u0111\u00f3ng (closed-source), c\u00e1c s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n m\u1edf (open-source) th\u00fac \u0111\u1ea9y t\u00ednh minh b\u1ea1ch v\u00e0 cho ph\u00e9p ph\u00e1t tri\u1ec3n ph\u1ea7n m\u1ec1m \u0111\u1ea1t ch\u1ea5t l\u01b0\u1ee3ng cao. B\u1edfi t\u00ednh m\u1edf, vnstock mu\u1ed1n ch\u00e0o \u0111\u00f3n nh\u1eefng \u00fd t\u01b0\u1edfng t\u1ed1t nh\u1ea5t, c\u00e1c nh\u00e0 ph\u00e1t tri\u1ec3n xu\u1ea5t s\u1eafc nh\u1ea5t tham gia, v\u00e0 t\u1ea1o n\u00ean m\u1ed9t c\u1ed9ng \u0111\u1ed3ng \u0111o\u00e0n k\u1ebft.
M\u1ed9t c\u00e1ch ng\u1eafn g\u1ecdn, vnstock ch\u1ecdn ph\u00e1t tri\u1ec3n m\u00e3 ngu\u1ed3n m\u1edf nh\u1eb1m th\u00fac \u0111\u1ea9y s\u1ef1 \u0111\u1ed5i m\u1edbi v\u00e0 \u0111\u1ed9t ph\u00e1 trong ph\u00e1t tri\u1ec3n c\u00f4ng ngh\u1ec7 trong l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh t\u1ea1i Vi\u1ec7t Nam. \u0110\u1ed3ng th\u1eddi, vnstock cho ph\u00e9p b\u1ea1n t\u00f9y ch\u1ec9nh m\u00e3 ngu\u1ed3n vnstock \u0111\u1ec3 ph\u00f9 h\u1ee3p v\u1edbi nhu c\u1ea7u \u0111a d\u1ea1ng c\u1ee7a m\u00ecnh.
"},{"location":"faq/feature/#tai-sao-vnstock-uoc-cung-cap-mien-phi","title":"T\u1ea1i sao vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p mi\u1ec5n ph\u00ed?","text":"T\u1ea7m nh\u00ecn
Ch\u00fang t\u00f4i tin r\u1eb1ng ho\u1ea1t \u0111\u1ed9ng nghi\u00ean c\u1ee9u \u0111\u1ea7u t\u01b0 n\u00ean \u0111\u01b0\u1ee3c ph\u1ed5 bi\u1ebfn v\u1edbi t\u1ea5t c\u1ea3 m\u1ecdi ng\u01b0\u1eddi Vi\u1ec7t Nam \u0111\u1ec3 t\u1ea1o ra m\u1ed9t c\u1ed9ng \u0111\u1ed3ng th\u1ecbnh v\u01b0\u1ee3ng, m\u1ed9t \u0111\u1ea5t n\u01b0\u1edbc ph\u00e1t tri\u1ec3n v\u1edbi n\u1ec1n d\u00e2n tr\u00ed t\u00e0i ch\u00ednh \u1edf t\u1ea7m b\u1eadc cao.
vnstock s\u01b0u t\u1ea7m c\u00e1c API c\u00f4ng khai v\u00e0 cung c\u1ea5p t\u1edbi b\u1ea1n b\u1ed9 d\u1eef li\u1ec7u ho\u00e0n ch\u1ec9nh v\u00e0 mi\u1ec5n ph\u00ed, gi\u00fap c\u00e1c c\u00e1 nh\u00e2n/t\u1ed5 ch\u1ee9c d\u1ec5 d\u00e0ng truy c\u1eadp v\u00e0o c\u00e1c d\u1eef li\u1ec7u t\u00e0i ch\u00ednh hi\u1ec7n c\u00f3 m\u00e0 kh\u00f4ng ph\u1ea3i tr\u1ea3 b\u1ea5t k\u1ef3 chi ph\u00ed n\u00e0o.
Tuy nhi\u00ean, ngu\u1ed3n d\u1eef li\u1ec7u mi\u1ec5n ph\u00ed c\u0169ng th\u1ec3 hi\u1ec7n m\u1ed9t s\u1ed1 h\u1ea1n ch\u1ebf \u0111\u1ebfn v\u1edbi \u0111\u1ed9 tin c\u1eady v\u00e0 ch\u00ednh x\u00e1c xu\u1ea5t ph\u00e1t t\u1eeb ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u (c\u00f4ng ty ch\u1ee9ng kho\u00e1n). Vnstock cung c\u1ea5p cho b\u1ea1n d\u1eef li\u1ec7u m\u00e0 c\u00e1c ngu\u1ed3n d\u1eef li\u1ec7u n\u00e0y hi\u1ec3n th\u1ecb tr\u00ean website c\u1ee7a h\u1ecd. T\u00f9y t\u1eebng th\u1eddi \u0111i\u1ec3m, ngu\u1ed3n d\u1eef li\u1ec7u ph\u00f9 h\u1ee3p \u0111\u01b0\u1ee3c l\u1ef1a ch\u1ecdn \u0111\u1ec3 cung c\u1ea5p cho b\u1ea1n.
\u0110\u1ec3 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n, ch\u00fang t\u00f4i s\u1ebd cung c\u1ea5p th\u00eam c\u00e1c t\u00f9y ch\u1ecdn tr\u1ea3 ph\u00ed h\u1ee3p l\u00fd trong th\u1eddi gian t\u1edbi gi\u00fap ng\u01b0\u1eddi d\u00f9ng \u0111\u01b0\u1ee3c l\u1ef1a ch\u1ecdn ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ea5t l\u01b0\u1ee3ng, t\u1ed1c \u0111\u1ed9 v\u1edbi \u0111\u1ed9 tin c\u1eady cao ph\u1ee5c v\u1ee5 cho nhu c\u1ea7u \u0111\u1ea7u t\u01b0/nghi\u00ean c\u1ee9u c\u1ee7a m\u00ecnh.
"},{"location":"faq/feature/#han-che-cua-du-lieu-vnstock","title":"H\u1ea1n ch\u1ebf c\u1ee7a d\u1eef li\u1ec7u vnstock?","text":"vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n d\u1ef1a tr\u00ean c\u00e1c Public APIs c\u1ee7a c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n cung c\u1ea5p cho kh\u00e1ch h\u00e0ng. Ph\u01b0\u01a1ng ph\u00e1p t\u00ednh to\u00e1n c\u1ee7a c\u00e1c d\u1eef li\u1ec7u n\u00e0y ph\u1ee5 thu\u1ed9c v\u00e0o \u0111\u1ed1i t\u00e1c cung c\u1ea5p d\u1eef li\u1ec7u v\u00e0 kh\u00f4ng \u0111\u01b0\u1ee3c chia s\u1ebb c\u00f4ng khai. Do \u0111\u00f3, khi th\u1ef1c hi\u1ec7n so s\u00e1nh d\u1eef li\u1ec7u gi\u1eefa c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u kh\u00e1c nhau b\u1ea1n c\u00f3 th\u1ec3 ph\u00e1t hi\u1ec7n ra c\u00f3 s\u1ef1 sai kh\u00e1c.
Hi\u1ec7n nay tr\u00ean th\u1ecb tr\u01b0\u1eddng, c\u00f3 m\u1ed9t s\u1ed1 ngu\u1ed3n cung c\u1ea5p d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i b\u1edfi c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n bao g\u1ed3m:
G\u1ee3i \u00fd
N\u1ebfu b\u1ea1n ph\u00e1t hi\u1ec7n ra b\u1ea5t k\u1ef3 th\u00f4ng tin n\u00e0o b\u1ea5t th\u01b0\u1eddng ho\u1eb7c kh\u00f4ng \u0111\u00e1ng tin c\u1eady, vui l\u00f2ng b\u00e1o cho t\u00e1c gi\u1ea3 v\u00e0 c\u1ed9ng \u0111\u1ed3ng th\u00f4ng qua Discord server ho\u1eb7c nh\u1eafn tin tr\u1ef1c ti\u1ebfp cho t\u00e1c gi\u1ea3.
"},{"location":"faq/ung-ho-du-an-vnstock/","title":"\u1ee6ng h\u1ed9 d\u1ef1 \u00e1n","text":""},{"location":"faq/ung-ho-du-an-vnstock/#toi-co-phai-tra-phi-khi-su-dung-vnstock","title":"T\u00f4i c\u00f3 ph\u1ea3i tr\u1ea3 ph\u00ed khi s\u1eed d\u1ee5ng vnstock?","text":"Th\u00f4ng tin
Vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p d\u01b0\u1edbi d\u1ea1ng ph\u1ea7n m\u1ec1m m\u00e3 ngu\u1ed3n m\u1edf, mi\u1ec5n ph\u00ed. B\u1ea1n \u0111\u01b0\u1ee3c t\u1ef1 do s\u1eed d\u1ee5ng, ph\u00e2n ph\u1ed1i v\u00e0 s\u1eeda \u0111\u1ed5i ph\u1ea7n m\u1ec1m theo c\u00e1c \u0111i\u1ec1u kho\u1ea3n c\u1ee7a gi\u1ea5y ph\u00e9p MIT v\u00e0 c\u00e1c nguy\u00ean t\u1eafc c\u1ee7a d\u1ef1 \u00e1n. B\u1ea1n c\u00f3 th\u1ec3 t\u00f9y t\u00e2m \u0111\u00f3ng g\u00f3p kinh ph\u00ed ph\u00e1t tri\u1ec3n v\u00e0 duy tr\u00ec d\u1ef1 \u00e1n t\u1edbi t\u00e1c gi\u1ea3.
B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn c\u00e1ch \u0111\u01a1n gi\u1ea3n l\u00e0 g\u1eedi t\u1eb7ng m\u1ed9t ly cafe nh\u01b0 vi\u1ec7c ai \u0111\u00f3 \u0111\u00e3 gi\u00fap b\u1ea1n m\u1ed9t vi\u1ec7c t\u1ed1t v\u00e0 b\u1ea1n mu\u1ed1n tri \u00e2n. \u0110\u1ec3 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n b\u1ec1n v\u1eefng, trong t\u01b0\u01a1ng lai vnstock s\u1ebd gi\u1edbi thi\u1ec7u th\u00eam c\u00e1c s\u1ea3n ph\u1ea9m/t\u00ednh n\u0103ng n\u00e2ng cao c\u00f3 tr\u1ea3 ph\u00ed b\u1edfi kh\u00f4ng ai c\u00f3 th\u1ec3 t\u1ed3n t\u1ea1i ch\u1ec9 \u0111\u1ec3 cung c\u1ea5p m\u1ecdi th\u1ee9 mi\u1ec5n ph\u00ed v\u00e0 ch\u00fang t\u00f4i c\u0169ng c\u00f3 c\u00f4ng vi\u1ec7c, gia \u0111\u00ecnh c\u1ea7n ch\u0103m lo nh\u01b0 b\u1ea1n v\u1eady. Tuy nhi\u00ean, vnstock phi\u00ean b\u1ea3n m\u00e3 ngu\u1ed3n m\u1edf lu\u00f4n mi\u1ec5n ph\u00ed.
"},{"location":"faq/ung-ho-du-an-vnstock/#toi-co-the-ong-gop-quy-vnstock-nhu-the-nao","title":"T\u00f4i c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p qu\u1ef9 Vnstock nh\u01b0 th\u1ebf n\u00e0o?","text":"\u0110\u1ec3 \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n, b\u1ea1n l\u1ef1a ch\u1ecdn 1 trong 4 c\u00e1ch sau \u0111\u00e2y:
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Ng\u00e2n h\u00e0ng nh\u1eadn: Vietcombank
chi nh\u00e1nh Thanh \u0110a
T\u00e0i kho\u1ea3n: nh\u1eadp t\u00ean VNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card [t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"faq/ung-ho-du-an-vnstock/#quy-vnstock-uoc-su-dung-nhu-the-nao","title":"Qu\u1ef9 Vnstock \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng nh\u01b0 th\u1ebf n\u00e0o?","text":"
T\u00e1c gi\u1ea3 s\u1eed d\u1ee5ng qu\u1ef9 Vnstock \u0111\u1ec3 duy tr\u00ec v\u00e0 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n. C\u1ee5 th\u1ec3, qu\u1ef9 Vnstock \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3:
Tr\u1ea3 chi ph\u00ed duy tr\u00ec m\u00e1y ch\u1ee7 v\u00e0 t\u00ean mi\u1ec1n c\u1ee7a d\u1ef1 \u00e1n.
Tr\u1ea3 chi ph\u00ed n\u00e2ng c\u1ea5p v\u00e0 v\u1eadn h\u00e0nh c\u00e1c d\u1ecbch v\u1ee5 h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng cho d\u1ef1 \u00e1n.
S\u1eed d\u1ee5ng l\u00e0m chi ph\u00ed cho c\u00e1c ho\u1ea1t \u0111\u1ed9ng qu\u1ea3ng b\u00e1 v\u00e0 marketing c\u1ee7a d\u1ef1 \u00e1n.
S\u1eed d\u1ee5ng l\u00e0m chi ph\u00ed cho c\u00e1c ho\u1ea1t \u0111\u1ed9ng \u0111\u00e0o t\u1ea1o v\u00e0 h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng.
Hi\u1ec7n t\u1ea1i Vnstock docs \u0111\u00e3 \u0111\u01b0\u1ee3c ho\u00e0n thi\u1ec7n v\u00e0 cung c\u1ea5p m\u1ed9t m\u1ea3nh gh\u00e9p quan tr\u1ecdng gi\u00fap ng\u01b0\u1eddi d\u00f9ng ti\u1ebfp c\u1eadn t\u00e0i li\u1ec7u v\u00e0 c\u00e1c h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng vnstock tr\u1ef1c quan v\u00e0 t\u1ed1i \u01b0u.
L\u01b0u \u00fd
Tr\u01b0\u1edbc khi t\u00ecm \u0111\u1ebfn t\u00e1c gi\u1ea3 \u0111\u1ec3 nh\u1eafn tin tr\u1ef1c ti\u1ebfp, b\u1ea1n vui l\u00f2ng t\u1ef1 nghi\u00ean c\u1ee9u \u0111\u1ec3 ti\u1ebft ki\u1ec7m th\u1eddi gian cho c\u1ea3 hai b\u00ean. T\u00f4i c\u0169ng c\u00f3 nh\u1eefng c\u00f4ng vi\u1ec7c v\u00e0 \u01b0u ti\u00ean ri\u00eang c\u1ee7a m\u00ecnh v\u00e0 kh\u00f4ng ph\u1ea3i l\u00fac n\u00e0o c\u0169ng s\u1eb5n s\u00e0ng h\u1ed7 tr\u1ee3 b\u1ea1n 24/4 cho nh\u1eefng c\u00e2u h\u1ecfi r\u1ea5t c\u0103n b\u1ea3n \u0111\u00e3 c\u00f3 trong t\u00e0i li\u1ec7u v\u00e0 vi\u1ec7c b\u1ea1n \u0111\u1eb7t c\u00e2u h\u1ecfi ch\u1ec9 v\u00ec m\u00ecnh \"l\u01b0\u1eddi\" t\u00ecm ki\u1ebfm. \u0110i\u1ec1u n\u00e0y l\u00e0 kh\u00f4ng th\u1ec3 ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c.
N\u1ebfu b\u1ea1n th\u1ef1c s\u1ef1 c\u1ea7n h\u1ed7 tr\u1ee3, \u0111\u00e2y l\u00e0 nh\u1eefng c\u00e1ch b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo th\u1ee9 t\u1ef1 \u01b0u ti\u00ean:
H\u1ecfi trong nh\u00f3m Facebook th\u00e0nh vi\u00ean (\u1ee6ng h\u1ed9 Vnstock 100k \u0111\u1ec3 tham gia):
H\u1ecfi trong nh\u00f3m c\u1ed9ng \u0111\u1ed3ng Discord (mi\u1ec5n ph\u00ed):
G\u1eedi email y\u00eau c\u1ea7u h\u1ed7 tr\u1ee3: support@vnstock.site
Nh\u1eafn tin tr\u1ef1c ti\u1ebfp cho t\u00e1c gi\u1ea3:
L\u01b0u \u00fd
vnstock s\u1eed d\u1ee5ng th\u01b0 vi\u1ec7n plotly l\u00e0m th\u01b0 vi\u1ec7n bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u tr\u1ef1c quan. \u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb, b\u1ea1n c\u1ea7n \u0111\u1ea3m b\u1ea3o plotly \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng.
Plotly l\u00e0 th\u01b0 vi\u1ec7n bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u m\u1ea1nh m\u1ebd trong Python, cung c\u1ea5p \u0111a d\u1ea1ng c\u00e1c lo\u1ea1i bi\u1ec3u \u0111\u1ed3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 v\u00e0 t\u1ea5t c\u1ea3 \u0111\u1ed3 th\u1ecb \u0111\u1ec1u h\u1ed7 tr\u1ee3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c quan (interactive). H\u00e0m candlestick_chart
d\u01b0\u1edbi \u0111\u00e2y \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean n\u1ec1n Plotly graph object
, h\u1ed7 tr\u1ee3 \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng c\u1ee7a Plotly.
T\u00ednh n\u0103ng v\u1ebd bi\u1ec3u \u0111\u1ed3 kh\u00f4ng ph\u1ea3i ai c\u0169ng c\u1ea7n thi\u1ebft d\u00f9ng, do \u0111\u00f3 \u0111\u1ec3 t\u1ed1i \u01b0u th\u1eddi gian c\u00e0i \u0111\u1eb7t th\u01b0 vi\u1ec7n vnstock v\u00e0 c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c, plotly
\u0111\u01b0\u1ee3c t\u00e1ch kh\u1ecfi ti\u1ebfn tr\u00ecnh c\u00e0i \u0111\u1eb7t t\u1ef1 \u0111\u1ed9ng. B\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t plotly th\u1ee7 c\u00f4ng nh\u01b0 sau:
pip install plotly\n
"},{"location":"functions/chart/#o-thi-nen","title":"\u0110\u1ed3 th\u1ecb n\u1ebfn","text":"C\u00fa ph\u00e1p c\u00e2u l\u1ec7nh v\u1ebd bi\u1ec3u \u0111\u1ed3 \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau:
from vnstock import * #import all functions, including functions that provide OHLC data for charting\nfrom vnstock.chart import * # import chart functions\ndf = stock_historical_data(\"VIC\", \"2022-01-01\", \"2023-10-10\", \"1D\", \"stock\")\nfig = candlestick_chart(df, ma_periods=[50,200], show_volume=False, reference_period=300, figure_size=(15, 8), \n title='VIC - Candlestick Chart with MA and Volume', x_label='Date', y_label='Price', \n colors=('lightgray', 'gray'), reference_colors=('black', 'blue'))\nfig.show()\n
B\u1ea1n c\u00f3 th\u1ec3 t\u00f9y ch\u1ecdn b\u1ecf qua b\u01b0\u1edbc g\u00e1n \u0111\u1ed3 th\u1ecb v\u1edbi bi\u1ebfn fig n\u1ebfu ch\u1ec9 mu\u1ed1n xem \u0111\u1ed3 th\u1ecb tr\u1ef1c ti\u1ebfp tr\u00ean Jupyter Notebook m\u00e0 kh\u00f4ng thao t\u00e1c ti\u1ebfp theo nh\u01b0 l\u01b0u file. \u0110\u1ec3 v\u1ebd bi\u1ec3u \u0111\u1ed3 cho m\u00e3 ch\u1ec9 s\u1ed1 (index) ho\u1eb7c m\u00e3 ph\u00e1i sinh (derivative), b\u1ea1n c\u1ea7n thay \u0111\u1ed5i tham s\u1ed1 type
th\u00e0nh index
ho\u1eb7c derivative
.
from vnstock import * #import all functions\n\ndf = stock_historical_data(symbol='VNINDEX', start_date='2022-01-01', end_date='2023-10-10', resolution='1D', type='index')\nfig = candlestick_chart(df, \n title='VNINDEX Candlestick Chart with MA and Volume', x_label='Date', y_label='Price', ma_periods=[50,200], \n show_volume=True, figure_size=(15, 8), reference_period=300, \n colors=('lightgray', 'gray'), reference_colors=('black', 'blue'))\nfig.show()\n
B\u1ea1n c\u00f3 th\u1ec3 \u0111i\u1ec1u ch\u1ec9nh l\u1ea1i c\u00e1c th\u00f4ng s\u1ed1 c\u1ee7a h\u00e0m cho ph\u00f9 h\u1ee3p, lo\u1ea1i b\u1ecf c\u00e1c th\u00f4ng s\u1ed1 kh\u00f4ng c\u1ea7n thi\u1ebft khi g\u1ecdi h\u00e0m s\u1ebd cho ph\u00e9p h\u00e0m s\u1eed d\u1ee5ng gi\u00e1 tr\u1ecb c\u00e0i \u0111\u1eb7t m\u1eb7c \u0111\u1ecbnh, ho\u1eb7c b\u1ea1n \u0111i\u1ec1u ch\u1ec9nh b\u1eb1ng c\u00e1ch cung c\u1ea5p tham s\u1ed1 m\u1edbi v\u00e0o. Ngo\u00e0i ra b\u1ea1n c\u00f3 th\u1ec3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c ti\u1ebfp v\u1edbi \u0111\u1ed3 th\u1ecb, v\u00ed d\u1ee5 click v\u00e0o th\u00f4ng tin ch\u00fa th\u00edch t\u01b0\u01a1ng t\u1ee9ng t\u1eebng lo\u1ea1i d\u1eef li\u1ec7u \u0111\u1ec3 b\u1eadt/t\u1eaft ch\u00fang m\u00e0 kh\u00f4ng c\u1ea7n can thi\u1ec7p v\u00e0o d\u00f2ng l\u1ec7nh.
C\u00e1c tham s\u1ed1 c\u1ee7a h\u00e0m bao g\u1ed3m:
df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLCma_periods
: C\u00e1c d\u1ea3i MA c\u1ea7n t\u00ednh to\u00e1n, nh\u1eadp v\u00e0o d\u01b0\u1edbi d\u1ea1ng m\u1ed9t danh s\u00e1ch. V\u00ed d\u1ee5 [10, 50, 200] s\u1ebd cho ph\u00e9p t\u00ednh MA10, MA50, MA200. B\u1ea1n c\u00f3 th\u1ec3 nh\u1eadp bao nhi\u00eau d\u1ea3i MA t\u00f9y th\u00edch.show_volume
: True \u0111\u1ec3 hi\u1ec3n th\u1ecb th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch, False \u0111\u1ec3 \u1ea9n.reference_period
: S\u1ed1 ng\u00e0y \u0111\u1ec3 t\u00ednh to\u00e1n \u0111\u01b0\u1eddng tham chi\u1ebfu \u0111\u1ec9nh/\u0111\u00e1y c\u1ee7a gi\u00e1 V\u00ed d\u1ee5 90.figure_size
: K\u00edch th\u01b0\u1edbc \u0111\u1ed3 th\u1ecb, nh\u1eadp d\u01b0\u1edbi d\u1ea1ng tupple v\u00ed d\u1ee5 (15, 8) th\u1ec3 hi\u1ec7n 1500 x 800px.title
: T\u00ean c\u1ee7a \u0111\u1ed3 th\u1ecb.x_label
: Nh\u00e3n tr\u1ee5c x (ho\u00e0nh)y_label
: Nh\u00e3n tr\u1ee5c y (tung)colors
: M\u00e3 m\u00e0u th\u1ec3 hi\u1ec7n cho kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trong nh\u1eefng ng\u00e0y gi\u00e1 c\u1ed5 phi\u1ebfu t\u0103ng/gi\u1ea3m, \u0111\u01b0\u1ee3c nh\u1eadp d\u01b0\u1edbi d\u1ea1ng tupple. V\u00ed d\u1ee5 ('#00F4B0', '#FF3747').reference_color
: C\u1eb7p m\u00e3 m\u00e0u cho \u0111\u01b0\u1eddng gi\u00e1 th\u1ea5p nh\u1ea5t (lowest low), v\u00e0 cao nh\u1ea5t (highest high) \u0111\u01b0\u1ee3c nh\u1eadp v\u00e0o d\u01b0\u1edbi d\u1ea1ng tupple. V\u00ed d\u1ee5 ('black', 'blue')C\u00fa ph\u00e1p c\u00e2u l\u1ec7nh v\u1ebd bi\u1ec3u \u0111\u1ed3 \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau:
from vnstock import * #import all functions\ndf = stock_historical_data(symbol='VNINDEX', start_date='2022-01-01', end_date='2023-10-10', resolution='1D', type='index')\nbollinger_df = bollinger_bands(df, window=20, num_std_dev=2)\nfig = bollinger_bands_chart(bollinger_df, use_candlestick=True, show_volume=True, \n fig_size=(15, 8), chart_title='Bollinger Bands Chart', xaxis_title='Date', yaxis_title='Price', \n bollinger_band_colors=('gray', 'orange', 'gray'), volume_colors=('#00F4B0', '#FF3747'))\nfig.show()\n
K\u1ebft qu\u1ea3 nh\u01b0 sau:
Trong \u0111\u00f3, DataFrame df
c\u00f3 th\u1ec3 kh\u00f4ng ph\u1ea3i t\u00ednh to\u00e1n l\u1ea1i n\u1ebfu \u0111\u00e3 khai b\u00e1o tr\u01b0\u1edbc \u0111\u00f3 trong d\u1ef1 \u00e1n.
H\u00e0m bollinger_bands cho ph\u00e9p t\u00f9y ch\u1ec9nh c\u00e1c tham s\u1ed1 t\u00ednh to\u00e1n gi\u00e1 tr\u1ecb \u0111\u1ec3 s\u1eed d\u1ee5ng trong bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u, c\u00e1c tham s\u1ed1 bao g\u1ed3m: - df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLC, s\u1eed d\u1ee5ng h\u00e0m stock_historical_data. - window
: Khung th\u1eddi gian \u0111\u1ec3 t\u00ednh to\u00e1n gi\u00e1 tr\u1ecb trung b\u00ecnh \u0111\u1ed9ng \u0111\u01a1n gi\u1ea3n (SMA), m\u1eb7c \u0111\u1ecbnh l\u00e0 20 ng\u00e0y. - num_std_dev
: S\u1ed1 k\u1ef3 t\u00ednh \u0111\u1ed9 l\u1ec7ch chu\u1ea9n. M\u1eb7c \u0111\u1ecbnh l\u00e0 2.
H\u00e0m v\u1ebd \u0111\u1ed3 th\u1ecb Bollinger Bands bao g\u1ed3m c\u00e1c tham s\u1ed1:
df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u Bollinger Bands: time, open, high, low, close, volume, ticker, upper_band, middle_band, lower_band. D\u1eef li\u1ec7u n\u00e0y c\u00f3 \u0111\u01b0\u1ee3c sau khi x\u1eed l\u00fd d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLC (h\u00e0m stock_historical_data) v\u1edbi h\u00e0m bollinger_bands
.use_candlestick
: Ch\u1ecdn s\u1eed d\u1ee5ng \u0111\u1ed3 th\u1ecb n\u1ebfn (gi\u00e1 tr\u1ecb True) hay ch\u1ec9 bi\u1ec3u di\u1ec5n gi\u00e1 \u0111\u00f3ng c\u1eeda d\u1ea1ng \u0111\u1ed3 th\u1ecb \u0111\u01b0\u1eddng (gi\u00e1 tr\u1ecb False). M\u1eb7c \u0111\u1ecbnh d\u00f9ng \u0111\u1ed3 th\u1ecb n\u1ebfn.show_volume
: Ch\u1ecdn hi\u1ec3n th\u1ecb th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch (True) ho\u1eb7c \u1ea9n \u0111i (False). M\u1eb7c \u0111\u1ecbnh hi\u1ec3n th\u1ecb.fig_size
: Tupple ch\u1ee9a gi\u00e1 tr\u1ecb k\u00edch th\u01b0\u1edbc \u0111\u1ed3 th\u1ecb (width, height). V\u00ed d\u1ee5 (15, 8) th\u1ec3 hi\u1ec7n 1500 x 800px.chart_title
: T\u00ean c\u1ee7a \u0111\u1ed3 th\u1ecb. N\u1ebfu kh\u00f4ng ch\u1ec9 r\u00f5, s\u1ebd d\u00f9ng t\u00ean m\u1eb7c \u0111\u1ecbnhxaxis_title
: T\u00ean c\u1ee7a tr\u1ee5c x (ho\u00e0nh)yaxis_title
: T\u00ean c\u1ee7a tr\u1ee5c y (tung)bollinger_band_colors
: Tupple ch\u1ee9a b\u1ed9 m\u00e3 m\u00e0u cho d\u1ea3i Bollinger Bands (upper, middle, lower).volume_colors
: Tuple ch\u1ee9a m\u00e3 m\u00e0u cho th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trong nh\u1eefng ng\u00e0y gi\u00e1 t\u0103ng, gi\u1ea3m. V\u00ed d\u1ee5 ('green', 'red').\u0110\u1ec3 l\u01b0u \u0111\u1ed3 th\u1ecb v\u1edbi c\u00e2u l\u1ec7nh, b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c kaleido
sau \u0111\u00f3 th\u1ef1c hi\u1ec7n l\u01b0u file nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y. Sau khi c\u00e0i \u0111\u1eb7t th\u00ec c\u1ea7n ph\u1ea3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i runtime c\u1ee7a Jupyter Notebook. Tr\u00ean Google Colab ch\u1ecdn Menu Runtime
-> Restart runtime
. Sau \u0111\u00f3 b\u1ea1n c\u1ea7n ch\u1ea1y l\u1ea1i c\u00e1c l\u1ec7nh \u0111\u1ec3 v\u1ebd \u0111\u1ed3 th\u1ecb r\u1ed3i m\u1edbi c\u00f3 th\u1ec3 l\u01b0u. Vi\u1ec7c n\u00e0y kh\u00e1 b\u1ea5t ti\u1ec7n, do \u0111\u00f3 n\u1ebfu kh\u00f4ng c\u00f3 nhu c\u1ea7u l\u01b0u file b\u1eb1ng c\u00e2u l\u1ec7nh, b\u1ea1n c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n t\u1eeb giao di\u1ec7n \u0111\u1ed3 h\u1ecda c\u1ee7a \u0111\u1ed3 th\u1ecb, ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng c\u00e1i m\u00e1y \u1ea3nh (thanh c\u00f4ng c\u1ee5 ph\u00eda tr\u00ean b\u00ean ph\u1ea3i), click v\u00e0o v\u00e0 ch\u1ecdn th\u01b0 m\u1ee5c \u0111\u1ec3 l\u01b0u file.
!pip install -U kaleido\n
Vi\u1ec7c c\u00e0i \u0111\u1eb7t ch\u1ec9 c\u1ea7n th\u1ef1c hi\u1ec7n m\u1ed9t l\u1ea7n, cu\u1ed1i c\u00f9ng d\u00f9ng c\u00e2u l\u1ec7nh sau \u0111\u1ec3 l\u01b0u file \u1ea3nh. Thay \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn th\u01b0 m\u1ee5c v\u00e0 t\u00ean file theo \u00fd b\u1ea1n \u0111\u1ec3 l\u01b0u file \u1ea3nh v\u00e0o th\u01b0 m\u1ee5c mong mu\u1ed1n. fig.write_image(\"TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/VNINDEX_candlestick.png\")\n
"},{"location":"functions/chart/#go-loi-thu-vien-phu-thuoc","title":"G\u1ee1 l\u1ed7i th\u01b0 vi\u1ec7n ph\u1ee5 thu\u1ed9c","text":"B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y l\u1ec7nh c\u00e0i \u0111\u1eb7t to\u00e0n b\u1ed9 th\u01b0 vi\u1ec7n ph\u1ee5 thu\u1ed9c t\u1eeb file requirements.txt
. T\u1ea3i file requirements.txt v\u1ec1 m\u00e1y c\u1ee7a b\u1ea1n. H\u00e3y \u0111\u1ea3m b\u1ea3o b\u1ea1n \u0111\u00e3 cd
\u0111\u1ebfn \u0111\u00fang th\u01b0 m\u1ee5c ch\u1ee9a file requirements.txt tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh.
cd TH\u01af_M\u1ee4C_CH\u1ee8A_FILE\n
pip install -r requirements.txt\n
"},{"location":"functions/chart/#xay-dung-dashboard-voi-streamlit","title":"X\u00e2y d\u1ef1ng dashboard v\u1edbi Streamlit","text":"\u0110\u1ec3 t\u1ed1i \u01b0u s\u1ee9c m\u1ea1nh c\u1ee7a vnstock v\u00e0 x\u00e2y d\u1ef1ng nh\u1eefng s\u1ea3n ph\u1ea9m th\u1ef1c s\u1ef1 trong ph\u00e2n t\u00edch \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n th\u00ec Streamlit l\u00e0 l\u1ef1a ch\u1ecdn h\u00e0ng \u0111\u1ea7u. Streamlit l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n m\u00e3 ngu\u1ed3n m\u1edf, cho ph\u00e9p b\u1ea1n x\u00e2y d\u1ef1ng c\u00e1c \u1ee9ng d\u1ee5ng web tr\u1ef1c quan v\u1edbi Python m\u1ed9t c\u00e1ch nhanh ch\u00f3ng v\u00e0 d\u1ec5 d\u00e0ng. Vnstock Web App ch\u00ednh l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb ch\u00ednh vnstock \u0111\u1ec3 t\u1ea1o ra \u1ee9ng d\u1ee5ng v\u1edbi giao di\u1ec7n \u0111\u1ed3 h\u1ecda tr\u1ef1c quan v\u00e0 th\u00e2n thi\u1ec7n. Web App n\u00e0y ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y, kh\u00f4ng c\u1ea7n thi\u1ebft l\u1eadp b\u1ea5t c\u1ee9 c\u01a1 s\u1edf d\u1eef li\u1ec7u n\u00e0o, d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o c\u1ee7a Web App ch\u00ednh l\u00e0 c\u00e1c APIs do vnstock cung c\u1ea5p.
\u0110\u1ec3 c\u00f3 th\u1ec3 l\u00e0m ch\u1ee7 Streamlit nhanh ch\u00f3ng v\u1edbi l\u1ed9 tr\u00ecnh \u0111\u00e0o t\u1ea1o th\u1ef1c t\u1ebf, \u1ee9ng d\u1ee5ng cho ch\u00ednh th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 s\u1eed d\u1ee5ng vnstock. B\u1ea1n c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam v\u1edbi Th\u1ecbnh v\u1ec1 kh\u00f3a h\u1ecdc ng\u1eafn h\u1ea1n s\u1eafp tri\u1ec3n khai.
"},{"location":"functions/comparison/","title":"So s\u00e1nh c\u1ed5 phi\u1ebfu ti\u1ec1m n\u0103ng","text":"G\u1ee3i \u00fd
B\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i xu\u1ed1ng b\u1ea3ng gi\u00e1 c\u1ee7a m\u1ed9t danh s\u00e1ch c\u00e1c c\u1ed5 phi\u1ebfu \u0111\u01b0\u1ee3c ch\u1ecdn \u0111\u1ec3 ph\u00e2n t\u00edch, thi\u1ebft l\u1eadp thu\u1eadt to\u00e1n d\u1ec5 d\u00e0ng h\u01a1n (khi xu\u1ea5t ra Google Sheets/Excel) so v\u1edbi vi\u1ec7c xem tr\u1ef1c ti\u1ebfp tr\u00ean b\u1ea3ng gi\u00e1 c\u1ee7a c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n.
"},{"location":"functions/comparison/#bang-gia","title":"B\u1ea3ng gi\u00e1","text":"Minh h\u1ecda B\u1ea3ng gi\u00e1 TCBS
"},{"location":"functions/comparison/#khop-lenh-buoc-gia-khoi-luong","title":"Kh\u1edbp l\u1ec7nh, B\u01b0\u1edbc gi\u00e1 & kh\u1ed1i l\u01b0\u1ee3ng","text":"price_depth('TCB,SSI,VND')\n
S\u1eed d\u1ee5ng h\u00e0m n\u00e0y cho ph\u00e9p th\u1ed1ng k\u00ea c\u00e1c b\u01b0\u1edbc gi\u00e1 v\u00e0 kh\u1ed1i l\u01b0\u1ee3ng tr\u00ean b\u1ea3ng gi\u00e1 c\u1ee7a m\u1ed9t ho\u1eb7c m\u1ed9t danh s\u00e1ch c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng k\u1ebft h\u1ee3p h\u00e0m n\u00e0y v\u1edbi h\u00e0m price_board \u0111\u1ec3 k\u1ebft h\u1ee3p c\u00e1c th\u00f4ng tin \u0111a d\u1ea1ng v\u1ec1 gi\u00e1, kh\u1ed1i l\u01b0\u1ee3ng, ch\u1ec9 s\u1ed1, th\u00f4ng tin giao d\u1ecbch \u0111\u1ec3 ch\u1ecdn l\u1ecdc v\u00e0 theo d\u00f5i c\u1ed5 phi\u1ebfu theo m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng c\u1ee7a m\u00ecnh. >>> price_depth('TCB,SSI,VND').T\n 0 1 2\nM\u00e3 CP TCB SSI VND\nGi\u00e1 tham chi\u1ebfu 30650 30100 19150\nGi\u00e1 Tr\u1ea7n 32750 32200 20450\nGi\u00e1 S\u00e0n 28550 28000 17850\nGi\u00e1 mua 3 31100 29850 18900\nKL mua 3 1630 3240 8310\nGi\u00e1 mua 2 31050 29800 18850\nKL mua 2 1320 10690 13480\nGi\u00e1 mua 1 31000 29750 18800\nKL mua 1 2260 3220 12160\nGi\u00e1 kh\u1edbp l\u1ec7nh 31100 29900 18900\nKL Kh\u1edbp l\u1ec7nh 90 140 100\nGi\u00e1 b\u00e1n 1 31200 29900 18950\nKL b\u00e1n 1 2140 2980 6720\nGi\u00e1 b\u00e1n 2 31250 29950 19000\nKL b\u00e1n 2 5410 4340 16200\nGi\u00e1 b\u00e1n 3 31300 30000 19050\nKL b\u00e1n 3 810 17840 11000\nT\u1ed5ng Kh\u1ed1i L\u01b0\u1ee3ng 164810 1783250 1812410\n\u0110TNN Mua 0 45896 20285\n\u0110TNN B\u00e1n 0 77526 38110\n\u0110TNN Room 0 837230225 936537977\n
"},{"location":"functions/comparison/#thong-tin-giao-dich","title":"Th\u00f4ng tin giao d\u1ecbch","text":"price_board('TCB,SSI,VND')\n
H\u00e0m n\u00e0y cho ph\u00e9p t\u1ea3i v\u1ec1 th\u00f4ng tin gi\u00e1, kh\u1ed1i l\u01b0\u1ee3ng v\u00e0 c\u00e1c ch\u1ec9 s\u1ed1 quan tr\u1ecdng cho m\u1ed9t ho\u1eb7c m\u1ed9t danh s\u00e1ch m\u00e3 c\u1ed5 phi\u1ebfu. S\u1eed d\u1ee5ng k\u1ebft h\u1ee3p v\u1edbi h\u00e0m price_depth cho hi\u1ec7u qu\u1ea3 t\u1ed1t nh\u1ea5t. >>> price_board('TCB,SSI,VND').T\n 0 1 2\nM\u00e3 CP TCB SSI VND\nGi\u00e1 31100.0 29900.0 18850.0\nKLBD/TB5D 0.95 1.33 1.28\nT.\u0111\u1ed9 GD 0.82 0.68 0.83\nKLGD r\u00f2ng(CM) 0 -219100 198000\n%KLGD r\u00f2ng (CM) 0.0 -19.6 14.2\nRSI 35.168889 38.43115 35.726964\nMACD Hist -0.13 -0.34 -0.23\nMACD Signal Neutral Sell Sell\nT\u00edn hi\u1ec7u KT Neutral Neutral Neutral\nT\u00edn hi\u1ec7u TB \u0111\u1ed9ng Strong Buy Strong Buy Strong Buy\nMA20 32265.0 31957.5 20772.5\nMA50 33446.0 32258.0 21899.0\nMA100 33034.5 29527.0 20479.0\nPhi\u00ean +/- -6 -1 -1\n% thay \u0111\u1ed5i gi\u00e1 3D -3.5 -4.3 -4.3\n% thay \u0111\u1ed5i gi\u00e1 1M -10.1 -15.7 -22.0\n% thay \u0111\u1ed5i gi\u00e1 3M -5.1 5.4 4.1\n% thay \u0111\u1ed5i gi\u00e1 1Y 21.1 75.8 31.2\nRS 3D 50.0 34.0 22.0\nRS 1M 38.0 23.0 11.0\nRS 3M 45.0 76.0 73.0\nRS 1Y 69.0 95.0 77.0\nRS TB 50.0 57.0 46.0\n\u0110\u1ec9nh 1M 34350 36450 25250\n\u0110\u1ec9nh 3M 35750 36450 25250\n\u0110\u1ec9nh 1Y 35750 36450 25250\n\u0110\u00e1y 1M 30650 30100 19150\n\u0110\u00e1y 3M 30650 28000 18100\n\u0110\u00e1y 1Y 20700 13373 9720\n%\u0110\u1ec9nh 1Y -14.3 -17.4 -24.2\n%\u0110\u00e1y 1Y 48.1 125.1 97.0\nP/E 6.1 22.4 41.0\nP/B 0.9 2.0 1.5\nROE 0.15834 0.090235 0.038377\nTCRating 4.2 3.8 3.8\nKh\u1ed1i l\u01b0\u1ee3ng D\u01b0 b\u00e1n 84500 251400 292000\nKh\u1ed1i l\u01b0\u1ee3ng D\u01b0 mua 51000 168800 503100\nTCBS \u0111\u1ecbnh gi\u00e1 48627 17496 12096\nKh\u1edbp nhi\u1ec1u nh\u1ea5t 30650 29500 18800\n\u0110.g\u00f3p VNINDEX 0.4 -0.08 -0.09\n%Gi\u00e1 - %VNI (1M) 0.1 -5.5 -11.8\n%Gi\u00e1 - %VNI (1Y) 18.9 73.5 28.9\nVNINDEX P/E 13.9448 13.9448 13.9448\nVNINDEX P/B 1.58262 1.58262 1.58262\nvnid3d -3.0 -3.0 -3.0\nvnid1m -10.2 -10.2 -10.2\nvnid3m -7.3 -7.3 -7.3\nvnid1y 2.3 2.3 2.3\n
"},{"location":"functions/comparison/#so-sanh-co-phieu-cung-nganh","title":"So s\u00e1nh c\u1ed5 phi\u1ebfu c\u00f9ng ng\u00e0nh","text":"industry_analysis(\"VNM\", lang='vi')\n
- Tr\u1ea3 v\u1ec1 th\u00f4ng tin c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu c\u00f9ng ng\u00e0nh v\u1edbi m\u00e3 c\u1ed5 phi\u1ebfu n\u1eb1m trong c\u00f9ng nh\u00f3m ng\u00e0nh v\u1edbi m\u00e3 VNM. - Tham s\u1ed1 lang='vi m\u1eb7c \u0111\u1ecbnh tr\u1ea3 v\u1ec1 t\u00ean c\u00e1c ch\u1ec9 s\u1ed1 b\u1eb1ng ti\u1ebfng Vi\u1ec7t, \u0111\u1ed5i th\u00e0nh en \u0111\u1ec3 gi\u1eef nguy\u00ean ch\u1ec9 s\u1ed1 v\u1edbi t\u00ean ti\u1ebfng Anh. dividend (C\u1ed5 t\u1ee9c), ROE, ROA, ebitOnInterest (Thanh to\u00e1n l\u00e3i vay), currentPayment (Thanh to\u00e1n hi\u1ec7n h\u00e0nh), quickPayment (Thanh to\u00e1n nhanh), grossProfitMargin (Bi\u00ean LNG), postTaxMargin (Bi\u00ean LNST), badDebtPercentage (T\u1ec9 l\u1ec7 n\u1ee3 x\u1ea5u), debtOnEquity (N\u1ee3/V\u1ed1n CSH), debtOnEbitda (N\u1ee3/EBITDA), income5year (LNST 5 n\u0103m), sale5year (Doanh thu 5 n\u0103m), income1quarter (LNST qu\u00fd g\u1ea7n nh\u1ea5t), sale1quarter (Doanh thu qu\u00fd g\u1ea7n nh\u1ea5t), nextIncome (LNST n\u0103m t\u1edbi), nextSale (Doanh thu qu\u00fd t\u1edbi)
L\u01b0u \u00fd: T\u00ean c\u00e1c column c\u00f3 th\u1ec3 ch\u01b0a \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ed5i \u0111\u1ea7y \u0111\u1ee7 th\u00e0nh ti\u1ebfng Vi\u1ec7t. N\u1ebfu g\u1eb7p ch\u1ec9 s\u1ed1 n\u00e0o ch\u01b0a \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ed5i t\u00ean th\u00e0nh ti\u1ebfng Vi\u1ec7t, b\u1ea1n vui l\u00f2ng comment cho t\u00e1c gi\u1ea3 nh\u00e9.
K\u1ebft qu\u1ea3:
>>> industry_analysis('VNM', lang='vi')\nM\u00e3 CP VNM MSN MCH QNS KDC IDP SBT MML PAN MCM VSF VOC OCH VSN CLX LSS KTC HSL HKB\nV\u1ed1n h\u00f3a (t\u1ef7) None 107634 51307 17543 16102 13204 11478 10108 4303 4232 3979 2890 1680 1618 1274 932 383 219 46\nGi\u00e1 None 75600 71603 49149 62600 224000 15500 30900 20600 38473 7958 23727 8400 19994 14713 12500 10500 6180 900\nS\u1ed1 phi\u00ean t\u0103ng/gi\u1ea3m li\u00ean ti\u1ebfp None 3 2 4 0 -3 3 1 -1 1 -2 0 0 0 1 3 0 -1 0\nP/E NaN 49.2 9.1 12.3 -215.9 16.7 16.6 -18.7 13.2 11.7 -384.1 2.4 15.2 11.9 7.1 23.5 37.3 14.6 -0.8\nPEG NaN -0.6 -8.0 0.9 1.9 -1.6 -1.4 0.1 -1.9 5.9 4.0 0.0 -0.1 -1.6 1.1 2.2 -0.8 0.8 0.5\nP/B NaN 4.1 2.2 2.3 2.5 6.5 1.2 1.9 1.0 1.8 1.7 1.1 1.3 1.2 0.8 0.6 1.0 0.5 0.2\nEV/EBITDA NaN 20.0 8.2 10.4 36.1 13.1 13.7 -267.0 7.2 11.4 25.9 -8.9 6.3 8.3 10.5 6.5 20.0 12.8 -3.1\nC\u1ed5 t\u1ee9c NaN 0.009 0.0 0.0 0.086 0.033 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0\nROE NaN 0.081 0.277 0.195 -0.011 0.442 0.076 -0.098 0.075 0.159 -0.005 0.591 0.086 0.107 0.118 0.025 0.025 0.036 -0.263\nROA NaN 0.016 0.175 0.128 -0.006 0.22 0.025 -0.042 0.021 0.14 -0.001 0.484 0.049 0.067 0.082 0.014 0.007 0.031 -0.15\nThanh to\u00e1n l\u00e3i vay NaN 0.5 9.1 8.5 -0.2 19.4 0.9 -0.8 1.3 NaN 0.3 -2.0 -3.2 67.7 22.1 2.2 0.9 6.9 -4.4\nThanh to\u00e1n hi\u1ec7n h\u00e0nh NaN 0.8 2.7 1.8 1.6 1.5 1.2 1.4 1.3 8.6 1.0 4.2 1.9 2.5 3.1 1.3 0.9 9.7 0.3\nThanh to\u00e1n nhanh NaN 0.6 2.5 1.4 1.2 1.3 0.9 1.1 0.9 7.7 0.4 3.4 1.7 1.7 2.9 0.3 0.5 8.6 0.3\nBi\u00ean LNG NaN 0.272 0.432 0.28 0.188 0.385 0.115 0.117 0.171 0.323 0.067 NaN 0.286 0.247 0.264 0.121 0.035 0.039 0.728\nBi\u00ean LNST NaN 0.011 0.228 0.149 NaN 0.138 0.026 NaN 0.016 0.138 NaN 6.467 NaN 0.039 0.372 0.017 0.004 0.024 NaN\nN\u1ee3/V\u1ed1n CSH NaN 2.0 0.3 0.4 0.6 0.4 1.3 1.0 0.7 0.0 1.5 0.1 0.1 0.0 0.0 0.4 2.3 0.0 0.5\nN\u1ee3/EBITDA NaN 7.6 1.1 1.5 8.1 0.7 7.2 -88.3 3.4 0.1 12.3 -1.1 0.7 1.1 0.4 2.6 15.5 0.8 -2.0\nLNST 5 n\u0103m NaN 0.028 0.207 0.046 -0.04 NaN 0.12 NaN 0.001 0.098 NaN NaN NaN 0.012 0.065 -0.1 -0.157 -0.081 NaN\nDoanh thu 5 n\u0103m NaN 0.152 0.153 0.016 0.123 NaN 0.22 -0.239 0.274 0.049 -0.053 -0.181 -0.018 -0.002 0.088 -0.008 0.067 0.16 -0.474\nLNST qu\u00fd g\u1ea7n nh\u1ea5t NaN -0.519 -0.255 -0.258 NaN 0.316 0.443 NaN -0.694 0.397 NaN NaN NaN -0.131 0.092 NaN 36.983 -0.44 NaN\nDoanh thu qu\u00fd g\u1ea7n nh\u1ea5t NaN -0.094 -0.252 0.093 -0.302 -0.057 -0.181 0.031 -0.352 -0.067 -0.31 -0.675 -0.197 -0.134 -0.123 0.102 -0.122 -0.142 0.009\nLNST n\u0103m t\u1edbi NaN 0.285 0.26 0.173 -0.202 0.074 0.047 -0.719 -0.041 0.04 -0.939 0.116 6.025 -0.034 0.09 -0.155 0.813 0.022 NaN\nDoanh thu n\u0103m t\u1edbi NaN 0.2 0.3 0.162 0.283 0.1 0.1 -0.7 0.05 0.05 0.03 0.15 -0.5 0.1 0.3 -0.08 -0.06 0.02 NaN\nRSI NaN 50.7 43.1 71.8 24.0 28.5 59.2 33.7 68.2 53.5 46.6 44.1 51.1 32.3 55.5 55.3 33.3 54.8 61.1\n
"},{"location":"functions/comparison/#so-sanh-cac-co-phieu-tuy-y","title":"So s\u00e1nh c\u00e1c c\u1ed5 phi\u1ebfu t\u00f9y \u00fd","text":"Ghi nh\u1eadn l\u1ed7i
20/10/2023: Hi\u1ec7n t\u1ea1i h\u00e0m ghi nh\u1eadn l\u1ed7i kh\u00f4ng tr\u1ea3 v\u1ec1 k\u1ebft qu\u1ea3 nh\u01b0 mong mu\u1ed1n t\u1eeb ch\u00ednh ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u l\u00e0 TCBS.
stock_ls_analysis(\"TCB, BID, CEO, GMD\", lang='vi')\n
K\u1ebft qu\u1ea3:
>>> stock_ls_analysis(\"TCB, BID, CEO, GMD\", lang='vi')\nM\u00e3 CP BID CEO GMD TCB\nV\u1ed1n h\u00f3a (t\u1ef7) 203353 9367 19853 107803\nGi\u00e1 40200 18200 64900 30650\nS\u1ed1 phi\u00ean t\u0103ng/gi\u1ea3m li\u00ean ti\u1ebfp 1 0 2 -6\nP/E 10.0 32.8 8.7 6.1\nPEG 0.2 2.3 0.1 -0.5\nP/B 1.8 2.8 2.3 0.9\nC\u1ed5 t\u1ee9c 0.0 0.0 0.045 0.0\nROE 0.203 0.09 0.294 0.158\nROA 0.01 0.04 0.18 0.026\nN\u1ee3/V\u1ed1n CSH 17.6 0.2 0.2 5.0\nLNST 5 n\u0103m 0.218 0.094 0.144 0.256\nDoanh thu 5 n\u0103m 0.123 0.068 -0.004 0.2\nLNST qu\u00fd g\u1ea7n nh\u1ea5t -0.008 0.412 7.163 -0.009\nDoanh thu qu\u00fd g\u1ea7n nh\u1ea5t -0.001 -0.073 0.011 0.003\nLNST n\u0103m t\u1edbi -0.023 -0.012 1.288 -0.084\nDoanh thu n\u0103m t\u1edbi 0.124 -0.1 0.0 0.084\nRSI 29.2 34.9 54.9 29.0\nRS 44.0 48.0 85.0 50.0\n
"},{"location":"functions/evaluation/","title":"Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m stock_evaluation
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edch
period
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: 1
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, 2
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
time_window
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: D
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, W
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
Minh h\u1ecda cho h\u00e0m n\u00e0y nh\u01b0 sau:
Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m stock_evaluation
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1: - symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edch
period
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: 1
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, 2
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
time_window
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: D
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, W
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
Minh h\u1ecda cho h\u00e0m n\u00e0y nh\u01b0 sau:
stock_evaluation (symbol='TCB', period=1, time_window='D')\n
>>> stock_evaluation (symbol='TCB', period=1, time_window='D')\n ticker fromDate toDate PE PB industryPE vnindexPE industryPB vnindexPB\n0 TCB 2022-09-05 2022-09-05 6.4 1.2 9.8 14.0 1.7 2.0\n1 TCB 2022-09-06 2022-09-06 6.4 1.2 9.9 14.0 1.7 2.0\n2 TCB 2022-09-07 2022-09-07 6.2 1.2 9.6 13.7 1.7 2.0\n3 TCB 2022-09-08 2022-09-08 6.2 1.2 9.4 13.5 1.6 1.9\n4 TCB 2022-09-09 2022-09-09 6.2 1.2 9.5 13.7 1.6 2.0\n.. ... ... ... ... ... ... ... ... ...\n245 TCB 2023-08-25 2023-08-25 6.7 1.0 9.3 14.8 1.5 1.7\n246 TCB 2023-08-28 2023-08-28 6.7 1.0 9.3 15.0 1.6 1.7\n247 TCB 2023-08-29 2023-08-29 6.7 1.0 9.4 15.1 1.6 1.7\n248 TCB 2023-08-30 2023-08-30 6.7 1.0 9.5 15.2 1.6 1.7\n249 TCB 2023-08-31 2023-08-31 6.8 1.0 9.6 15.4 1.6 1.7\n\n[250 rows x 9 columns]\n
"},{"location":"functions/export/","title":"Xu\u1ea5t d\u1eef li\u1ec7u","text":"Xu\u1ea5t file csv
Xu\u1ea5t d\u1eef li\u1ec7u ra d\u1ea1ng b\u1ea3ng t\u00ednh \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 m\u1eb7c \u0111\u1ecbnh b\u1edfi vnstock v\u00ec b\u1ea3n th\u00e2n d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 khi b\u1ea1n g\u1ecdi h\u00e0m vnstock b\u1ea5t k\u1ef3 l\u00e0 c\u00e1c Pandas DataFrame trong Python c\u00f3 h\u1ed7 tr\u1ee3 kh\u1ea3 n\u0103ng n\u00e0y. vnstock ho\u1ea1t \u0111\u1ed9ng t\u1ed1t nh\u1ea5t khi t\u00edch h\u1ee3p v\u1edbi h\u1ec7 sinh th\u00e1i Python, tuy nhi\u00ean n\u1ebfu b\u1ea1n ch\u01b0a s\u1eb5n s\u00e0ng s\u1eed d\u1ee5ng Python th\u00ec v\u1eabn c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb vnstock cho c\u00e1c ph\u1ea7n m\u1ec1m quen thu\u1ed9c nh\u01b0 CSV, Excel hay Google Sheets ho\u1eb7c th\u1eadm ch\u00ed l\u00e0 l\u01b0u v\u00e0o c\u01a1 s\u1edf d\u1eef li\u1ec7u. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1ch th\u1ef1c hi\u1ec7n.
"},{"location":"functions/export/#xuat-file-csv","title":"Xu\u1ea5t file CSV","text":"Khi g\u1ecdi m\u1ed9t h\u00e0m vnstock, b\u1ea1n c\u00f3 th\u1ec3 g\u00e1n k\u1ebft qu\u1ea3 c\u1ee7a h\u00e0m v\u1edbi m\u1ed9t bi\u1ebfn b\u1ea5t k\u1ef3 v\u00e0 xu\u1ea5t ra file csv. V\u00ed d\u1ee5 v\u1edbi h\u00e0m l\u1ea5y gi\u00e1 l\u1ecbch s\u1eed:
from vnstock import * # b\u1ecf qua d\u00f2ng n\u00e0y n\u1ebfu \u0111\u00e3 th\u1ef1c hi\u1ec7n import\ndf = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True)\ndf.to_csv(r'\u0110\u01af\u1edcNG_D\u1eaaN_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/GMD.csv', index=False)\n
Trong \u0111\u00f3:
df
b\u1eb1ng t\u00ean \u0111\u1ed1i t\u01b0\u1ee3ng DataFrame b\u1ea5t k\u1ef3 tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m c\u1ee7a vnstock./
, v\u00ed d\u1ee5 /content/drive/MyDrive/Colab Notebooks/GMD.csv
.\\
, v\u00ed d\u1ee5 C:\\Users\\user\\Downloads\\GMD.csv
. L\u01b0u \u00fd \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c cho m\u00e1y t\u00ednh Windows, c\u1ea7n s\u1eed d\u1ee5ng ch\u1eef r
ph\u00eda tr\u01b0\u1edbc nh\u01b0 trong code m\u1eabu.from vnstock import * # b\u1ecf qua d\u00f2ng n\u00e0y n\u1ebfu \u0111\u00e3 th\u1ef1c hi\u1ec7n import\ndf = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True)\ndf.to_excel(r'\u0110\u01af\u1edcNG_D\u1eaaN_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/GMD.xlsx', index=False)\n
Trong \u0111\u00f3:
df
b\u1eb1ng t\u00ean \u0111\u1ed1i t\u01b0\u1ee3ng DataFrame b\u1ea5t k\u1ef3 tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m c\u1ee7a vnstock.xls
cho b\u1ea3n Office 2007 tr\u1edf xu\u1ed1ng thay v\u00ec b\u1ea3n Office m\u1edbi th\u00ec \u0111\u1ed5i \u0111u\u00f4i file t\u1eeb xlsx
th\u00e0nh .xls
trong code m\u1eabu.Xu\u1ea5t file Google Sheets
\u0110\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u qua Google Sheets, c\u00e1ch \u0111\u01a1n gi\u1ea3n nh\u1ea5t l\u00e0 ch\u1ea1y notebook tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab, nh\u01b0 v\u1eady qu\u00e1 tr\u00ecnh x\u00e1c th\u1ef1c d\u1ecbch v\u1ee5 di\u1ec5n ra \u0111\u01a1n gi\u1ea3n h\u01a1n r\u1ea5t nhi\u1ec1u so v\u1edbi b\u1ea1n ch\u1ea1y t\u1eeb m\u00e1y c\u1ee5c b\u1ed9. \u0110\u1ecdc b\u00e0i h\u01b0\u1edbng d\u1eabn \u0110\u1ecdc v\u00e0 xu\u1ea5t d\u1eef li\u1ec7u qua Google Sheets \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft n\u1ebfu b\u1ea1n c\u1ea7n xu\u1ea5t file t\u1eeb m\u00e1y \u1ea3o, m\u00e1y c\u1ee5c b\u1ed9.
from vnstock import *\ndf = listing_companies() # G\u00e1n b\u1ea5t h\u00e0m b\u1ea5t k\u1ef3 cho m\u1ed9t bi\u1ebfn, v\u00ed d\u1ee5 df\nsheet_file = 'listing_companies' # \u0110\u1eb7t t\u00ean cho file Google Sheets (n\u1ebfu t\u1ea1o m\u1edbi, d\u00f9ng file c\u00f3 s\u1eb5n th\u00ec kh\u00f4ng c\u1ea7n)\n
from google.colab import auth\nauth.authenticate_user()\n\nimport gspread\nfrom google.auth import default\nfrom gspread_dataframe import set_with_dataframe\n\ncreds, _ = default()\ngc = gspread.authorize(creds)from google.colab import auth\nauth.authenticate_user()\n\nimport gspread\nfrom google.auth import default\nfrom gspread_dataframe import set_with_dataframe\n\ncreds, _ = default()\ngc = gspread.authorize(creds)\n
sh = gc.create(sheet_file)\nworksheet = gc.open(sheet_file).sheet1 # M\u1edf sheet m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u, ch\u1ecdn 1 trong 3 t\u00f9y ch\u1ecdn v\u1edbi bi\u1ebfn worksheet, d\u00f9ng d\u00f2ng n\u00e0o b\u1ecf comment d\u00f2ng \u0111\u00f3, v\u00e0 comment d\u00f2ng kh\u00f4ng c\u1ea7n d\u00f9ng\n# worksheet = sh.add_worksheet(title=\"listing_companies\", rows=\"1000\", cols=\"20\") # T\u1ea1o sheet m\u1edbi \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u\n# worksheet = gc.open_by_url('https://docs.google.com/spreadsheets/d/1vT6o6U1dHYMdHASZNKPvmzDRhgKTvQXsZ_46CvBOpuI').sheet1 # M\u1edf file sheet c\u00f3 s\u1eb5n b\u1eb1ng URL\nset_with_dataframe(worksheet, df)\n
"},{"location":"functions/export/#xuat-vao-dai-o-co-san","title":"Xu\u1ea5t v\u00e0o d\u1ea3i \u00f4 c\u00f3 s\u1eb5n","text":"worksheet = gc.open(sheet_file).sheet1 # M\u1edf sheet m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u, ch\u1ecdn 1 trong 3 t\u00f9y ch\u1ecdn v\u1edbi bi\u1ebfn worksheet, d\u00f9ng d\u00f2ng n\u00e0o b\u1ecf comment d\u00f2ng \u0111\u00f3, v\u00e0 comment d\u00f2ng kh\u00f4ng c\u1ea7n d\u00f9ng\n\ncell_list = worksheet.range('A1:C2') # Ch\u1ecdn v\u00f9ng d\u1eef li\u1ec7u tr\u00ean Google Sheets b\u1ea1n mu\u1ed1n ch\u00e8n d\u1eef li\u1ec7u t\u1eeb DataFrame\n# Update the data in the worksheet\n\nfor cell, value in zip(cell_list, df.values.flatten()):\n cell.value = value\n\nworksheet.update_cells(cell_list)\n
"},{"location":"functions/export/#xuat-du-lieu-cho-amibroker","title":"Xu\u1ea5t d\u1eef li\u1ec7u cho Amibroker","text":"T\u1ea3i d\u1eef li\u1ec7u cho Amibroker
\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb vnstock cho \u1ee9ng d\u1ee5ng Amibroker, b\u1ea1n c\u00f3 th\u1ec3 xem chi ti\u1ebft h\u01b0\u1edbng d\u1eabn t\u1ea1i m\u1ee5c T\u00edch h\u1ee3p Amibroker
"},{"location":"functions/financial/","title":"B\u00e1o c\u00e1o t\u00e0i ch\u00ednh","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
C\u1eadp nh\u1eadt
26/10/2023, Hi\u1ec7n t\u1ea1i SSI \u0111\u00e3 g\u1ee1 b\u1ecf m\u1ecdi bi\u1ec7n ph\u00e1p ng\u0103n ch\u1eb7n truy c\u1eadp d\u1eef li\u1ec7u qua Web Scraping \u0111\u00e3 tri\u1ec3n khai trong kho\u1ea3ng 6 th\u00e1ng tr\u01b0\u1edbc. \u0110\u00e2y l\u00e0 tin vui cho c\u1ed9ng \u0111\u1ed3ng vnstock v\u00ec c\u00e1c b\u1ea1n c\u00f3 th\u00eam l\u1ef1a ch\u1ecdn ch\u1ea5t l\u01b0\u1ee3ng ti\u1ebfp c\u1eadn ngu\u1ed3n d\u1eef li\u1ec7u t\u1eeb SSI \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi FiinTrade.
\u0110\u1ec3 truy c\u1eadp b\u00e1o c\u00e1o t\u00e0i ch\u00ednh s\u1eed d\u1ee5ng ngu\u1ed3n SSI, c\u00f3 \u0111\u1ed9 chi ti\u1ebft h\u01a1n so v\u1edbi b\u1ea3n r\u00fat g\u1ecdn c\u1ee7a TCBS, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m financial_report
v\u1edbi c\u00e1c tham s\u1ed1 nh\u01b0 sau:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_type
nh\u1eadn 1 trong 3 gi\u00e1 tr\u1ecb: IncomeStatement
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh, BalanceSheet
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, CashFlow
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7frequency
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: Quarterly
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o theo qu\u00fd, Yearly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo n\u0103mperiods=15
: \ud83c\udd95 t\u1eeb v0.2.8.9. Cho ph\u00e9p ch\u1ecdn s\u1ed1 k\u1ef3 t\u1ea3i b\u00e1o c\u00e1olatest_year
: \ud83c\udd95 t\u1eeb v0.2.8.9. Cho ph\u00e9p ch\u1ecdn m\u1ed1c th\u1eddi gian tra c\u1ee9u nh\u1ea5t \u0111\u1ecbnh \u0111\u1ec3 truy xu\u1ea5t ng\u01b0\u1ee3c d\u1eef li\u1ec7u v\u1ec1 qu\u00e1 kh\u1ee9. V\u00ed d\u1ee5 15 k\u1ef3 k\u1ec3 t\u1eeb n\u0103m 202 (ho\u1eb7c n\u0103m b\u1ea5t k\u1ef3). Gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 None
cho ph\u00e9p ch\u1ecdn n\u0103m hi\u1ec7n t\u1ea1i l\u00e0 m\u1ed1c t\u00ednh to\u00e1n.L\u01b0u \u00fd: D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 \u0111\u01a1n v\u1ecb T\u1ef7 VND
"},{"location":"functions/financial/#bao-cao-kinh-doanh","title":"B\u00e1o c\u00e1o kinh doanh","text":"financial_report (symbol='SSI', report_type='IncomeStatement', frequency='Quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nha sau:
>>> income_df = financial_report (symbol='SSI', report_type='IncomeStatement', frequency='Quarterly', periods=15, latest_year=None)\nincome_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 Doanh thu ho\u1ea1t \u0111\u1ed9ng 1.327443e+12 9.195507e+11 1.174729e+12 1.505580e+12\n1 L\u00e3i t\u1eeb c\u00e1c t\u00e0i s\u1ea3n t\u00e0i ch\u00ednh ghi nh\u1eadn th\u00f4ng qu... 7.340652e+11 3.273310e+11 5.215590e+11 6.001373e+11\n2 L\u00e3i b\u00e1n c\u00e1c t\u00e0i s\u1ea3n t\u00e0i ch\u00ednh 2.194943e+11 1.175892e+11 2.630871e+11 3.947613e+11\n3 Ch\u00each l\u1ec7ch t\u0103ng \u0111\u00e1nh gi\u00e1 l\u1ea1i c\u00e1c t\u00e0i s\u1ea3n t\u00e0i c... 4.326673e+11 9.963909e+10 1.132451e+11 8.292811e+10\n4 C\u1ed5 t\u1ee9c, ti\u1ec1n l\u00e3i ph\u00e1t sinh t\u1eeb t\u00e0i s\u1ea3n t\u00e0i ch\u00edn... 8.190361e+10 1.101027e+11 1.452268e+11 1.224479e+11\n.. ... ... ... ... ...\n78 Thu nh\u1eadp to\u00e0n di\u1ec7n ph\u00e2n b\u1ed5 cho ch\u1ee7 s\u1edf h\u1eefu 5.372627e+11 2.924053e+11 3.925444e+11 4.246680e+11\n79 Thu nh\u1eadp to\u00e0n di\u1ec7n ph\u00e2n b\u1ed5 cho c\u1ed5 \u0111\u00f4ng kh\u00f4ng k... 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n80 Thu nh\u1eadp thu\u1ea7n tr\u00ean c\u1ed5 phi\u1ebfu ph\u1ed5 th\u00f4ng 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n81 L\u00e3i c\u01a1 b\u1ea3n tr\u00ean c\u1ed5 phi\u1ebfu 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n82 Thu nh\u1eadp pha lo\u00e3ng tr\u00ean c\u1ed5 phi\u1ebfu 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n\n[83 rows x 5 columns]\n
"},{"location":"functions/financial/#bang-can-oi-ke-toan","title":"B\u1ea3ng c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n","text":"financial_report (symbol='SSI', report_type='BalanceSheet', frequency='quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> balance_df = financial_report (symbol='SSI', report_type='BalanceSheet', frequency='quarterly', periods=15, latest_year=None)\n>>> balance_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 T\u1ed4NG C\u1ed8NG T\u00c0I S\u1ea2N 2.592647e+13 2.693295e+13 3.576953e+13 3.762330e+13\n1 T\u00c0I S\u1ea2N NG\u1eaeN H\u1ea0N 2.004129e+13 2.105024e+13 2.904003e+13 3.286192e+13\n2 T\u00e0i s\u1ea3n t\u00e0i ch\u00ednh ng\u1eafn h\u1ea1n 2.000235e+13 2.100282e+13 2.888881e+13 3.280760e+13\n3 Ti\u1ec1n v\u00e0 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n 2.024338e+11 2.123246e+11 3.632519e+11 2.792879e+11\n4 Ti\u1ec1n 1.913260e+11 2.123246e+11 2.319712e+11 2.251205e+11\n.. ... ... ... ... ...\n155 V\u1ed1n ng\u00e2n s\u00e1ch nh\u00e0 n\u01b0\u1edbc 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n156 Ngu\u1ed3n kinh ph\u00ed \u0111\u00e3 h\u00ecnh th\u00e0nh TSC\u0110 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n157 L\u1ee2I \u00cdCH C\u1ee6A C\u1ed4 \u0110\u00d4NG THI\u1ec2U S\u1ed0 (tr\u01b0\u1edbc 2015) 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n158 T\u1ed4NG C\u1ed8NG NGU\u1ed2N V\u1ed0N 2.592647e+13 2.693295e+13 3.576953e+13 3.762330e+13\n159 L\u1ee2I NHU\u1eacN \u0110\u00c3 PH\u00c2N PH\u1ed0I CHO NH\u00c0 \u0110\u1ea6U T\u01af 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n\n[160 rows x 5 columns]\n
"},{"location":"functions/financial/#bao-cao-luu-chuyen-tien-te","title":"B\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7","text":"financial_report (symbol='SSI', report_type='CashFlow', frequency='Quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> cashflow_df = financial_report (symbol='SSI', report_type='CashFlow', frequency='Quarterly', periods=15, latest_year=None)\n>>> cashflow_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 L\u01b0u chuy\u1ec3n thu\u1ea7n t\u1eeb ho\u1ea1t \u0111\u1ed9ng kinh doanh ch\u1ee9ng... -1.405338e+12 -3.067307e+12 -7.146167e+12 -7.818107e+11\n1 L\u1ee3i nhu\u1eadn t\u1eeb ho\u1ea1t \u0111\u1ed9ng kinh doanh tr\u01b0\u1edbc thay \u0111... 2.548685e+10 8.183428e+10 1.992083e+11 2.596829e+11\n2 L\u1ee3i nhu\u1eadn tr\u01b0\u1edbc thu\u1ebf 6.515280e+11 4.208731e+11 4.771873e+11 5.300678e+11\n3 \u0110i\u1ec1u ch\u1ec9nh cho c\u00e1c kho\u1ea3n -2.123427e+11 -1.965194e+11 -2.268494e+11 -2.521012e+11\n4 Kh\u1ea5u hao t\u00e0i s\u1ea3n c\u1ed1 \u0111\u1ecbnh 1.315363e+10 1.378121e+10 1.333019e+10 1.445720e+10\n.. ... ... ... ... ...\n93 Ti\u1ec1n v\u00e0 c\u00e1c kho\u1ea3n t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n \u0111\u1ea7u k\u1ef3 2.824377e+11 2.024338e+11 2.123246e+11 3.632519e+11\n94 Ti\u1ec1n m\u1eb7t, ti\u1ec1n g\u1eedi ng\u00e2n h\u00e0ng \u0111\u1ea7u k\u1ef3 2.485882e+11 1.911860e+11 2.123605e+11 2.323398e+11\n95 C\u00e1c kho\u1ea3n t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n 3.120858e+10 1.110788e+10 0.000000e+00 1.312807e+11\n96 \u1ea2nh h\u01b0\u1edfng c\u1ee7a thay \u0111\u1ed5i t\u1ef7 gi\u00e1 h\u1ed1i \u0111o\u00e1n quy \u0111\u1ed5i... 2.640888e+09 1.399426e+08 -3.589952e+07 -3.685565e+08\n97 Ti\u1ec1n v\u00e0 c\u00e1c kho\u1ea3ng t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n cu\u1ed1i k\u1ef3 2.024338e+11 2.123246e+11 3.632519e+11 2.792879e+11\n\n[98 rows x 5 columns]\n
"},{"location":"functions/financial/#du-lieu-tu-tcbs","title":"D\u1eef li\u1ec7u t\u1eeb TCBS","text":"Ba lo\u1ea1i b\u00e1o c\u00e1o n\u00e0y \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m financial_flow
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_type
nh\u1eadn 1 trong 3 gi\u00e1 tr\u1ecb: incomestatement
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh, balancesheet
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, cashflow
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7report_range
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: yearly
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o theo n\u0103m, quarterly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo qu\u00fdC\u1ee5 th\u1ec3 t\u1eebng b\u00e1o c\u00e1o \u0111\u01b0\u1ee3c minh h\u1ecda chi ti\u1ebft th\u00e0nh t\u1eebng ph\u1ea7n nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y.
"},{"location":"functions/financial/#bao-cao-kinh-doanh_1","title":"B\u00e1o c\u00e1o kinh doanh","text":"B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c truy xu\u1ea5t b\u1eb1ng c\u00e2u l\u1ec7nh:
income_df = financial_flow(symbol=\"TCB\", report_type='incomestatement', report_range='quarterly')\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y.
>>> financial_flow(symbol=\"TCB\", report_type='incomestatement', report_range='quarterly').T\n\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2 ... 2012-Q4 2012-Q3 2012-Q2 2012-Q1 2010-Q2\nticker TCB TCB TCB TCB TCB ... TCB TCB TCB TCB TCB\nrevenue 6295 6527 6819 7565 7794 ... 951 1414 1432 1318 814\nyearRevenueGrowth -0.192 -0.195 -0.059 0.122 0.183 ... NaN NaN NaN NaN NaN\nquarterRevenueGrowth -0.036 -0.043 -0.099 -0.029 -0.039 ... -0.327 -0.013 0.086 NaN NaN\ncostOfGoodSold None None None None None ... None None None None None\ngrossProfit None None None None None ... None None None None None\noperationExpense -2869 -3142 -3990 -3014 -3196 ... -1263 -615 -574 -826 -446\noperationProfit 9325 9300 9427 10338 10934 ... 1175 1373 1347 1851 972\nyearOperationProfitGrowth -0.147 -0.071 -0.072 0.178 0.188 ... NaN NaN NaN NaN NaN\nquarterOperationProfitGrowth 0.003 -0.014 -0.088 -0.055 0.093 ... -0.144 0.019 -0.272 NaN NaN\ninterestExpense None None None None None ... None None None None None\npreTaxProfit 5649 5623 4746 6715 7321 ... -1216 603 602 1028 384\npostTaxProfit 4503 4537 3572 5368 5882 ... -1216 603 602 1028 384\nshareHolderIncome 4455 4497 3544 5298 5804 ... -1216 603 602 1028 384\nyearShareHolderIncomeGrowth -0.232 -0.183 -0.228 0.221 0.232 ... NaN NaN NaN NaN NaN\nquarterShareHolderIncomeGrowth -0.009 0.269 -0.331 -0.087 0.054 ... NaN 0.002 -0.414 NaN NaN\ninvestProfit 72 -228 -422 209 411 ... -81 -201 -119 120 26\nserviceProfit 2019 1944 2535 2123 1987 ... 39 151 228 147 104\notherProfit 939 1057 495 441 743 ... 266 9 -194 266 28\nprovisionExpense -807 -535 -691 -609 -417 ... -1128 -155 -170 3 -142\noperationIncome 6456 6158 5437 7324 7739 ... -88 758 773 1025 526\nebitda None None None None None ... None None None None None\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn income_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: income_df.T
Trong \u0111\u00f3 t\u00ean c\u00e1c c\u1ed9t \u0111\u01b0\u1ee3c chu\u1ea9n h\u00f3a b\u1eb1ng ti\u1ebfng Anh. \u0110\u1ec3 \u0111\u1ed5i t\u00ean sang ti\u1ebfng Vi\u1ec7t, c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c rename
ti\u00eau chu\u1ea9n c\u1ee7a Pandas trong Python. T\u00f4i \u0111\u00e3 chia s\u1ebb m\u1ed9t video c\u1ee5 th\u1ec3 c\u00e1ch s\u1eed d\u1ee5ng Bard \u0111\u1ec3 tr\u00edch xu\u1ea5t th\u00f4ng tin v\u00e0 gh\u00e9p n\u1ed1i b\u1ea3n d\u1ecbch ti\u1ebfng Vi\u1ec7t c\u1ee7a c\u00e1c ch\u1ec9 s\u1ed1. C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 theo d\u00f5i \u0111\u1ec3 t\u1ef1 th\u1ef1c hi\u1ec7n n\u1ebfu c\u1ea7n. C\u00e1ch l\u00e0m n\u00e0y \u00e1p d\u1ee5ng v\u1edbi t\u1ea5t c\u1ea3 c\u00e1c b\u00e1o c\u00e1o t\u00e0i ch\u00ednh \u0111\u01b0\u1ee3c cung c\u1ea5p \u1edf \u0111\u00e2y.
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u1ea3ng c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
balance_df = financial_flow(symbol=\"TCB\", report_type='balancesheet', report_range='quarterly')\n
K\u1ebft qu\u1ea3:
>>> financial_flow(symbol=\"TCB\", report_type='balancesheet', report_range='quarterly').T\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2\nticker TCB TCB TCB TCB TCB\nshortAsset None None None None None\ncash 3113 2852 4216 3026 3204\nshortInvest None None None None None\nshortReceivable None None None None None\ninventory None None None None None\nlongAsset None None None None None\nfixedAsset 8742 8275 8411 7282 7220\nasset 732470 723518 699033 671354 623739\ndebt 610005 605552 585608 561454 519263\nshortDebt None None None None None\nlongDebt None None None None None\nequity 122465 117965 113425 109899 104475\ncapital 35172 35172 35172 35172 35109\ncentralBankDeposit 7860 15834 11476 4709 4814\notherBankDeposit 63215 56675 69925 65183 57270\notherBankLoan 8079 10265 13050 7215 14962\nstockInvest 112613 99162 104626 104673 98072\ncustomerLoan 466546 465425 420524 410546 391824\nbadLoan 5012.0 3946.0 3818.0 2665.0 2359.0\nprovision -5793 -5280 -4771 -4397 -4049\nnetCustomerLoan 460753 460145 415752 406148 387775\notherAsset 67879 70304 70517 71795 49269\notherBankCredit 49594 47940 61294 68284 57307\noweOtherBank 104031 103254 106269 110868 83894\noweCentralBank 136 122 8 6 2\nvaluablePaper 54958 46729 34007 42858 37122\npayableInterest 8118 8303 6144 4750 3375\nreceivableInterest 8875 8365 8029 8681 8072\ndeposit 381947 387298 358404 318919 321634\notherDebt 54958 46729 34007 42858 37122\nfund 43387 11607 11609 9151 9152\nunDistributedIncome 41654 68979 64483 64059 58761\nminorShareHolderProfit 1218 1170 1129 1032 963\npayable 610005 605552 585608 561454 519263\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn balance_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: balance_df.T
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
cashflow_df = financial_flow(symbol=\"TCB\", report_type='cashflow', report_range='quarterly')\n
K\u1ebft qu\u1ea3:
>>> financial_flow(symbol=\"TCB\", report_type='cashflow', report_range='quarterly').T\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2\nticker TCB TCB TCB TCB TCB\ninvestCost -395 -73 -720 -212 -65\nfromInvest -3042 260 -679 -205 -62\nfromFinancial 0 1 -700 63 0\nfromSale -2480 -21875 19130 15950 -4020\nfreeCashFlow 0 0 0 0 0\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn cashflow_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: cashflow_df.T
L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
company_overview('TCB')\n
Nh\u1ea5p \u0111\u1ec3 xem v\u1ecb tr\u00ed hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n TCBS >>> company_overview('TCB').T\n 0\nticker TCB\nexchange HOSE\nindustry Ng\u00e2n h\u00e0ng\ncompanyType NH\nnoShareholders 1901\nforeignPercent 0.225\noutstandingShare 3517.2\nissueShare 3517.2\nestablishedYear 1993\nnoEmployees 9757\nstockRating 4.2\ndeltaInWeek -0.002\ndeltaInMonth 0.001\ndeltaInYear 0.189\nshortName Techcombank\nindustryEn Banks\nindustryID 289\nindustryIDv2 8355\nwebsite http://www.techcombank.com.vn\n
"},{"location":"functions/fundamental/#ho-so-cong-ty","title":"H\u1ed3 s\u01a1 c\u00f4ng ty","text":"company_profile ('TCB')\n
\u0110\u00e2y l\u00e0 ph\u1ea7n m\u00f4 t\u1ea3 v\u1ec1 c\u00f4ng ty b\u1eb1ng v\u0103n b\u1ea3n, bao g\u1ed3m m\u1ee5c T\u1ed5ng quan v\u00e0 Th\u00f4ng tin kh\u00e1c trong m\u1ee5c H\u1ed3 s\u01a1 doanh nghi\u1ec7p tr\u00ean TCBS.
Nh\u1ea5p \u0111\u1ec3 xem v\u1ecb tr\u00ed hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n TCBS>>> company_profile ('TCB').T\n 0\nid None\ncompanyName Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n K\u1ef9 th\u01b0\u01a1ng Vi\u1ec7t Nam\nticker TCB\ncompanyProfile Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n K\u1ef9 th\u01b0\u01a1ng Vi\u1ec7t Na...\nhistoryDev Ng\u00e0y 27/09/1993: Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7...\ncompanyPromise None\nbusinessRisk Th\u00f4ng t\u01b0 36/2014/TT-NHNN c\u0169ng g\u00e2y ra m\u1ed9t s\u1ed1 ...\nkeyDevelopments Huy \u0111\u1ed9ng v\u1ed1n; T\u00edn d\u1ee5ng; Li\u00ean k\u1ebft v\u00e0 \u0111\u1ea7u t\u01b0 t...\nbusinessStrategies M\u1edf r\u1ed9ng t\u1eadp kh\u00e1ch h\u00e0ng c\u1ea3 v\u1ec1 quy m\u00f4 v\u00e0 t\u1ed1c \u0111\u1ed9...\n
"},{"location":"functions/fundamental/#danh-sach-co-ong","title":"Danh s\u00e1ch c\u1ed5 \u0111\u00f4ng","text":"company_large_shareholders ('TCB')\n
>>> company_large_shareholders ('TCB')\n ticker shareHolder shareOwnPercent\n 0 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Masan 0.1491\n 1 TCB Nguy\u1ec5n Th\u1ecb Thanh Th\u1ee7y 0.0495\n 2 TCB Nguy\u1ec5n Th\u1ecb Thanh T\u00e2m 0.0495\n 3 TCB H\u1ed3 Anh Minh 0.0392\n 4 TCB Nguy\u1ec5n Ph\u01b0\u01a1ng Hoa 0.0216\n 5 TCB Nguy\u1ec5n H\u01b0\u01a1ng Li\u00ean 0.0198\n 6 TCB H\u1ed2 H\u00d9NG ANH 0.0112\n 7 TCB Nguy\u1ec5n Thi\u1ec1u Quang 0.0086\n 8 TCB H\u1ed3 Th\u1ee7y Anh 0.0064\n 9 TCB Kh\u00e1c 0.0292\n
"},{"location":"functions/fundamental/#cac-chi-so-tai-chinh-co-ban","title":"C\u00e1c ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh c\u01a1 b\u1ea3n","text":"company_fundamental_ratio (symbol='TCB', mode='simplify', missing_pct=0.8)\n
Trong \u0111\u00f3:
Tham s\u1ed1 mode
nh\u1eadn 2 gi\u00e1 tr\u1ecb:
simplify
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 c\u00e1c gi\u00e1 tr\u1ecb s\u1ed1 c\u00f3 \u00fd ngh\u0129a. M\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb simplify
.
''
tr\u1ea3 v\u1ec1 to\u00e0n b\u1ed9 c\u00e1c c\u1ed9t c\u00f3 trong DataFrame
Tham s\u1ed1 missing_pct
: nh\u1eadn gi\u00e1 tr\u1ecb t\u1eeb 0 \u0111\u1ebfn 1, quy \u0111\u1ecbnh t\u1ec9 l\u1ec7 % s\u1ebd cho ph\u00e9p h\u00e0m lo\u1ea1i b\u1ecf d\u1eef li\u1ec7u b\u1ecb thi\u1ebfu. V\u00ed d\u1ee5 0.8 th\u1ec3 hi\u1ec7n r\u1eb1ng h\u00e0m n\u00e0y s\u1ebd lo\u1ea1i b\u1ecf c\u1ed9t t\u01b0\u01a1ng \u1ee9ng khi 80% s\u1ed1 d\u00f2ng trong c\u1ed9t l\u00e0 d\u1eef li\u1ec7u r\u1ed7ng.
>>> company_fundamental_ratio (symbol='TCB', mode='simplify', missing_pct=0.8).T\n 0\nticker TCB\ncostOfFinancing.industryAvgValue 0.056\ninterestMargin.industryAvgValue 0.034\nnonInterestOnToi.industryAvgValue 0.215\ncostToIncome.industryAvgValue 0.437\npreProvisionOnToi.industryAvgValue 0.449\npostTaxOnToi.industryAvgValue 0.322\ndepositOnEarnAsset.industryAvgValue 0.725\ncancelDebt.industryAvgValue 0.007\nbadDebtPercentage.industryAvgValue 0.024\nprovisionOnBadDebt.industryAvgValue 0.609\nloanOnDeposit.industryAvgValue 0.96\nequityOnTotalAsset.industryAvgValue 0.086\nbadDebtOnAsset.industryAvgValue 0.015\n
"},{"location":"functions/fundamental/#muc-bien-ong-gia-co-phieu","title":"M\u1ee9c bi\u1ebfn \u0111\u1ed9ng gi\u00e1 c\u1ed5 phi\u1ebfu","text":"ticker_price_volatility (symbol='TCB')\n
>>> ticker_price_volatility (symbol='TCB').T\n 0\nticker TCB\nticker_highestPrice 35750.0\nticker_lowestPrice 20700.0\nticker_highestPricePercent -0.143\nticker_lowestPricePercent 0.481\n
"},{"location":"functions/fundamental/#thong-tin-giao-dich-noi-bo","title":"Th\u00f4ng tin giao d\u1ecbch n\u1ed9i b\u1ed9","text":"company_insider_deals (symbol='TCB', page_size=20, page=0)\n
>>> company_insider_deals (symbol='TCB', page_size=20, page=0)\nticker dealAnnounceDate dealMethod dealAction dealQuantity dealPrice dealRatio\n0 TCB 2023-08-31 C\u1ed5 \u0111\u00f4ng l\u1edbn B\u00e1n -300000.0 34500.0 0.000\n1 TCB 2023-08-22 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp Mua 0.0 33100.0 0.042\n2 TCB 2023-07-20 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -933169.0 31900.0 0.082\n3 TCB 2023-04-18 C\u1ed5 \u0111\u00f4ng l\u1edbn B\u00e1n -30000.0 29150.0 0.184\n4 TCB 2022-12-28 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -21496.0 26150.0 0.319\n5 TCB 2022-11-28 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 200000.0 24600.0 0.402\n13 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 350000.0 38650.0 -0.107\n12 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 111404.0 38650.0 -0.107\n11 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 100021.0 38650.0 -0.107\n10 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 97770.0 38650.0 -0.107\n9 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 80945.0 38650.0 -0.107\n8 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 55764.0 38650.0 -0.107\n7 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 42118.0 38650.0 -0.107\n6 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 5318.0 38650.0 -0.107\n14 TCB 2022-08-08 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -100000.0 39200.0 -0.120\n15 TCB 2022-05-10 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -868500.0 38700.0 -0.109\n16 TCB 2022-04-05 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -150000.0 49050.0 -0.297\n17 TCB 2022-03-23 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -200000.0 49600.0 -0.304\n18 TCB 2021-10-26 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -35704.0 51000.0 -0.324\n19 TCB 2021-10-14 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp Mua 300000.0 52500.0 -0.343\n
"},{"location":"functions/fundamental/#danh-sach-cong-ty-con-cong-ty-lien-ket","title":"Danh s\u00e1ch c\u00f4ng ty con, c\u00f4ng ty li\u00ean k\u1ebft","text":"company_subsidiaries_listing (symbol='TCB', page_size=100, page=0)\n
>>> company_subsidiaries_listing (symbol='TCB', page_size=100, page=0)\nticker subCompanyName subOwnPercent\n0 TCB C\u00f4ng ty TNHH MTV Qu\u1ea3n L\u00fd N\u1ee3 V\u00e0 Khai Th\u00e1c T\u00e0i S... 1.000\n1 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n Ch\u1ee9ng kho\u00e1n K\u1ef9 Th\u01b0\u01a1ng 0.942\n2 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n Qu\u1ea3n L\u00fd Qu\u1ef9 K\u1ef9 Th\u01b0\u01a1ng 0.900\n3 TCB T\u1ed5ng C\u00f4ng ty C\u1ed5 ph\u1ea7n Xu\u1ea5t nh\u1eadp kh\u1ea9u v\u00e0 X\u00e2y d\u1ef1n... 0.004\n4 TCB T\u1ed5ng C\u00f4ng ty H\u00e0ng kh\u00f4ng Vi\u1ec7t Nam - CTCP 0.000\n5 TCB C\u00f4ng ty T\u00e0i Ch\u00ednh TNHH MTV Lotte Vi\u1ec7t Nam 0.000\n
"},{"location":"functions/fundamental/#ban-lanh-ao-cong-ty","title":"Ban l\u00e3nh \u0111\u1ea1o c\u00f4ng ty","text":"company_officers (symbol='TCB', page_size=20, page=0)\n
>>> company_officers (symbol='TCB', page_size=10, page=0)\nticker officerName officerPosition officerOwnPercent\n0 TCB Nguy\u1ec5n Th\u1ecb Thanh Th\u1ee7y None 0.0495\n1 TCB Nguy\u1ec5n Th\u1ecb Thanh T\u00e2m None 0.0495\n2 TCB H\u1ed3 Anh Minh None 0.0392\n3 TCB Nguy\u1ec5n Ph\u01b0\u01a1ng Hoa None 0.0216\n4 TCB Nguy\u1ec5n H\u01b0\u01a1ng Li\u00ean None 0.0198\n5 TCB H\u1ed2 H\u00d9NG ANH None 0.0112\n6 TCB Nguy\u1ec5n Thi\u1ec1u Quang Ph\u00f3 Ch\u1ee7 t\u1ecbch H\u1ed9i \u0111\u1ed3ng Qu\u1ea3n tr\u1ecb 0.0086\n7 TCB H\u1ed3 Th\u1ee7y Anh None 0.0064\n8 TCB Nguy\u1ec5n C\u1ea3nh S\u01a1n T\u00f9ng None 0.0060\n9 TCB Nguy\u1ec5n C\u1ea3nh S\u01a1n Ph\u00f3 Ch\u1ee7 t\u1ecbch H\u1ed9i \u0111\u1ed3ng Qu\u1ea3n tr\u1ecb 0.0051\n
"},{"location":"functions/fundamental/#thong-tin-su-kien-quyen","title":"Th\u00f4ng tin s\u1ef1 ki\u1ec7n quy\u1ec1n","text":"company_events (symbol='TPB', page_size=10, page=0)\n
>>> company_events (symbol='TPB', page_size=10, page=0)\n id ticker price priceChange priceChangeRatio ... exerDate regFinalDate exRigthDate eventDesc eventNote\n0 2563370 TPB 18100 -350 -0.019 ... 2023-07-07 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n1 2563135 TPB 18535 -215 -0.011 ... 2023-06-09 00:00:00 2023-06-12 00:00:00 2023-06-09 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n2 2561933 TPB 15668 -64 -0.004 ... 2023-04-26 00:00:00 2023-03-29 00:00:00 2023-03-28 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n3 2561033 TPB 15441 -97 -0.006 ... 2023-04-03 00:00:00 2023-03-21 00:00:00 2023-03-20 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n4 2560718 TPB 14567 0 0.000 ... 1753-01-01 00:00:00 2023-01-17 00:00:00 2023-01-16 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n5 2517318 TPB 25832 453 0.018 ... 2022-04-26 00:00:00 2022-03-28 00:00:00 2022-03-25 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n6 2406108 TPB 27192 0 0.000 ... 2022-01-13 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n7 2395935 TPB 24936 719 0.030 ... 2021-12-20 00:00:00 2021-12-21 00:00:00 2021-12-20 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n8 2235221 TPB 31480 371 0.012 ... 2022-09-15 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n9 2215176 TPB 30665 519 0.017 ... 1753-01-01 00:00:00 2021-10-11 00:00:00 2021-10-08 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n\n[10 rows x 15 columns]\n
"},{"location":"functions/fundamental/#tin-tuc-cong-ty","title":"Tin t\u1ee9c c\u00f4ng ty","text":"company_news (symbol='TCB', page_size=10, page=0)\n
>>> company_news (symbol='TCB', page_size=10, page=0)\nticker price priceChange priceChangeRatio priceChangeRatio1W priceChangeRatio1M id title source publishDate\n0 TCB 34500 500 0.015 0.021 0.006 10915190 TCB: B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 giao d\u1ecbch c\u1ed5 phi\u1ebfu c\u1ee7a n... HOSE 2023-08-31 11:12:00\n1 TCB 33650 -150 -0.004 0.035 0.004 10909083 TCB: CBTT v\u1ec1 vi\u1ec7c gi\u1ea3i t\u1ecfa c\u1ed5 phi\u1ebfu h\u1ea1n ch\u1ebf c... HOSE 2023-08-25 16:35:00\n2 TCB 33100 350 0.011 -0.028 0.020 10905062 TCB: Con g\u00e1i Ch\u1ee7 t\u1ecbch \u0111\u0103ng k\u00fd mua tr\u00ean 82 tri\u1ec7... HOSE 2023-08-22 11:19:00\n3 TCB 32750 250 0.008 -0.031 0.014 10904072 B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 ph\u00e2n ph\u1ed1i ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111... HOSE 2023-08-21 16:21:00\n4 TCB 34700 -600 -0.017 0.036 0.088 10900206 Th\u00f4ng b\u00e1o ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n v\u00e0 B\u1ea3n c\u00e1o b\u1ea1c... HOSE 2023-08-17 14:48:00\n5 TCB 34700 -600 -0.017 0.036 0.088 10899331 Gi\u1ea5y ch\u1ee9ng nh\u1eadn ch\u00e0o b\u00e1n ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111\u1ea3... HOSE 2023-08-17 08:55:00\n6 TCB 33800 150 0.004 -0.016 0.058 10895913 Th\u00f4ng b\u00e1o h\u1ee7y \u0111\u1ee3t ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o... HOSE 2023-08-14 17:36:00\n7 TCB 33500 -500 -0.015 0.000 0.047 10892819 TCB: CBTT Chuy\u1ec3n quy\u1ec1n s\u1edf h\u1eefu c\u1ed5 phi\u1ebfu t\u1eeb C\u00f4n... HOSE 2023-08-10 17:55:00\n8 TCB 34000 0 0.000 0.003 0.063 10891020 Th\u00f4ng b\u00e1o ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n v\u00e0 B\u1ea3n c\u00e1o b\u1ea1c... HOSE 2023-08-09 16:55:00\n9 TCB 34000 0 0.000 0.003 0.063 10890346 B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 ph\u00e2n ph\u1ed1i ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111... HOSE 2023-08-09 10:26:00\n
"},{"location":"functions/funds/","title":"Th\u00f4ng tin qu\u1ef9 m\u1edf","text":"Gi\u1edbi thi\u1ec7u
Th\u00f4ng tin c\u00e1c qu\u1ef9 m\u1edf \u0111\u01b0\u1ee3c cung c\u1ea5p th\u00f4ng qua vnstock \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb Public API c\u1ee7a fmarket.vn. Hi\u1ec7n t\u1ea1i, vnstock cung c\u1ea5p c\u00e1ch th\u1ee9c truy xu\u1ea5t c\u00e1c nh\u00f3m th\u00f4ng tin qu\u1ef9 m\u1edf quan tr\u1ecdng \u0111\u01b0\u1ee3c m\u00f4 t\u1ea3 chi ti\u1ebft d\u01b0\u1edbi d\u00e2y.
vnstock xin g\u1eedi l\u1eddi c\u00e1m \u01a1n ch\u00e2n th\u00e0nh t\u1edbi b\u1ea1n andrey_jef \u0111\u00e3 \u0111\u1ec1 xu\u1ea5t v\u00e0 \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n kh\u1edfi x\u01b0\u1edbng cho nh\u00f3m t\u00ednh n\u0103ng n\u00e0y qua Github.
T\u00ednh n\u0103ng tra c\u1ee9u th\u00f4ng tin qu\u1ef9 m\u1edf hi\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt qua nh\u00e1nh beta c\u1ee7a vnstock tr\u00ean Github. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t b\u1ea3n beta theo h\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y:
C\u00e0i \u0111\u1eb7t b\u1ea3n beta
"},{"location":"functions/funds/#liet-ke-danh-sach-quy","title":"Li\u1ec7t k\u00ea danh s\u00e1ch qu\u1ef9","text":""},{"location":"functions/funds/#cau-lenh","title":"C\u00e2u l\u1ec7nh","text":"\u0110\u1ec3 truy xu\u1ea5t th\u00f4ng tin to\u00e0n b\u1ed9 c\u00e1c ch\u1ee9ng ch\u1ec9 qu\u1ef9 (CCQ) m\u1edf, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m d\u01b0\u1edbi \u0111\u00e2y:
funds_listing()\n
"},{"location":"functions/funds/#vi-du-thong-tin-tra-ve","title":"V\u00ed d\u1ee5 th\u00f4ng tin tr\u1ea3 v\u1ec1","text":">>> funds_listing(fund_type=\"\").head()\nTotal number of funds currently listed on Fmarket: 41\n fundId T\u00ean vi\u1ebft t\u1eaft T\u00ean CCQ ... Gi\u00e1 g\u1ea7n nh\u1ea5t code vsdFeeId\n0 23 VESAF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU TI\u1ebeP C\u1eacN TH\u1eca TR\u01af\u1edcNG VINACA... ... 25620.68 VESAF VESAFN002\n1 20 VEOF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU H\u01afNG TH\u1ecaNH VINACAPITAL ... 24748.62 VEOF VEOFN003\n2 11 SSISCA QU\u1ef8 \u0110\u1ea6U T\u01af L\u1ee2I TH\u1ebe C\u1ea0NH TRANH B\u1ec0N V\u1eeeNG SSI ... 29880.06 SSISCA SSISCAN001\n3 32 VCBF-BCF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU H\u00c0NG \u0110\u1ea6U VCBF ... 27526.16 VCBFBCF VCBFBCFN001\n4 22 VIBF QU\u1ef8 \u0110\u1ea6U T\u01af C\u00c2N B\u1eb0NG TU\u1ec6 S\u00c1NG VINACAPITAL ... 14983.38 VIBF VIBFN003\n\n[5 rows x 11 columns]\n
"},{"location":"functions/funds/#tham-so-au-vao","title":"Tham s\u1ed1 \u0111\u1ea7u v\u00e0o","text":"Field Type Description Default Optional fund_type
str lo\u1ea1i qu\u1ef9, ch\u1ea5p nh\u1eadn c\u00e1c gi\u00e1 tr\u1ecb sau: STOCK
cho qu\u1ef9 c\u1ed5 phi\u1ebfu, BOND
cho qu\u1ef9 tr\u00e1i phi\u1ebfu, BALANCED
cho qu\u1ef9 c\u00e2n b\u1eb1ng, N\u1ebfu \u0111\u1ec3 tr\u1ed1ng, k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 l\u00e0 t\u1ea5t c\u1ea3 c\u00e1c qu\u1ef9 hi\u1ec7n c\u00f3 tr\u00ean Fmarket. None False"},{"location":"functions/funds/#thong-tin-tra-ve","title":"Th\u00f4ng tin tr\u1ea3 v\u1ec1","text":"Th\u00f4ng tin tr\u1ea3 v\u1ec1 l\u00e0 m\u1ed9t DataFrame c\u00f3 m\u00f4 h\u00ecnh d\u1eef li\u1ec7u (data model) nh\u01b0 sau:
Field Type Descriptionshort_name
str T\u00ean vi\u1ebft t\u1eaft c\u1ee7a CCQ name
str T\u00ean CCQ fund_type
str Lo\u1ea1i qu\u1ef9 fund_owner_name
str T\u1ed5 ch\u1ee9c ph\u00e1t h\u00e0nh management_fee
float Ph\u00ed qu\u1ea3n l\u00fd (%) inception_date
date Ng\u00e0y th\u00e0nh l\u1eadp qu\u1ef9 nav
float Gi\u00e1 g\u1ea7n nh\u1ea5t nav_change_previous
float L\u1ee3i nhu\u1eadn so v\u1edbi phi\u00ean tr\u01b0\u1edbc (%) nav_change_last_year
float L\u1ee3i nhu\u1eadn so v\u1edbi n\u0103m tr\u01b0\u1edbc (%) nav_change_inception
float L\u1ee3i nhu\u1eadn t\u1eeb khi th\u00e0nh l\u1eadp (%) nav_change_1m
float L\u1ee3i nhu\u1eadn 1 th\u00e1ng g\u1ea7n nh\u1ea5t (%) nav_change_3m
float L\u1ee3i nhu\u1eadn 3 th\u00e1ng (%) nav_change_6m
float L\u1ee3i nhu\u1eadn 6 th\u00e1ng (%) nav_change_12m
float L\u1ee3i nhu\u1eadn 12 th\u00e1ng (%) nav_change_24m
float L\u1ee3i nhu\u1eadn 24 th\u00e1ng (%) nav_change_36m
float L\u1ee3i nhu\u1eadn 36 th\u00e1ng (%) nav_change_36m_annualized
float L\u1ee3i nhu\u1eadn trung b\u00ecnh 36 th\u00e1ng (%/n\u0103m) nav_update_at
date Ng\u00e0y c\u1eadp nh\u1eadt NAV fund_id_fmarket
int ID c\u1ee7a CCQ trong csdl c\u1ee7a Fmarket fund_code
str T\u00ean m\u00e3 CCQ trong csdl c\u1ee7a Fmarket vsd_fee_id
str T\u00ean m\u00e3 CCQ trong csdl c\u1ee7a Trung t\u00e2m l\u01b0u k\u00fd (VSD)"},{"location":"functions/funds/#truy-xuat-thong-tin-quy","title":"Truy xu\u1ea5t th\u00f4ng tin qu\u1ef9","text":"B\u1ea1n c\u00f3 th\u1ec3 truy xu\u1ea5t c\u00e1c th\u00f4ng tin c\u01a1 b\u1ea3n c\u1ee7a m\u1ed9t qu\u1ef9 qua h\u00e0m fund_details
nh\u01b0 d\u01b0\u1edbi d\u00e2y.
symbol
str T\u00ean CCQ \"SSISCA\" False type
str lo\u1ea1i th\u00f4ng tin c\u1ea7n truy xu\u1ea5t, ch\u1ea5p nh\u1eadn c\u00e1c gi\u00e1 tr\u1ecb sau: top_holding_list
: danh m\u1ee5c \u0111\u1ea7u t\u01b0 l\u1edbn, industry_holding_list
: ph\u00e2n b\u1ed5 theo ng\u00e0nh, asset_holding_list
: ph\u00e2n b\u1ed5 theo lo\u1ea1i t\u00e0i s\u1ea3n, nav_report
: l\u1ecbch s\u1eed gi\u00e1 \u0111\u01a1n v\u1ecb qu\u1ef9. \"top_holding_list\" False"},{"location":"functions/funds/#thong-tin-tra-ve_1","title":"Th\u00f4ng tin tr\u1ea3 v\u1ec1","text":"T\u01b0\u01a1ng \u1ee9ng v\u1edbi t\u1eebng lo\u1ea1i th\u00f4ng tin c\u1ea7n truy xu\u1ea5t, d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 m\u1ed9t DataFrame c\u00f3 m\u00f4 h\u00ecnh d\u1eef li\u1ec7u (data model) nh\u01b0 sau:
top_holding_listindustry_holding_listasset_holding_listnav_report Field Type Descriptionstock_code
str M\u00e3 c\u1ed5 phi\u1ebfu / tr\u00e1i phi\u1ebfu m\u00e0 qu\u1ef9 \u0111ang n\u1eafm gi\u1eef industry
str Ng\u00e0nh net_asset_percent
float % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n type_asset
str Lo\u1ea1i t\u00e0i s\u1ea3n update_at
date C\u1eadp nh\u1eadt l\u00fac short_name
str T\u00ean CCQ Field Type Description industry
str Ng\u00e0nh net_asset_percent
float % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n short_name
str T\u00ean CCQ Field Type Description asset_percent
str % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n asset_type
str Lo\u1ea1i t\u00e0i s\u1ea3n short_name
str T\u00ean CCQ Field Type Description date
str Ng\u00e0y nav_per_unit
str NAV / \u0111\u01a1n v\u1ecb qu\u1ef9 (\u0111\u01a1n v\u1ecb: VND) short_name
str T\u00ean CCQ"},{"location":"functions/funds/#vi-du-thong-tin-tra-ve_1","title":"V\u00ed d\u1ee5 th\u00f4ng tin tr\u1ea3 v\u1ec1","text":""},{"location":"functions/funds/#danh-muc-au-tu-lon-top-10-cac-ma-quy-nam-giu","title":"Danh m\u1ee5c \u0111\u1ea7u t\u01b0 l\u1edbn - top 10 c\u00e1c m\u00e3 qu\u1ef9 n\u1eafm gi\u1eef","text":"fund_details (symbol='SSISCA', type='top_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='SSISCA', type='top_holding_list')\nGetting data for SSISCA\n T\u00ean Ng\u00e0nh % Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n Lo\u1ea1i t\u00e0i s\u1ea3n C\u1eadp nh\u1eadt l\u1ea7n cu\u1ed1i fundId symbol\n0 FPT C\u00f4ng ngh\u1ec7 v\u00e0 th\u00f4ng tin 19.48 STOCK 2023-12-08 11 SSISCA\n1 MWG B\u00e1n l\u1ebb 8.73 STOCK 2023-12-08 11 SSISCA\n2 ACB Ng\u00e2n h\u00e0ng 4.80 STOCK 2023-12-08 11 SSISCA\n3 HPG V\u1eadt li\u1ec7u x\u00e2y d\u1ef1ng 4.53 STOCK 2023-12-08 11 SSISCA\n4 MBB Ng\u00e2n h\u00e0ng 4.29 STOCK 2023-12-08 11 SSISCA\n5 CTG Ng\u00e2n h\u00e0ng 3.88 STOCK 2023-12-08 11 SSISCA\n6 VRE B\u1ea5t \u0111\u1ed9ng s\u1ea3n 3.44 STOCK 2023-12-08 11 SSISCA\n7 DRC S\u1ea3n ph\u1ea9m cao su 3.43 STOCK 2023-12-08 11 SSISCA\n8 TV2 D\u1ecbch v\u1ee5 t\u01b0 v\u1ea5n, h\u1ed7 tr\u1ee3 3.42 STOCK 2023-12-08 11 SSISCA\n9 TCB Ng\u00e2n h\u00e0ng 3.31 STOCK 2023-12-08 11 SSISCA\n
"},{"location":"functions/funds/#ti-trong-cac-nganh-ma-quy-ang-au-tu","title":"T\u1ec9 tr\u1ecdng c\u00e1c ng\u00e0nh m\u00e0 qu\u1ef9 \u0111ang \u0111\u1ea7u t\u01b0","text":"fund_details (symbol='VESAF', type='industry_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='industry_holding_list')\nGetting data for VESAF\n Ng\u00e0nh % Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n symbol\n0 C\u00f4ng ngh\u1ec7 v\u00e0 th\u00f4ng tin 15.12 VESAF\n1 Ng\u00e2n h\u00e0ng 11.52 VESAF\n2 B\u1ea5t \u0111\u1ed9ng s\u1ea3n 10.77 VESAF\n3 S\u1ea3n xu\u1ea5t Ph\u1ee5 tr\u1ee3 10.03 VESAF\n4 V\u1eadn t\u1ea3i - Kho b\u00e3i 8.22 VESAF\n5 Khai kho\u00e1ng 5.44 VESAF\n6 Th\u1ef1c ph\u1ea9m - \u0110\u1ed3 u\u1ed1ng 5.28 VESAF\n7 Ch\u1ebf bi\u1ebfn th\u1ee7y s\u1ea3n 4.80 VESAF\n8 S\u1ea3n xu\u1ea5t Nh\u1ef1a - H\u00f3a ch\u1ea5t 3.48 VESAF\n9 X\u00e2y d\u1ef1ng 2.91 VESAF\n10 B\u00e1n l\u1ebb 2.77 VESAF\n11 Ch\u1ee9ng kho\u00e1n 2.54 VESAF\n12 Ti\u1ec7n \u00edch 2.31 VESAF\n13 B\u1ea3o hi\u1ec3m 1.41 VESAF\n
"},{"location":"functions/funds/#bao-cao-nav-quy","title":"B\u00e1o c\u00e1o NAV qu\u1ef9","text":"fund_details (symbol='VESAF', type='nav_report')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 DataFrame c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='nav_report')\nGetting data for VESAF\n Ng\u00e0y Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n r\u00f2ng/CCQ (VND) fundId symbol\n0 2017-04-25 10000.00 23 VESAF\n1 2017-04-29 10058.00 23 VESAF\n2 2017-05-09 10093.00 23 VESAF\n3 2017-05-16 10165.00 23 VESAF\n4 2017-05-23 10254.00 23 VESAF\n.. ... ... ... ...\n816 2023-12-04 25300.86 23 VESAF\n817 2023-12-05 25707.10 23 VESAF\n818 2023-12-06 25713.20 23 VESAF\n819 2023-12-07 25825.37 23 VESAF\n820 2023-12-08 25620.68 23 VESAF\n\n[821 rows x 4 columns]\n
"},{"location":"functions/funds/#ti-trong-tai-san-nam-giu","title":"T\u1ec9 tr\u1ecdng t\u00e0i s\u1ea3n n\u1eafm gi\u1eef","text":"fund_details (symbol='VESAF', type='asset_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 DataFrame nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='asset_holding_list')\nGetting data for VESAF\n T\u1ec9 tr\u1ecdng updateAt Lo\u1ea1i t\u00e0i s\u1ea3n symbol\n0 86.61 2023-12-08 C\u1ed5 phi\u1ebfu VESAF\n1 13.39 2023-12-08 Ti\u1ec1n v\u00e0 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n VESAF\n
"},{"location":"functions/listing/","title":"Danh s\u00e1ch ni\u00eam y\u1ebft","text":""},{"location":"functions/listing/#cong-ty-niem-yet","title":"C\u00f4ng ty ni\u00eam y\u1ebft","text":"listing_companies(live=True)\n
Trong \u0111\u00f3:
live
nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb.live=False
: Cho ph\u00e9p \u0111\u1ecdc d\u1eef li\u1ec7u c\u1ee5c b\u1ed9 t\u1eeb t\u1ec7p csv listing_companies \u0111\u00ednh k\u00e8m tr\u00ean Github theo m\u1eb7c \u0111\u1ecbnh. File n\u00e0y \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt h\u00e0ng th\u00e1ng. Ch\u1ee9a th\u00f4ng tin r\u1ea5t chi ti\u1ebft. B\u1edfi danh s\u00e1ch c\u00e1c c\u00f4ng ty ni\u00eam y\u1ebft th\u01b0\u1eddng kh\u00f4ng thay \u0111\u1ed5i li\u00ean t\u1ee5c n\u00ean vi\u1ec7c n\u00e0y kh\u00f4ng g\u00e2y tr\u1edf ng\u1ea1i nhi\u1ec1u.
live=True
: Cho ph\u00e9p \u0111\u1ecdc d\u1eef li\u1ec7u danh s\u00e1ch c\u00f4ng ty ni\u00eam y\u1ebft \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt realtime t\u1eeb API mi\u1ec5n ph\u00ed do Wifeed cung c\u1ea5p. D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y ch\u1ec9 g\u1ed3m 4 th\u00f4ng tin c\u01a1 b\u1ea3n: m\u00e3 CK, t\u00ean c\u00f4ng ty, m\u00e3 ph\u00e2n lo\u1ea1i c\u00f4ng ty, s\u00e0n ni\u00eam y\u1ebft.
Tham s\u1ed1 source
nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 Wifeed
(m\u1eb7c \u0111\u1ecbnh) ho\u1eb7c SSI
. B\u1ecf qua tham s\u1ed1 n\u00e0y n\u1ebfu s\u1eed d\u1ee5ng live=True
. Vi\u1ec7c b\u1ed5 sung th\u00eam ngu\u00f2n d\u1eef li\u1ec7u SSI cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng d\u1ec5 d\u00e0ng t\u00ecm ra m\u00e3 c\u00f4ng ty \u0111\u1ec3 tham chi\u1ebfu m\u1ed9t s\u1ed1 h\u00e0m c\u1ee7a SSI khi s\u1eed d\u1ee5ng m\u00e3 c\u1ed5 phi\u1ebfu kh\u00f4ng cho k\u1ebft qu\u1ea3.
>>> listing_companies(True)\n ticker organName organTypeCode comGroupCode\n0 A32 CTCP 32 1 UPCOM\n1 AAA CTCP Nh\u1ef1a An Ph\u00e1t Xanh 1 HOSE\n2 AAM CTCP Th\u1ee7y s\u1ea3n MeKong 1 HOSE\n3 AAS CTCP Ch\u1ee9ng kho\u00e1n SmartInvest 4 UPCOM\n4 AAT CTCP T\u1eadp \u0110o\u00e0n Ti\u00ean S\u01a1n Thanh H\u00f3a 1 HOSE\n... ... ... ... ...\n1579 XPH CTCP X\u00e0 ph\u00f2ng H\u00e0 N\u1ed9i 1 UPCOM\n1580 YBC CTCP Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i 1 UPCOM\n1581 YBM CTCP Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i 1 HOSE\n1582 YEG CTCP T\u1eadp \u0111o\u00e0n Yeah1 1 HOSE\n1583 YTC CTCP Xu\u1ea5t nh\u1eadp kh\u1ea9u Y t\u1ebf Th\u00e0nh ph\u1ed1 H\u1ed3 Ch\u00ed Minh 1 UPCOM\n
>>> listing_companies(True, source='SSI')\n organCode ticker ... organName organShortName\n0 0104498100 VVS ... C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 Ph\u00e1t tri\u1ec3n M\u00e1y Vi\u1ec7t Nam \u0110\u1ea7u t\u01b0 Ph\u00e1t tri\u1ec3n M\u00e1y Vi\u1ec7t Nam\n1 0109204756 HIO ... C\u00f4ng ty C\u1ed5 Ph\u1ea7n Helio Energy Helio Energy\n2 0304941312 XDC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n X\u00e2y d\u1ef1ng C\u00f4ng tr\u00ecnh T\u00e2n C\u1ea3ng X\u00e2y d\u1ef1ng C\u00f4ng tr\u00ecnh T\u00e2n C\u1ea3ng\n3 0700519785 THM ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1ee9 H\u1ea3i H\u00e0 Nam T\u1ee9 H\u1ea3i H\u00e0 Nam\n4 10659 HSV ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n HSV Vi\u1ec7t Nam Gang Th\u00e9p H\u00e0 N\u1ed9i\n... ... ... ... ... ...\n1599 XUANMINHHP XMP ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Th\u1ee7y \u0111i\u1ec7n Xu\u00e2n Minh Th\u1ee7y \u0111i\u1ec7n Xu\u00e2n Minh\n1600 YBC YBC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i\n1601 YBMC YBM ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i Kho\u00e1ng s\u1ea3n CN Y\u00ean B\u00e1i\n1602 YEGCORP YEG ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Yeah1 T\u1eadp \u0111o\u00e0n Yeah1\n1603 YTECO YTC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Xu\u1ea5t nh\u1eadp kh\u1ea9u Y t\u1ebf Th\u00e0nh ph\u1ed1 ... XNK Y t\u1ebf TP.HCM\n\n[1604 rows x 8 columns]\n
>>> listing_companies()\n ticker comGroupCode organName organShortName ... VNIT VNMAT VNREAL VNUTI\n0 SSI HOSE C\u00f4ng ty C\u1ed5 ph\u1ea7n Ch\u1ee9ng kho\u00e1n SSI Ch\u1ee9ng kho\u00e1n SSI ... False False False False\n1 BCM HOSE T\u1ed5ng C\u00f4ng ty \u0110\u1ea7u t\u01b0 v\u00e0 Ph\u00e1t tri\u1ec3n C\u00f4ng nghi\u1ec7p ... Becamex IDC ... False False True False\n2 VHM HOSE C\u00f4ng ty C\u1ed5 ph\u1ea7n Vinhomes Vinhomes ... False False True False\n\n[3 rows x 35 columns]\n
"},{"location":"functions/listing/#cac-ma-chi-so","title":"C\u00e1c m\u00e3 ch\u1ec9 s\u1ed1","text":"indices_listing (lang='vi')\n
Trong \u0111\u00f3, tham s\u1ed1 lang
cho ph\u00e9p nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 vi
cho Ti\u1ebfng Vi\u1ec7t, en
cho Ti\u1ebfng Anh. K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 l\u00e0 t\u1ea5t c\u1ea3 c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1 hi\u1ec7n c\u00f3, d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi FiinTrade/SSI. Khi s\u1eed d\u1ee5ng, c\u00f3 nh\u1eefng tr\u01b0\u1eddng h\u1ee3p c\u1ea7n \u0111\u1ed5i t\u00ean c\u00e1c m\u00e3 HNXIndex th\u00e0nh HNX, UpcomIndex th\u00e0nh UPCOM n\u1ebfu c\u1ea7n thi\u1ebft.
>>> indices_listing (lang='vi')\n comGroupCode parentComGroupCode comGroupOrder\n0 VNINDEX VNINDEX 1\n1 HNXIndex HNXIndex 2\n2 VN30 VNINDEX 2\n3 VNCOND VNINDEX 2\n4 HNX30 HNXIndex 3\n5 UpcomIndex UpcomIndex 3\n6 VN100 VNINDEX 3\n7 VNCONS VNINDEX 3\n8 VNENE VNINDEX 4\n9 VNX50 VNINDEX 4\n10 VNFIN VNINDEX 5\n11 VNHEAL VNINDEX 6\n12 VNXALL VNINDEX 6\n13 VNIND VNINDEX 7\n14 VNIT VNINDEX 8\n15 VNMAT VNINDEX 9\n16 VNSML VNINDEX 9\n17 VNMID VNINDEX 10\n18 VNREAL VNINDEX 10\n19 VNALL VNINDEX 11\n20 VNUTI VNINDEX 11\n21 VNDIAMOND VNINDEX 12\n22 VNFINLEAD VNINDEX 13\n23 VNFINSELECT VNINDEX 14\n24 VNSI VNINDEX 17\n
"},{"location":"functions/market/","title":"Chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng","text":"SSI - Chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng
Th\u00f4ng tin chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng c\u1ee7a vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p t\u1eeb ngu\u1ed3n SSI. B\u1ea1n c\u00f3 th\u1ec3 truy xu\u1ea5t c\u00e1c th\u00f4ng tin \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng c\u1ee7a SSI v\u00e0o m\u00f4i tr\u01b0\u1eddng Python b\u1eb1ng c\u00e1c h\u00e0m d\u01b0\u1edbi \u0111\u00e2y. \u0110i\u1ec3m kh\u00e1c bi\u1ec7t c\u0103n b\u1ea3n gi\u1eefa vi\u1ec7c l\u1ea5y d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng b\u1eb1ng h\u00e0m vnstock so v\u1edbi t\u1ea3i file excel tr\u1ef1c ti\u1ebfp t\u1eeb SSI l\u00e0 d\u1eef li\u1ec7u c\u1ee7a vnstock c\u00f3 \u0111\u1ed9 chi ti\u1ebft cao h\u01a1n, \u0111\u1ed3ng th\u1eddi c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c l\u1ea5y tr\u1ef1c ti\u1ebfp v\u00e0o m\u00f4i tr\u01b0\u1eddng Python m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i l\u01b0u file excel v\u1ec1 m\u00e1y \u0111\u1ec3 ph\u00e2n t\u00edch.
"},{"location":"functions/market/#ban-o-nhiet-gia","title":"B\u1ea3n \u0111\u1ed3 nhi\u1ec7t gi\u00e1","text":"S\u1eed d\u1ee5ng h\u00e0m:
fr_trade_heatmap (symbol='HOSE', report_type='FrBuyVal')\n
Trong \u0111\u00f3: symbol
: M\u00e3 s\u00e0n ch\u1ee9ng kho\u00e1n ho\u1eb7c m\u00e3 Ch\u1ec9 s\u1ed1.
HOSE
, HNX
ho\u1eb7c UPCOM
VN30
, VN100
, ho\u1eb7c b\u1ea5t k\u1ef3 m\u00e3 ch\u1ec9 s\u1ed1 n\u00e0o c\u00f3 trong h\u00ecnh b\u00ean tr\u00ean, \u0111\u01b0\u1ee3c khoanh v\u00f9ng m\u00e0u xanh.report_type
: Lo\u1ea1i b\u1ea3n \u0111\u1ed3 nhi\u1ec7t gi\u00e1.
FrBuyVal
: Gi\u00e1 tr\u1ecb N\u0110TNN mua r\u00f2ngFrSellVal
: Gi\u00e1 tr\u1ecb N\u0110TNN b\u00e1n r\u00f2ngFrBuyVol
: Kh\u1ed1i l\u01b0\u1ee3ng N\u0110TNN mua r\u00f2ngFrSellVol
: Kh\u1ed1i l\u01b0\u1ee3ng N\u0110TNN b\u00e1n r\u00f2ngVolume
: Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbchValue
: Gi\u00e1 tr\u1ecb giao d\u1ecbchMarketCap
: V\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddngK\u1ebft qu\u1ea3:
>>> fr_trade_heatmap (symbol='VN30', report_type='FrBuyVal').T\n 0 ... 29\navgPrice 21583.35 ... 24757.58\nbest1Bid 21550.0 ... NaN\nbest1BidVol 205900.0 ... NaN\nbest1Offer 21600 ... 24600\nbest1OfferVol 39500 ... 690100\nbest2Bid 21500.0 ... NaN\nbest2BidVol 620300.0 ... NaN\nbest2Offer 21650 ... 24650\nbest2OfferVol 65700 ... 86200\nbest3Bid 21450.0 ... NaN\nbest3BidVol 483100.0 ... NaN\nbest3Offer 21700 ... 24700\nbest3OfferVol 29700 ... 20500\ncaStatus ...\nceiling 23400 ... 28300\ncorporateEvents [] ... []\ncoveredWarrantType ...\nexchange hose ... hose\nexercisePrice 0 ... 0\nexerciseRatio ...\nfloor 20400 ... 24600\nhighest 21750 ... 25900\nissuerName ...\nlastTradingDate ...\nlastVol 38999 ... 54716\nlowest 21450 ... 24600\nmatchedPrice 21550 ... 24600\nmaturityDate ...\nnmTotalTradedValue 84172900000 ... 135463580000\nopenPrice 21750 ... 25900\npriorClosePrice 21900 ... 26450\nrefPrice 21900 ... 26450\nsecurityName NGAN HANG TMCP A CHAU ... CTCP VINCOM RETAIL\nstockSymbol ACB ... VRE\nstockType s ... s\ntotalShare 38999 ... 54716\ntradingStatus ...\ntradingUnit 100 ... 100\nunderlyingSymbol ...\ncompanyNameEn Asia Commercial Joint Stock Bank ... Vincom Retail Joint Stock Company\ncompanyNameVi Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n \u00c1 Ch\u00e2u ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Vincom Retail\noddSession LO ... LO\nsession LO ... LO\nbuyForeignQtty 120300 ... 748207\nremainForeignQtty 0 ... 382909157\nsellForeignQtty 120365 ... 695725\nmatchedVolume 30 ... 50\npriceChange -350 ... -1850\npriceChangePercent -1.6 ... -6.99\nlastMatchedPrice 21550 ... 24600\nlastMatchedVolume 30 ... 50\nlastPriceChange -350 ... -1850\nlastPriceChangePercent -1.6 ... -6.99\nnmTotalTradedQty 3899900 ... 5471600\n\n[54 rows x 30 columns]\n
"},{"location":"functions/market/#top-co-phieu","title":"Top c\u1ed5 phi\u1ebfu","text":"S\u1eed d\u1ee5ng h\u00e0m:
market_top_mover (report_name='Value', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
Trong \u0111\u00f3 report_name
l\u00e0 t\u00ean lo\u1ea1i b\u00e1o c\u00e1o c\u1ea7n truy xu\u1ea5t, nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb sau:
Breakout
: Top \u0111\u1ed9t ph\u00e1Value
: Top gi\u00e1 tr\u1ecbLosers
: Top gi\u1ea3m gi\u00e1Gainers
: Top t\u0103ng gi\u00e1Volume
: Top kh\u1ed1i l\u01b0\u1ee3ngForeignTrading
: Top N\u0110TNNNewHigh
: Top v\u01b0\u1ee3t \u0111\u1ec9nhNewLow
: Top th\u1ee7ng \u0111\u00e1yexchange
: Ch\u1ecdn s\u00e0n giao d\u1ecbch \u0111\u1ec3 truy xu\u1ea5t b\u00e1o c\u00e1o. All
cho t\u1ea5t c\u1ea3, ho\u1eb7c ri\u00eang l\u1ebb t\u1eebng s\u00e0n HOSE
, HNX
, UPCOM
filter
: L\u1ecdc lo\u1ea1i b\u00e1o c\u00e1o, \u00e1p d\u1ee5ng cho lo\u1ea1i b\u00e1o c\u00e1o Top N\u0110TNN, h\u00e0m s\u1ebd t\u1ef1 \u0111\u1ed9ng \u00e1p d\u1ee5ng v\u1edbi lo\u1ea1i b\u00e1o c\u00e1o ph\u00f9 h\u1ee3p.NetBuyVol
: Top kh\u1ed1i l\u01b0\u1ee3ng mua r\u00f2ngNetBuyVal
: Top gi\u00e1 tr\u1ecb mua r\u00f2ngNetSellVol
: Top kh\u1ed1i l\u01b0\u1ee3ng b\u00e1n r\u00f2ngNetSellVal
: Top gi\u00e1 tr\u1ecb b\u00e1n r\u00f2ngreport_range
: Ch\u1ecdn khung th\u1eddi gian b\u00e1o c\u00e1o OneWeek
cho 5 ng\u00e0y, TwoWeek
cho 10 ng\u00e0y, OneMonth
cho 1 th\u00e1ng, ThreeMonths
cho 3 th\u00e1ng, SixMonths
cho 6 th\u00e1ng, OneYear
cho 1 n\u0103mrate
: T\u1ec9 l\u1ec7 Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch so v\u1edbi Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trung b\u00ecnh trong s\u1ed1 phi\u00ean x\u00e1c \u0111\u1ecbnh (v\u00ed d\u1ee5 10 ng\u00e0y, 1 th\u00e1ng). Nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb OnePointTwo
cho 1.2, OnePointFive
cho 1.5, Two
cho 2, Five
cho 5, Ten
cho 10lang
: ch\u1ecdn ng\u00f4n ng\u1eef c\u1ee7a d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 ti\u1ebfng Vi\u1ec7t vi
, ho\u1eb7c Anh en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c m\u1eabu l\u1ec7nh \u0111\u1ec3 t\u1ea3i t\u1eebng lo\u1ea1i b\u00e1o c\u00e1o n\u00eau tr\u00ean. Xem th\u00eam chi ti\u1ebft Demo Notebook \u0111\u1ec3 tham chi\u1ebfu k\u1ebft qu\u1ea3 t\u1eebng h\u00e0m c\u1ee5 th\u1ec3.
market_top_mover (report_name='Value', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Losers', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Gainers', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Volume', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='ForeignTrading', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='NewLow', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='NewHigh', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Breakout', exchange='All', filter= 'NetBuyVol', report_range='TwoWeeks', rate='OnePointFive', lang='vi')\n
"},{"location":"functions/market/#giao-dich-ntnn","title":"\ud83d\udd10 Giao d\u1ecbch N\u0110TNN","text":"Gi\u1edbi thi\u1ec7u
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u00edch xu\u1ea5t t\u1eeb CafeF, kh\u00f4ng gi\u1edbi h\u1ea1n th\u1eddi gian tra c\u1ee9u. N\u1ebfu b\u1ea1n xu\u1ea5t d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp t\u1eeb CafeF ch\u1ec9 c\u00f3 th\u1ec3 xu\u1ea5t t\u1eebng trang v\u1edbi gi\u1edbi h\u1ea1n 20 d\u00f2ng g\u1ea7n nh\u1ea5t. T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn tham gia Insiders Program t\u1ea1i \u0111\u00e2y
B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
foreign_trade_data(symbol='VIC', start_date='2003-01-01', end_date='2023-12-22', limit=5000, page=1, lang='vi')\n
Trong \u0111\u00f3:
symbol
: M\u00e3 ch\u1ee9ng kho\u00e1n ho\u1eb7c ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. Kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef hoa/th\u01b0\u1eddng.start_date
: Ng\u00e0y b\u1eaft \u0111\u1ea7u tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
end_date
: Ng\u00e0y k\u1ebft th\u00fac tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
limit
: S\u1ed1 l\u01b0\u1ee3ng b\u1ea3n ghi tr\u1ea3 v\u1ec1 trong m\u1ed9t l\u1ea7n truy v\u1ea5n, m\u1eb7c \u0111\u1ecbnh l\u00e0 500page
: Trang k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1, m\u1eb7c \u0111\u1ecbnh l\u00e0 1. B\u1ecf qua tham s\u1ed1 n\u00e0y v\u00e0 \u0111i\u1ec1u ch\u1ec9nh limit
\u0111\u1ec3 truy v\u1ea5n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n ghi.lang
: Ng\u00f4n ng\u1eef c\u1ee7a t\u00ean c\u1ed9t d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1, nh\u1eadn gi\u00e1 tr\u1ecb vi
ho\u1eb7c en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3 minh h\u1ecda:
>>> foreign_trade_data(symbol='VIC', start_date='2003-01-01', end_date='2023-12-22', limit=5000, page=1, lang='vi')\n\nTotal records: 4141. Returned records: 4141\n Ngay KLGDRong GTDGRong ThayDoi KLMua GtMua KLBan GtBan RoomConLai DangSoHuu MaCK\n0 22/12/2023 -396290 -1.700099e+10 43.15(-0.12 %) 231200 9.950400e+09 627490 2.695139e+10 0 0.0 VIC\n1 21/12/2023 -129968 -5.564799e+09 43.2(-0.12 %) 224100 9.642125e+09 354068 1.520692e+10 0 0.0 VIC\n2 20/12/2023 -59541 -2.503370e+09 43.25(0.12 %) 268088 1.158413e+10 327629 1.408750e+10 0 0.0 VIC\n3 19/12/2023 -199294 -8.485858e+09 43.2(0.00 %) 195100 8.357565e+09 394394 1.684342e+10 0 0.0 VIC\n4 18/12/2023 -145146 -6.305306e+09 43.2(-1.14 %) 263710 1.145286e+10 408856 1.775816e+10 0 0.0 VIC\n... ... ... ... ... ... ... ... ... ... ... ...\n4136 07/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4137 06/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4138 05/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4139 02/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4140 01/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n\n[4141 rows x 11 columns]\n
"},{"location":"functions/market/#giao-dich-tu-doanh","title":"\ud83d\udd10 Giao d\u1ecbch t\u1ef1 doanh","text":"T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn ng\u01b0\u1eddi d\u00f9ng tham gia t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Insiders Program t\u1ea1i \u0111\u00e2y
Gi\u1edbi thi\u1ec7u
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u00edch xu\u1ea5t t\u1eeb CafeF, gi\u1edbi h\u1ea1n th\u1eddi gian tra c\u1ee9u trong v\u00f2ng 1 n\u0103m. N\u1ebfu b\u1ea1n xu\u1ea5t d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp t\u1eeb CafeF ch\u1ec9 c\u00f3 th\u1ec3 xu\u1ea5t t\u1eebng trang v\u1edbi gi\u1edbi h\u1ea1n 20 d\u00f2ng g\u1ea7n nh\u1ea5t. T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn tham gia Insiders Program t\u1ea1i \u0111\u00e2y
B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
proprietary_trade_data(symbol='VIC', start_date='2022-01-01', end_date='2023-12-22', limit=1000, page=1, lang='vi')\n
Trong \u0111\u00f3:
symbol
: M\u00e3 ch\u1ee9ng kho\u00e1n ho\u1eb7c ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. Kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef hoa/th\u01b0\u1eddng.start_date
: Ng\u00e0y b\u1eaft \u0111\u1ea7u tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
end_date
: Ng\u00e0y k\u1ebft th\u00fac tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
limit
: S\u1ed1 l\u01b0\u1ee3ng b\u1ea3n ghi tr\u1ea3 v\u1ec1 trong m\u1ed9t l\u1ea7n truy v\u1ea5n, m\u1eb7c \u0111\u1ecbnh l\u00e0 500page
: Trang k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1, m\u1eb7c \u0111\u1ecbnh l\u00e0 1. B\u1ecf qua tham s\u1ed1 n\u00e0y v\u00e0 \u0111i\u1ec1u ch\u1ec9nh limit
\u0111\u1ec3 truy v\u1ea5n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n ghi.lang
: Ng\u00f4n ng\u1eef c\u1ee7a t\u00ean c\u1ed9t d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1, nh\u1eadn gi\u00e1 tr\u1ecb vi
ho\u1eb7c en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3 minh h\u1ecda:
>>> proprietary_trade_data(symbol='VIC', start_date='2022-01-01', end_date='2023-12-22', limit=1000, page=1, lang='vi')\n\nTotal records: 287. Returned records: 287\n Ngay KLcpMua KlcpBan GtMua GtBan MaCK\n0 22/12/2023 112100 361000 4832690000 15497035000 VIC\n1 21/12/2023 257900 402100 11096970000 17287675000 VIC\n2 20/12/2023 56400 353200 2423970000 15201520000 VIC\n3 19/12/2023 226300 357100 9690645000 15290020000 VIC\n4 18/12/2023 160000 177800 6955905000 7715020000 VIC\n.. ... ... ... ... ... ...\n282 07/11/2022 183600 27200 9778640000 1424160000 VIC\n283 04/11/2022 153000 165700 8108240000 8866530000 VIC\n284 03/11/2022 71700 15300 3907960000 836750000 VIC\n285 02/11/2022 87700 180000 4817810000 9893270000 VIC\n286 01/11/2022 198900 81800 10938740000 4461310000 VIC\n\n[287 rows x 6 columns]\n
"},{"location":"functions/rating/","title":"\u0110\u00e1nh gi\u00e1 & x\u1ebfp h\u1ea1ng","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
general_rating(\"VNM\")\n
>>> general_rating(\"VNM\").T\n 0\nstockRating 3.7\nvaluation 1.4\nfinancialHealth 4.8\nbusinessModel 3.9\nbusinessOperation 2.8\nrsRating 2.2\ntaScore 1.0\nticker VNM\nhighestPrice 80815.2\nlowestPrice 63390.9\npriceChange3m 0.016\npriceChange1y -0.018\nbeta 0.36\nalpha 0.0013\n
"},{"location":"functions/rating/#mo-hinh-kinh-doanh","title":"M\u00f4 h\u00ecnh kinh doanh","text":"biz_model_rating(\"VNM\")\n
>>> biz_model_rating(\"VNM\").T\n 0\nticker VNM\nbusinessModel 3.9\nbusinessEfficiency 3\nassetQuality 4\ncashFlowQuality 4\nbom 4\nbusinessAdministration 4\nproductService 4\nbusinessAdvantage 4\ncompanyPosition 4\nindustry 4\noperationRisk 4\n
"},{"location":"functions/rating/#hieu-qua-hoat-ong","title":"Hi\u1ec7u qu\u1ea3 ho\u1ea1t \u0111\u1ed9ng","text":"biz_operation_rating(\"VNM\")\n
>>> biz_operation_rating(\"VNM\").T\n 0\nindustryEn Food Products\nloanGrowth None\ndepositGrowth None\nnetInterestIncomeGrowth None\nnetInterestMargin None\ncostToIncome None\nnetIncomeTOI None\nticker VNM\nbusinessOperation 2.8\navgROE 5\navgROA 5\nlast5yearsNetProfitGrowth 1\nlast5yearsRevenueGrowth 2\nlast5yearsOperatingProfitGrowth 1\nlast5yearsEBITDAGrowth 1\nlast5yearsFCFFGrowth 2\nlastYearGrossProfitMargin 4\nlastYearOperatingProfitMargin 3\nlastYearNetProfitMargin 3\nTOIGrowth None\n
"},{"location":"functions/rating/#suc-khoe-tai-chinh","title":"S\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh","text":"financial_health_rating(\"VNM\")\n
>>> financial_health_rating(\"VNM\").T\n 0\nindustryEn Food Products\nloanDeposit None\nbadLoanGrossLoan None\nbadLoanAsset None\nprovisionBadLoan None\nticker VNM\nfinancialHealth 4.8\nnetDebtEquity 4\ncurrentRatio 5\nquickRatio 5\ninterestCoverage 5\nnetDebtEBITDA 5\n
"},{"location":"functions/rating/#inh-gia","title":"\u0110\u1ecbnh gi\u00e1","text":"valuation_rating(\"VNM\")\n
>>> valuation_rating(\"VNM\").T\n 0\nindustryEn Food Products\nticker VNM\nvaluation 1.4\npe 1\npb 1\nps 1\nevebitda 1\ndividendRate 4\n
"},{"location":"functions/rating/#suc-khoe-tai-chinh-nganh","title":"S\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh ng\u00e0nh","text":"industry_financial_health(\"VNM\")\n
>>> industry_financial_health(\"VNM\").T\n 0\nindustryEn None\nloanDeposit None\nbadLoanGrossLoan None\nbadLoanAsset None\nprovisionBadLoan None\nticker VNM\nfinancialHealth 3.4\nnetDebtEquity 4\ncurrentRatio 3\nquickRatio 3\ninterestCoverage 3\nnetDebtEBITDA 3\n
"},{"location":"functions/ratio/","title":"B\u1ed9 ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh","text":""},{"location":"functions/ratio/#chi-so-co-ban","title":"Ch\u1ec9 s\u1ed1 c\u01a1 b\u1ea3n","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
B\u1ed9 ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh do TCBS cung c\u1ea5p c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c tr\u00edch m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng \u0111\u1ec3 c\u00f3 to\u00e0n b\u1ed9 th\u00f4ng tin ph\u00e2n t\u00edch nh\u01b0 b\u1ea1n th\u1ea5y tr\u00ean giao di\u1ec7n website TCBS b\u1eb1ng c\u00e2u l\u1ec7nh:
financial_ratio(symbol=\"TCB\", report_range='yearly', is_all=False)\n
Trong \u0111\u00f3:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_range
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: yearly
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo n\u0103m, quarterly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo qu\u00fdis_all
c\u00f3 gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 True
cho ph\u00e9p l\u1ea5y ch\u1ec9 s\u1ed1 qua t\u1ea5t c\u1ea3 c\u00e1c k\u1ef3 (n\u0103m ho\u1eb7c qu\u00fd), False
cho ph\u00e9p l\u1ea5y c\u00e1c k\u1ef3 g\u1ea7n nh\u1ea5t (5 n\u0103m ho\u1eb7c 10 qu\u00fd g\u1ea7n \u0111\u00e2y). \u0110\u00e2y l\u00e0 tham s\u1ed1 t\u00f9y ch\u1ecdn, n\u1ebfu b\u1ea1n kh\u00f4ng ch\u1ec9 r\u00f5, n\u00f3 s\u1ebd nh\u1eadn gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
t\u1ee9c r\u00fat g\u1ecdn b\u00e1o c\u00e1o \u0111\u1ec3 l\u1ea5y 5 n\u0103m ho\u1eb7c 10 qu\u00fd g\u1ea7n nh\u1ea5t.K\u1ebft qu\u1ea3:
>>> financial_ratio('TCB', 'yearly')\nyear 2022 2021 2020 2019 2018\nticker TCB TCB TCB TCB TCB\npriceToEarning 4.5 9.7 9.0 8.2 10.7\npriceToBook 0.8 1.9 1.5 1.3 1.8\nroe 0.197 0.217 0.181 0.178 0.215\nroa 0.032 0.036 0.03 0.029 0.029\nearningPerShare 5729 5132 3504 2869 2410\nbookValuePerShare 32248 26452 21214 17679 14749\ninterestMargin 0.053 0.057 0.049 0.043 0.041\nnonInterestOnToi 0.259 0.28 0.307 0.323 0.379\nbadDebtPercentage 0.007 0.007 0.005 0.013 0.018\nprovisionOnBadDebt 1.573 1.629 1.71 0.948 0.851\ncostOfFinancing 0.028 0.022 0.031 0.038 0.041\nequityOnTotalAsset 0.162 0.164 0.17 0.162 0.161\nequityOnLoan 0.27 0.268 0.269 0.269 0.324\ncostToIncome 0.328 0.301 0.319 0.347 0.318\nequityOnLiability 0.2 0.2 0.2 0.2 0.2\nepsChange 0.116 0.465 0.221 0.191 0.313\nassetOnEquity 6.2 6.1 5.9 6.2 6.2\npreProvisionOnToi 0.537 0.554 0.542 0.52 0.542\npostTaxOnToi 0.5 0.497 0.465 0.485 0.462\nloanOnEarnAsset 0.684 0.665 0.681 0.649 0.537\nloanOnAsset 0.602 0.611 0.631 0.602 0.498\nloanOnDeposit 1.173 1.104 1.0 0.998 0.794\ndepositOnEarnAsset 0.583 0.603 0.68 0.651 0.676\nbadDebtOnAsset 0.004 0.004 0.003 0.008 0.009\nliquidityOnLiability 0.347 0.382 0.372 0.411 0.531\npayableOnEquity 5.2 5.1 4.9 5.2 5.2\ncancelDebt 0.002 0.004 0.013 0.002 0.008\nbookValuePerShareChange 0.219 0.247 0.2 0.199 0.923\ncreditGrowth 0.211 0.252 0.202 0.443 -0.006\n
"},{"location":"functions/ratio/#so-sanh-chi-so-giua-cac-ma-co-phieu","title":"So s\u00e1nh ch\u1ec9 s\u1ed1 gi\u1eefa c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu","text":"financial_ratio_compare (symbol_ls=[\"CTG\", \"TCB\", \"ACB\"], industry_comparison=True, frequency='Yearly', start_year=2010)\n
Trong \u0111\u00f3:
symbol_ls
l\u00e0 danh s\u00e1ch c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n so s\u00e1nh d\u1ea1ng danh s\u00e1ch trong Python. M\u00e3 c\u1ed5 phi\u1ebfu \u0111\u1ea7u ti\u00ean l\u00e0 m\u00e3 d\u00f9ng \u0111\u1ec3 tham chi\u1ebfu khi so s\u00e1nh v\u1edbi c\u00e1c m\u00e3 kh\u00e1c v\u00e0 ng\u00e0nh.industry_comparison
: m\u1eb7c \u0111\u1ecbnh l\u00e0 True
, cho ph\u00e9p so s\u00e1nh v\u1edbi ch\u1ec9 s\u1ed1 c\u1ee7a to\u00e0n ng\u00e0nh.frequency
: nh\u1eadn gi\u00e1 tr\u1ecb Yearly
cho h\u00e0ng n\u0103m, Quarterly
cho h\u00e0ng qu\u00fdstart_year
: n\u0103m b\u1eaft \u0111\u1ea7u l\u1ea5y b\u00e1o c\u00e1o cho \u0111\u1ebfn hi\u1ec7n t\u1ea1i.K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> financial_ratio_compare (symbol_ls=[\"CTG\", \"TCB\", \"ACB\"], industry_comparison=True, frequency='Yearly', start_year=2020)\n Ch\u1ec9 s\u1ed1 2020 2021 2022\n0 T\u1ec9 l\u1ec7 CASA NaN NaN NaN\n1 CTG 0.188273 0.194308 0.194949\n2 ACB 0.209698 0.248287 0.217765\n3 TCB 0.443210 0.469770 0.343410\n4 To\u00e0n ng\u00e0nh NaN NaN NaN\n.. ... ... ... ...\n138 Tr\u00edch l\u1eadp d\u1ef1 ph\u00f2ng/ Cho vay (%) NaN NaN NaN\n139 CTG -0.012455 -0.017131 -0.020090\n140 ACB -0.003244 -0.009908 -0.000183\n141 TCB -0.010273 -0.008529 -0.005043\n142 To\u00e0n ng\u00e0nh -0.015620 -0.018418 -0.015272\n
"},{"location":"functions/screener/","title":"B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu l\u00e0 m\u1ed9t h\u00e0m cho ph\u00e9p b\u1ea1n truy v\u1ea5n v\u00e0 l\u1ecdc c\u00e1c c\u1ed5 phi\u1ebfu theo nhi\u1ec1u ti\u00eau ch\u00ed \u0111a d\u1ea1ng d\u1ef1a tr\u00ean d\u1eef li\u1ec7u ph\u00e2n t\u00edch c\u1ee7a TCBS. H\u00e0m n\u00e0y s\u1ebd tr\u1ea3 v\u1ec1 m\u1ed9t DataFrame ch\u1ee9a c\u00e1c th\u00f4ng tin to\u00e0n di\u1ec7n v\u1ec1 c\u00e1c c\u1ed5 phi\u1ebfu th\u1ecfa m\u00e3n \u0111i\u1ec1u ki\u1ec7n l\u1ecdc c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng DataFrame n\u00e0y \u0111\u1ec3 ti\u1ebfp t\u1ee5c ph\u00e2n t\u00edch, bi\u1ec3u di\u1ec5n ho\u1eb7c xu\u1ea5t ra d\u1eef li\u1ec7u d\u1ea1ng b\u1ea3ng t\u00ednh. \u0110\u00e2y l\u00e0 c\u1eadp nh\u1eadt \u01b0u vi\u1ec7t gi\u00fap b\u1ea1n ti\u1ebft ki\u1ec7m th\u1eddi gian v\u00e0 c\u00f4ng s\u1ee9c \u0111\u00e1ng k\u1ec3 khi l\u00e0m vi\u1ec7c v\u1edbi d\u1eef li\u1ec7u c\u1ed5 phi\u1ebfu, \u0111\u1ed3ng th\u1eddi cho ph\u00e9p l\u1eadp tr\u00ecnh \u0111\u1ec3 l\u1ecdc l\u00e0 c\u1eadp nh\u1eadt danh s\u00e1ch c\u1ed5 phi\u1ebfu hi\u1ec7u qu\u1ea3 kh\u00f4ng c\u1ea7n s\u1eed d\u1ee5ng giao di\u1ec7n web t\u1eeb c\u00f4ng ty ch\u1ee9ng kho\u00e1n.
Tham s\u1ed1
key
l\u00e0 t\u00ean c\u1ee7a c\u00e1c b\u1ed9 l\u1ecdc, v\u00e0 c\u00e1c value
l\u00e0 m\u1ed9t gi\u00e1 tr\u1ecb \u0111\u01a1n ho\u1eb7c m\u1ed9t tupple g\u1ed3m hai gi\u00e1 tr\u1ecb (min v\u00e0 max) cho b\u1ed9 l\u1ecdc \u0111\u00f3. \u0110\u00e2y l\u00e0 v\u00ed d\u1ee5 cho tham s\u1ed1 params \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp \u0111\u00fang:vi
) ho\u1eb7c Anh (en
)params = {\n \"exchangeName\": \"HOSE,HNX,UPCOM\",\n \"marketCap\": (100, 1000),\n \"dividendYield\": (5, 10)\n }\n
\u00c1p d\u1ee5ng b\u1ed9 l\u1ecdc v\u1edbi h\u00e0m \u0111\u1ec3 l\u1ea5y k\u1ebft qu\u1ea3
df = stock_screening_insights (params, size=1700, drop_lang='vi')\n
"},{"location":"functions/screener/#ieu-kien-loc","title":"\u0110i\u1ec1u ki\u1ec7n l\u1ecdc","text":"B\u1ed9 l\u1ecdc g\u1ee3i \u00fd S\u1eed d\u1ee5ng c\u00e1c ti\u00eau ch\u00ed l\u1ecdc nh\u01b0 sau \u0111\u1ec3 thi\u1ebft l\u1eadp tham s\u1ed1 params.
exchangeName
: s\u00e0n giao d\u1ecbch c\u1ee7a c\u1ed5 phi\u1ebfu, v\u00ed d\u1ee5 \"HOSE\", \"HNX\", ho\u1eb7c \"UPCOM\". B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng d\u1ea5u ph\u1ea9y \u0111\u1ec3 ph\u00e2n t\u00e1ch nhi\u1ec1u s\u00e0n, v\u00ed d\u1ee5 \"HOSE,HNX,UPCOM\".hasFinancialReport
: C\u00f3 b\u00e1o c\u00e1o t\u00e0i ch\u00ednh g\u1ea7n nh\u1ea5t. 1
ngh\u0129a l\u00e0 c\u00f3, 0
ngh\u0129a l\u00e0 kh\u00f4ng.industryName
: L\u1ecdc c\u00e1c c\u1ed5 phi\u1ebfu theo ng\u00e0nh c\u1ee5 th\u1ec3. Gi\u00e1 tr\u1ecb d\u1ea1ng Retail
cho ng\u00e0nh B\u00e1n l\u1ebb. C\u00e1c gi\u00e1 tr\u1ecb kh\u00e1c c\u00f3 th\u1ec3 l\u00e0:Insurance
: B\u1ea3o hi\u1ec3mReal Estate
: B\u1ea5t \u0111\u1ed9ng s\u1ea3nTechnology
: C\u00f4ng ngh\u1ec7 th\u00f4ng tinOil & Gas
: D\u1ea7u kh\u00edFinancial Services
: D\u1ecbch v\u1ee5 t\u00e0i ch\u00ednhUtilities
: \u0110i\u1ec7n, n\u01b0\u1edbc, x\u0103ng d\u1ea7u v\u00e0 kh\u00ed \u0111\u1ed1tTravel & Leisure
: Du l\u1ecbch v\u00e0 gi\u1ea3i tr\u00edIndustrial Goods & Services
: H\u00e0ng v\u00e0 d\u1ecbch v\u1ee5 c\u00f4ng nghi\u1ec7pPersonal & Household Goods
: H\u00e0ng c\u00e1 nh\u00e2n v\u00e0 gia d\u1ee5ngChemicals
: H\u00f3a ch\u1ea5tBanks
: Ng\u00e2n h\u00e0ngAutomobiles & Parts
: \u00d4 t\u00f4 v\u00e0 ph\u1ee5 t\u00f9ngBasic Resources
: T\u00e0i nguy\u00ean c\u01a1 b\u1ea3nFood & Beverage
: Th\u1ef1c ph\u1ea9m v\u00e0 \u0111\u1ed3 u\u1ed1ngMedia
: Truy\u1ec1n th\u00f4ngTelecommunications
: Vi\u1ec5n th\u00f4ngConstruction & Materials
: X\u00e2y d\u1ef1ng v\u00e0 v\u1eadt li\u1ec7uHealth Care
: Y t\u1ebfmarketCap
: v\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddng c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng t\u1ef7 VND.priceNearRealtime
: gi\u00e1 hi\u1ec7n t\u1ea1i c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng VND.foreignVolumePercent
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m kh\u1ed1i l\u01b0\u1ee3ng n\u01b0\u1edbc ngo\u00e0i trong t\u1ed5ng kh\u1ed1i l\u01b0\u1ee3ng.alpha
: l\u1ee3i nhu\u1eadn v\u01b0\u1ee3t tr\u1ed9i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi l\u1ee3i nhu\u1eadn th\u1ecb tr\u01b0\u1eddng.beta
: \u0111\u1ed9 bi\u1ebfn \u0111\u1ed9ng c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng.freeTransferRate
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m c\u1ed5 phi\u1ebfu c\u00f3 th\u1ec3 chuy\u1ec3n nh\u01b0\u1ee3ng t\u1ef1 do.revenueGrowth1Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong n\u0103m qua.revenueGrowth5Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trung b\u00ecnh trong 5 n\u0103m qua.epsGrowth1Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu trong n\u0103m qua.epsGrowth5Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu trung b\u00ecnh trong 5 n\u0103m qua.lastQuarterRevenueGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong qu\u00fd g\u1ea7n nh\u1ea5t.secondQuarterRevenueGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong qu\u00fd th\u1ee9 hai.lastQuarterProfitGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn trong qu\u00fd g\u1ea7n nh\u1ea5t.secondQuarterProfitGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn trong qu\u00fd th\u1ee9 hai.grossMargin
: t\u1ef7 su\u1ea5t l\u1ee3i nhu\u1eadn g\u1ed9p c\u1ee7a c\u1ed5 phi\u1ebfu.netMargin
: t\u1ef7 su\u1ea5t l\u1ee3i nhu\u1eadn r\u00f2ng c\u1ee7a c\u1ed5 phi\u1ebfu.roe
: t\u1ef7 su\u1ea5t sinh l\u1eddi v\u1ec1 v\u1ed1n ch\u1ee7 s\u1edf h\u1eefu c\u1ee7a c\u1ed5 phi\u1ebfu.doe
: t\u1ef7 su\u1ea5t c\u1ed5 t\u1ee9c v\u1ec1 v\u1ed1n ch\u1ee7 s\u1edf h\u1eefu c\u1ee7a c\u1ed5 phi\u1ebfu.dividendYield
: t\u1ef7 su\u1ea5t c\u1ed5 t\u1ee9c c\u1ee7a c\u1ed5 phi\u1ebfu.eps
: l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng VND.pe
: t\u1ef7 s\u1ed1 gi\u00e1/l\u1ee3i nhu\u1eadn c\u1ee7a c\u1ed5 phi\u1ebfu.pb
: t\u1ef7 s\u1ed1 gi\u00e1/gi\u00e1 tr\u1ecb s\u1ed5 s\u00e1ch c\u1ee7a c\u1ed5 phi\u1ebfu.evEbitda
: t\u1ef7 s\u1ed1 gi\u00e1 tr\u1ecb doanh nghi\u1ec7p/l\u1ee3i nhu\u1eadn tr\u01b0\u1edbc thu\u1ebf, l\u00e3i vay, kh\u1ea5u hao v\u00e0 amortization c\u1ee7a c\u1ed5 phi\u1ebfu.netCashPerMarketCap
: t\u1ef7 s\u1ed1 ti\u1ec1n m\u1eb7t r\u00f2ng/v\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddng c\u1ee7a c\u1ed5 phi\u1ebfu.netCashPerTotalAssets
: t\u1ef7 s\u1ed1 ti\u1ec1n m\u1eb7t r\u00f2ng/t\u1ed5ng t\u00e0i s\u1ea3n c\u1ee7a c\u1ed5 phi\u1ebfu.profitForTheLast4Quarters
: t\u1ed5ng l\u1ee3i nhu\u1eadn trong 4 qu\u00fd g\u1ea7n nh\u1ea5t c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng t\u1ef7 VND.suddenlyHighVolumeMatching
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 t\u0103ng \u0111\u1ed9t bi\u1ebfn kh\u1ed1i l\u01b0\u1ee3ng kh\u1edbp l\u1ec7nh cho c\u1ed5 phi\u1ebfu n\u00e0y. 0 ngh\u0129a l\u00e0 kh\u00f4ng, 1 ngh\u0129a l\u00e0 c\u00f3.totalTradingValue
: t\u1ed5ng gi\u00e1 tr\u1ecb giao d\u1ecbch c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND h\u00f4m nay.avgTradingValue5Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 5 ng\u00e0y.avgTradingValue10Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 10 ng\u00e0y.avgTradingValue20Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 20 ng\u00e0y.priceGrowth1Week
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng gi\u00e1 c\u1ee7a c\u1ed5 phi\u1ebfu trong tu\u1ea7n qua.priceGrowth1Month
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng gi\u00e1 c\u1ee7a c\u1ed5 phi\u1ebfu trong th\u00e1ng qua.percent1YearFromPeak
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 cao nh\u1ea5t trong 1 n\u0103m.percentAwayFromHistoricalPeak
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 cao nh\u1ea5t l\u1ecbch s\u1eed.percent1YearFromBottom
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 th\u1ea5p nh\u1ea5t trong 1 n\u0103m.percentOffHistoricalBottom
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 th\u1ea5p nh\u1ea5t l\u1ecbch s\u1eed.priceVsSMA5
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 5 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSma10
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 10 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSMA20
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 20 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSma50
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 50 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSMA100
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 100 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.forecastVolumeRatio
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng d\u1ef1 b\u00e1o v\u00e0 kh\u1ed1i l\u01b0\u1ee3ng th\u1ef1c t\u1ebf c\u1ee7a c\u1ed5 phi\u1ebfu h\u00f4m nay.volumeVsVSma5
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 5 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma10
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 10 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma20
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 20 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma50
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 50 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.strongBuyPercentage
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m t\u00edn hi\u1ec7u mua m\u1ea1nh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt.activeBuyPercentage
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m t\u00edn hi\u1ec7u mua t\u00edch c\u1ef1c cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt.foreignTransaction
: lo\u1ea1i giao d\u1ecbch n\u01b0\u1edbc ngo\u00e0i cho c\u1ed5 phi\u1ebfu n\u00e0y h\u00f4m nay. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 buyMoreThanSell
, sellMoreThanBuy
, ho\u1eb7c noTransaction
.foreignBuySell20Session
: gi\u00e1 tr\u1ecb mua b\u00e1n r\u00f2ng n\u01b0\u1edbc ngo\u00e0i cho c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 20 phi\u00ean.numIncreaseContinuousDay
: s\u1ed1 ng\u00e0y li\u00ean ti\u1ebfp c\u1ed5 phi\u1ebfu n\u00e0y t\u0103ng gi\u00e1.numDecreaseContinuousDay
: s\u1ed1 ng\u00e0y li\u00ean ti\u1ebfp c\u1ed5 phi\u1ebfu n\u00e0y gi\u1ea3m gi\u00e1.rsi14
: ch\u1ec9 s\u1ed1 s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i (RSI) c\u1ee7a c\u1ed5 phi\u1ebfu v\u1edbi chu k\u1ef3 14 ng\u00e0y.rsi14Status
: tr\u1ea1ng th\u00e1i c\u1ee7a RSI cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 intoOverBought
, intoOverSold
, outOfOverBought
, ho\u1eb7c outOfOverSold
.tcbsBuySellSignal
: t\u00edn hi\u1ec7u mua b\u00e1n cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.priceBreakOut52Week
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 \u0111\u1ed9t ph\u00e1 gi\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y trong 52 tu\u1ea7n. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BREAK_OUT
ho\u1eb7c NO_BREAK_OUT
.priceWashOut52Week
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 r\u1eeda gi\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y trong 52 tu\u1ea7n. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 WASH_OUT
ho\u1eb7c NO_WASH_OUT
.macdHistogram
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u MACD histogram cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 macdHistGT0Increase
, macdHistGT0Decrease
, macdHistLT0Increase
, ho\u1eb7c macdHistLT0Decrease
.relativeStrength3Day
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 3 ng\u00e0y.relativeStrength1Month
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 1 th\u00e1ng.relativeStrength3Month
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 3 th\u00e1ng.relativeStrength1Year
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 1 n\u0103m.tcRS
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a TCBS c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng.sarVsMacdHist
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u SAR vs MACD histogram cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.bollingBandSignal
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u Bollinger Band cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.dmiSignal
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u ch\u1ec9 s\u1ed1 chuy\u1ec3n \u0111\u1ed9ng h\u01b0\u1edbng (DMI) cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.uptrend
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u xu h\u01b0\u1edbng t\u0103ng cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 buy-signal
ho\u1eb7c sell-signal
.breakout
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u \u0111\u1ed9t ph\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BULLISH
ho\u1eb7c BEARISH
.tcbsRecommend
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 khuy\u1ebfn ngh\u1ecb c\u1ee7a TCBS cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.stockRating
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 c\u1ed5 phi\u1ebfu cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.businessModel
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 m\u00f4 h\u00ecnh kinh doanh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.businessOperation
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 ho\u1ea1t \u0111\u1ed9ng kinh doanh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.financialHealth
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 s\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.L\u01b0u \u00fd
Phi\u00ean b\u1ea3n API hi\u1ec7n t\u1ea1i cho ph\u00e9p truy c\u1eadp gi\u00e1 l\u1ecbch s\u1eed t\u1ed1i \u0111a \u0111\u1ebfn ng\u00e0y 2012-03-20 \u0111\u1ed1i v\u1edbi t\u1ea5t c\u1ea3 m\u00e3 c\u1ed5 phi\u1ebfu. N\u1ebfu b\u1ea1n c\u00f3 nhu c\u1ea7u l\u1ea5y l\u1ecbch s\u1eed gi\u00e1 t\u1eeb th\u1eddi \u0111i\u1ec3m th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n b\u1eaft \u0111\u1ea7u ho\u1ea1t \u0111\u1ed9ng (REE l\u00e0 m\u00e3 c\u1ed5 phi\u1ebfu c\u00f3 giao d\u1ecbch s\u1edbm nh\u1ea5t th\u1ecb tr\u01b0\u1eddng v\u00e0o 2000-07-31), h\u00e3y tham gia nh\u00f3m th\u00e0nh vi\u00ean vnstock tr\u00ean Facebook \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3. Xem th\u00eam chi ti\u1ebft t\u1ea1i FAQ.
vnstock cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng t\u1ea3i xu\u1ed1ng d\u1eef li\u1ec7u l\u1ecbch s\u1eed giao d\u1ecbch c\u1ee7a m\u00e3 c\u1ed5 phi\u1ebfu, ch\u1ec9 s\u1ed1, h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh
.
D\u1eef li\u1ec7u h\u1ed7 tr\u1ee3 7 m\u1ee9c \u0111\u1ed9 chi ti\u1ebft theo kho\u1ea3ng th\u1eddi gian bao g\u1ed3m: 1 ph\u00fat, 3 ph\u00fat, 5 ph\u00fat, 15 ph\u00fat, 30 ph\u00fat, 1 gi\u1edd, 1 ng\u00e0y.
Tr\u01b0\u1eddng d\u1eef li\u1ec7u time
s\u1ebd l\u00e0 gi\u00e1 tr\u1ecb ng\u00e0y th\u00e1ng YYYY-mm-dd
n\u1ebfu resolution
nh\u1eadp v\u00e0o l\u00e0 1D
, trong khi resolution
l\u00e0 c\u1ea5p \u0111\u1ed9 ph\u00fat v\u00e0 gi\u1edd s\u1ebd cho th\u00eam th\u00f4ng tin th\u1eddi gian gi\u1edd/ph\u00fat.
\u0110\u01a1n v\u1ecb gi\u00e1 OHLC cho m\u00e3 c\u1ed5 phi\u1ebfu \u0111\u01b0\u1ee3c l\u00e0m tr\u00f2n theo m\u1eb7c \u0111\u1ecbnh, ch\u1ec9 l\u1ea5y ph\u1ea7n nguy\u00ean. \u0110\u01a1n v\u1ecb t\u00ednh l\u00e0 VND. B\u1ea1n c\u00f3 th\u1ec3 t\u1eaft t\u00ednh n\u0103ng l\u00e0m tr\u00f2n b\u1eb1ng tham s\u1ed1 beautify=False
.
Trong v\u00ed d\u1ee5 d\u01b0\u1edbi \u0111\u00e2y, d\u1eef li\u1ec7u gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t theo c\u1ea5p \u0111\u1ed9 ng\u00e0y.
df = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True, decor=False, source='DNSE')\nprint(df)\n
L\u01b0u \u00fd: \u0110\u1ed1i v\u1edbi khung th\u1eddi gian (resolution) nh\u1ecf h\u01a1n 1 ng\u00e0y (1D), API n\u00e0y (do DNSE cung c\u1ea5p) ch\u1ec9 cho ph\u00e9p truy ng\u01b0\u1ee3c l\u1ea1i trong kho\u1ea3ng th\u1eddi gian 90 ng\u00e0y. B\u1ea1n c\u00f3 th\u1ec3 g\u1eb7p l\u1ed7i khi c\u1ed1 g\u1eafng l\u1ea5y d\u1eef li\u1ec7u c\u0169 h\u01a1n trong th\u1eddi gian d\u00e0i h\u01a1n.
Gi\u00e1 tr\u1ecb m\u00e0 tham s\u1ed1 resolution
c\u00f3 th\u1ec3 nh\u1eadn l\u00e0 1D
(m\u1eb7c \u0111\u1ecbnh, 1 ng\u00e0y), '1' (1 ph\u00fat), 3 (3 ph\u00fat), 5 (5 ph\u00fat), 15 (15 ph\u00fat), 30 (30 ph\u00fat), '1H' (h\u00e0ng gi\u1edd).
type = 'stock'
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u gi\u00e1 c\u1ee7a m\u00e3 c\u1ed5 c\u1ed5 phi\u1ebfu, type = 'index'
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u gi\u00e1 c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1, v\u00e0 type='derivative
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u ph\u00e1i sinh. C\u00e1c m\u00e3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 bao g\u1ed3m (nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n): VNINDEX, VN30, HNX, HNX30, UPCOM, VNXALLSHARE, VN30F1M, VN30F2M, VN30F1Q, VN30F2Qbeautify=True
cho ph\u00e9p l\u00e0m tr\u00f2n gi\u00e1 tr\u1ecb OHLC theo m\u1eb7c \u0111\u1ecbnh (nh\u00e2n v\u1edbi 1000, v\u00ed d\u1ee5 gi\u00e1 32.05 th\u00e0nh 32500). \u0110\u1eb7t beautify=False
\u0111\u1ec3 t\u1eaft ch\u1ebf \u0111\u1ed9 l\u00e0m tr\u00f2n cho c\u1ed5 phi\u1ebfu. V\u1edbi m\u00e3 ch\u1ec9 s\u1ed1, gi\u00e1 tr\u1ecb tr\u1ea3 v\u1ec1 lu\u00f4n l\u00e0 s\u1ed1 th\u1eadp ph\u00e2n nguy\u00ean b\u1ea3n.decor=True
: \u00e1p d\u1ee5ng thay t\u00ean c\u00e1c c\u1ed9t trong DataFrame tr\u1ea3 v\u1ec1 d\u01b0\u1edbi d\u1ea1ng Title Case t\u1ee9c Open, High, Low, Close, Time, Ticker
thay v\u00ec open, high, low, close, time, ticker
nh\u01b0 hi\u1ec7n t\u1ea1i \u0111\u1ed3ng th\u1eddi \u0111\u1eb7t c\u1ed9t Time l\u00e0 index. Vi\u1ec7c n\u00e0y gi\u1ea3m b\u1edbt cho ng\u01b0\u1eddi d\u00f9ng ph\u1ea3i vi\u1ebft th\u00eam c\u00e2u l\u1ec7nh khi s\u1eed d\u1ee5ng d\u1eef li\u1ec7u vnstock k\u1ebft h\u1ee3p c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt ph\u1ed5 bi\u1ebfn v\u1ed1n d\u00f9ng th\u01b0 vi\u1ec7n Yahoo Finance l\u00e0m ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u. Gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
.
source='DNSE'
(kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef th\u01b0\u1eddng hay in hoa):
TCBS
cho l\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed theo ng\u00e0y (resolution = 1D
) trong th\u1eddi gian d\u00e0i, kh\u00f4ng h\u1ed7 tr\u1ee3 khung th\u1eddi gian nh\u1ecf h\u01a1n.VND
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u trong v\u00f2ng 10 n\u0103m g\u1ea7n nh\u1ea5t cho resolution = 1D
. T\u00f9y ch\u1ecdn n\u00e0y ch\u1ec9 \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng v\u1edbi ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
.SSI
, HSC
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u t\u1eeb n\u0103m 2000 cho resolution = 1D
v\u1edbi t\u1ed1c \u0111\u1ed9 truy c\u1eadp nhanh ch\u00f3ng trong 1 truy v\u1ea5n duy nh\u1ea5t. T\u00f9y ch\u1ecdn n\u00e0y ch\u1ec9 \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng v\u1edbi ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
.B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 vi\u1ebft h\u00e0m theo d\u1ea1ng r\u00fat g\u1ecdn nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y, \u0111i\u1ec1u n\u00e0y \u0111\u00fang v\u1edbi t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m, mi\u1ec5n l\u00e0 th\u00f4ng s\u1ed1 \u0111\u01b0\u1ee3c nh\u1eadp v\u00e0o \u0111\u00fang th\u1ee9 t\u1ef1:
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ed5 phi\u1ebfu
df = stock_historical_data(\"GMD\", \"2021-01-01\", \"2022-02-25\", \"1D\", 'stock')\nprint(df)\n
V\u00e0 \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3
time open high low close volume\n0 2021-01-04 32182.0 33157.0 31987.0 32279.0 4226500\n1 2021-01-05 32279.0 33596.0 31938.0 32962.0 4851900\n2 2021-01-06 33352.0 33352.0 32279.0 32572.0 3641300\n
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1
df = stock_historical_data(\"VNINDEX\", \"2021-01-01\", \"2022-02-25\", \"1D\", 'index')\nprint(df)\n
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ee7a h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh
df = stock_historical_data(\"VN30F1M\", \"2023-07-01\", \"2023-07-24\", \"1D\", 'derivative')\nprint(df)\n
vnstock cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng t\u1ea3i xu\u1ed1ng d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh trong ng\u00e0y giao d\u1ecbch theo th\u1eddi gian th\u1ef1c. N\u1ebfu m\u1ed1c th\u1eddi gian b\u1ea1n truy c\u1ee9u r\u01a1i v\u00e0o Th\u1ee9 B\u1ea3y, Ch\u1ee7 Nh\u1eadt th\u00ec d\u1eef li\u1ec7u nh\u1eadn \u0111\u01b0\u1ee3c th\u1ec3 hi\u1ec7n cho ng\u00e0y giao d\u1ecbch c\u1ee7a Th\u1ee9 6 c\u1ee7a tu\u1ea7n \u0111\u00f3.
df = stock_intraday_data(symbol='TCB', \n page_size=500, investor_segment=True)\nprint(df)\n
Trong \u0111\u00f3:
page_size
: nh\u1eadn gi\u00e1 tr\u1ecb t\u00f9y \u00fd nh\u1ecf h\u01a1n 100 ho\u1eb7c b\u1ed9i s\u1ed1 c\u1ee7a 100. V\u00ed d\u1ee5 ch\u1ecdn 1000 s\u1ebd cho ph\u00e9p l\u1ea5y h\u1ea7u h\u1ebft d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh trong ng\u00e0y giao d\u1ecbch v\u1edbi \u0111a s\u1ed1 m\u00e3 c\u1ed5 phi\u1ebfu.investor_segment
: m\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb True
, cho ph\u00e9p ph\u00e2n lo\u1ea1i nh\u00e0 \u0111\u1ea7u t\u01b0 theo C\u00e1 M\u1eadp, C\u1eebu Non hay S\u00f3i gi\u00e0. \u0110\u1eb7t gi\u00e1 tr\u1ecb False
\u0111\u1ec3 b\u1ecf qua b\u01b0\u1edbc ph\u00e2n lo\u1ea1i n\u00e0y, hi\u1ec3n th\u1ecb t\u1ea5t c\u1ea3 c\u00e1c l\u1ec7nh kh\u1edbp d\u01b0\u1edbi d\u1ea1ng d\u1eef li\u1ec7u th\u00f4. C\u1eadp nh\u1eadt n\u00e0y \u00e1p d\u1ee5ng t\u1eeb phi\u00ean b\u1ea3n 0.2.8.4K\u1ebft qu\u1ea3:
>>> stock_intraday_data (symbol='ACB', page_size=10, investor_segment=False)\n ticker time orderType volume price prevPriceChange\n0 ACB 14:45:00 211500 22550.0 -100.0\n1 ACB 14:29:53 BU 1000 22650.0 0.0\n2 ACB 14:29:38 BU 100 22650.0 0.0\n3 ACB 14:28:34 BU 300 22650.0 50.0\n4 ACB 14:28:15 SD 1200 22600.0 0.0\n5 ACB 14:28:15 SD 300 22600.0 0.0\n6 ACB 14:28:15 SD 400 22600.0 0.0\n7 ACB 14:28:15 SD 300 22600.0 0.0\n8 ACB 14:28:15 SD 100 22600.0 0.0\n9 ACB 14:28:15 SD 200 22600.0 0.0\n
>>> stock_intraday_data (symbol='ACB', page_size=10, investor_segment=True)\n ticker time orderType investorType volume averagePrice orderCount prevPriceChange\n0 ACB 14:29:54 Buy Up SHEEP 1000 22650.0 1 0.0\n1 ACB 14:29:39 Buy Up SHEEP 100 22650.0 1 0.0\n2 ACB 14:28:34 Buy Up SHEEP 300 22650.0 1 50.0\n3 ACB 14:28:16 Sell Down SHEEP 7000 22600.0 29 -50.0\n4 ACB 14:28:11 Buy Up SHEEP 200 22650.0 1 0.0\n5 ACB 14:27:43 Buy Up SHEEP 1000 22650.0 1 50.0\n6 ACB 14:27:28 Sell Down SHEEP 3200 22600.0 2 0.0\n7 ACB 14:26:38 Sell Down SHEEP 300 22600.0 1 -50.0\n8 ACB 14:26:36 Buy Up SHEEP 100 22650.0 1 0.0\n9 ACB 14:26:21 Buy Up SHEEP 3000 22650.0 1 50.0\n
Gi\u1ea3i th\u00edch \u00fd ngh\u0129a ch\u1ec9 s\u1ed1
Khi 1 l\u1ec7nh l\u1edbn (t\u1eeb C\u00e1 m\u1eadp, tay to, t\u1ed5 ch\u1ee9c....) mua ch\u1ee7 \u0111\u1ed9ng (ho\u1eb7c b\u00e1n ch\u1ee7 \u0111\u1ed9ng) \u0111\u01b0\u1ee3c \u0111\u01b0a v\u00e0o S\u00e0n, th\u01b0\u1eddng th\u00ec n\u00f3 s\u1ebd \u0111\u01b0\u1ee3c kh\u1edbp v\u1edbi nhi\u1ec1u l\u1ec7nh nh\u1ecf \u0111ang ch\u1edd b\u00e1n (ho\u1eb7c ch\u1edd mua). N\u1ebfu ch\u1ec9 nh\u00ecn realtime theo t\u1eebng l\u1ec7nh kh\u1edbp ri\u00eang l\u1ebb, th\u00ec s\u1ebd kh\u00f4ng th\u1ec3 ph\u00e1t hi\u1ec7n \u0111\u01b0\u1ee3c c\u00e1c l\u1ec7nh to (c\u1ee7a C\u00e1 m\u1eadp, tay to...) v\u1eeba \u0111\u01b0\u1ee3c \u0111\u1ea9y v\u00e0o S\u00e0n. V\u00ec v\u1eady, ch\u00fang t\u00f4i \"c\u1ed9ng d\u1ed3n\" c\u00e1c l\u1ec7nh kh\u1edbp n\u00e0y l\u1ea1i (ph\u00e1t sinh b\u1edfi 1 l\u1ec7nh l\u1edbn ch\u1ee7 \u0111\u1ed9ng v\u00e0o s\u00e0n trong 1 kho\u1ea3ng th\u1eddi gian r\u1ea5t nhanh) \u0111\u1ec3 gi\u00fap N\u0110T ph\u00e1t hi\u1ec7n c\u00e1c l\u1ec7nh l\u1edbn (c\u1ee7a C\u00e1 m\u1eadp, tay to....) ch\u00ednh x\u00e1c h\u01a1n. L\u1ec7nh C\u00e1 m\u1eadp s\u1ebd \u0111\u01b0\u1ee3c t\u00f4 xanh (cho Mua ch\u1ee7 \u0111\u1ed9ng) v\u00e0 \u0111\u1ecf (cho B\u00e1n ch\u1ee7 \u0111\u1ed9ng).
\u2022 C\u00e1 m\u1eadp: (CM - SHARK) nh\u00e0 \u0111\u1ea7u t\u01b0 tay to, t\u1ed5 ch\u1ee9c, \u0111\u1ea7u t\u01b0 l\u1edbn, d\u1eabn d\u1eaft th\u1ecb tr\u01b0\u1eddng. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t > 1 t\u1ef7 \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t. \u0110\u1ed3 th\u1ecb 1N d\u00f9ng s\u1ed1 li\u1ec7u 1 ph\u00fat cho 60\u2019 g\u1ea7n nh\u1ea5t; 1W l\u00e0 t\u1ed5ng m\u1ed7i 15\u2019 cho 1 tu\u1ea7n; 1M l\u00e0 t\u1ed5ng h\u00e0ng ng\u00e0y cho 1 th\u00e1ng
\u2022 S\u00f3i gi\u00e0: (SG - WOLF) nh\u00e0 \u0111\u1ea7u t\u01b0 kinh nghi\u1ec7m, gi\u00e1 tr\u1ecb l\u1ec7nh \u0111\u1eb7t cao. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t t\u1eeb 200 tr \u0111\u1ebfn 1 t\u1ef7 \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t.
\u2022 C\u1eebu non: (CN - SHEEP) nh\u00e0 \u0111\u1ea7u t\u01b0 nh\u1ecf l\u1ebb, gi\u00e1 tr\u1ecb giao d\u1ecbch v\u00e0 mua b\u00e1n ch\u1ee7 \u0111\u1ed9ng th\u1ea5p. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t Mua ho\u1eb7c B\u00e1n ch\u1ee7 \u0111\u1ed9ng < 200 tri\u1ec7u \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t v\u00e0o.
\u2022 Mua ch\u1ee7 \u0111\u1ed9ng (hay Buy Up) l\u00e0 khi N\u0110T th\u1ef1c hi\u1ec7n ch\u1ee7 \u0111\u1ed9ng mua l\u00ean qua vi\u1ec7c \u0111\u1eb7t l\u1ec7nh mua v\u1edbi gi\u00e1 b\u1eb1ng gi\u00e1 d\u01b0 b\u00e1n g\u1ea7n nh\u1ea5t \u0111\u1ec3 c\u00f3 th\u1ec3 kh\u1edbp lu\u00f4n. Nh\u01b0 th\u1ebf, gi\u00e1 kh\u1edbp cho l\u1ec7nh n\u00e0y th\u01b0\u1eddng s\u1ebd \u0111\u1ea9y gi\u00e1 kh\u1edbp l\u00ean cao h\u01a1n th\u1ecb gi\u00e1 tr\u01b0\u1edbc \u0111\u00f3.
\u2022 B\u00e1n ch\u1ee7 \u0111\u1ed9ng (hay Sell Down) l\u00e0 khi N\u0110T th\u1ef1c hi\u1ec7n ch\u1ee7 \u0111\u1ed9ng B\u00e1n d\u01b0\u1edbi gi\u00e1 hi\u1ec7n t\u1ea1i (hay th\u1ecb gi\u00e1) c\u1ee7a c\u1ed5 phi\u1ebfu b\u1eb1ng vi\u1ec7c \u0111\u1eb7t l\u1ec7nh b\u00e1n v\u1edbi gi\u00e1 b\u00e1n b\u1eb1ng gi\u00e1 d\u01b0 mua g\u1ea7n nh\u1ea5t \u0111\u1ec3 kh\u1edbp ngay. V\u00e0 nh\u01b0 th\u1ebf, th\u1ecb gi\u00e1 s\u1ebd b\u1ecb k\u00e9o xu\u1ed1ng th\u1ea5p h\u01a1n so v\u1edbi th\u1ecb gi\u00e1 tr\u01b0\u1edbc \u0111\u00f3. Th\u1ed1ng k\u00ea kh\u1ed1i l\u01b0\u1ee3ng giao dich theo Mua C\u0110 v\u00e0 B\u00e1n C\u0110 d\u00f9ng \u0111\u1ec3 \u0111\u00e1nh gi\u00e1 t\u01b0\u01a1ng quan gi\u1eefa cung (B\u00e1n C\u0110) v\u00e0 c\u1ea7u (Mua C\u0110) tr\u00ean giao d\u1ecbch kh\u1edbp l\u1ec7nh th\u1ef1c t\u1ebf, nh\u1eb1m nh\u1eadn \u0111\u1ecbnh t\u01b0\u01a1ng \u0111\u1ed1i v\u1ec1 s\u1ef1 v\u1eadn \u0111\u1ed9ng c\u1ee7a xu h\u01b0\u1edbng d\u00f2ng ti\u1ec1n. Khi t\u1ef7 l\u1ec7 % Mua C\u0110 tr\u00ean (T\u1ed5ng Mua v\u00e0 B\u00e1n C\u0110) l\u1edbn h\u01a1n 50%, \u0111\u1ed3ng ngh\u0129a v\u1edbi vi\u1ec7c th\u1ecb tr\u01b0\u1eddng \u0111ang c\u00f3 xu h\u01b0\u1edbng mua v\u00e0o nhi\u1ec1u h\u01a1n b\u00e1n ra v\u00e0 ng\u01b0\u1ee3c l\u1ea1i, qua \u0111\u00f3 x\u00e1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c d\u00f2ng ti\u1ec1n v\u00e0o/ra v\u1edbi m\u1ed7i c\u1ed5 phi\u1ebfu. Khi t\u1ef7 l\u1ec7 n\u00e0y cao \u0111\u1ed9t bi\u1ebfn (>70% hay <30%) so v\u1edbi \u0111i\u1ec3m c\u00e2n b\u1eb1ng (50%) , \u0111\u00f3 l\u00e0 t\u00edn hi\u1ec7u c\u1ee7a vi\u1ec7c mua ho\u1eb7c b\u00e1n b\u1ea5t ch\u1ea5p c\u1ee7a th\u1ecb tr\u01b0\u1eddng.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/","title":"Insiders Program","text":""},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#gioi-thieu","title":"Gi\u1edbi thi\u1ec7u","text":"Gi\u1edbi thi\u1ec7u
Vnstock Insiders Program l\u00e0 ch\u01b0\u01a1ng tr\u00ecnh d\u00e0nh ri\u00eang cho c\u00e1c nh\u00e0 t\u00e0i tr\u1ee3 v\u00e0 ng\u01b0\u1eddi d\u00f9ng th\u00e2n thi\u1ebft c\u1ee7a Vsntock. Ch\u01b0\u01a1ng tr\u00ecnh n\u00e0y cung c\u1ea5p c\u00e1c t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n,\u00a0\u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n m\u00e3 ngu\u1ed3n trong kho ch\u1ee9a ri\u00eang (private repo). C\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef m\u00e3 ngu\u1ed3n ri\u00eang bi\u1ec7t v\u1edbi th\u01b0 vi\u1ec7n ch\u00ednh vnstock
nh\u01b0ng c\u00e1c ch\u1ee9c n\u0103ng \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n theo h\u01b0\u1edbng b\u1ed5 tr\u1ee3 (add-on) v\u00e0 t\u01b0\u01a1ng th\u00edch t\u1ed1t v\u1edbi vnstock.
V\u1edbi t\u01b0 c\u00e1ch th\u00e0nh vi\u00ean c\u1ee7a ch\u01b0\u01a1ng tr\u00ecnh Vnstock Insiders,\u00a0b\u1ea1n s\u1ebd l\u00e0 ng\u01b0\u1eddi \u0111\u1ea7u ti\u00ean tr\u1ea3i nghi\u1ec7m nh\u1eefng t\u00ednh n\u0103ng m\u1edbi \u0111\u1ed9t ph\u00e1, ph\u1ea7n m\u1ec1m ch\u1ea5t l\u01b0\u1ee3ng cao/d\u1eef li\u1ec7u c\u00f3 t\u00ednh ch\u00ednh x\u00e1c cao \u0111\u1ed3ng th\u1eddi tham gia \u0111\u1ecbnh h\u01b0\u1edbng cho t\u01b0\u01a1ng lai c\u1ee7a vnstock.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#cach-thuc-tham-gia","title":"C\u00e1ch th\u1ee9c tham gia","text":"C\u00f3 2 c\u00e1ch \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 tham gia ch\u01b0\u01a1ng tr\u00ecnh nh\u01b0 sau:
T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua t\u00ednh n\u0103ng Github Sponsor: B\u1ea1n ch\u1ecdn g\u00f3i t\u00e0i tr\u1ee3 h\u00e0ng th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n v\u00e0 tier (c\u1ea5p \u0111\u1ed9) t\u01b0\u01a1ng \u1ee9ng v\u1edbi c\u00e1c quy\u1ec1n l\u1ee3i b\u1ea1n mong mu\u1ed1n. V\u1edbi h\u00ecnh th\u1ee9c n\u00e0y, b\u1ea1n ch\u1ec9 c\u1ea7n d\u00f9ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master c\u1ee7a m\u00ecnh \u0111\u1ec3 t\u00e0i tr\u1ee3 th\u00f4ng qua c\u1ed5ng thanh to\u00e1n Stripe do Github cung c\u1ea5p. M\u1ecdi kho\u1ea3n t\u00e0i tr\u1ee3 c\u1ee7a b\u1ea1n v\u00e0 c\u1ed9ng \u0111\u1ed3ng \u0111\u01b0\u1ee3c th\u1ec3 hi\u1ec7n c\u00f4ng khai/minh b\u1ea1ch v\u00e0 b\u1ea3o v\u1ec7 quy\u1ec1n l\u1ee3i b\u1edfi Github. B\u1ea1n \u0111\u01b0\u1ee3c truy c\u1eadp v\u00e0o c\u00e1c repo ri\u00eang t\u01b0 ngay l\u1eadp t\u1ee9c sau khi thanh to\u00e1n m\u00e0 kh\u00f4ng c\u1ea7n tr\u1ea3i qua c\u00e1c b\u01b0\u1edbc duy\u1ec7t th\u1ee7 c\u00f4ng.
H\u01b0\u1edbng d\u1eabn t\u00e0i tr\u1ee3
N\u1ebfu b\u1ea1n kh\u00f4ng c\u00f3 th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf, h\u00e3y\u00a0nh\u1eafn tin cho Th\u1ecbnh\u00a0\u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 th\u1ef1c hi\u1ec7n thi\u1ebft l\u1eadp ph\u00e2n quy\u1ec1n th\u1ee7 c\u00f4ng.
Th\u00f4ng tin m\u00f4 t\u1ea3 quy\u1ec1n l\u1ee3i t\u01b0\u01a1ng \u1ee9ng c\u00e1c g\u00f3i t\u00e0i tr\u1ee3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang th\u00f4ng tin t\u00e0i tr\u1ee3 Github t\u1ea1i \u0111\u00e2y
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#thoa-thuan-chinh-sach","title":"Th\u1ecfa thu\u1eadn & ch\u00ednh s\u00e1ch","text":""},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#tai-tro-hay-mua-giay-phep","title":"T\u00e0i tr\u1ee3 hay mua gi\u1ea5y ph\u00e9p?","text":"Ph\u00e2n bi\u1ec7t T\u00e0i tr\u1ee3 v\u00e0 Mua gi\u1ea5y ph\u00e9p s\u1ea3n ph\u1ea9m
Ch\u00fang t\u00f4i mu\u1ed1n r\u00f5 r\u00e0ng v\u00e0 minh b\u1ea1ch v\u1ec1 s\u1ef1 kh\u00e1c bi\u1ec7t gi\u1eefa Ch\u01b0\u01a1ng tr\u00ecnh T\u00e0i tr\u1ee3 cho D\u1ef1 \u00e1n tr\u00ean Github Sponsor v\u00e0 vi\u1ec7c b\u00e1n Gi\u1ea5y ph\u00e9p s\u1ea3n ph\u1ea9m th\u01b0\u01a1ng m\u1ea1i b\u1ea1n th\u01b0\u1eddng g\u1eb7p. \u0110i\u1ec1u n\u00e0y gi\u00fap minh b\u1ea1ch h\u00f3a ch\u01b0\u01a1ng tr\u00ecnh v\u00e0 tr\u00e1nh nh\u1eefng hi\u1ec3u l\u1ea7m kh\u00f4ng \u0111\u00e1ng c\u00f3 trong qu\u00e1 tr\u00ecnh tri\u1ec3n khai d\u1ef1 \u00e1n. Tuy b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf ra c\u00f9ng s\u1ed1 ti\u1ec1n \u0111\u1ec3 s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m, nh\u1eefng r\u00e0ng bu\u1ed9c v\u00e0 t\u00ednh ch\u1ea5t c\u1ee7a ho\u1ea1t \u0111\u1ed9ng t\u00e0i tr\u1ee3 hay mua/b\u00e1n c\u00f3 nh\u1eefng \u0111i\u1ec3m ho\u00e0n to\u00e0n kh\u00e1c bi\u1ec7t.
T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf tr\u00ean Github Sponsor l\u00e0 m\u1ed9t c\u00e1ch m\u00e0 b\u1ea1n v\u00e0 c\u1ed9ng \u0111\u1ed3ng c\u00f3 th\u1ec3 \u1ee7ng h\u1ed9 t\u00e0i ch\u00ednh \u0111\u1ec3 t\u00e1c gi\u1ea3 c\u00f3 th\u1ec3 ph\u00e1t tri\u1ec3n v\u00e0 duy tr\u00ec d\u1ef1 \u00e1n v\u1edbi m\u1ee5c \u0111\u00edch cung c\u1ea5p gi\u00e1 tr\u1ecb v\u00e0 quy\u1ec1n s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m t\u1edbi c\u1ed9ng \u0111\u1ed3ng nh\u00e0 t\u00e0i tr\u1ee3. V\u1edbi t\u01b0 c\u00e1ch l\u00e0 nh\u00e0 t\u00e0i tr\u1ee3, b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c nh\u1eefng \u01b0u \u0111\u00e3i \u0111\u1eb7c bi\u1ec7t nh\u01b0 truy c\u1eadp private repo (kho ch\u1ee9a m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0) hay tham gia c\u1ed9ng \u0111\u1ed3ng th\u00e0nh vi\u00ean c\u1ee7a vnstock, vv. Trong qu\u00e1 tr\u00ecnh tham gia t\u00e0i tr\u1ee3, d\u1ef1 \u00e1n c\u00f3 th\u1ec3 lu\u00f4n c\u00f3 nh\u1eefng c\u1eadp nh\u1eadt th\u01b0\u1eddng xuy\u00ean cho m\u00e3 ngu\u1ed3n \u0111\u1ec3 b\u1ea1n s\u1eed d\u1ee5ng nh\u01b0 nh\u1eefng ng\u01b0\u1eddi d\u00f9ng tr\u1ea3i nghi\u1ec7m.
Mua/b\u00e1n gi\u1ea5y ph\u00e9p S\u1ea3n ph\u1ea9m th\u01b0\u01a1ng m\u1ea1i l\u00e0 vi\u1ec7c b\u1ea1n b\u1ecf ra m\u1ed9t kho\u1ea3n ph\u00ed tr\u1ea3 cho nh\u00e0 ph\u00e1t h\u00e0nh s\u1ea3n ph\u1ea9m, \u0111\u1ed5i l\u1ea1i b\u1ea1n c\u00f3 quy\u1ec1n s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m (gi\u1ea5y ph\u00e9p) nh\u01b0 m\u1ed9t kh\u00e1ch h\u00e0ng v\u1edbi nh\u1eefng ti\u00eau chu\u1ea9n cao v\u1ec1 y\u00eau c\u1ea7u c\u1ee7a m\u1ed9t d\u1ecbch v\u1ee5 th\u01b0\u01a1ng m\u1ea1i.
L\u01b0u \u00fd
Vnstock ch\u1ec9 cung c\u1ea5p c\u00e1c gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 (th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh python) gi\u00fap b\u1ea1n k\u1ebft n\u1ed1i t\u1edbi ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u c\u00f4ng khai, h\u1ee3p l\u1ec7 m\u00e0 kh\u00f4ng ph\u00e2n ph\u1ed1i hay hay s\u1eed d\u1ee5ng b\u1ea5t k\u1ef3 d\u1eef li\u1ec7u n\u00e0o t\u1eeb b\u00ean th\u1ee9 3 cho m\u1ee5c \u0111\u00edch th\u01b0\u01a1ng m\u1ea1i t\u1edbi ng\u01b0\u1eddi d\u00f9ng.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#giay-phep-su-dung-san-pham","title":"Gi\u1ea5y ph\u00e9p s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m","text":"Gi\u1ea5y ph\u00e9p
Trong m\u1ecdi tr\u01b0\u1eddng h\u1ee3p, t\u00e1c gi\u1ea3 c\u00f3 to\u00e0n quy\u1ec1n s\u1edf h\u1eefu s\u1ea3n ph\u1ea9m \u0111\u01b0\u1ee3c chia s\u1ebb t\u1edbi b\u1ea1n. L\u00e0 m\u1ed9t th\u00e0nh vi\u00ean c\u1ee7a Vnstock Insiders Program, b\u1ea1n \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m cho m\u1ee5c \u0111\u00edch c\u00e1 nh\u00e2n nh\u01b0ng kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p chia s\u1ebb, ph\u00e2n ph\u1ed1i l\u1ea1i s\u1ea3n ph\u1ea9m d\u01b0\u1edbi b\u1ea5t k\u1ef3 h\u00ecnh th\u1ee9c n\u00e0o. H\u01a1n n\u1eefa, m\u1ee9c t\u00e0i tr\u1ee3 r\u1ea5t linh ho\u1ea1t v\u00e0 ch\u1ec9 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng 1 ly cafe, do \u0111\u00f3 n\u1ebfu ai \u0111\u00f3 xin chia s\u1ebb ho\u1eb7c b\u1ea1n mu\u1ed1n gi\u1edbi thi\u1ec7u th\u00ec b\u1ea1n b\u00e8 c\u1ee7a b\u1ea1n ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n th\u00f4ng qua t\u00e0i tr\u1ee3 ch\u00ednh th\u1ee9c. T\u00f4n tr\u1ecdng b\u1ea3n quy\u1ec1n t\u00e1c gi\u1ea3 l\u00e0 m\u1ed9t h\u00e0nh \u0111\u1ed9ng v\u0103n minh v\u00e0 \u0111\u00e1ng kh\u00edch l\u1ec7.
"},{"location":"integrate/OpenBBTerminal/","title":"OpenBB Terminal","text":"Gi\u1edbi thi\u1ec7u
OpenBB Terminal OpenBB Terminal l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 m\u00e3 ngu\u1ed3n m\u1edf m\u1ea1nh m\u1ebd d\u00e0nh cho c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n, cung c\u1ea5p cho b\u1ea1n kh\u1ea3 n\u0103ng ti\u1ebfp c\u1eadn v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u00e0i ch\u00ednh to\u00e0n di\u1ec7n ngay t\u1eeb giao di\u1ec7n d\u00f2ng l\u1ec7nh. Ph\u1ea7n m\u1ec1m n\u00e0y \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef Python cho \u1ee9ng d\u1ee5ng Desktop.
Hi\u1ec7n t\u1ea1i OpenBB Terminal cho ph\u00e9p s\u1eed d\u1ee5ng d\u1eef li\u1ec7u chu\u1ed7i th\u1eddi gian (time series) do b\u1ea1n t\u1ef1 cung c\u1ea5p. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u gi\u00e1 OHLCV ho\u1eb7c ch\u1ec9 s\u1ed1 th\u1ed1ng k\u00ea \u0111\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng Forecast ho\u1eb7c Econometrics c\u1ee7a OpenBB.
B\u1ea1n kh\u00f4ng th\u1ec3 thay \u0111\u1ed5i ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u ngo\u00e0i danh s\u00e1ch ch\u1ec9 \u0111\u1ecbnh s\u1eb5n c\u1ee7a OpenBB, do \u0111\u00f3 ch\u01b0a c\u00f3 c\u00e1ch \u0111\u1ea9y tr\u1ef1c ti\u1ebfp d\u1eef li\u1ec7u t\u1eeb vnstock ngay b\u00ean trong OpenBB.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng Forecast v\u00e0 Econometrics nh\u01b0 \u0111\u00e3 n\u00eau \u1edf tr\u00ean, b\u1ea1n l\u01b0u DataFrame t\u1ea1o ra b\u1edfi vnstock v\u1edbi h\u00e0m export_for_openbb()
\u0111\u1ec3 xu\u1ea5t file d\u01b0\u1edbi d\u1ea1ng csv trong th\u01b0 m\u1ee5c l\u00e0m vi\u1ec7c c\u1ee7a OpenBB. Tham kh\u1ea3o th\u00f4ng tin t\u1eeb OpenBB t\u1ea1i BRING YOUR OWN DATA m\u1ee5c IMPORT TIME SERIES DATA v\u00e0 Import data t\u1ea1i m\u1ee5c CUSTOM DATA
C\u00fa ph\u00e1p h\u00e0m \u0111\u01a1n gi\u1ea3n nh\u01b0 sau:
export_for_openbb (df, file_name='REE_ohlcv_export')\n
Trong \u0111\u00f3:
df
l\u00e0 DataFrame ch\u1ee9a d\u1eef li\u1ec7u b\u1ea1n mu\u1ed1n xu\u1ea5t filefile_name
l\u00e0 t\u00ean file b\u1ea1n mu\u1ed1n \u0111\u1eb7t, c\u00f3 th\u1ec3 theo t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu theo d\u00f5i nh\u01b0 REE_ohlcv_export
extension
(tham s\u1ed1 t\u00f9y ch\u1ecdn) m\u1eb7c \u0111\u1ecbnh l\u00e0 csv, kh\u00f4ng c\u1ea7n thay \u0111\u1ed5i, \u0111\u1ecbnh d\u1ea1ng kh\u00e1c l\u00e0 xlsxSau khi ch\u1ea1y l\u1ec7nh xong, file csv t\u01b0\u01a1ng \u1ee9ng s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u trong th\u01b0 m\u1ee5c c\u1ee7a OpenBB. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ecdc file trong giao di\u1ec7n OpenBB t\u1eeb t\u00ednh n\u0103ng forecast
v\u1edbi c\u00fa ph\u00e1p load -f REE_ohlcv_export.csv --alias REE
trong \u0111\u00f3 REE_ohlcv_export.csv
l\u00e0 file d\u1eef li\u1ec7u demo c\u00f2n --alias REE
gi\u00fap \u0111\u1eb7t t\u00ean r\u00fat g\u1ecdn cho file. Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng!
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng
08/11/2023, Hi\u1ec7n t\u1ea1i vnstock \u0111\u00e3 th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng h\u00e0m xu\u1ea5t d\u1eef li\u1ec7u t\u1eeb vnstock sang Amibroker cho ph\u00e9p l\u01b0u d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb h\u00e0m stock_historical_data
v\u1edbi t\u1ea5t c\u1ea3 \u0111\u1ed9 ph\u00e2n gi\u1ea3i th\u1eddi gian kh\u1ea3 d\u1ee5ng sang Amibroker d\u01b0\u1edbi d\u1ea1ng file CSV. \u0110\u00e2y l\u00e0 m\u1ed9t tin vui cho c\u1ed9ng \u0111\u1ed3ng ng\u01b0\u1eddi d\u00f9ng vnstock. N\u1ebfu b\u1ea1n ch\u01b0a s\u1eb3n s\u00e0ng s\u1eed d\u1ee5ng b\u1ed9 c\u00f4ng c\u1ee5 Python, vnstock d\u00e0nh cho b\u1ea1n m\u1ed9t s\u1ed1 t\u00ednh n\u0103ng h\u1eefu \u00edch trong th\u1eddi gian chuy\u1ec3n \u0111\u1ed5i ph\u01b0\u01a1ng ph\u00e1p l\u00e0m vi\u1ec7c m\u1edbi linh ho\u1ea1t v\u00e0 hi\u1ec7u qu\u1ea3 h\u01a1n. vnstock ch\u00e0o \u0111\u00f3n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea1n v\u1edbi m\u1ecdi tr\u00ecnh \u0111\u1ed9, kinh nghi\u1ec7m kh\u00e1c nhau \u0111\u1ec3 x\u00e2y d\u1ef1ng c\u1ed9ng \u0111\u1ed3ng \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam ng\u00e0y c\u00e0ng ph\u00e1t tri\u1ec3n.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng xu\u1ea5t d\u1eef li\u1ec7u cho Amibroker, b\u1ea1n th\u1ef1c hi\u1ec7n nh\u01b0 sau:
"},{"location":"integrate/amibroker/#xuat-file-csv-cho-amibroker","title":"Xu\u1ea5t file CSV cho Amibroker","text":"amibroker_ohlc_export (path=r'C:\\Users\\mrthi\\Desktop', symbol='TCB', start_date='2023-01-01', end_date='2023-11-08', resolution='1D', type='stock', source='DNSE')\n
Trong \u0111\u00f3:
path
: l\u00e0 \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c b\u1ea1n mu\u1ed1n l\u01b0u file, ti\u1ec7n cho vi\u1ec7c s\u1eed d\u1ee5ng Import Wizard trong Amibroker \u0111\u1ec3 n\u1ea1p d\u1eef li\u1ec7u.>>> amibroker_ohlc_export (path=r'C:\\Users\\mrthi\\Desktop', symbol='TCB', start_date='2023-01-01', end_date='2023-11-08', resolution='1D', type='stock', source='DNSE')\n\nData preview:\n <Ticker> <DTYYYYMMDD> <Open> <High> <Low> <Close> <Volume>\n0 TCB 20230103 25.75 27.45 25.75 27.45 3786800\n1 TCB 20230104 27.45 27.80 27.25 27.30 3185500\n2 TCB 20230105 27.30 27.80 27.15 27.65 2716900\n3 TCB 20230106 27.45 28.40 27.30 27.70 4803900\n4 TCB 20230109 27.80 27.95 27.60 27.75 2387700\n
"},{"location":"integrate/amibroker/#nap-du-lieu-cho-amibroker","title":"N\u1ea1p d\u1eef li\u1ec7u cho Amibroker","text":"S\u1eed d\u1ee5ng Import Wizard
Hi\u1ec7n t\u1ea1i, vnstock ch\u1ec9 h\u1ed7 tr\u1ee3 xu\u1ea5t d\u1eef li\u1ec7u sang d\u1ea1ng CSV \u0111\u01b0\u1ee3c \u0111\u1ecbnh d\u1ea1ng \u0111\u1ec3 s\u1eb3n s\u00e0ng n\u1ea1p v\u00e0o Amibroker. Qu\u00e1 tr\u00ecnh n\u00e0y v\u1eabn c\u1ea7n s\u1eed d\u1ee5ng b\u01b0\u1edbc d\u1eef li\u1ec7u th\u1ee7 c\u00f4ng d\u00f9ng Import Wizard. C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 vi\u1ebft th\u00eam ch\u01b0\u01a1ng tr\u00ecnh \u0111\u1ec3 th\u1ef1c hi\u1ec7n vi\u1ec7c n\u00e0y ho\u00e0n to\u00e0n t\u1ef1 \u0111\u1ed9ng thay cho data plugin n\u1ebfu c\u00f3 th\u1ec3. T\u00ednh n\u0103ng n\u00e0y ph\u00f9 h\u1ee3p v\u1edbi c\u00e1c b\u1ea1n mu\u1ed1n t\u1eadn d\u1ee5ng ngu\u1ed3n d\u1eef li\u1ec7u vnstock s\u1eb5n c\u00f3 \u0111\u1ec3 ti\u1ebft ki\u1ec7m cho vi\u1ec7c nghi\u00ean c\u1ee9u v\u00e0 ph\u00e2n t\u00edch \u0111\u1ea7u t\u01b0 m\u00e0 kh\u00f4ng c\u1ea7n \u0111\u1ebfn d\u1eef li\u1ec7u real-time cho giao d\u1ecbch th\u1ef1c t\u1ebf (nh\u01b0 ph\u00e1i sinh).
"},{"location":"integrate/amibroker/#tao-database","title":"T\u1ea1o database","text":"\u00c1p d\u1ee5ng n\u1ebfu b\u1ea1n ch\u01b0a t\u1ea1o s\u1eb5n c\u01a1 s\u1edf d\u1eef li\u1ec7u.
Kh\u1edfi t\u1ea1o Database. Click \u0111\u1ec3 m\u1edf r\u1ed9ngTh\u1ef1c hi\u1ec7n m\u1edf Menu File
> New
> Database
v\u00e0 thi\u1ebft l\u1eadp c\u00e1c th\u00f4ng s\u1ed1 nh\u01b0 h\u00ecnh (m\u1eb7c \u0111\u1ecbnh) ho\u1eb7c thay \u0111\u1ed5i theo \u0111\u00fang ki\u1ec3u d\u1eef li\u1ec7u b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng (EOD hay theo ph\u00fat c\u1ee5 th\u1ec3).
Next
t\u1edbi m\u00e0n h\u00ecnh ti\u1ebfp theo. T\u1ea1i \u0111\u00e2y tick v\u00e0o 2 \u00f4 l\u00e0 No quotation data
v\u00e0 Allow negative price
sau \u0111\u00f3 Next
cho \u0111\u1ebfn b\u01b0\u1edbc Finish
\u0111\u1ec3 k\u1ebft th\u00fac.Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng n\u1ea1p d\u1eef li\u1ec7u EOD cho Amibroker t\u1eeb vnstock.
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng n\u1ea1p d\u1eef li\u1ec7u 1 ph\u00fat cho Amibroker t\u1eeb vnstock.
"},{"location":"integrate/backtesting/","title":"Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c \u0111\u1ea7u t\u01b0","text":"Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c
H\u00e0m stock_historical_data c\u1ee7a vnstock sau khi tu\u1ef3 bi\u1ebfn l\u1ea1i c\u00e1ch tr\u00ecnh b\u00e0y (s\u1eed d\u1ee5ng tham s\u1ed1 decor=True
), c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00edch h\u1ee3p ngay v\u1edbi c\u00e1c th\u01b0 vi\u1ec7n gi\u00fap ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c giao d\u1ecbch trong m\u00f4i tr\u01b0\u1eddng Python.
vnstock gi\u1edbi thi\u1ec7u t\u1edbi b\u1ea1n m\u1ed9t s\u1ed1 t\u00f9y ch\u1ecdn cho backtesting \u0111\u1ec3 tham kh\u1ea3o. Ch\u00fang t\u00f4i s\u1ebd cung c\u1ea5p th\u00eam th\u00f4ng tin h\u01b0\u1edbng d\u1eabn chi ti\u1ebft trong th\u1eddi gian t\u1edbi.
Th\u01b0 vi\u1ec7n D\u1ec5 s\u1eed d\u1ee5ng T\u00ednh n\u0103ng T\u1ed1c \u0111\u1ed9 Ho\u1ea1t \u0111\u1ed9ng c\u1ed9ng \u0111\u1ed3ng T\u00e0i li\u1ec7u Ho\u1ea1t \u0111\u1ed9ng d\u1ef1 \u00e1n C\u1eadp nh\u1eadt g\u1ea7n nh\u1ea5t X\u1ebfp h\u1ea1ng Backtesting.py High High Medium High High Medium 1 n\u0103m 5 VectorBT Medium High High High High High 2 th\u00e1ng 5 Backtrader High High Low High High Low 7 th\u00e1ng 4 Zipline Medium Medium Low Medium Medium None 3 n\u0103m 3 bt Low Medium Low Medium Medium Low 6 th\u00e1ng 2 PyBacktest Low Low Medium Low Poor None 4 n\u0103m 1L\u01b0u \u00fd: \u0110i\u1ec3m x\u1ebfp h\u1ea1ng c\u00e0ng cao c\u00e0ng t\u1ed1t. Ngu\u1ed3n tham kh\u1ea3o: QMR AI
"},{"location":"integrate/dnse_api/","title":"T\u00edch h\u1ee3p API giao d\u1ecbch DNSE v\u00e0o vnstock","text":"DNSE API
DNSE l\u00e0 m\u1ed9t trong 3 c\u00f4ng ty ch\u1ee9ng kho\u00e1n c\u00f3 cung c\u1ea5p API giao d\u1ecbch cho kh\u00e1ch h\u00e0ng ph\u1ed5 th\u00f4ng b\u00ean c\u1ea1nh SSI v\u00e0 BSC (\u0111ang ki\u1ec3m duy\u1ec7t k\u1ef9, kh\u00f4ng duy\u1ec7t th\u00eam kh\u00e1ch h\u00e0ng m\u1edbi). API giao d\u1ecbch c\u1ee7a DNSE cho ph\u00e9p th\u1ef1c hi\u1ec7n \u0111\u1ecdc th\u00f4ng tin li\u00ean quan \u0111\u1ebfn t\u00e0i kho\u1ea3n v\u00e0 \u0111\u1eb7t l\u1ec7nh \u0111\u1ed1i v\u1edbi c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf l\u1eabn ph\u00e1i sinh. T\u00e0i li\u1ec7u API m\u1edbi \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt c\u00f4ng khai tr\u00ean website v\u00e0o \u0111\u1ea7u th\u00e1ng 11/2023. B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o th\u00f4ng tin chi ti\u1ebft API t\u1ea1i \u0111\u00e2y
vnstock cung c\u1ea5p ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i v\u1edbi API DNSE ho\u00e0n ch\u1ec9nh \u0111\u1ec3 \u0111\u1ecdc th\u00f4ng tin, \u0111\u1eb7t/ch\u1ec9nh s\u1eeda/h\u1ee7y l\u1ec7nh giao d\u1ecbch.
\u0110\u1ec3 b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng, c\u00e1c b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t g\u00f3i th\u01b0 vi\u1ec7n vnstock m\u1edbi nh\u1ea5t v0.2.8.1 c\u00f3 h\u1ed7 tr\u1ee3 \u0111\u1ea7y \u0111\u1ee7 c\u00e1c ch\u1ee9c n\u0103ng cho DNSE Lightspeed API. T\u1eeb c\u00e1c h\u00e0m python n\u00e0y, c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng bot giao d\u1ecbch/web app d\u1ec5 d\u00e0ng t\u1eeb m\u00f4i tr\u01b0\u1eddng cloud ho\u1eb7c m\u00e1y t\u00ednh c\u00e1 nh\u00e2n. Xem th\u00eam m\u00e3 ngu\u1ed3n \u0111\u1ec3 l\u1ea5y c\u1ea3m h\u1ee9ng.
Xem h\u01b0\u1edbng d\u1eabn
N\u1ebfu th\u1ea5y h\u01b0\u1edbng d\u1eabn n\u00e0y c\u00f3 \u00edch, b\u1ea1n lu\u00f4n c\u00f3 th\u1ec3 donate \u0111\u1ec3 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n thay l\u1eddi c\u00e1m \u01a1n.
"},{"location":"integrate/dnse_api/#ang-nhap-va-xac-thuc","title":"\u0110\u0103ng nh\u1eadp v\u00e0 x\u00e1c th\u1ef1c","text":""},{"location":"integrate/dnse_api/#khoi-tao-dnse-client","title":"Kh\u1edfi t\u1ea1o DNSE Client","text":"\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c ch\u1ee9c n\u0103ng c\u1ee7a DNSE API, tr\u01b0\u1edbc h\u1ebft b\u1ea1n c\u1ea7n kh\u1edfi t\u1ea1o m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng DNSE Client, theo \u0111\u00f3 c\u00e1c h\u00e0m ch\u1ee9c n\u0103ng s\u1ebd l\u00e0 c\u00e1c ph\u01b0\u01a1ng th\u1ee9c c\u1ee7a \u0111\u1ed1i t\u01b0\u1ee3ng Client n\u00e0y. Ch\u00fang ta g\u00e1n Client n\u00e0y v\u1edbi bi\u1ebfn client
cho ng\u1eafn g\u1ecdn \u0111\u1ec3 g\u1ecdi trong c\u00e1c b\u01b0\u1edbc ti\u1ebfp theo.
from vnstock.integration import *\nclient = DNSEClient()\n
"},{"location":"integrate/dnse_api/#ang-nhap-he-thong","title":"\u0110\u0103ng nh\u1eadp h\u1ec7 th\u1ed1ng","text":"JWT token
T\u1ea1i b\u01b0\u1edbc n\u00e0y, b\u1ea1n s\u1eed d\u1ee5ng t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u c\u1ee7a t\u00e0i kho\u1ea3n giao d\u1ecbch DNSE \u0111\u1ec3 t\u1ea1o ra JWT token - l\u00e0 m\u00e3 x\u00e1c th\u1ef1c \u0111\u01b0\u1ee3c t\u1ea1o ra khi b\u1ea1n \u0111\u0103ng nh\u1eadp v\u00e0o h\u1ec7 th\u1ed1ng API c\u1ee7a DNSE. JWT token cho ph\u00e9p b\u1ea1n \u0111\u1ecdc c\u00e1c th\u00f4ng tin v\u1ec1 t\u00e0i kho\u1ea3n (X\u00e1c th\u1ef1c c\u1ea5p 1), \u0111\u1ec3 th\u1ef1c hi\u1ec7n \u0111\u1eb7t l\u1ec7nh, s\u1eeda th\u00f4ng tin h\u1ec7 th\u1ed1ng th\u00ec c\u1ea7n d\u00f9ng k\u1ebft h\u1ee3p v\u1edbi m\u00e3 OTP \u0111\u01b0\u1ee3c c\u1ea5p qua email ho\u1eb7c SmartOTP tr\u00ean app EntradeX (x\u00e1c th\u1ef1c c\u1ea5p 2).
B\u1ea1n s\u1eed d\u1ee5ng \u0111o\u1ea1n m\u00e3 sau \u0111\u1ec3 \u0111\u0103ng nh\u1eadp h\u1ec7 th\u1ed1ng API.
user_name = \"T\u00caN_\u0110\u0102NG_NH\u1eacP_T\u00c0I_KHO\u1ea2N_DNSE\"\npassword = \"M\u1eacT_KH\u1ea8U_T\u00c0I_KHO\u1ea2N_DNSE\"\nclient.login(user_name, password)\n
Sau b\u01b0\u1edbc n\u00e0y, m\u00e3 JWT token \u0111\u01b0\u1ee3c t\u1ea1o ra \u0111\u1ec3 s\u1eed d\u1ee5ng trong c\u00e1c b\u01b0\u1edbc ti\u1ebfp theo.
"},{"location":"integrate/dnse_api/#xac-thuc-giao-dich","title":"X\u00e1c th\u1ef1c giao d\u1ecbch","text":"X\u00e1c th\u1ef1c c\u1ea5p 2 v\u1edbi OTP
\u0110\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c thao t\u00e1c li\u00ean quan \u0111\u1ebfn giao d\u1ecbch ho\u1eb7c thay \u0111\u1ed5i th\u00f4ng tin tr\u00ean t\u00e0i kho\u1ea3n DNSE, b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u00e3 OTP \u0111\u1ec3 th\u1ef1c hi\u1ec7n x\u00e1c th\u1ef1c c\u1ea5p 2. M\u00e3 OTP c\u00f3 th\u1ec3 l\u00e0 m\u00e3 SmartOTP l\u1ea5y t\u1eeb app EntradeX tr\u00ean smartphone ho\u1eb7c m\u00e3 \u0111\u01b0\u1ee3c g\u1eedi qua email. Sau khi th\u1ef1c hi\u1ec7n b\u01b0\u1edbc x\u00e1c th\u1ef1c OTP v\u1edbi h\u1ec7 th\u1ed1ng, m\u1ed9t m\u00e3 trading token
\u0111\u01b0\u1ee3c t\u1ea1o ra v\u00e0 c\u00f3 hi\u1ec7u l\u1ef1c trong 8 ti\u1ebfng cho ph\u00e9p b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc giao d\u1ecbch trong su\u1ed1t ng\u00e0y l\u00e0m vi\u1ec7c.
Khi n\u00e0o s\u1eed d\u1ee5ng SmartOTP, emailOTP?
B\u1ecf qua b\u01b0\u1edbc n\u00e0y n\u1ebfu b\u1ea1n ch\u1ecdn s\u1eed d\u1ee5ng SmartOTP thay v\u00ec email OTP. D\u00f2ng l\u1ec7nh sau gi\u00fap b\u1ea1n y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng g\u1eedi OTP qua email, m\u00e3 OTP n\u00e0y d\u00f9ng \u0111\u1ec3 t\u1ea1o trading token
cho ph\u00e9p th\u1ef1c hi\u1ec7n giao d\u1ecbch.
client.email_otp()\n
Sau khi nh\u1eadn m\u00e3 OTP qua email, b\u1ea1n s\u1eed d\u1ee5ng cho b\u01b0\u1edbc ti\u1ebfp theo. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 t\u1ef1 \u0111\u1ed9ng h\u00f3a qu\u00e1 tr\u00ecnh tr\u00edch xu\u1ea5t OTP n\u00e0y v\u00e0 n\u1ea1p cho b\u01b0\u1edbc ti\u1ebfp theo b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng Gmail API. Tham kh\u1ea3o th\u00eam th\u00f4ng tin t\u1ea1i \u0111\u00e2y
"},{"location":"integrate/dnse_api/#tao-ma-trading-token-e-giao-dich","title":"T\u1ea1o m\u00e3 trading token \u0111\u1ec3 giao d\u1ecbch","text":"T\u1ea1i b\u01b0\u1edbc n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 nh\u1eadp m\u00e3 OTP \u0111\u1ec3 t\u1ea1o trading token
b\u1eb1ng m\u00e3 SmartOTP ho\u1eb7c email OTP.
trading_token = client.get_trading_token(otp = 'M\u00c3_OTP_C\u1ee6A_B\u1ea0N', smart_otp=True)\n
Trong \u0111\u00f3:
otp
l\u00e0 m\u00e3 x\u00e1c th\u1ef1c c\u1ea5p 2 l\u1ea5y t\u1eeb app EntradeX d\u01b0\u1edbi d\u1ea1ng SmartOTP ho\u1eb7c m\u00e3 \u0111\u01b0\u1ee3c g\u1eedi qua email. M\u00e3 n\u00e0y ph\u1ea3i \u0111\u01b0\u1ee3c nh\u1eadp d\u01b0\u1edbi d\u1ea1ng string '12345'
.smart_otp
: nh\u1eadn gi\u00e1 tr\u1ecb True
n\u1ebfu b\u1ea1n l\u1ea5y m\u00e3 t\u1eeb app, False
n\u1ebfu l\u1ea5y m\u00e3 t\u1eeb emailTra c\u1ee9u th\u00f4ng tin v\u1edbi t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u t\u00e0i kho\u1ea3n
\u0110\u1ec3 s\u1eed d\u1ee5ng c\u00e1c h\u00e0m tra c\u1ee9u th\u00f4ng tin, b\u1ea1n ch\u1ec9 c\u1ea7n th\u1ef1c hi\u1ec7n x\u00e1c th\u1ef1c c\u1ea5p 1 v\u1edbi t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u t\u00e0i kho\u1ea3n.
"},{"location":"integrate/dnse_api/#thong-tin-tai-khoan","title":"Th\u00f4ng tin t\u00e0i kho\u1ea3n","text":"\u0110\u1ec3 truy c\u1eadp th\u00f4ng tin t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n t\u1ea1i DNSE, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
client.account()\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng:
>>> client.account()\nid 0123456789\ninvestorId 0123456789\nname V\u0169 Th\u1ecbnh\ncustodyCode 064C12345\nemail support@vnstock.site\nunverifiedEmail support@vnstock.site\nmobile 0123456789\nstatus ACTIVE\ncreatedDate 2023-01-01T00:00:00.007Z\nmodifiedDate 2023-01-01T00:00:00.007Z\nenId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx\nidentificationCode 0123456789010101\nidentificationDate 2021-01-01T00:00:00Z\nidentificationExpiredDate 2100-01-01T00:00:00Z\nidentificationPlace C\u1ee5c CS QLHC v\u1ec1 TTXH\nbirthday XXXX-XX-XXT00:00:00Z\naddress vnstock ch\u00e0o \u0111\u00f3n c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 \ud83d\ude01\ngender MALE\nflexCustomerId 000000000\nsmartOtpRegistrationId xxxxx\nuserApproveType AUTO_APPROVED\nreferralCode xxxxxx\nreferralUrl https://s.dnse.vn/xxxxxx\navatarUrl https://lh3.googleusercontent.com/xyzxyz\nneedToChangePassword True\nregisteredSmartOtp False\nisEmailVerified False\n
"},{"location":"integrate/dnse_api/#thong-tin-tieu-khoan","title":"Th\u00f4ng tin ti\u1ec3u kho\u1ea3n","text":"Ti\u1ec3u kho\u1ea3n
M\u1ed7i m\u1ed9t t\u00e0i kho\u1ea3n m\u1edf t\u1ea1i DNSE \u0111\u01b0\u1ee3c c\u1ea5u tr\u00fac th\u00e0nh c\u00e1c ti\u1ec3u kho\u1ea3n (t\u00e0i kho\u1ea3n con) cho ph\u00e9p s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch ch\u1ee9ng kho\u00e1n c\u01a1 s\u1edf ho\u1eb7c ph\u00e1i sinh.
\u0110\u1ec3 tra c\u1ee9u th\u00f4ng tin c\u00e1c ti\u1ec3u kho\u1ea3n trong t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n, s\u1eed d\u1ee5ng h\u00e0m sau:
client.sub_accounts()\n
"},{"location":"integrate/dnse_api/#thong-tin-so-du-tai-khoan","title":"Th\u00f4ng tin s\u1ed1 d\u01b0 t\u00e0i kho\u1ea3n","text":"Cho ph\u00e9p tra c\u1ee9u th\u00f4ng tin ti\u1ec1n s\u1ed1 d\u01b0 ti\u1ec1n theo m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n.
client.account_balance (sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N')\n
"},{"location":"integrate/dnse_api/#danh-sach-goi-vay","title":"Danh s\u00e1ch g\u00f3i vay","text":"G\u00f3i vay
G\u00f3i vay l\u00e0 kh\u00e1i ni\u1ec7m c\u1ee7a DNSE \u0111\u1ecbnh ngh\u0129a \u0111\u1ec3 h\u1ed7 tr\u1ee3 ph\u00e2n bi\u1ec7t c\u00e1c t\u1ef7 l\u1ec7 k\u00fd qu\u1ef9 khi \u0111\u1eb7t l\u1ec7nh (margin, kh\u00f4ng margin). M\u00e3 g\u00f3i vay \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng khi \u0111\u1eb7t l\u1ec7nh (n\u1ebfu c\u00f3).
client.loan_packages(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n tr\u00ean t\u00e0i kho\u1ea3n DNSE c\u1ee7a b\u1ea1n.asset_type
: nh\u1eadp stock
cho giao d\u1ecbch c\u01a1 s\u1edf, derivative
cho giao d\u1ecbch ph\u00e1i sinh.L\u1ea5y th\u00f4ng tin s\u1ee9c mua s\u1ee9c b\u00e1n t\u1ed1i \u0111a theo ti\u1ec3u kho\u1ea3n, m\u00e3, gi\u00e1 v\u00e0 g\u00f3i vay
client.trade_capacities(symbol='VIC', price=41600, sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock', loan_package_id=None)\n
Trong \u0111\u00f3:
symbol
: l\u00e0 t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu ho\u1eb7c m\u00e3 h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh, v\u00ed d\u1ee5 VN30F2311
price
: gi\u00e1, \u0111\u01a1n v\u1ecb l\u00e0 \u0111\u1ed3ng.sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.loan_package_id
: m\u00e3 g\u00f3i vay, l\u1ea5y t\u1eeb danh s\u00e1ch g\u00f3i vay \u00e1p d\u1ee5ng v\u1edbi t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n.sub_account = \"M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N\"\nsymbol = \"VIC\"\nside = \"buy\"\nquantity = 100\nprice = 41600\norder_type = 'LO'\nloan_package_id = None # Thay th\u1ebf v\u1edbi m\u00e3 g\u00f3i vay th\u1ef1c t\u1ebf c\u1ee7a b\u1ea1n\nasset_type = 'stock'\n\nclient.place_order(account, symbol, side, quantity, price, order_type, loan_package_id, asset_type)\n
ho\u1eb7c s\u1eed d\u1ee5ng d\u1ea1ng r\u00fat g\u1ecdn
client.place_order('M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', 'VIC', 'buy', 500, 41600, 'LO', None, 'stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
symbol
: l\u00e0 t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu ho\u1eb7c m\u00e3 h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh, v\u00ed d\u1ee5 VN30F2311
side
: lo\u1ea1i l\u1ec7nh mua buy
hay b\u00e1n sell
quantity
: s\u1ed1 l\u01b0\u1ee3ng h\u1ee3p \u0111\u1ed3ng, c\u1ed5 phi\u1ebfu giao d\u1ecbchprice
: gi\u00e1, \u0111\u01a1n v\u1ecb l\u00e0 \u0111\u1ed3ng.order_type
: Lo\u1ea1i l\u1ec7nh, s\u1eed d\u1ee5ng 1 trong c\u00e1c gi\u00e1 tr\u1ecb LO
, MP
, MTL
, ATO
, ATC
, MOK
, MAK
loan_package_id
: m\u00e3 g\u00f3i vay, l\u1ea5y t\u1eeb danh s\u00e1ch g\u00f3i vay \u00e1p d\u1ee5ng v\u1edbi t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n.asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Cho ph\u00e9p li\u1ec7t k\u00ea c\u00e1c l\u1ec7nh \u0111\u00e3 \u0111\u1eb7t trong s\u1ed5 l\u1ec7nh. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
\u0110\u1ec3 li\u1ec7t k\u00ea danh s\u00e1ch l\u1ec7nh trong s\u1ed5 l\u1ec7nh, b\u1ea1n s\u1eed d\u1ee5ng d\u00f2ng l\u1ec7nh sau \u0111\u1ed1i v\u1edbi giao d\u1ecbch c\u01a1 s\u1edf
client.order_list(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
ho\u1eb7c s\u1eed d\u1ee5ng l\u1ec7nh sau cho ph\u00e1i sinh
client.order_list(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='derivative')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n t\u01b0\u01a1ng \u1ee9ng cho giao d\u1ecbch c\u01a1 s\u1edf/ph\u00e1i sinh c\u1ea7n tra c\u1ee9uasset_type
: nh\u1eadn gi\u00e1 tr\u1ecb l\u00e0 stock
cho giao d\u1ecbch c\u01a1 s\u1edf, v\u00e0 derivative
cho giao d\u1ecbch ph\u00e1i sinh.Tra c\u1ee9u th\u00f4ng tin chi ti\u1ebft c\u1ee7a m\u1ed9t l\u1ec7nh b\u1ea5t k\u1ef3 thu\u1ed9c m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.order_detail(order_id='M\u00c3_L\u1ec6NH_C\u1ee6A_B\u1ea0N', sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
order_id
: m\u00e3 l\u1ec7nh \u0111\u1eb7t, th\u00f4ng tin l\u1ea5y t\u1eeb S\u1ed5 l\u1ec7nh
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Cho ph\u00e9p h\u1ee7y l\u1ec7nh b\u1ea5t k\u1ef3 theo id t\u1eeb m\u1ed9t ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.cancel_order (order_id='M\u00c3_L\u1ec6NH_C\u1ee6A_B\u1ea0N', sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
order_id
: m\u00e3 l\u1ec7nh \u0111\u1eb7t, th\u00f4ng tin l\u1ea5y t\u1eeb S\u1ed5 l\u1ec7nh
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Tr\u1ea3 v\u1ec1 danh s\u00e1ch c\u00e1c deal b\u1ea1n \u0111ang n\u1eafm gi\u1eef. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.deals_list (sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Neptyne for Google Sheets
Neptyne l\u00e0 m\u1ed9t ti\u1ec7n \u00edch m\u1edf r\u1ed9ng cho ph\u00e9p s\u1eed d\u1ee5ng python ngay trong Google Sheets, c\u00e1c l\u1ec7nh Python \u0111\u01b0\u1ee3c ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i vnstock th\u00f4ng qua Neptyne v\u00e0 s\u1eed d\u1ee5ng \u0111\u1ec3 tr\u00edch xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng cho c\u00e1c d\u1ef1 \u00e1n ph\u00e2n t\u00edch m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i s\u1eed d\u1ee5ng m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh Python ph\u1ee9c t\u1ea1p.
\u0110\u1ec3 s\u1eed d\u1ee5ng vnstock qua Neptyne, b\u1ea1n l\u00e0m nh\u01b0 sau:
Extensions
> Neptyne for Google Sheets
> Install Python Packages
t\u1eeb file Google Sheets b\u1ea5t k\u1ef3. N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef ti\u1ebfng Vi\u1ec7t, b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm menu Ti\u1ec7n \u00edch m\u1edf r\u1ed9ng
v\u00e0 t\u00ecm c\u00e1c m\u1ee5c t\u01b0\u01a1ng \u1ee9ngvnstock
v\u00e0o c\u1eeda s\u1ed5 hi\u1ec7n ra v\u00e0 ch\u1ecdn Apply
\u0111\u1ec3 \u00e1p d\u1ee5ng c\u00e0i \u0111\u1eb7t. Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t s\u1ebd di\u1ec5n ra trong ch\u1ed1c l\u00e1t. Sau khi nh\u1eadn th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng c\u1eeda s\u1ed5 hi\u1ec7n ra n\u00e0y b\u1eb1ng n\u00fat Close
.Extensions
> Neptyne for Google Sheets
> Show Code Editor
. T\u1eeb \u0111\u00e2y, nh\u1eadp d\u00f2ng l\u1ec7nh from vnstock import *
\u0111\u1ec3 Import t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m vnstock
v\u00e0o Neptyne.Th\u1ef1c thi l\u1ec7nh Python trong Google Sheets b\u1eb1ng c\u00e1ch nh\u1eadp h\u00e0m =Py()
v\u00e0o \u00f4 t\u00ednh b\u1ea5t k\u1ef3. Nh\u1eadp t\u00ean h\u00e0m v\u00e0 c\u00e1c tham s\u1ed1 t\u01b0\u01a1ng \u1ee9ng theo th\u1ee9 t\u1ef1. V\u00ed d\u1ee5 \u0111\u1ec3 g\u1ecdi h\u00e0m l\u1ea5y gi\u00e1 stock_historical_data
ta s\u1ebd c\u1ea5u tr\u00fac nh\u01b0 sau:
stock_historical_data(symbol='GMD', \n start_date=\"2023-10-01\", \n end_date='2023-10-20', resolution='1D', type='stock', beautify=True)\n
=Py(\"stock_historical_data\", \"GMD\",\"2023-10-01\", \"2023-10-20\",\"1D\",\"stock\", \"True\")\n
L\u01b0u \u00fd
Khi s\u1eed d\u1ee5ng c\u00e1c h\u00e0m Python trong Neptyne, thay v\u00ec nh\u1eadp nh\u01b0 c\u00fa ph\u00e1p Python th\u00f4ng th\u01b0\u1eddng, b\u1ea1n nh\u1eadp t\u00ean h\u00e0m v\u00e0 c\u00e1c tham s\u1ed1 l\u1ea7n l\u01b0\u1ee3t, ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u ph\u1ea9y ,
\u0111\u1ed3ng th\u1eddi c\u00e1c gi\u00e1 tr\u1ecb nh\u1eadp v\u00e0o \u0111\u01b0\u1ee3c \u0111\u1eb7t trong ngo\u1eb7c k\u00e9p \"\"
vnstock
v\u00e0 ch\u1ecdn Apply
B\u01b0\u1edbc 4. Import h\u00e0mB\u01b0\u1edbc 5. Ch\u1ea1y h\u00e0m vnstock \u0111\u1ec3 l\u1ea5y d\u1eef li\u1ec7u Th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng hi\u1ec7n ra trong gi\u00e2y l\u00e1t.
N\u1ea1p c\u00e1c h\u00e0m vnstock v\u00e0o Neptyne. T\u00edch xanh hi\u1ec7n ra th\u1ec3 hi\u1ec7n qu\u00e1 tr\u00ecnh th\u1ef1c thi l\u1ec7nh th\u00e0nh c\u00f4ng.
"},{"location":"integrate/google_sheets/#chuyen-oi-ham-python-sang-google-apps-script","title":"Chuy\u1ec3n \u0111\u1ed5i h\u00e0m Python sang Google Apps Script","text":"vnstock cung c\u1ea5p m\u1ed9t h\u00e0m t\u00f9y bi\u1ebfn l\u00e0m m\u1eabu gi\u00fap b\u1ea1n h\u00ecnh dung v\u00e0 b\u1eaft \u0111\u1ea7u chuy\u1ec3n \u0111\u1ed5i c\u00e1c h\u00e0m python \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi vnstock sang ng\u00f4n ng\u1eef Google Apps Script \u0111\u1ec3 s\u1eed d\u1ee5ng v\u1edbi Google Sheets. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p v\u00e0o m\u00e3 ngu\u1ed3n d\u1ef1 \u00e1n gi\u00fap vnstock ho\u00e0n thi\u1ec7n \u0111\u1ea7y \u0111\u1ee7 c\u00e1c t\u00ednh n\u0103ng cho Google Sheets v\u00e0 lan t\u1ecfa t\u1edbi c\u1ed9ng \u0111\u1ed3ng.
\u0110\u1ec3 s\u1eed d\u1ee5ng th\u1eed \u0111o\u1ea1n code tr\u00ean cho vi\u1ec7c l\u1ea5y d\u1eef li\u1ec7u, b\u1ea1n l\u00e0m nh\u01b0 sau:
= derivativesOhlc(\"VN30F1M\", \"2023-06-01\", \"2023-09-26\", \"15\")
G\u1ee3i \u00fd
\u0110\u1ec3 chuy\u1ec3n \u0111\u1ed5i c\u00e1c h\u00e0m python hi\u1ec7n t\u1ea1i do vnstock cung c\u1ea5p, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00f4ng c\u1ee5 ChatGPT \u0111\u1ec3 th\u1ef1c hi\u1ec7n. B\u1ea1n s\u1ebd c\u1ea7n c\u00f3 ch\u00fat ki\u1ebfn th\u1ee9c v\u1ec1 JavaScript \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00f9y bi\u1ebfn c\u00e1c h\u00e0m n\u00e0y nhanh ch\u00f3ng. N\u1ebfu kh\u00f4ng s\u1ebd c\u1ea7n k\u1ef9 n\u0103ng prompt engineering t\u1ed1t \u0111\u1ec3 c\u00f3 th\u1ec3 y\u00eau c\u1ea7u AI h\u1ed7 tr\u1ee3. Xa h\u01a1n, khi c\u00f3 ngu\u1ed3n l\u1ef1c, t\u00f4i s\u1ebd cung c\u1ea5p Add-in cho Google Sheets \u0111\u1ec3 c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ec5 d\u00e0ng h\u01a1n. B\u1ea1n c\u00f3 th\u1ec3 xem video h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 hi\u1ec3u c\u00e1ch d\u00f9ng ChatGPT h\u1ed7 tr\u1ee3 chuy\u1ec3n \u0111\u1ed5i h\u00e0m Python sang JavaScript.
"},{"location":"integrate/huggingface/","title":"vnstock x Huggingface","text":"Hugginface
We\u2019re on a journey to advance and democratize NLP for everyone. Along the way, we contribute to the development of technology for the better -- Huggingface
Huggingface l\u00e0 m\u1ed9t d\u1ecbch v\u1ee5 h\u00e0ng \u0111\u1ea7u \u0111\u1ec3 l\u01b0u tr\u1eef, chia s\u1ebb c\u00e1c m\u00f4 h\u00ecnh AI v\u00e0 Machine Learning (h\u1ecdc m\u00e1y) m\u1ed9t c\u00e1ch nhanh ch\u00f3ng d\u1ec5 d\u00e0ng, \u0111\u1ed3ng th\u1eddi \u0111\u00e2y c\u0169ng l\u00e0 m\u1ed9t c\u1ed9ng \u0111\u1ed3ng v\u1ec1 AI m\u1ea1nh tr\u00ean th\u1ebf gi\u1edbi. B\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00ecm th\u1ea5y c\u00e1c m\u00f4 h\u00ecnh AI/ML \u0111\u1ec3 s\u1eed d\u1ee5ng mi\u1ec5n ph\u00ed t\u1ea1i \u0111\u00e2y v\u1edbi v\u00e0i d\u00f2ng code. N\u1ebfu b\u1ea1n mu\u1ed1n t\u1ea1o web app v\u1edbi Python, \u0111\u00e2y c\u0169ng l\u00e0 d\u1ecbch v\u1ee5 tuy\u1ec7t v\u1eddi. Huggingface Spaces cho ph\u00e9p b\u1ea1n ch\u1ea1y c\u00e1c \u1ee9ng d\u1ee5ng vi\u1ebft b\u1eb1ng python cho Streamlit ho\u1eb7c Gradio framework hay Docker kh\u00e1 \u0111\u01a1n gi\u1ea3n. T\u00ecm hi\u1ec3u th\u00eam \u0111\u1ec3 bi\u1ebft chi ti\u1ebft.
vnstock cung c\u1ea5p c\u00e1c h\u00e0m s\u1eed d\u1ee5ng API \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. \u0110i\u1ec1u n\u00e0y c\u00f3 ngh\u0129a l\u00e0 b\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng web app v\u1edbi r\u1ea5t nhi\u1ec1u d\u1ecbch v\u1ee5 m\u00e0 kh\u00f4ng c\u1ea7n lo \u0111\u1ebfn kh\u00e2u thi\u1ebft l\u1eadp c\u01a1 s\u1edf d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o v\u00e0 Huggingface l\u00e0 m\u1ed9t trong s\u1ed1 \u0111\u00f3. M\u1ecdi th\u1ee9 m\u1edf, d\u1ec5 s\u1eed d\u1ee5ng v\u00e0 mi\u1ec5n ph\u00ed.
D\u1eef li\u1ec7u gi\u00e1 c\u1ee7a vnstock c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho c\u00e1c m\u00f4 h\u00ecnh Machine Learning \u0111\u1ec3 ki\u1ec3m th\u1eed tr\u00ean n\u1ec1n t\u1ea3ng Huggingface Spaces, ho\u1eb7c b\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp m\u1ed9t trung t\u00e2m ph\u00e2n t\u00edch t\u1eeb d\u1eef li\u1ec7u to\u00e0n di\u1ec7n m\u00e0 vnstock cung c\u1ea5p v\u1edbi Streamlit, Gradio. L\u1ef1a ch\u1ecdn l\u00e0 \u1edf b\u1ea1n.
Gi\u1edbi thi\u1ec7u
pytesseract l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n Python gi\u00fap ng\u01b0\u1eddi d\u00f9ng s\u1eed d\u1ee5ng c\u00f4ng c\u1ee5 Tesseract OCR c\u1ee7a Google m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. Tesseract l\u00e0 c\u00f4ng c\u1ee5 OCR m\u00e3 ngu\u1ed3n m\u1edf, m\u1ea1nh m\u1ebd v\u00e0 h\u1ed7 tr\u1ee3 nhi\u1ec1u ng\u00f4n ng\u1eef bao g\u1ed3m ti\u1ebfng Vi\u1ec7t. Vnstock gi\u1edbi thi\u1ec7u \u0111\u1ebfn b\u1ea1n c\u00e1ch th\u1ee9c nh\u1eadn d\u1ea1ng v\u0103n b\u1ea3n t\u1eeb h\u00ecnh \u1ea3nh v\u1edbi pytesseract t\u1eeb \u0111\u01a1n gi\u1ea3n \u0111\u1ebfn lu\u1ed3ng t\u1ef1 \u0111\u1ed9ng chuy\u1ec3n \u0111\u1ed5i to\u00e0n b\u1ed9 t\u00e0i li\u1ec7u m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng t\u1eeb Google Colab.
PyTesseract c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 tr\u00edch xu\u1ea5t v\u0103n b\u1ea3n t\u1eeb t\u1ea5t c\u1ea3 c\u00e1c \u0111\u1ecbnh d\u1ea1ng h\u00ecnh \u1ea3nh \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 b\u1edfi g\u00f3i th\u01b0 vi\u1ec7n Pillow v\u00e0 Leptonica, bao g\u1ed3m JPEG
, PNG
, GIF
, BMP
, TIFF
, v.v.
PyTesseract c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong nhi\u1ec1u \u1ee9ng d\u1ee5ng kh\u00e1c nhau, c\u1ee5 th\u1ec3 v\u1edbi l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh/ch\u1ee9ng kho\u00e1n th\u00ec b\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n \u0111\u1ed5i t\u00e0i li\u1ec7u scan sang v\u0103n b\u1ea3n k\u1ef9 thu\u1eadt s\u1ed1 \u0111\u1ed1i v\u1edbi c\u00e1c t\u00e0i li\u1ec7u ph\u1ed5 bi\u1ebfn nh\u01b0:
C\u00e1c t\u00e0i li\u1ec7u scan n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00ecm th\u1ea5y tr\u00ean Vietstock ho\u1eb7c CafeF.
\ud83d\udc47 B\u1ea1n c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u v\u1edbi Demo Notebook d\u01b0\u1edbi \u0111\u00e2y, \u0111\u1ecdc th\u00eam chi ti\u1ebft \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ec5 d\u00e0ng.
M\u1edf Demo Notebook
T\u00ednh n\u0103ng n\u00e0y hi\u1ec7n t\u1ea1i \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean m\u00e3 ngu\u1ed3n, nh\u00e1nh beta
tr\u00ean Github. Xem h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t t\u1ea1i \u0111\u00e2y
C\u00e0i \u0111\u1eb7t \u00e1p d\u1ee5ng cho m\u00f4i tr\u01b0\u1eddng Linux
C\u00e0i \u0111\u1eb7t m\u00f4i tr\u01b0\u1eddng \u0111\u1ec3 ch\u1ea1y Pytesseract t\u1eeb Google Colab tr\u00ean n\u1ec1n h\u1ec7 \u0111i\u1ec1u h\u00e0nh Ubuntu di\u1ec5n ra kh\u00e1 \u0111\u01a1n gi\u1ea3n.
B\u1ea1n copy c\u00e1c d\u00f2ng l\u1ec7nh sau v\u00e0 paste v\u00e0o m\u1ed9t \u00f4 l\u1ec7nh m\u1edbi \u0111\u1ec3 th\u1ef1c thi:
!sudo apt install tesseract-ocr\n!pip install pytesseract\n!sudo apt-get install tesseract-ocr-vie # C\u00e0i \u0111\u1eb7t g\u00f3i ng\u00f4n ng\u1eef ti\u1ebfng Vi\u1ec7t\n
Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t di\u1ec5n ra trong kho\u1ea3ng 30 gi\u00e2y.
"},{"location":"integrate/pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban/#windows","title":"Windows","text":"C\u00e0i \u0111\u1eb7t \u00e1p d\u1ee5ng cho m\u00f4i tr\u01b0\u1eddng Linux
\u0110\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c Pytesseract t\u1eeb m\u00e1y t\u00ednh Windows, qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t s\u1ebd ph\u1ee9c t\u1ea1p h\u01a1n \u0111\u00f4i ch\u00fat.
.exe
l\u00e0 b\u1eaft \u0111\u1ea7u qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t, m\u1ecdi t\u00f9y ch\u1ecdn \u0111\u1ec3 m\u1eb7c \u0111\u1ecbnh, b\u1ea5m Next l\u00e0 \u0111\u01b0\u1ee3c. B\u1ea1n ch\u00fa \u00fd ghi nh\u1edb \u0111\u1ecba ch\u1ec9 c\u00e0i \u0111\u1eb7t Tesseract-OCR tr\u00ean m\u00e1y t\u00ednh trong qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t. vie.traineddata
m\u1edbi v\u1eeba t\u1ea3i v\u1ec1 v\u00e0o th\u01b0 m\u1ee5c Tesseract-OCR. T\u1eeb th\u01b0 m\u1ee5c ch\u1ee9a file b\u1ea1n l\u01b0u, v\u00ed d\u1ee5 Downloads, nh\u1eadp cmd
v\u00e0o \u00f4 \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c \u0111\u1ec3 m\u1edf giao di\u1ec7n d\u00f2ng l\u1ec7nh v\u00e0 ch\u1ea1y l\u1ec7nh di chuy\u1ec3n file d\u01b0\u1edbi \u0111\u00e2y. Trong \u0111\u00f3, b\u1ea1n thay th\u1ebf {USER_NAME_CUA_BAN}
th\u00e0nh t\u00ean username tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n. V\u00ed d\u1ee5 tr\u00ean m\u00e1y t\u00ednh c\u1ee7a m\u00ecnh th\u00ec user name l\u00e0 mrthi
nh\u01b0 trong c\u00e1c h\u00ecnh minh h\u1ecda b\u00ean d\u01b0\u1edbi. move vie.traineddata C:\\Users\\{USER_NAME_CUA_BAN}\\AppData\\Local\\Programs\\Tesseract-OCR\\tessdata \n
M\u1edf Command Prompt t\u1eeb File Explorer
Di chuy\u1ec3n file trong Command Prompt
B\u1ea1n ch\u1ec9 c\u1ea7n n\u1ea1p h\u00e0m \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi vnstock \u0111\u1ec3 th\u1ef1c hi\u1ec7n nh\u1eadn di\u1ec7n \u1ea3nh th\u00e0nh v\u0103n b\u1ea3n nh\u01b0 sau. Trong \u0111\u00f3 image_path
l\u00e0 \u0111\u1ecba ch\u1ec9 file \u1ea3nh c\u1ea7n nh\u1eadn d\u1ea1ng.
from vnstock.ocr import *\nimage_ocr(image_path=r'/content/chrome_runiB0dpB3.png', lang='vie', output_path='', file_name='string_from_image.txt')\n
C\u00e1c tham s\u1ed1 kh\u00e1c nh\u01b0 sau:
output_path
: \u0111\u1ecba ch\u1ec9 l\u01b0u file v\u0103n b\u1ea3n \u0111\u00e3 nh\u1eadn d\u1ea1ng t\u1eeb h\u00ecnh \u1ea3nhfile_name
: \u0111\u1eb7t t\u00ean file v\u0103n b\u1ea3n s\u1ebd l\u01b0u. M\u1eb7c \u0111\u1ecbnh l\u00e0: string_from_image.txt
Sau khi c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp m\u00f4i tr\u01b0\u1eddng \u0111\u00e3 chu\u1ea9n b\u1ecb xong. B\u1ea1n c\u00f3 th\u1ec3 upload h\u00ecnh \u1ea3nh l\u00ean
Nh\u01b0 v\u1eady, ch\u00fang ta c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u tr\u00edch xu\u1ea5t v\u0103n b\u1ea3n t\u1eeb h\u00ecnh \u1ea3nh v\u1eeba upload v\u1edbi c\u00e2u l\u1ec7nh sau:
extracted_text = pytesseract.image_to_string(Image.open('/content/chrome_runiB0dpB3.png'), lang='vie')\nextracted_text\n
\u0110\u1ec3 l\u01b0u v\u0103n b\u1ea3n \u0111\u00e3 tr\u00edch xu\u1ea5t th\u00e0nh file text, b\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng c\u00e2u l\u1ec7nh d\u01b0\u1edbi \u0111\u00e2y:
with open('extracted_text.txt', 'w') as f: # M\u1eb7c \u0111\u1ecbnh l\u01b0u file v\u00e0o th\u01b0 m\u1ee5c \u0111ang l\u00e0m vi\u1ec7c c\u1ee7a Colab, b\u1ecb x\u00f3a khi k\u1ebft th\u00fac phi\u00ean. Ch\u1ecdn \u0111\u1ecba ch\u1ec9 l\u01b0u trong Drive \u0111\u1ec3 thay th\u1ebf.\n\u00a0 \u00a0 f.write(extracted_text)\n
"},{"location":"integrate/pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban/#trich-xuat-toan-bo-van-ban-tu-bao-cao-tai-chinh","title":"\ud83d\udd10 Tr\u00edch xu\u1ea5t to\u00e0n b\u1ed9 v\u0103n b\u1ea3n t\u1eeb b\u00e1o c\u00e1o t\u00e0i ch\u00ednh","text":"Ch\u01b0\u01a1ng tr\u00ecnh vi\u1ebft s\u1eb5n
B\u1ea1n c\u1ea7n tham gia g\u00f3i vnstock-data-pro th\u00f4ng qua Vnstock Insiders Program \u0111\u1ec3 c\u00f3 th\u1ec3 tr\u00edch xu\u1ea5t to\u00e0n b\u1ed9 m\u1ed9t t\u00e0i li\u1ec7u b\u1ea5t k\u1ef3 ho\u1eb7c b\u00e1o c\u00e1o t\u00e0i ch\u00ednh c\u1ee7a c\u00f4ng ty b\u1ea1n quan t\u00e2m s\u1eed d\u1ee5ng ch\u01b0\u01a1ng tr\u00ecnh vi\u1ebft s\u1eb5n t\u1eeb vnstock gi\u00fap t\u1ef1 \u0111\u1ed9ng h\u00f3a ho\u00e0n to\u00e0n qu\u00e1 tr\u00ecnh t\u1eeb kh\u00e2u truy c\u1eadp t\u00e0i li\u1ec7u t\u1eeb API. Sau khi t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n, b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c quy\u1ec1n truy c\u1eadp private repo tr\u00ean Github \u0111\u1ec3 s\u1eed d\u1ee5ng k\u00e8m h\u01b0\u1edbng d\u1eabn chi ti\u1ebft.
"},{"location":"integrate/ssi_fast_connect_api/","title":"SSI Fast Connect API","text":"Fast Connect API
SSI cung c\u1ea5p b\u1ed9 APIs cho ph\u00e9p thi\u1ebft l\u1eadp giao d\u1ecbch t\u1ef1 \u0111\u1ed9ng (FastConnect Trading) v\u00e0 truy xu\u1ea5t d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n c\u01a1 b\u1ea3n (FastConnect Data) cho ng\u00f4n ng\u1eef Python. C\u00f4ng c\u1ee5 n\u00e0y ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed, b\u1ea1n c\u00f3 th\u1ec3 xin c\u1ea5p quy\u1ec1n s\u1eed d\u1ee5ng b\u1eb1ng c\u00e1ch mang CCCD ra ph\u00f2ng giao d\u1ecbch c\u1ee7a SSI g\u1ea7n nh\u1ea5t \u0111\u1ec3 \u0111\u0103ng k\u00fd v\u00e0 k\u00edch ho\u1ea1t.
vnstock cung c\u1ea5p t\u1edbi c\u00e1c b\u1ea1n c\u00e1c h\u00e0m \u0111\u01b0\u1ee3c t\u00f9y bi\u1ebfn s\u1eb5n gi\u00fap d\u1ec5 d\u00e0ng s\u1eed d\u1ee5ng m\u00e0 kh\u00f4ng c\u1ea7n b\u1ecf nhi\u1ec1u th\u1eddi gian nghi\u00ean c\u1ee9u v\u00e0 t\u00f9y bi\u1ebfn t\u1eeb demo s\u01a1 khai do SSI cung c\u1ea5p. B\u1ea1n c\u00f3 th\u1ec3 s\u1edf h\u1eefu g\u00f3i ph\u1ea7n m\u1ec1m t\u00edch h\u1ee3p n\u00e0y th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh Github Sponsor. Theo \u0111\u00f3, b\u1ea1n s\u1ebd tr\u1edf th\u00e0nh nh\u00e0 t\u00e0i tr\u1ee3 c\u1ee7a vnstock \u0111\u1ec3 c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 s\u1eed d\u1ee5ng c\u00e1c t\u00ednh n\u0103ng n\u00e0y \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh d\u01b0\u1edbi d\u1ea1ng g\u00f3i ph\u1ea7n m\u1ec1m n\u00e2ng cao cho vnstock. Truy c\u1eadp trang t\u00e0i tr\u1ee3 v\u00e0 ch\u1ecdn g\u00f3i ph\u00f9 h\u1ee3p v\u00e0 thanh to\u00e1n b\u1eb1ng th\u1ebb Visa/Master \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ngay h\u00f4m nay.
K\u1ebft n\u1ed1i SSI v\u1edbi vnstock
Chia s\u1ebb th\u00eam:
\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng th\u00e0nh th\u1ea1o ssi_fc_data
v\u00e0 ssi_fc_trading
, b\u1ea1n c\u1ea7n c\u00f3 kinh nghi\u1ec7m s\u1eed d\u1ee5ng Python v\u00e0 d\u00e0nh kh\u00e1 nhi\u1ec1u th\u1eddi gian nghi\u00ean c\u1ee9u b\u1edfi nh\u1eefng \u0111o\u1ea1n code m\u1eabu \u0111\u01b0\u1ee3c cung c\u1ea5p \u1edf m\u1ee9c t\u1ed1i thi\u1ec3u \u0111\u1ec3 b\u1ea1n h\u00ecnh dung \u0111\u01b0\u1ee3c API cung c\u1ea5p d\u1eef li\u1ec7u g\u00ec. D\u1eef li\u1ec7u n\u00e0y m\u1eb7c \u0111\u1ecbnh \u0111\u01b0\u1ee3c in ra m\u00e0n h\u00ecnh Terminal/Command Prompt nh\u01b0ng kh\u00f4ng ph\u1ea3i ki\u1ec3u d\u1eef li\u1ec7u object \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ngay. B\u1ea1n c\u00f3 th\u1ec3 xem th\u00eam chi ti\u1ebft t\u1ea1i ticket t\u00f4i nh\u1edd team Dev c\u1ee7a SSI gi\u1ea3i \u0111\u00e1p. Hi\u1ec7n t\u1ea1i c\u00e1c issue hay trao \u0111\u1ed5i qua Github th\u01b0\u1eddng kh\u00f4ng \u0111\u01b0\u1ee3c ph\u1ea3n h\u1ed3i nhanh ch\u00f3ng. \u0110i\u1ec3m t\u00edch c\u1ef1c l\u00e0 t\u00e0i li\u1ec7u h\u01b0\u1edbng d\u1eabn \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt chu\u1ea9n h\u01a1n sau sau khi t\u00f4i g\u1eedi ph\u1ea3n h\u1ed3i.
Thi\u1ebft l\u1eadp x\u00e1c th\u1ef1c d\u1ecbch v\u1ee5
\u0110\u1ec3 \u0111\u0103ng k\u00fd s\u1eed d\u1ee5ng API \u0111ang \u0111\u01b0\u1ee3c cung c\u1ea5p mi\u1ec5n ph\u00ed, b\u1ea1n \u0111em theo CCCD ra ph\u00f2ng giao d\u1ecbch SSI g\u1eb7p l\u1ec5 t\u00e2n ho\u1eb7c m\u00f4i gi\u1edbi \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 k\u00edch ho\u1ea1t d\u1ecbch v\u1ee5. Sau m\u1ed7i 3 th\u00e1ng th\u00ec d\u1ecbch v\u1ee5 s\u1ebd c\u1ea7n gia h\u1ea1n l\u1ea1i b\u1eb1ng c\u00e1ch g\u1ecdi hotline ho\u1eb7c g\u1eedi email y\u00eau c\u1ea7u.
C\u00e1c b\u01b0\u1edbc th\u1ef1c hi\u1ec7n thi\u1ebft l\u1eadp x\u00e1c th\u1ef1c ng\u01b0\u1eddi d\u00f9ng \u0111\u1ec3 k\u1ebft n\u1ed1i API nh\u01b0 sau:
D\u1ecbch v\u1ee5 & Ti\u1ec7n \u00edch
> D\u1ecbch v\u1ee5 API
nh\u01b0 h\u00ecnh minh h\u1ecda b\u00ean d\u01b0\u1edbi. Ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng ch\u00eca kh\u00f3a \u0111\u1ec3 l\u1ea5y m\u00e3 x\u00e1c th\u1ef1c. B\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u cung c\u1ea5p OTP \u0111\u01b0\u1ee3c g\u1eedi qua tin nh\u1eafn (ho\u1eb7c h\u00ecnh th\u1ee9c b\u1ea1n \u0111\u0103ng k\u00fd t\u01b0\u01a1ng \u1ee9ng). ConsumerID
v\u00e0 ConsumerSecret
v\u00e0 l\u01b0u v\u00e0o file \u0111\u1ec3 ti\u1ebfp t\u1ee5c c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp ti\u1ebfp theo. H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng module SSI Fast Connect API trong vnstock
Trong h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y, b\u1ea1n s\u1ebd l\u00e0m quen v\u1edbi c\u00e1ch s\u1eed d\u1ee5ng module ssi
trong vnstock-pro-data
cho ph\u00e9p b\u1ea1n k\u1ebft n\u1ed1i t\u1edbi API d\u1eef li\u1ec7u c\u1ee7a SSI th\u00f4ng qua c\u00e1c h\u00e0m \u0111\u00e3 t\u00f9y bi\u1ebfn m\u00e0 vnstock cung c\u1ea5p.
B\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u1ed9t \u1ee9ng d\u1ee5ng so\u1ea1n th\u1ea3o l\u1ec7nh nh\u01b0 Visual Studio Code ho\u1eb7c \u0111\u01a1n gi\u1ea3n l\u00e0 notepad v\u00e0 t\u1ea1o ra m\u1ed9t file v\u0103n b\u1ea3n c\u00f3 t\u00ean config.py
v\u1edbi n\u1ed9i dung nh\u01b0 sau:
auth_type = 'Bearer'\nconsumerID = 'ID_C\u1ee6A_B\u1ea0N'\nconsumerSecret = 'SECRET_C\u1ee6A_B\u1ea0N'\naccess_jwt = 'TOKEN_C\u1ee6A_B\u1ea0N'\nurl = 'https://fc-data.ssi.com.vn/' \nstream_url = 'https://fc-data.ssi.com.vn/'\n
Trong \u0111\u00f3 ID v\u00e0 Secret l\u00e0 2 th\u00f4ng tin t\u01b0\u01a1ng \u1ee9ng l\u1ea5y t\u1eeb iBoard nh\u01b0 h\u01b0\u1edbng d\u1eabn \u1edf tr\u00ean. Th\u00f4ng tin access_jwt
token c\u1ea7n ph\u1ea3i ch\u1ea1y l\u1ec7nh trong ch\u01b0\u01a1ng tr\u00ecnh Python \u0111\u1ec3 l\u1ea5y. B\u1ea1n m\u1edf Terminal/Command Prompt t\u1eeb th\u01b0 m\u1ee5c ch\u1ee9a file config.py b\u1eb1ng c\u00e1ch g\u00f5 cmd
v\u00e0o thanh \u0111\u1ecba ch\u1ec9 Windows Explorer. M\u1edf Python trong giao di\u1ec7n d\u00f2ng l\u1ec7nh, ch\u1ea1y c\u00e1c l\u1ec7nh sau:
import config\nfrom ssi_fc_data import fc_md_client , model\nclient = fc_md_client.MarketDataClient(config)\nprint(client.access_token(model.accessToken(config.consumerID, config.consumerSecret)))\n
Copy \u0111o\u1ea1n token \u0111\u01b0\u1ee3c in ra m\u00e0n h\u00ecnh v\u00e0 l\u01b0u v\u00e0o file config.py t\u1ea1i m\u1ee5c access_jwt
.
T\u1edbi \u0111\u00e2y, b\u1ea1n c\u00f3 th\u1ec3 l\u01b0u file config.py
v\u00e0o m\u1ed9t n\u01a1i b\u1ea5t k\u1ef3 \u0111\u1ec3 b\u1ea3o m\u1eadt, sau \u0111\u00f3 ch\u00e9p \u0111\u01b0\u1eddng d\u1eabn file n\u00e0y \u0111\u1ec3 thi\u1ebft l\u1eadp \u1edf b\u01b0\u1edbc ti\u1ebfp theo trong ch\u01b0\u01a1ng tr\u00ecnh Python (file .py
ho\u1eb7c Jupyter Notebook). \u0110\u01b0\u1eddng d\u1eabn file \u0111\u01b0\u1ee3c thay th\u1ebf \u0111o\u1ea1n TH\u01af_M\u1ee4C_CH\u1ee8A_FILE_CONFIG_C\u1ee6A_B\u1ea0N
.
from vnstock_data.ssi import *\nimport sys\nsys.path.append(r'TH\u01af_M\u1ee4C_CH\u1ee8A_FILE_CONFIG_C\u1ee6A_B\u1ea0N') # Thay \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a file config.py c\u1ee7a b\u1ea1n t\u1ea1i \u0111\u00e2y. M\u1eabu file config c\u00f3 trong th\u01b0 m\u1ee5c docs c\u1ee7a repo\nimport config\n\nclient = fc_md_client.MarketDataClient(config)\n
"},{"location":"integrate/ssi_fast_connect_api/#tai-du-lieu","title":"T\u1ea3i d\u1eef li\u1ec7u","text":""},{"location":"integrate/ssi_fast_connect_api/#danh-sach-ma-chung-khoan-theo-san","title":"Danh s\u00e1ch m\u00e3 ch\u1ee9ng kho\u00e1n theo s\u00e0n","text":"S\u1eed d\u1ee5ng h\u00e0m securities_list
nh\u01b0 sau:
securities_list(market='HOSE', size=1000, page=1, client=client, config=config)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.market
: t\u00ean s\u00e0n giao d\u1ecbch, nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb: HOSE
, HNX
, UPCOM
cho giao d\u1ecbch c\u01a1 s\u1edf ho\u1eb7c DER
cho giao d\u1ecbch Ph\u00e1i sinhsize
: S\u1ed1 k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 cho m\u1ed9t trangpage
: S\u1ed1 th\u1ee9 t\u1ef1 trang. N\u1ebfu b\u1ea1n mu\u1ed1n l\u1ea5y h\u1ebft t\u1ea5t c\u1ea3 m\u00e3 trong m\u1ed9t l\u1ea7n tra c\u1ee9u th\u00ec \u0111\u1eb7t tham s\u1ed1 size
\u0111\u1ee7 l\u1edbn, n\u1ebfu ch\u1ec9 mu\u1ed1n l\u1ea5y m\u1ed9t ph\u1ea7n k\u1ebft qu\u1ea3 th\u00ec ch\u1ec9 \u0111\u1ecbnh r\u00f5 size
v\u00e0 page
.Minh h\u1ecda v\u00e0 k\u1ebft qu\u1ea3 nh\u01b0 sau:
>>> securities_list(market='HOSE', page=1, size=1000, client=client, config=config)\n\nTotal records: 414\n Market Symbol StockName StockEnName\n0 HOSE AAA C\u00f4ng ty C\u1ed5 ph\u1ea7n Nh\u1ef1a An Ph\u00e1t Xanh An Phat Bioplastics Joint Stock Company\n1 HOSE AAM C\u00f4ng ty C\u1ed5 Ph\u1ea7n Th\u1ee7y S\u1ea3n MeKong Mekong Fisheries Joint Stock Company\n2 HOSE AAT C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Ti\u00ean S\u01a1n Thanh H\u00f3a Tien Son Thanh Hoa Group Joint Stock Company\n3 HOSE ABR C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 Nh\u00e3n Hi\u1ec7u Vi\u1ec7t Viet Brand Invest Joint Stock Company\n4 HOSE ABS C\u00f4ng ty C\u1ed5 ph\u1ea7n D\u1ecbch v\u1ee5 N\u00f4ng nghi\u1ec7p B\u00ecnh Thu\u1eadn BinhThuan Agriculture Services Joint Stock Com...\n.. ... ... ... ...\n409 HOSE VSI C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 v\u00e0 X\u00e2y d\u1ef1ng C\u1ea5p tho\u00e1t n\u01b0\u1edbc Water Supply Sewerage Construction and Investm...\n410 HOSE VTB C\u00f4ng ty C\u1ed5 ph\u1ea7n Viettronics T\u00e2n B\u00ecnh Viettronics Tan Binh Joint Stock Company\n411 HOSE VTO C\u00f4ng ty C\u1ed5 ph\u1ea7n V\u1eadn t\u1ea3i X\u0103ng d\u1ea7u VITACO Vietnam Tanker Joint Stock Company\n412 HOSE YBM C\u00f4ng ty C\u1ed5 ph\u1ea7n Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i Yen Bai Industry Mineral Joint Stock Company\n413 HOSE YEG C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Yeah1 Yeah1 Group Corporation\n\n[414 rows x 4 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#thong-tin-ma-chung-khoan-cu-the","title":"Th\u00f4ng tin m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ee5 th\u1ec3","text":"\u0110\u1ec3 tr\u00edch xu\u1ea5t th\u00f4ng tin m\u1ed9t m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea5t k\u1ef3 t\u1eeb h\u1ec7 th\u1ed1ng, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m get_securities_details
nh\u01b0 sau:
get_securities_details(client=client, config=config, symbol='ACB', market='HOSE', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9umarket
>>> get_securities_details(client=client, config=config, symbol='ACB', market='HOSE', page=1, pageSize=100).T\n 0\nSymbol ACB\nSymbolName Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n \u00c1 Ch\u00e2u\nSymbolEngName Asia Commercial Joint Stock Bank\nSecType S\nMarketId HOSE\nExchange HOSE\nLotSize 100\nIssueDate\nMaturityDate\nFirstTradingDate\nLastTradingDate\nContractMultiplier 0\nSettlMethod C\nExercisePrice 0\nExerciseStyle\nExcerciseRatio 0\nListedShare 3884050358\nTickPrice1 1\nTickIncrement1 10\nTickPrice2 10000\nTickIncrement2 50\nTickPrice3 50000\nTickIncrement3 100\nReportDate 15/12/2023\n
"},{"location":"integrate/ssi_fast_connect_api/#lay-danh-sach-cac-ma-chi-so","title":"L\u1ea5y danh s\u00e1ch c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1","text":"get_index_list(client, config, exchange='', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.exchange
: s\u00e0n giao d\u1ecbch (kh\u00f4ng b\u1eaft bu\u1ed9c \u0111i\u1ec1n). Tr\u1ea3 to\u00e0n b\u1ed9 d\u1eef li\u1ec7u c\u00e1c s\u00e0n n\u1ebfu \u0111\u1ec3 tr\u1ed1ng.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_index_list(client, config, exchange='', page=1, pageSize=100)\n\n IndexCode IndexName Exchange\n0 HNX30 HNX30 HNX\n1 HNXIndex HNXIndex HNX\n2 HNXUpcomIndex HNXUpcomIndex HNX\n3 VN100 VN100 HOSE\n4 VN30 VN30 HOSE\n5 VNALL VNAllshare HOSE\n6 VNCOND VNAllShare\u00a0H\u00e0ng\u00a0Ti\u00eau\u00a0d\u00f9ng HOSE\n7 VNCONS VNAllShare\u00a0H\u00e0ng\u00a0thi\u00eau\u00a0d\u00f9ng\u00a0thi\u1ebft\u00a0y\u1ebfu HOSE\n8 VNDIAMOND Vietnam Diamond Index HOSE\n9 VNENE VNAllShare\u00a0N\u0103ng\u00a0l\u01b0\u1ee3ng HOSE\n10 VNFIN VNAllShare\u00a0T\u00e0i\u00a0ch\u00ednh HOSE\n11 VNFINLEAD Vietnam Diamond Index HOSE\n12 VNFINSELECT Vietnam Diamond Index HOSE\n13 VNHEAL VNAllShare\u00a0Ch\u0103m\u00a0s\u00f3c\u00a0s\u1ee9c\u00a0kh\u1ecfe HOSE\n14 VNIND VNAllShare\u00a0C\u00f4ng\u00a0nghi\u1ec7p HOSE\n15 VNIT VNAllShare\u00a0C\u00f4ng\u00a0ngh\u1ec7\u00a0th\u00f4ng\u00a0tin HOSE\n16 VNIndex VNINDEX HOSE\n17 VNMAT VNAllShare\u00a0Nguy\u00ean\u00a0v\u1eadt\u00a0li\u1ec7u HOSE\n18 VNMID VNMidcap\u00a0 HOSE\n19 VNREAL VNAllShare\u00a0B\u1ea5t\u00a0\u0111\u1ed9ng\u00a0s\u1ea3n HOSE\n20 VNSI VNStability\u00a0Index HOSE\n21 VNSML VNSmallcap HOSE\n22 VNUTI VNAllShare\u00a0D\u1ecbch\u00a0v\u1ee5\u00a0ti\u1ec7n\u00a0\u00edch HOSE\n23 VNX50 VNX50 HOSE\n24 VNXALL VNXAllshare HOSE\n
"},{"location":"integrate/ssi_fast_connect_api/#liet-ke-cac-ma-chung-khoan-thuoc-mot-ma-chi-so","title":"Li\u1ec7t k\u00ea c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n thu\u1ed9c m\u1ed9t m\u00e3 ch\u1ec9 s\u1ed1","text":"get_index_component(client, config, index='VN30', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.index
: M\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. L\u1ea5y trong danh s\u00e1ch tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m get_index_list
.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_index_component(client, config, index='VN30', page=1, pageSize=100)\nIndex: VN30 - HOSE. Total 30 symbols\n StockSymbol\n0 ACB\n1 BCM\n2 BID\n3 BVH\n4 CTG\n5 FPT\n...\n25 VIC\n26 VJC\n27 VNM\n28 VPB\n29 VRE\n
"},{"location":"integrate/ssi_fast_connect_api/#truy-xuat-du-lieu-gia-lich-su-ohlcv","title":"Truy xu\u1ea5t d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed OHLCV","text":"Tips
V\u1edbi h\u00e0m get_daily_ohlc
d\u01b0\u1edbi \u0111\u00e2y tr\u1ea3 v\u1ec1 k\u1ebft qu\u1ea3 r\u1ea5t ch\u1eadm so v\u1edbi khi b\u1ea1n truy xu\u1ea5t d\u1eef li\u1ec7u gi\u00e1 t\u1eeb \u0111\u1ed3 th\u1ecb n\u1ebfn tr\u00ean web. Tr\u1ea3i nghi\u1ec7m c\u1ee7a t\u00f4i khi xu\u1ea5t to\u00e0n b\u1ed9 d\u1eef li\u1ec7u c\u1ee7a m\u00e3 c\u1ed5 phi\u1ebfu REE t\u1eeb n\u0103m 2000 m\u1ea5t h\u01a1n 30s trong khi d\u1eef li\u1ec7u t\u01b0\u01a1ng \u0111\u01b0\u01a1ng \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 b\u1eb1ng Public API c\u1ee7a SSI c\u00f3 \u0111\u01b0\u1ee3c trong 2s.
get_daily_ohlc(client, config, symbol='REE', fromDate='01/01/2000', toDate='15/12/2023', ascending=True, page=1, pageSize=6000)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
ascending
: True ho\u1eb7c False \u0111\u1ec3 ch\u1ecdn s\u1eafp x\u1ebfp k\u1ebft qu\u1ea3 theo chi\u1ec1u thu\u1eadn/ngh\u1ecbch.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_daily_ohlc(client, config, symbol='REE', fromDate='01/01/2000', toDate='15/12/2023', ascending=True, page=1, pageSize=6000)\n\n Symbol Market TradingDate Open High Low Close Volume Value\n0 REE HOSE 28/07/2000 1044 1044 1044 1044 1000 0\n1 REE HOSE 31/07/2000 1063 1063 1063 1063 300 0\n2 REE HOSE 02/08/2000 1083 1083 1083 1083 100 0\n3 REE HOSE 04/08/2000 1102 1102 1102 1102 200 0\n4 REE HOSE 07/08/2000 1122 1122 1122 1122 2800 0\n... ... ... ... ... ... ... ... ... ...\n5675 REE HOSE 11/12/2023 59200 59800 58700 58700 237000 13996810000\n5676 REE HOSE 12/12/2023 58700 59100 58300 59000 287000 16830020000\n5677 REE HOSE 13/12/2023 59200 59200 57500 57700 587800 34240060000.0002\n5678 REE HOSE 14/12/2023 58100 58400 57100 57100 278100 16003970000\n5679 REE HOSE 15/12/2023 57200 58000 56500 56700 513300 29183299999.9998\n\n[5680 rows x 9 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#du-lieu-tick-ohlcv-cua-ma-chung-khoan-trong-ngay-giao-dich-intraday","title":"D\u1eef li\u1ec7u tick OHLCV c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n trong ng\u00e0y giao d\u1ecbch (Intraday)","text":"get_intraday_ohlc(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, ascending=True)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_intraday_ohlc(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, ascending=True, resolution=1)\n\n Symbol Value TradingDate Time Open High Low Close Volume\n0 SSI 28650 25/07/2023 09:15:52 28700 28800 28650 28650 153400\n1 SSI 28600 25/07/2023 09:16:57 28650 28650 28600 28600 15500\n2 SSI 28600 25/07/2023 09:17:59 28650 28650 28600 28600 50600\n3 SSI 28550 25/07/2023 09:18:56 28600 28600 28550 28550 27900\n4 SSI 28600 25/07/2023 09:19:58 28600 28600 28550 28600 35500\n.. ... ... ... ... ... ... ... ... ...\n995 SSI 29550 31/07/2023 10:44:55 29550 29550 29500 29550 132400\n996 SSI 29500 31/07/2023 10:45:53 29500 29550 29500 29500 369300\n997 SSI 29400 31/07/2023 10:46:49 29500 29500 29400 29400 124900\n998 SSI 29400 31/07/2023 10:47:49 29400 29450 29400 29400 69900\n999 SSI 29400 31/07/2023 10:48:57 29400 29450 29400 29400 20600\n\n[1000 rows x 9 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#thong-tin-giao-dich-theo-ngay-cua-ma-chung-khoan","title":"Th\u00f4ng tin giao d\u1ecbch theo ng\u00e0y c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n","text":"```shell\n>>> get_daily_stock_price(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, market='')\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.market
: S\u00e0n giao d\u1ecbch, \u0111\u1ec3 tr\u1ed1ng n\u1ebfu mu\u1ed1n l\u1ea5y t\u1ea5t c\u1ea3 k\u1ebft qu\u1ea3 t\u1eeb c\u00e1c s\u00e0n.>>> get_daily_stock_price(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, market='')\n\n TradingDate PriceChange PerPriceChange CeilingPrice ... TotalTradedVol TotalTradedValue Symbol Time\n0 31/07/2023 -100 -0.30 31800 ... 15219300 450985285000.0070 SSI None\n1 28/07/2023 300 1 31500 ... 13130200 389080050000.0010 SSI None\n2 27/07/2023 450 1.60 31000 ... 16465600 482248000000 SSI None\n3 26/07/2023 200 0.70 30800 ... 12780300 367721865000.0020 SSI None\n4 25/07/2023 100 0.30 30700 ... 14449000 415978000000 SSI None\n\n[5 rows x 31 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#ket-qua-giao-dich-cua-ma-chi-so-theo-ngay","title":"K\u1ebft qu\u1ea3 giao d\u1ecbch c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1 theo ng\u00e0y","text":"Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.index
: m\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.orderBy
: ch\u1ecdn c\u1ed9t d\u00f9ng l\u00e0m ti\u00eau ch\u00ed s\u1eafp x\u1ebfp th\u1ee9 t\u1ef1 k\u1ebft qu\u1ea3 hi\u1ec3n th\u1ecb.order
: th\u1ee9 t\u1ef1 s\u1eafp x\u1ebfp k\u1ebft qu\u1ea3. desc
cho s\u1eafp x\u1ebfp theo chi\u1ec1u ngh\u1ecbch, asc
cho s\u1eafp x\u1ebfp theo chi\u1ec1u thu\u1eadn.>>> get_daily_index(client, config, index='VN30', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, orderBy='Tradingdate', order='desc', request_id='')\n\n IndexId IndexValue TradingDate Change RatioChange ... TotalDealVol TotalDealVal TotalVol TotalVal TradingSession\n0 VN30 1230.81 31/07/2023 18.36 1.5143 ... 31046442 727903000000 325942142 9306421000000\n C\n1 VN30 1212.45 28/07/2023 12.77 1.0645 ... 17227339 570484000000 268863339 7303088000000\n C\n2 VN30 1199.68 27/07/2023 -1.75 -0.1457 ... 36187850 992090000000 299632550 7938811000000\n C\n3 VN30 1201.43 26/07/2023 3.42 0.2855 ... 19422282 599445000000 266954582 6817668000000\n C\n4 VN30 1198.01 25/07/2023 4.87 0.4082 ... 32883479 911331000000 286220979 7918426000000\n C\n\n[5 rows x 19 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#streaming-du-lieu","title":"Streaming d\u1eef li\u1ec7u","text":"start_market_data_stream(config, channel='X-QUOTE:HCM')\n
Trong \u0111\u00f3:
config
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.channel
: K\u00eanh streaming, \u0111\u01b0\u1ee3c t\u1ea1o ra b\u1eb1ng c\u00e1ch k\u1ebft h\u1ee3p m\u00e3 lo\u1ea1i d\u1eef li\u1ec7u v\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n/ch\u1ec9 s\u1ed1 t\u01b0\u01a1ng \u1ee9ng. F:SSI
ho\u1eb7c F:SSI-PAN
ho\u1eb7cF:ALL
Tr\u1ea3 v\u1ec1 th\u00f4ng tin phi\u00ean giao d\u1ecbch v\u00e0 tr\u1ea1ng th\u00e1i giao d\u1ecbch c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL
\u0111\u1ec3 l\u1ea5y th\u00f4ng tin room c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u bid/ask X
X-QUOTE:SSI
ho\u1eb7c X-QUOTE:ALL
D\u1eef li\u1ec7u bid/ask c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n. Trong \u0111\u00f3, ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. D\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh X
X-TRADE:SSI
ho\u1eb7c X-TRADE:ALL
ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. D\u1eef li\u1ec7u t\u1ed5ng h\u1ee3p c\u1ee7a th\u00f4ng tin bid/ask v\u00e0 th\u00f4ng tin kh\u1edbp l\u1ec7nh X
X:SSI-VIC
ho\u1eb7c X:ALL
ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\" D\u1eef li\u1ec7u Room n\u01b0\u1edbc ngo\u00e0i R
R:SSI
ho\u1eb7c R:SSI-VIC
ho\u1eb7c R:ALL
C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL \u0111\u1ec3 l\u1ea5y th\u00f4ng tin room c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u ch\u1ec9 s\u1ed1 MI
MI:VN30
ho\u1eb7c MI:VN30-HNXindex
ho\u1eb7c MI:ALL
Cung c\u1ea5p th\u00f4ng tin ch\u1ec9 s\u1ed1 c\u1eadp nh\u1eadt c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c s\u00e0n HOSE, HNX, UPCOM. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". ALL
\u0111\u1ec3 l\u1ea5y to\u00e0n b\u1ed9 th\u00f4ng tin c\u00e1c m\u00e3. D\u1eef li\u1ec7u OHLCV B
B:SSI
; B:SSI-VN30
ho\u1eb7c B:ALL
Tr\u1ea3 v\u1ec1 th\u00f4ng tin open, high, low, close, volume c\u1ee7a c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n/ch\u1ec9 s\u1ed1 theo tick. C\u00e1c m\u00e3 CK/ch\u1ec9 s\u1ed1 \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL \u0111\u1ec3 l\u1ea5y th\u00f4ng tin OHLCV realtime c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> start_market_data_stream(config, channel='X-QUOTE:HCM')\n\n 0\nTradingDate 15/12/2023\nTime 14:45:04\nExchange HOSE\nSymbol HCM\nRType X-QUOTE\nAskPrice1 31500.0\nAskPrice2 31550.0\nAskPrice3 31600.0\nAskVol1 479700.0\nAskVol2 39500.0\nAskVol3 44400.0\nBidPrice1 31350.0\nBidPrice2 31250.0\nBidPrice3 31200.0\nBidVol1 1000.0\nBidVol2 2200.0\nBidVol3 10700.0\nTradingSession PT\n
"},{"location":"integrate/streamlit/","title":"Streamlit","text":"Streamlit x vnstock\"
vnstock
l\u00e0 ngu\u1ed3n d\u1eef li\u1ec7u ho\u00e0n h\u1ea3o \u0111\u1ec3 x\u00e2y d\u1ef1ng trung t\u00e2m ph\u00e2n t\u00edch tr\u1ef1c quan v\u1edbi n\u1ec1n t\u1ea3ng Streamlit s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python.
Vnstock Web App ch\u00ednh l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb ch\u00ednh vnstock \u0111\u1ec3 t\u1ea1o ra \u1ee9ng d\u1ee5ng v\u1edbi giao di\u1ec7n \u0111\u1ed3 h\u1ecda tr\u1ef1c quan v\u00e0 th\u00e2n thi\u1ec7n. \u1ee8ng d\u1ee5ng n\u00e0y ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y, kh\u00f4ng c\u1ea7n thi\u1ebft l\u1eadp b\u1ea5t c\u1ee9 c\u01a1 s\u1edf d\u1eef li\u1ec7u n\u00e0o, d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o c\u1ee7a Web App ch\u00ednh l\u00e0 c\u00e1c APIs do vnstock cung c\u1ea5p. Trong th\u1ef1c t\u1ebf, b\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn ch\u1ea1y Streamlit tr\u00ean m\u00f4i tr\u01b0\u1eddng m\u00e1y t\u00ednh c\u00e1 nh\u00e2n c\u1ee5c b\u1ed9 ho\u1eb7c tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y c\u1ee7a d\u1ecbch v\u1ee5 Streamlit Share hay Huggingface Spaces. L\u1ef1a ch\u1ecdn l\u00e0 \u1edf b\u1ea1n.
\u0110\u1ec3 c\u00f3 th\u1ec3 l\u00e0m ch\u1ee7 Streamlit nhanh ch\u00f3ng v\u1edbi l\u1ed9 tr\u00ecnh \u0111\u00e0o t\u1ea1o th\u1ef1c t\u1ebf, \u1ee9ng d\u1ee5ng cho ch\u00ednh th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 s\u1eed d\u1ee5ng vnstock. B\u1ea1n c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam v\u1edbi Th\u1ecbnh v\u1ec1 kh\u00f3a h\u1ecdc ng\u1eafn h\u1ea1n s\u1eafp tri\u1ec3n khai.
"},{"location":"integrate/ta_lib/","title":"TA-Lib","text":"Gi\u1edbi thi\u1ec7u TA-lib
TA-lib \u0111\u01b0\u1ee3c c\u00e1c l\u1eadp tr\u00ecnh vi\u00ean s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt cho d\u1eef li\u1ec7u t\u00e0i ch\u00ednh, g\u00f3i ph\u1ea7n m\u1ec1m nguy\u00ean b\u1ea3n \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef C/C++.
TA-lib python d\u1ef1a tr\u00ean Cython thay v\u00ec SWIG kh\u00f3 c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng nh\u01b0 g\u00f3i th\u01b0 vi\u1ec7n TA-lib nguy\u00ean b\u1ea3n cho ph\u00e9p c\u1ed9ng \u0111\u1ed3ng s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef Python c\u00f3 th\u1ec3 t\u1eadn d\u1ee5ng to\u00e0n b\u1ed9 s\u1ee9c m\u1ea1nh c\u1ee7a TA-lib trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh.
D\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb h\u00e0m stock_historical_data
do vnstock cung c\u1ea5p c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ho\u00e0n h\u1ea3o v\u1edbi d\u1ef1 \u00e1n t\u00edch h\u1ee3p b\u1ed9 c\u00f4ng c\u1ee5 TA-lib. B\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 c\u00e0i \u0111\u1eb7t TA-lib v\u00e0 s\u1eed d\u1ee5ng c\u00f9ng vnstock (n\u1ebfu ch\u01b0a th\u1eed).
M\u1edf Notebook demo \u0111\u1ec3 s\u1eed d\u1ee5ng code m\u1eabu.
M\u1edf Notebook
"},{"location":"integrate/ta_lib/#moi-truong-local","title":"M\u00f4i tr\u01b0\u1eddng local","text":"B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t chi ti\u1ebft t\u1ea1i \u0111\u00e2y
"},{"location":"integrate/ta_lib/#cai-at-ta-lib-cho-windows","title":"C\u00e0i \u0111\u1eb7t TA-Lib cho Windows","text":"C\u00e1ch \u0111\u01a1n gi\u1ea3n v\u00e0 \u0111\u1ea3m b\u1ea3o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng TA-Lib tr\u00ean m\u00e1y t\u00ednh Windows \u0111\u00f3 l\u00e0 d\u00f9ng file wheel \u0111\u00e3 \u0111\u01b0\u1ee3c build s\u1eb5n t\u1eeb li\u00ean k\u1ebft c\u1ee7a \u0111\u1ea1i h\u1ecdc UCI (University of California, Irvine). C\u00e1ch th\u1ef1c hi\u1ec7n nh\u01b0 sau:
Ctrl
+ F
v\u00e0 t\u00ecm ki\u1ebfm TA-Lib.TA_Lib-0.4.24-cp310-cp310-win_amd64.whl
. Downloads
ch\u1ee9a file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea3i v\u1ec1 trong Terminal/Command Prompt \u0111\u1ec3 c\u00e0i \u0111\u1eb7t. B\u1ea1n c\u00f3 th\u1ec3 m\u1edf Windows Explorer, duy\u1ec7t \u0111\u1ebfn th\u01b0 m\u1ee5c Downloads
v\u00e0 nh\u1eadp cmd.exe
v\u00e0o thanh \u0111\u1ecba ch\u1ec9 c\u1ee7a Windows Explorer \u0111\u1ec3 m\u1edf Command Prompt ho\u1eb7c ch\u1ea1y Command Prompt t\u1eeb Start menu. Nh\u1eadp l\u1ec7nh cd Downloads
\u0111\u1ec3 m\u1edf th\u01b0 m\u1ee5c n\u00e0y trong giao di\u1ec7n d\u00f2ng l\u1ec7nh.Ch\u1ea1y d\u00f2ng l\u1ec7nh pip install TA_Lib-0.4.24-cp310-cp310-win_amd64.whl
\u0111\u1ec3 c\u00e0i \u0111\u1eb7t file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea3i v\u1ec1. Ch\u1edd trong gi\u00e2y l\u00e1t, TA-Lib s\u1ebd \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t.
Gi\u1edbi thi\u1ec7u
vnstock cung c\u1ea5p t\u1edbi b\u1ea1n c\u00e1c h\u00e0m k\u1ebft n\u1ed1i t\u1edbi Telegram API v\u00e0 Slack API cho ph\u00e9p g\u1eedi tin nh\u1eafn, h\u00ecnh \u1ea3nh qua Slack channel v\u00e0 Telegram group. \u0110\u00e2y l\u00e0 t\u00ednh n\u0103ng m\u1edf ra c\u00e1c \u1ee9ng d\u1ee5ng g\u1eedi tin t\u1ee9c, c\u1ea3nh b\u00e1o giao d\u1ecbch v\u00e0 c\u00e1c th\u00f4ng tin quan tr\u1ecdng t\u1edbi b\u1ea1n m\u00e0 kh\u00f4ng c\u1ea7n \u0111i qua b\u1ea5t k\u1ef3 d\u1ecbch v\u1ee5 trung gian n\u00e0o.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng n\u00e0y b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng code m\u1eabu trong file demo notebook chung c\u1ee7a vnstock. C\u00fa ph\u00e1p c\u1ee7a h\u00e0m t\u01b0\u01a1ng \u0111\u1ed1i \u0111\u01a1n gi\u1ea3n.
"},{"location":"integrate/telegram-slack-gui-tin-nhan-thong-bao-qua-chat-tu-python/#telegram","title":"Telegram","text":"Tham kh\u1ea3o b\u00e0i vi\u1ebft tr\u00ean Th\u1ecbnh V\u0169 Blog t\u1ea1i \u0111\u00e2y v\u00e0 \u0111\u00e2y n\u1eefa \u0111\u1ec3 hi\u1ec3u h\u01a1n v\u1ec1 c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp Telegram Bot tr\u01b0\u1edbc khi b\u1ea1n c\u00f3 th\u1ec3 c\u1ea5u h\u00ecnh c\u00e1c h\u00e0m g\u1eedi tin nh\u1eafn d\u01b0\u1edbi \u0111\u00e2y. Th\u1ecbnh c\u0169ng s\u1ebd c\u1eadp nh\u1eadt l\u1ea1i h\u01b0\u1edbng d\u1eabn m\u1edbi nh\u1ea5t trong th\u1eddi gian t\u1edbi.
from vnstock.integration import * # N\u1ebfu \u0111\u00e3 n\u1ea1p t\u1ea5t c\u1ea3 h\u00e0m th\u00ec b\u1ecf qua.\n\ntoken_key = 'TOKEN_KEY_SLACK_C\u1ee6A_B\u1ea0N'\nslack_channel = 'T\u00caN_CHANNEL'\nmessage = 'Tin nh\u1eafn c\u1ee7a b\u1ea1n'\nfile_path = '\u0110\u01af\u1edcNG_D\u1eaaN_\u0110\u1ebeN_FILE_H\u00ccNH_TR\u00caN_M\u00c1Y_T\u00cdNH'\n
B\u00e2y gi\u1edd th\u00ec b\u1ea1n \u0111\u00e3 s\u1eb5n s\u00e0ng \u0111\u1ec3 l\u1ef1a ch\u1ecdn 1 trong 2 h\u00ecnh th\u1ee9c g\u1eedi tin nh\u1eafn
slack_send_file(token_key, slack_channel, text_comment, file_path)\n
pythonslack_send_message(token_key, slack_channel, message)\n
Trong \u0111\u00f3:
token_key
: B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng bot token b\u1eaft \u0111\u1ea7u v\u1edbi xoxb-..
ho\u1eb7c user token b\u1eaft \u0111\u1ea7u v\u1edbi xoxp-..
slack_channel
: l\u00e0 t\u00ean channel, b\u1eaft \u0111\u1ea7u v\u1edbi #
v\u00ed d\u1ee5 #market_trend
text_comment
: caption cho file h\u00ecnh \u1ea3nh g\u1eedi k\u00e8mfile_path
: \u0111\u01b0\u1eddng d\u1eabn t\u1edbi file h\u00ecnh \u1ea3nh tr\u00ean m\u00e1y t\u00ednhmessage
: l\u00e0 n\u1ed9i dung tin nh\u1eafnT\u01b0\u01a1ng t\u1ef1 v\u1edbi c\u00e1c h\u00e0m s\u1eed d\u1ee5ng cho Telegram. B\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp c\u1ea5u h\u00ecnh nh\u1eafn tin t\u1edbi 1 channel Slack b\u1ea5t k\u1ef3 b\u1eb1ng c\u00e1c h\u00e0m d\u01b0\u1edbi \u0111\u00e2y.
from vnstock.integration import * # N\u1ebfu \u0111\u00e3 n\u1ea1p t\u1ea5t c\u1ea3 h\u00e0m th\u00ec b\u1ecf qua.\n\ntoken_key = 'TOKEN_KEY_C\u1ee6A_B\u1ea0N'\nchat_id = 'ID_NH\u00d3M_CHAT'\nmessage = 'Tin nh\u1eafn c\u1ee7a b\u1ea1n'\nfile_path = '\u0110\u01af\u1edcNG_D\u1eaaN_\u0110\u1ebeN_FILE_H\u00ccNH_TR\u00caN_M\u00c1Y_T\u00cdNH'\n
G\u1eedi tin nh\u1eafn k\u00e8m h\u00ecnh: telegram_send_photo(token_key, chat_id, message, file_path)
G\u1eedi tin nh\u1eafn v\u0103n b\u1ea3n: telegram_send_message(token_key, chat_id, message)
Vnstock v\u00e0 streamlit
Vnstock Web App ho\u1ea1t \u0111\u1ed9ng tr\u00ean n\u1ec1n t\u1ea3ng streamlit trong Python. Streamlit c\u0169ng l\u00e0 t\u00ean c\u1ee7a g\u00f3i th\u01b0 vi\u1ec7n m\u00e3 ngu\u1ed3n m\u1edf n\u00e0y. B\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng web app c\u1ee7a m\u00ecnh v\u00e0 host tr\u00ean d\u1ecbch v\u1ee5 Streamlit Share ho\u1eb7c s\u1eed d\u1ee5ng Hugging Face Spaces ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed.
Vnstock Web App l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c APIs do vnstock cung c\u1ea5p \u0111\u1ec3 x\u00e2y d\u1ef1ng \u1ee9ng d\u1ee5ng ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n c\u1ee7a ri\u00eang b\u1ea1n.
B\u1ea1n c\u00f3 th\u1ec3 t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 c\u00e1ch t\u1ea1o ra m\u1ed9t web app v\u1edbi Streamlit v\u00e0 s\u1eed d\u1ee5ng Vnstock thu\u1eadn ti\u1ec7n b\u1edfi Vnstock cung c\u1ea5p s\u1ed1 l\u01b0\u1ee3ng h\u00e0m cho th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam qua APIs \u0111a d\u1ea1ng nh\u1ea5t hi\u1ec7n nay \u0111\u1ec3 gi\u00fap b\u1ea1n ph\u00e2n t\u00edch to\u00e0n di\u1ec7n trong t\u1ea5t c\u1ea3 c\u00e1c th\u01b0 vi\u1ec7n Python. \u0110\u00e2y c\u0169ng l\u00e0 c\u00e1ch d\u1ec5 nh\u1ea5t \u0111\u1ec3 t\u1ea1o ra m\u1ed9t \u1ee9ng d\u1ee5ng \u0111\u1ed3 h\u1ecda v\u1edbi Python \u1edf th\u1eddi \u0111i\u1ec3m hi\u1ec7n t\u1ea1i.
M\u1edf Web App
"},{"location":"start/huong-dan-cai-dat-vnstock-python/","title":"C\u00e0i \u0111\u1eb7t vnstock","text":""},{"location":"start/huong-dan-cai-dat-vnstock-python/#xac-inh-phien-ban-phu-hop","title":"X\u00e1c \u0111\u1ecbnh phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p","text":"Phi\u00ean b\u1ea3n
vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n th\u00e0nh hai nh\u00e1nh ri\u00eang bi\u1ec7t. Trong h\u1ea7u h\u1ebft tr\u01b0\u1eddng h\u1ee3p b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh c\u00e0i \u0111\u1eb7t nhanh t\u1eeb PyPI. N\u1ebfu b\u1ea1n c\u00f3 nhu c\u1ea7u c\u00e0i \u0111\u1eb7t vnstock t\u1eeb m\u00e3 ngu\u1ed3n, b\u1ea1n c\u1ea7n ch\u1ecdn phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p v\u00e0 copy c\u00e2u l\u1ec7nh t\u01b0\u01a1ng \u1ee9ng \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\u00e0i \u0111\u1eb7t \u1edf b\u01b0\u1edbc ti\u1ebfp theo:
pip install --upgrade vnstock\n
C\u00e0i \u0111\u1eb7t tr\u1ef1c ti\u1ebfp t\u1eeb m\u00e3 ngu\u1ed3n c\u00f3 tr\u00ean Github:
beta
(nh\u1eadn c\u1eadp nh\u1eadt m\u1edbi nh\u1ea5t) \u0111\u01b0\u1ee3c chia s\u1ebb t\u1ea1i nh\u00e1nh beta
c\u1ee7a Github repo. pip install git+https://github.com/thinh-vu/vnstock.git@beta\n
stable
(\u0111\u00e3 ph\u00e1t tri\u1ec3n \u1ed5n \u0111\u1ecbnh) \u0111\u01b0\u1ee3c chia s\u1ebb qua pypi.org v\u00e0 nh\u00e1nh main
t\u1ea1i Github repo. pip install git+https://github.com/thinh-vu/vnstock.git@main\n
Khi s\u1eed d\u1ee5ng file Demo Notebook \u0111\u1ec3 b\u1eaft \u0111\u1ea7u, c\u00e1c c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t c\u1ea7n thi\u1ebft \u0111\u00e3 \u0111\u01b0\u1ee3c cung c\u1ea5p s\u1eb5n \u0111\u1ec3 b\u1ea1n th\u1ef1c thi (run).
pip \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 c\u00e0i \u0111\u1eb7t vnstock
. pip c\u00f3 s\u1eb5n trong h\u1ea7u h\u1ebft c\u00e1c b\u1ea3n ph\u00e2n ph\u1ed1i Python \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t. Phi\u00ean b\u1ea3n python c\u1ea7n thi\u1ebft cho vnstock t\u1ed1i thi\u1ec3u l\u00e0 3.7. B\u1ea1n c\u00f3 th\u1ec3 paste c\u00e2u l\u1ec7nh \u0111\u00e3 copy \u1edf B\u01b0\u1edbc 1 v\u00e0 ch\u1ea1y n\u00f3 trong m\u00f4i tr\u01b0\u1eddng Python b\u1ea1n \u0111ang s\u1eed d\u1ee5ng.
Insiders Program
\u0110\u1ed1i v\u1edbi c\u00e1c th\u00e0nh vi\u00ean tham gia t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua Insiders Program, c\u00e1c b\u1ea1n c\u00f3 th\u00eam quy\u1ec1n truy c\u1eadp v\u00e0o c\u00e1c kho m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0 (private repo). M\u1ed7i g\u00f3i c\u00e0i \u0111\u1eb7t b\u1ed5 sung n\u00e0y s\u1ebd c\u00f3 h\u01b0\u1edbng d\u1eabn k\u00e8m theo trong file README c\u1ee7a repo \u0111\u00f3 tr\u00ean Github.
"},{"location":"start/huong-dan-cai-dat-vnstock-python/#cai-at-cac-goi-thu-vien-bat-buoc-go-loi","title":"C\u00e0i \u0111\u1eb7t c\u00e1c g\u00f3i th\u01b0 vi\u1ec7n b\u1eaft bu\u1ed9c (g\u1ee1 l\u1ed7i)","text":"L\u01b0u \u00fd
Trong tr\u01b0\u1eddng h\u1ee3p b\u1ea1n kh\u00f4ng s\u1eed d\u1ee5ng Google Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 ch\u1ea1y vnstock, b\u1ea1n s\u1ebd c\u1ea7n ph\u1ea3i \u0111\u1ea3m b\u1ea3o m\u00f4i tr\u01b0\u1eddng Python c\u1ee7a m\u00ecnh c\u00f3 \u0111\u1ea7y \u0111\u1ee7 c\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m b\u1eaft bu\u1ed9c k\u00e8m theo (dependencies/requirements) \u0111\u1ec3 c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c vnstock
.
N\u1ebfu c\u00e0i Python v\u1edbi Anaconda, b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf qua b\u01b0\u1edbc n\u00e0y.
N\u1ebfu c\u00e0i b\u1ea3n python thu\u1ea7n t\u1eeb python.org ho\u1eb7c Python t\u1eeb Windows Store, b\u1ea1n s\u1ebd c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam t\u1ed1i thi\u1ec3u pandas
v\u00e0 requests
v\u1edbi c\u00f4ng c\u1ee5 pip
.
\u0110\u1ec3 qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t di\u1ec5n ra \u0111\u01a1n gi\u1ea3n v\u00e0 su\u00f4n s\u1ebb, b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo c\u00e1c b\u01b0\u1edbc sau:
T\u1ea3i file requirement.txt v\u1ec1 m\u00e1y
M\u1edf Command Prompt / Terminal, tr\u1ecf t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a file requirements.txt
, th\u00f4ng th\u01b0\u1eddng l\u00e0 Downloads
b\u1eb1ng l\u1ec7nh:
cd \u0110\u1ecaA_CH\u1ec8_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N
pip install -r requirements.txt
Nh\u01b0 v\u1eady l\u00e0 qu\u00e1 tr\u00ecnh chu\u1ea9n b\u1ecb \u0111\u1ec3 s\u1eed d\u1ee5ng vnstock
\u0111\u00e3 ho\u00e0n th\u00e0nh. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
vnstock l\u00e0 th\u01b0 vi\u1ec7n Python \u0111\u01b0\u1ee3c thi\u1ebft ph\u1ee5c v\u1ee5 nhu c\u1ea7u ph\u00e2n t\u00edch d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam, n\u1ec1n m\u00f3ng \u0111\u1ea7u ti\u00ean c\u1ee7a th\u01b0 vi\u1ec7n b\u1eaft \u0111\u1ea7u t\u1eeb vi\u1ec7c h\u1ed7 tr\u1ee3 t\u1ea3i d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n nhanh ch\u00f3ng, v\u00e0 mi\u1ec5n ph\u00ed. G\u00f3i th\u01b0 vi\u1ec7n \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf d\u1ef1a tr\u00ean nguy\u00ean t\u1eafc v\u1ec1 s\u1ef1 \u0111\u01a1n gi\u1ea3n v\u00e0 ti\u1ec7n l\u1ee3i, h\u1ea7u h\u1ebft c\u00e1c h\u00e0m \u0111\u1ec1u c\u00f3 th\u1ec3 ch\u1ea1y ngay tr\u00ean Google Colab khi c\u00e0i \u0111\u1eb7t vnstock m\u00e0 kh\u00f4ng y\u00eau c\u1ea7u th\u00eam g\u00f3i ph\u1ee5 thu\u1ed9c.
\u0110\u1ec3 b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng vnstock, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t \u0111\u01a1n gi\u1ea3n sau tr\u00ean Google Colab ho\u1eb7c Command Prompt/Terminal:
pip install --upgrade vnstock\n
Ho\u1eb7c ch\u1ec9 c\u1ea7n m\u1edf file Demo Notebook v\u1edbi Google Colab, ch\u1ea1y l\u1ea7n l\u01b0\u1ee3t c\u00e1c c\u00e2u l\u1ec7nh \u0111\u1ec3 tr\u1ea3i nghi\u1ec7m c\u00e1c t\u00ednh n\u0103ng c\u1ee7a vnstock.
M\u1edf Notebook
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#moi-lam-quen-voi-python","title":"M\u1edbi l\u00e0m quen v\u1edbi Python?","text":"N\u1ebfu b\u1ea1n m\u1edbi b\u1eaft \u0111\u1ea7u t\u00ecm hi\u1ec3u Python v\u00e0 c\u00f2n cho\u00e1ng ng\u1ee3p v\u1edbi qu\u00e1 nhi\u1ec1u th\u1ee9 m\u1edbi m\u1ebb th\u00ec d\u1ef1 \u00e1n LEarn Anything t\u1eeb c\u00f9ng t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169 s\u1ebd l\u00e0 c\u1ea9m nang kh\u00f4ng th\u1ec3 thi\u1ebfu cho b\u1ea1n. Th\u00f4ng qua c\u00e1c b\u00e0i vi\u1ebft v\u00e0 video h\u01b0\u1edbng d\u1eabn v\u1ec1 Python d\u1ec5 hi\u1ec3u, b\u1ea1n s\u1ebd c\u00f3 m\u1ed9t c\u00e1i nh\u00ecn t\u1ed5ng qu\u00e1t v\u00e0 c\u0169ng r\u1ea5t d\u1ec5 hi\u1ec3u \u0111\u1ec3 b\u01b0\u1edbc ch\u00e2n v\u00e0o h\u00e0nh tr\u00ecnh kh\u00e1m ph\u00e1 m\u1ed9t th\u1ebf gi\u1edbi \u0111\u1ea7y m\u00ea ho\u1eb7c c\u1ee7a python trong m\u1ecdi l\u0129nh v\u1ef1c c\u1ee7a cu\u1ed9c s\u1ed1ng, kh\u00f4ng ch\u1ec9 ri\u00eang th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n.
Python v\u1ee1 l\u00f2ng
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#nguon-cap-du-lieu","title":"Ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u","text":"Th\u01b0 vi\u1ec7n vnstock cung c\u1ea5p kh\u1ea3 n\u0103ng k\u1ebft n\u1ed1i t\u1edbi c\u00e1c API c\u00f4ng khai c\u1ee7a c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u \u0111\u00e1ng tin c\u1eady \u0111\u1ec3 ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng Pandas DataFrame trong m\u00f4i tr\u01b0\u1eddng Python. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u sang c\u00e1c \u0111\u1ecbnh d\u1ea1ng ph\u1ed5 th\u00f4ng nh\u01b0 csv, Excel, Google Sheets, Database \u0111\u1ec3 ti\u1ebfn h\u00e0nh ph\u00e2n t\u00edch n\u1ebfu mu\u1ed1n. Vi\u1ec7c truy xu\u1ea5t d\u1eef li\u1ec7u n\u00e0y l\u00e0 T\u1ef0 DO v\u00e0 ho\u00e0n to\u00e0n MI\u1ec4N PH\u00cd.
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#anh-dau-yeu-thich","title":"\u0110\u00e1nh d\u1ea5u y\u00eau th\u00edch","text":"D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c g\u1ee3i \u00fd \u0111\u1ec3 b\u1ea1n tra c\u1ee9u trang t\u00e0i li\u1ec7u vnstock t\u1ed1i \u01b0u:
T\u00ecm ki\u1ebfm: B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng thanh t\u00ecm ki\u1ebfm tr\u00ean trang t\u00e0i li\u1ec7u \u0111\u1ec3 t\u00ecm ki\u1ebfm t\u00e0i li\u1ec7u v\u00e0 c\u00e1c n\u1ed9i dung m\u00ecnh quan t\u00e2m
Chuy\u1ec3n \u0111\u1ed5i giao di\u1ec7n s\u00e1ng/t\u1ed1i: \u0110\u1ec3 c\u00f3 tr\u1ea3i nghi\u1ec7m \u0111\u1ecdc trong \u0111i\u1ec1u ki\u1ec7n \u00e1nh s\u00e1ng t\u1ed1t nh\u1ea5t, b\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n \u0111\u1ed5i ch\u1ebf \u0111\u1ed9 s\u00e1ng/t\u1ed1i b\u1eb1ng c\u00e1ch nh\u1ea5p v\u00e0o bi\u1ec3u t\u01b0\u1ee3ng tr\u00ean \u0111\u1ea7u trang.
S\u1eed d\u1ee5ng b\u1ea3ng m\u1ee5c l\u1ee5c: Thanh \u0111i\u1ec1u h\u01b0\u1edbng b\u00ean tr\u00e1i cung c\u1ea5p c\u00e1c \u0111\u1ec1 m\u1ee5c \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 nh\u1ea5p v\u00e0o v\u00e0 di chuy\u1ec3n \u0111\u1ebfn n\u1ed9i dung m\u00ecnh c\u1ea7n d\u1ec5 d\u00e0ng.
Copy Code: \u1ede m\u1ed7i \u00f4 ch\u1ee9a d\u00f2ng l\u1ec7nh lu\u00f4n c\u00f3 bi\u1ec3u t\u01b0\u1ee3ng copy cho ph\u00e9p b\u1ea1n click v\u00e0o v\u00e0 sao ch\u00e9p \u0111o\u1ea1n m\u00e3 d\u1ec5 d\u00e0ng.
T\u00ednh n\u0103ng thu\u1ed9c Insiders Program: B\u1ea1n s\u1ebd b\u1eaft g\u1eb7p bi\u1ec3u t\u01b0\u1ee3ng \ud83d\udd10 \u0111\u1ed1i v\u1edbi h\u01b0\u1edbng d\u1eabn d\u00e0nh cho c\u00e1c t\u00ednh n\u0103ng n\u00e2ng cao ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program. Tham kh\u1ea3o th\u00eam chi ti\u1ebft t\u1ea1i \u0111\u00e2y
T\u1ea5t c\u1ea3 c\u00e1c h\u00e0m c\u1ee7a vnstock \u0111\u1ec1u \u0111\u01b0\u1ee3c cung c\u1ea5p docstring \u0111\u1ea7y \u0111\u1ee7, do \u0111\u00f3 b\u1ea1n c\u00f3 th\u1ec3 xem ph\u1ea7n g\u1ee3i \u00fd khi vi\u1ebft c\u00e2u l\u1ec7nh tr\u00ean c\u00e1c IDE nh\u01b0 Google Colab, Visual Studio Code, hay Jupyter Notebook.
Sau khi n\u1ea1p th\u01b0 vi\u1ec7n vnstock v\u00e0o m\u00f4i tr\u01b0\u1eddng l\u00e0m vi\u1ec7c th\u00f4ng qua c\u00e2u l\u1ec7nh import
, b\u1ea1n c\u00f3 th\u1ec3 in ph\u1ea7n h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng h\u00e0m vnstock b\u1ea5t k\u1ef3 th\u00f4ng qua thu\u1ed9c t\u00ednh __doc__
c\u1ee7a h\u00e0m \u0111\u00f3 nh\u01b0 sau (d\u1ea5u __
\u0111\u01b0\u1ee3c t\u1ea1o b\u1edfi 2 d\u1ea5u _
t\u1ee9c shift -
):
>>> print(listing_companies.__doc__)\n\nThis function returns the list of all available stock symbols from a csv file or a live api request.\n Parameters: \n live (bool): If True, return the list of all available stock symbols from a live api request. If False, return the list of all available stock symbols from the Github csv file (monthly update). Default is False.\n Returns: df (DataFrame): A pandas dataframe containing the stock symbols and other information.\n
T\u1ea5t nhi\u00ean, b\u1ea1n lu\u00f4n c\u00f3 th\u1ec3 m\u1edf ph\u1ea7n m\u00e3 ngu\u1ed3n c\u1ee7a vnstock tr\u00ean Github \u0111\u1ec3 xem chi ti\u1ebft.
Docstring trong Google ColabDocstring trong m\u00e3 ngu\u1ed3nG\u1ee3i \u00fd c\u00fa ph\u00e1p h\u00e0m \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb khi vi\u1ebft b\u1ea5t k\u1ef3 h\u00e0m n\u00e0o thu\u1ed9c vnstock, trong v\u00ed d\u1ee5 n\u00e0y hi\u1ec3n th\u1ecb trong giao di\u1ec7n Google Colab.
M\u1edf m\u00e3 ngu\u1ed3n Github t\u1ea1i th\u01b0 m\u1ee5c vnstock, t\u00ecm h\u00e0m b\u1ea1n c\u1ea7n tra c\u1ee9u docstring.
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/","title":"T\u00e0i nguy\u00ean quan tr\u1ecdng","text":"Tr\u01b0\u1edbc khi b\u1eaft \u0111\u1ea7u, b\u1ea1n c\u00f3 th\u1ec3 xem Video gi\u1edbi thi\u1ec7u ch\u00ednh th\u1ee9c cho vnstock m\u00ecnh m\u1edbi chia s\u1ebb tr\u00ean Youtube t\u1ea1i \u0111\u00e2y:
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#vnstock-website","title":"vnstock Website","text":"vnstock \u0111\u00e3 ho\u00e0n thi\u1ec7n b\u01b0\u1edbc \u0111\u1ea7u vi\u1ec7c x\u00e2y d\u1ef1ng m\u1ed9t website chuy\u00ean bi\u1ec7t \u0111\u1ec3 c\u1eadp nh\u1eadt th\u00f4ng tin v\u1ec1 d\u1ef1 \u00e1n, t\u00e0i li\u1ec7u s\u1eed d\u1ee5ng, blog, kh\u00f3a h\u1ecdc, v\u00e0 c\u00e1c t\u00e0i nguy\u00ean h\u1eefu \u00edch kh\u00e1c. C\u00e1c n\u1ed9i dung c\u1ee7a website \u0111ang t\u1eebng b\u01b0\u1edbc \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt v\u00e0 ho\u00e0n thi\u1ec7n.
B\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp vnstock.site \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft.
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#vnstock-web-app","title":"vnstock Web app","text":"vnstock Web app \u0111\u00e3 \u0111\u01b0\u1ee3c gi\u1edbi thi\u1ec7u l\u1ea7n \u0111\u1ea7u v\u00e0o 4/9/2023 nh\u1eb1m gi\u00fap ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng c\u00f3 th\u1ec3 ti\u1ebfp c\u1eadn v\u1edbi vnstock theo c\u00e1ch \u0111\u01a1n gi\u1ea3n v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t d\u00f9 cho b\u1ea1n kh\u00f4ng c\u00f3 b\u1ea5t c\u1ee9 k\u1ef9 n\u0103ng hay hi\u1ec3u bi\u1ebft v\u1ec1 l\u1eadp tr\u00ecnh python \u0111\u1ec3 s\u1eed d\u1ee5ng.
vnstock web app \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng b\u1eb1ng streamlit framework, s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef Python ho\u00e0n to\u00e0n. \u0110\u00e2y c\u0169ng l\u00e0 m\u1ed9t \u0111\u1ecbnh h\u01b0\u1edbng r\u1ea5t tri\u1ec3n v\u1ecdng trong vi\u1ec7c x\u00e2y d\u1ef1ng c\u00e1c \u1ee9ng d\u1ee5ng web trong vi\u1ec7c ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n v\u1edbi giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng th\u00e2n thi\u1ec7n v\u00e0 d\u1ec5 s\u1eed d\u1ee5ng, b\u1ea3o tr\u00ec.
M\u1edf Web App
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#notebook-minh-hoa","title":"Notebook minh ho\u1ea1","text":"B\u1ea1n c\u00f3 th\u1ec3 m\u1edf file demo b\u1eb1ng Jupyter Notebook v\u00e0 d\u00f9ng th\u1eed t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m c\u1ee7a vnstock t\u1eeb giao di\u1ec7n Google Colab. N\u1ebfu mu\u1ed1n s\u1eed d\u1ee5ng Notebook trong Visual Studio Code ho\u1eb7c IDE kh\u00e1c, b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm menu File > Download v\u00e0 ch\u1ecdn Download.ipynb \u0111\u1ec3 l\u01b0u file v\u1ec1 m\u00e1y.
M\u1edf Notebook
"},{"location":"blog/archive/2023/","title":"2023","text":""},{"location":"blog/category/huong-dan/","title":"H\u01b0\u1edbng d\u1eabn","text":""}]} \ No newline at end of file +<<<<<<< Updated upstream +{"config":{"lang":["en"],"separator":"[\\s\\u200b\\-_,:!=\\[\\]()\"`/]+|\\.(?!\\d)|&[lg]t;|(?!\\b)(?=[A-Z][a-z])","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Gi\u1edbi thi\u1ec7u vnstock","text":""},{"location":"#gioi-thieu-chung","title":"Gi\u1edbi thi\u1ec7u chung","text":"vnstock l\u00e0 th\u01b0 vi\u1ec7n Python \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 t\u1ea3i d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng v\u00e0 mi\u1ec5n ph\u00ed. vnstock s\u1eed d\u1ee5ng c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u \u0111\u00e1ng tin c\u1eady, bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n t\u1eeb c\u00f4ng ty ch\u1ee9ng kho\u00e1n v\u00e0 c\u00f4ng ty ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng t\u1ea1i Vi\u1ec7t Nam. G\u00f3i th\u01b0 vi\u1ec7n \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf d\u1ef1a tr\u00ean nguy\u00ean t\u1eafc v\u1ec1 s\u1ef1 \u0111\u01a1n gi\u1ea3n v\u00e0 m\u00e3 ngu\u1ed3n m\u1edf, h\u1ea7u h\u1ebft c\u00e1c h\u00e0m \u0111\u01b0\u1ee3c vi\u1ebft d\u1ef1a tr\u00ean th\u01b0 vi\u1ec7n request v\u00e0 pandas c\u00f3 s\u1eb5n tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab do \u0111\u00f3 ng\u01b0\u1eddi d\u00f9ng kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam c\u00e1c g\u00f3i th\u01b0 vi\u1ec7n k\u00e8m theo.
C\u1eadp nh\u1eadt b\u1ea3n 0.2.8.8
C\u1eadp nh\u1eadt thay \u0111\u1ed5i t\u1eeb ng\u00e0y 16/12/2023 \u1edf phi\u00ean b\u1ea3n beta
sang main
v\u00e0 ph\u00e1t h\u00e0nh ch\u00ednh th\u1ee9c phi\u00ean b\u1ea3n 0.2.8.8.
financial_report
s\u1eeda l\u1ed7i tri\u1ec7t \u0111\u1ec3 l\u1ed7i s\u1eed d\u1ee5ng 'Excel file format cannot be determined, you must specify an engine manually' do d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 kh\u00f4ng ph\u1ea3i \u0111\u1ecbnh d\u1ea1ng Excel.OrganCode
\u0111\u1ec3 tra c\u1ee9u th\u00f4ng tin c\u00f4ng ty trong \u0111\u00f3 c\u00f3 b\u00e1o c\u00e1o t\u00e0i ch\u00ednh. C\u00f3 kho\u1ea3ng > 600 m\u00e3 c\u1ed5 phi\u1ebfu c\u00f3 m\u00e3 symbol kh\u00e1c OrganCode do \u0111\u00f3 c\u00f3 nhi\u1ec1u m\u00e3 khi tra c\u1ee9u BCTC v\u1edbi m\u00e3 symbol s\u1ebd g\u00e2y ra r\u1ed7i trong khi v\u1edbi c\u00e1c m\u00e3 kh\u00e1c th\u00ec kh\u00f4ng. V\u00ed d\u1ee5 YTC
c\u00f3 OrganCode l\u00e0 YTECO
d\u00f9ng \u0111\u1ec3 tra c\u1ee9u BCTC.openpyxl
l\u00e0 g\u00f3i ph\u1ee5 thu\u1ed9c \u0111\u1ec3 \u0111\u1ecdc d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 t\u1eeb API d\u01b0\u1edbi d\u1ea1ng file Excel. L\u1ed7i n\u00e0y x\u1ea3y ra khi c\u00e0i b\u1ea3n Python thu\u1ea7n. Kh\u00f4ng g\u1eb7p l\u1ed7i v\u1edbi Google Colab ho\u1eb7c Anaconda.C\u1eadp nh\u1eadt khung ch\u01b0\u01a1ng tr\u00ecnh kh\u00f3a h\u1ecdc Python 5 khai gi\u1ea3ng 21/1/2024
B\u1ed5 sung t\u00ednh n\u0103ng hi\u1ec7n banner th\u00f4ng b\u00e1o quan tr\u1ecdng tr\u00ean trang t\u00e0i li\u1ec7u.
vnstock-data-pro
C\u1eadp nh\u1eadt t\u00e0i li\u1ec7u d\u1ef1 \u00e1n
B\u1ed5 sung h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng t\u00edch h\u1ee3p SSI Fast Connect API trong g\u00f3i vnstock-pro-data
t\u1ea1i \u0111\u00e2y
B\u1ed5 sung th\u00f4ng tin chi ti\u1ebft ch\u01b0\u01a1ng tr\u00ecnh Vnstock Insider Program t\u1ea1i \u0111\u00e2y
B\u1ed5 sung requirements.txt
cho tr\u00ecnh t\u1ea1o trang t\u0129nh MKDocs gi\u00fap c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c \u0111\u1ec3 thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u v\u00e0 xem tr\u01b0\u1edbc d\u1ec5 d\u00e0ng.
Ch\u00ednh th\u1ee9c ph\u00e1t h\u00e0nh c\u00e1c thay \u0111\u1ed5i t\u1eeb nh\u00e1nh Beta trong phi\u00ean b\u1ea3n 2.8.7. Chi ti\u1ebft c\u1eadp nh\u1eadt qua blog: t\u1ea1i \u0111\u00e2y
Ra m\u1eaft Vnstock Insiders Program cung c\u1ea5p quy\u1ec1n truy c\u1eadp t\u1edbi c\u00e1c kho ch\u1ee9a m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0 (private repo)
Ra m\u1eaft vnstock-pro-data
trong ch\u01b0\u01a1ng tr\u00ecnh Insiders, cung c\u1ea5p kh\u1ea3 n\u0103ng truy c\u1eadp d\u1eef li\u1ec7u ch\u1ea5t l\u01b0\u1ee3ng cao v\u1edbi \u0111\u1ed9 tr\u1ec5 th\u1ea5p.
T\u1ea3i d\u1eef li\u1ec7u gi\u00e1 OHLCV nhanh ch\u00f3ng, ch\u00ednh x\u00e1c kh\u00f4ng c\u1ea7n x\u00e1c th\u1ef1c qua Public API c\u1ee7a SSI.
T\u1ea3i v\u00e0 streaming d\u1eef li\u1ec7u qua SSI Fast Connect API ch\u00ednh th\u1ee9c (c\u1ea7n \u0111\u0103ng k\u00fd v\u00e0 x\u00e1c th\u1ef1c ng\u01b0\u1eddi d\u00f9ng)
Ch\u00ednh th\u1ee9c ph\u00e1t h\u00e0nh t\u00ednh n\u0103ng truy c\u1eadp d\u1eef li\u1ec7u qu\u1ef9 m\u1edf. H\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y
H\u1ed7 tr\u1ee3 xu\u1ea5t d\u1eef li\u1ec7u time series cho OpenBB Terminal. H\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y
C\u1eadp nh\u1eadt t\u00e0i li\u1ec7u d\u1ef1 \u00e1n
andrey_jef
\u0111\u00f3ng g\u00f3p. T\u00e0i li\u1ec7u m\u00f4 t\u1ea3 v\u00e0 demo notebook \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt t\u01b0\u01a1ng \u1ee9ng.plotly
th\u00e0nh th\u01b0 vi\u1ec7n t\u00f9y ch\u1ecdn, ch\u1ec9 ph\u1ea3i import v\u00e0o d\u1ef1 \u00e1n n\u1ebfu ng\u01b0\u1eddi d\u00f9ng c\u00f3 nhu c\u1ea7u s\u1eed d\u1ee5ng t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb. Vi\u1ec7c n\u00e0y gi\u00fap vnstock ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng kh\u00e1c Google Colab kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam plotly
theo m\u1eb7c \u0111\u1ecbnh. M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean b\u1ea3n beta tr\u00ean Github, thay \u0111\u1ed5i s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ea9y l\u00ean PyPI trong tu\u1ea7n t\u1edbi.andrey_jef
\u0111\u00f3ng g\u00f3p. T\u00e0i li\u1ec7u m\u00f4 t\u1ea3 v\u00e0 demo notebook \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt t\u01b0\u01a1ng \u1ee9ng.plotly
th\u00e0nh th\u01b0 vi\u1ec7n t\u00f9y ch\u1ecdn, ch\u1ec9 ph\u1ea3i import v\u00e0o d\u1ef1 \u00e1n n\u1ebfu ng\u01b0\u1eddi d\u00f9ng c\u00f3 nhu c\u1ea7u s\u1eed d\u1ee5ng t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb. Vi\u1ec7c n\u00e0y gi\u00fap vnstock ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng kh\u00e1c Google Colab kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam plotly
theo m\u1eb7c \u0111\u1ecbnh. M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean b\u1ea3n beta tr\u00ean Github, thay \u0111\u1ed5i s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ea9y l\u00ean PyPI trong tu\u1ea7n t\u1edbi.Ph\u00e1t h\u00e0nh phi\u00ean b\u1ea3n 0.2.8.5
stock_intraday_data
investor_segment
, m\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb True
cho ph\u00e9p tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh theo ph\u00e2n nh\u00f3m nh\u00e0 \u0111\u1ea7u t\u01b0 (nh\u01b0 c\u00e1c phi\u00ean b\u1ea3n tr\u01b0\u1edbc), khi \u0111\u1eb7t l\u00e0 False
cho ph\u00e9p tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u th\u00f4, kh\u00f4ng g\u1ed9p th\u00f4ng tin l\u1ec7nh theo ph\u00e2n nh\u00f3m.amibroker_ohlc_export
cho ph\u00e9p xu\u1ea5t d\u1eef li\u1ec7u sang \u0111\u1ecbnh d\u1ea1ng CSV \u0111\u1ec3 n\u1ea1p d\u1eef li\u1ec7u cho Amibroker. Chi ti\u1ebft t\u1ea1i \u0111\u00e2yPh\u00e1t h\u00e0nh phi\u00ean b\u1ea3n 0.2.8.4
T\u00f9y bi\u1ebfn h\u00e0m stock_historical_data
gi\u00fap d\u1ec5 d\u00e0ng s\u1eed d\u1ee5ng v\u1edbi c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt kh\u00e1c trong Python.
Th\u00eam tham s\u1ed1 decor
, nh\u1eadn gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
(kh\u00f4ng thay \u0111\u1ed5i d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 v\u1edbi c\u00e1ch s\u1eed d\u1ee5ng hi\u1ec7n t\u1ea1i c\u1ee7a ng\u01b0\u1eddi d\u00f9ng). Khi \u0111\u1eb7t decor=True
, \u00e1p d\u1ee5ng thay t\u00ean c\u00e1c c\u1ed9t trong DataFrame tr\u1ea3 v\u1ec1 d\u01b0\u1edbi d\u1ea1ng Title Case t\u1ee9c Open, High, Low, Close, Time, Ticker
thay v\u00ec open, high, low, close, time, ticker
nh\u01b0 hi\u1ec7n t\u1ea1i \u0111\u1ed3ng th\u1eddi \u0111\u1eb7t c\u1ed9t Time l\u00e0 index. Vi\u1ec7c n\u00e0y gi\u1ea3m b\u1edbt cho ng\u01b0\u1eddi d\u00f9ng ph\u1ea3i vi\u1ebft th\u00eam c\u00e2u l\u1ec7nh khi s\u1eed d\u1ee5ng d\u1eef li\u1ec7u vnstock k\u1ebft h\u1ee3p c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt ph\u1ed5 bi\u1ebfn v\u1ed1n d\u00f9ng th\u01b0 vi\u1ec7n Yahoo Finance l\u00e0m ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u.
B\u1ed5 sung tham s\u1ed1 source
cho ph\u00e9p ch\u1ecdn ngu\u1ed3n t\u1ea3i d\u1eef li\u1ec7u l\u00e0 TCBS
hay DNSE
. Ngu\u1ed3n d\u1eef li\u1ec7u TCBS
cho l\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed theo ng\u00e0y (resolution = 1D
) trong th\u1eddi gian d\u00e0i, kh\u00f4ng h\u1ed7 tr\u1ee3 khung th\u1eddi gian nh\u1ecf h\u01a1n. Trong khi \u0111\u00f3 ngu\u1ed3n d\u1eef li\u1ec7u DNSE
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u v\u1edbi nhi\u1ec1u khung th\u1eddi gian kh\u00e1c nhau, gi\u1edbi h\u1ea1n 90 ng\u00e0y g\u1ea7n nh\u1ea5t \u0111\u1ed1i v\u1edbi d\u1eef li\u1ec7u ph\u00fat, 10 n\u0103m g\u1ea7n nh\u1ea5t \u0111\u1ed1i v\u1edbi d\u1eef li\u1ec7u ng\u00e0y.
C\u1eadp nh\u1eadt tcbs_headers s\u1eed d\u1ee5ng cho c\u00e1c request \u0111\u1ebfn API c\u1ee7a TCBS
pip install -U vnstock
\u0111\u1ec3 c\u1eadp nh\u1eadt phi\u00ean b\u1ea3n.listing_companies
nay \u0111\u01b0\u1ee3c cung c\u1ea5p th\u00eam kh\u1ea3 n\u0103ng l\u1ea5y danh s\u00e1ch c\u00f4ng ty ni\u00eam y\u1ebft t\u1eeb SSI/FiinTrade. Vi\u1ec7c n\u00e0y gi\u00fap ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 tham chi\u1ebfu m\u00e3 c\u00f4ng ty t\u1eeb m\u00e3 c\u1ed5 phi\u1ebfu \u0111\u1ec3 l\u1ea5y th\u00f4ng tin trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p \u0111\u1eb7c bi\u1ec7t FiinTrade s\u1eed d\u1ee5ng m\u00e3 n\u00e0y thay cho m\u00e3 c\u1ed5 phi\u1ebfu. V\u00ed d\u1ee5, thay v\u00ec d\u00f9ng m\u00e3 c\u1ed5 phi\u1ebfu BCM
g\u00e2y ra l\u1ed7i cho h\u00e0m, b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u00e3 c\u00f4ng ty t\u01b0\u01a1ng \u1ee9ng l\u00e0 BIDC
indices_listing
cho ph\u00e9p li\u1ec7t k\u00ea t\u1ea5t c\u1ea3 m\u00e3 ch\u1ec9 s\u1ed1 hi\u1ec7n c\u00f3 tr\u00ean s\u00e0n.financial_ratio_compare
cho ph\u00e9p so s\u00e1nh ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh c\u1ee7a m\u1ed9t danh s\u00e1ch c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu.financial_report
, fr_trade_heatmap
, market_top_mover
do SSI hi\u1ec7n t\u1ea1i \u0111\u00e3 g\u1ee1 b\u1ecf m\u1ecdi h\u1ea1n ch\u1ebf v\u1ec1 k\u1ef9 thu\u1eadt \u00e1p d\u1ee5ng cho bot th\u1ef1c hi\u1ec7n web scraping.\u1ee8ng d\u1ee5ng & T\u00edch h\u1ee3p
Chuy\u1ec3n \u0111\u1ed5i n\u1ec1n t\u1ea3ng t\u00e0i li\u1ec7u t\u1eeb Pretty-Docs sang MkDocs Matterial th\u00e2n thi\u1ec7n v\u00e0 nhi\u1ec1u t\u00ednh n\u0103ng h\u1eefu \u00edch h\u01a1n.
C\u1eadp nh\u1eadt m\u00f4 t\u1ea3 c\u00e1c h\u00e0m \u0111\u1ec3 ti\u1ec7n theo d\u00f5i bao g\u1ed3m:
Xoay DataFrame k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 \u0111\u1ec3 c\u00f3 th\u1ec3 hi\u1ec3n th\u1ecb \u0111\u1ea7y \u0111\u1ee7 t\u00ean c\u00e1c c\u1ed9t d\u1eef li\u1ec7u
Phi\u00ean b\u1ea3n: 0.2.2: \u0110\u01b0a t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb ch\u00ednh th\u1ee9c v\u00e0o phi\u00ean b\u1ea3n \u1ed5n \u0111\u1ecbnh, c\u1eadp nh\u1eadt h\u00e0m truy xu\u1ea5t gi\u00e1 l\u1ecbch s\u1eed
C\u1eadp nh\u1eadt h\u00e0m stock_historical_data
\u0111\u1ec3 tr\u1ea3 v\u1ec1 th\u00f4ng tin ch\u00ednh x\u00e1c
Lo\u1ea1i b\u1ecf b\u01b0\u1edbc t\u00ednh to\u00e1n nh\u00e2n ch\u1ec9 s\u1ed1 v\u00e0 m\u00e3 ph\u00e1i sinh v\u1edbi 1000 khi tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u. C\u00e1ch t\u00ednh n\u00e0y l\u00e0m sai l\u1ec7ch gi\u00e1 tr\u1ecb c\u1ee7a ch\u1ec9 s\u1ed1 v\u00e0 m\u00e3 ph\u00e1i sinh v\u00ec b\u1ea3n ch\u1ea5t gi\u00e1 tr\u1ecb OHLC n\u00e0y kh\u00e1c v\u1edbi gi\u00e1 c\u1ed5 phi\u1ebfu.
B\u1ed5 sung th\u00eam tham s\u1ed1 beautify, \u0111\u1eb7t gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 True \u0111\u1ec3 gi\u1eef nguy\u00ean c\u00e1ch nh\u00e2n 1000 cho gi\u00e1 c\u1ed5 phi\u1ebfu. Ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 chuy\u1ec3n v\u1ec1 False \u0111\u1ec3 gi\u1eef nguy\u00ean gi\u00e1 tr\u1ecb OHLC d\u1ea1ng th\u1eadp ph\u00e2n r\u00fat g\u1ecdn.
Ch\u00ednh th\u1ee9c \u0111\u01b0a c\u00e1c h\u00e0m v\u1ebd \u0111\u1ed3 th\u1ecb v\u00e0o phi\u00ean b\u1ea3n ch\u00ednh th\u1ee9c c\u1ee7a vnstock sau qu\u00e1 tr\u00ecnh th\u1eed nghi\u1ec7m
H\u00e0m candlestick_chart cho ph\u00e9p v\u1ebd \u0111\u1ed3 th\u1ecb n\u1ebfn c\u00f9ng c\u00e1c \u0111\u01b0\u1eddng trung b\u00ecnh \u0111\u1ed9ng, h\u1ed7 tr\u1ee3, kh\u00e1ng c\u1ef1 c\u01a1 b\u1ea3n.
H\u00e0m bollinger_bands_chart cho ph\u00e9p v\u1ebd \u0111\u1ed3 th\u1ecb n\u1ebfn (ho\u1eb7c \u0111\u01b0\u1eddng) k\u00e8m c\u00e1c d\u1ea3i Bollinger Bands. H\u00e0m n\u00e0y c\u1ea7n s\u1eed d\u1ee5ng k\u00e8m h\u00e0m bollinger_bands \u0111\u1ec3 chuy\u1ec3n \u0111\u1ed5i d\u1eef li\u1ec7u OHLC ti\u00eau chu\u1ea9n sang d\u1eef li\u1ec7u Bollinger Bands.
Thay \u0111\u1ed5i c\u1ea5u tr\u00fac th\u01b0 m\u1ee5c v\u00e0 t\u00e0i li\u1ec7u vnstock repo tr\u00ean Github
vnstock docs Phi\u00ean b\u1ea3n 1.1 s\u1eed d\u1ee5ng Pretty-Docs theme
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng v\u00e0 ra m\u1eaft phi\u00ean b\u1ea3n th\u1eed nghi\u1ec7m 1.0 cho trang t\u00e0i li\u1ec7u vnstock docs s\u1eed d\u1ee5ng pretty-docs theme.
"},{"location":"changes_log/#22-08-2023","title":"22-08-2023","text":"Ph\u00e2n lo\u1ea1i c\u00e1c t\u00ednh n\u0103ng c\u1ee7a vnstock trong file Demo Jupyter Notebook theo 5 nh\u00f3m ch\u00ednh:
Th\u1ecb tr\u01b0\u1eddng (Market Watch)
Trung t\u00e2m giao d\u1ecbch (Trading Center)
\u0110\u00e3 s\u1eeda l\u1ea1i file demo notebook \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00e1c h\u00e0m m\u1edbi.
Kh\u00f4i ph\u1ee5c gi\u00e1 \u0111\u01a1n v\u1ecb c\u1ee7a stock_historical_data t\u1eeb 1000 VND th\u00e0nh VND b\u1eb1ng c\u00e1ch nh\u00e2n v\u1edbi 1000.
H\u00e0m price_board \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt.
B\u1ed5 sung h\u00e0m m\u1edbi trong m\u00f4 \u0111un utils.py \u0111\u1ec3 tr\u00edch xu\u1ea5t gi\u00e1 tr\u1ecb ng\u00e0y th\u00e1ng theo \u0111\u1ecbnh d\u1ea1ng YYYY-mm-dd.
Ch\u00ednh th\u1ee9c h\u1ed7 tr\u1ee3 h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng b\u1eb1ng ti\u1ebfng Vi\u1ec7t cho t\u1ec7p th\u01b0 vi\u1ec7n th\u00f4ng qua file README.md, gi\u00fap th\u00fac \u0111\u1ea9y kh\u1ea3 n\u0103ng ti\u1ebfp c\u1eadn v\u1edbi vnstock cho ng\u01b0\u1eddi d\u00f9ng Vi\u1ec7t Nam.
"},{"location":"changes_log/#20-05-2023","title":"20-05-2023","text":"Gi\u1edbi thi\u1ec7u
Python l\u00e0 ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh \u0111a d\u1ee5ng, m\u00e3 ngu\u1ed3n m\u1edf. Trong l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh, Python \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u (data analysis), x\u00e2y d\u1ef1ng chi\u1ebfn l\u01b0\u1ee3c giao d\u1ecbch, thi\u1ebft k\u1ebf bot giao d\u1ecbch t\u1ef1 \u0111\u1ed9ng gi\u00fap lo\u1ea1i b\u1ecf y\u1ebfu t\u1ed1 c\u1ea3m x\u00fac c\u1ee7a con ng\u01b0\u1eddi trong vi\u1ec7c ra quy\u1ebft \u0111\u1ecbnh \u0111\u1ea7u t\u01b0 chuy\u00ean nghi\u1ec7p. Python c\u0169ng l\u00e0 ng\u00f4n ng\u1eef ch\u00ednh s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i cho c\u00e1c d\u1ef1 \u00e1n khoa h\u1ecdc d\u1eef li\u1ec7u (data science) nh\u01b0 m\u00f4 h\u00ecnh m\u00e1y h\u1ecdc (ML), tr\u00ed tu\u1ec7 nh\u00e2n t\u1ea1o (AI).
"},{"location":"course/#khoa-hoc-ang-trien-khai","title":"Kh\u00f3a h\u1ecdc \u0111ang tri\u1ec3n khai","text":"Thinh Vu @ LEarn Anything m\u1edf Kh\u00f3a h\u1ecdc Ph\u00e2n t\u00edch d\u1eef li\u1ec7u & t\u1ea1o bot giao d\u1ecbch ch\u1ee9ng kho\u00e1n v\u1edbi Python \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf ri\u00eang cho trader/nh\u00e0 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n.
B\u1eaft \u0111\u1ea7u t\u1eeb Kh\u00f3a 5 (K5), ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e0o t\u1ea1o Python \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng theo ki\u1ec3u \"tutorial\" gi\u00fap b\u00ecnh d\u00e2n h\u00f3a Python trong l\u0129nh v\u1ef1c x\u1eed l\u00fd d\u1eef li\u1ec7u v\u00e0 \u1ee9ng d\u1ee5ng v\u00e0o thu\u1eadt to\u00e1n giao d\u1ecbch ch\u1ee9ng kho\u00e1n.
"},{"location":"course/#tai-sao-khoa-hoc-ang-quan-tam","title":"T\u1ea1i sao kh\u00f3a h\u1ecdc \u0111\u00e1ng quan t\u00e2m?","text":"Gi\u1edbi thi\u1ec7u
B\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc K6 v\u00e0 \u0111\u1ed3ng th\u1eddi xem video ghi h\u00ecnh kh\u00f3a h\u1ecdc hi\u1ec7n t\u1ea1i (K5) c\u0169ng nh\u01b0 tham gia bu\u1ed5i h\u1ecdc tr\u1ef1c ti\u1ebfp ngay khi \u0111\u0103ng k\u00fd m\u00e0 kh\u00f4ng ph\u00e1t sinh th\u00eam chi ph\u00ed.
Trao \u0111\u1ed5i v\u1edbi Th\u1ecbnh
"},{"location":"course/#ai-nen-tham-gia-khoa-hoc","title":"Ai n\u00ean tham gia kh\u00f3a h\u1ecdc?","text":""},{"location":"course/#nghe-nghiep","title":"Ngh\u1ec1 nghi\u1ec7p","text":"Ghi ch\u00fa
N\u1ed9i dung kh\u00f3a h\u1ecdc \u0111\u01b0\u1ee3c chia th\u00e0nh 6 ph\u1ea7n ch\u00ednh (module) v\u1edbi n\u1ed9i dung chi ti\u1ebft t\u1eebng module \u0111\u01b0\u1ee3c m\u00f4 t\u1ea3 d\u01b0\u1edbi \u0111\u00e2y. N\u1ed9i dung l\u00fd thuy\u1ebft c\u1ee7a ch\u01b0\u01a1ng tr\u00ecnh s\u1ebd \u0111\u01b0\u1ee3c k\u1ebft h\u1ee3p v\u1edbi c\u00e1c b\u00e0i h\u1ecdc th\u1ef1c h\u00e0nh v\u00e0 h\u01b0\u1edbng d\u1eabn th\u1ef1c t\u1ebf b\u00e1m s\u00e1t c\u00e1c b\u01b0\u1edbc tri\u1ec3n khai ph\u00e2n t\u00edch & giao d\u1ecbch th\u1ef1c t\u1ebf.
1: T\u1ed5ng qu\u00e1t2: Thu th\u1eadp d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n3: B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu4: Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c5: T\u1ed1i \u01b0u thu\u1eadt to\u00e1n6: \u0110\u00f3ng g\u00f3i ch\u01b0\u01a1ng tr\u00ecnh "},{"location":"course/#cau-hoi-thuong-gap-faqs","title":"C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p (FAQs)","text":"V\u00ec sao ch\u1ecdn Python cho ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n?Python \u0111em l\u1ea1i nhi\u1ec1u l\u1ee3i \u00edch trong th\u1ef1c t\u1ebf s\u1eed d\u1ee5ng, \u0111\u1ed1i v\u1edbi l\u0129nh v\u1ef1c ch\u1ee9ng kho\u00e1n/\u0111\u1ea7u t\u01b0 t\u00e0i ch\u00ednh th\u00ec Python c\u00f3 nh\u1eefng \u01b0u \u0111i\u1ec3m sau:
Macbook
, Windows
, Linux
hay b\u1ea5t c\u1ee9 thi\u1ebft b\u1ecb n\u00e0o hi\u1ec7n nay. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y Python tr\u00ean Cloud qua Google Colab, Kaglle ho\u1eb7c ch\u1ea1y tr\u00ean m\u00e1y t\u00ednh c\u1ee7a m\u00ecnh t\u00f9y \u00fd. K\u1ec3 c\u1ea3 d\u00f9ng m\u00e1y t\u00ednh b\u1ea3ng/\u0111i\u1ec7n tho\u1ea1i c\u0169ng c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n th\u00f4ng qua Cloud. Tr\u1ea3i nghi\u1ec7m tr\u00ean t\u1ea5t c\u1ea3 thi\u1ebft b\u1ecb \u0111\u1ec1u \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng. \u0110i\u1ec1u n\u00e0y c\u00e1c \u1ee9ng d\u1ee5ng truy\u1ec1n th\u1ed1ng nh\u01b0 Amibroker, Excel kh\u00f4ng l\u00e0m \u0111\u01b0\u1ee3c ho\u1eb7c t\u00ednh n\u0103ng b\u1ecb gi\u1edbi h\u1ea1n \u1edf m\u1ed9t s\u1ed1 thi\u1ebft b\u1ecb c\u1ee5 th\u1ec3. Amibroker ch\u1ec9 ch\u1ea1y tr\u00ean Windows. Excel c\u00f3 t\u00ednh n\u0103ng kh\u00e1c nhau t\u00f9y v\u00e0o h\u1ec7 \u0111i\u1ec1u h\u00e0nh, kh\u00f4ng h\u1ed7 tr\u1ee3 Linux.Kh\u00f3a h\u1ecdc ch\u1ecdn m\u00f4i tr\u01b0\u1eddng s\u1eed d\u1ee5ng Python ti\u00eau chu\u1ea9n l\u00e0 Google Colab tr\u00ean Cloud cho gi\u1ea3ng d\u1ea1y v\u00e0 th\u1ef1c h\u00e0nh. To\u00e0n b\u1ed9 gi\u00e1o tr\u00ecnh \u0111\u01b0\u1ee3c bi\u00ean so\u1ea1n v\u1edbi \u0111\u1ecbnh d\u1ea1ng file Colab Notebook gi\u00fap b\u1ea1n ch\u1ea1y l\u1ec7nh \u0111\u1ec3 th\u1ea5y k\u1ebft qu\u1ea3 ngay l\u1eadp t\u1ee9c. Anh/ch\u1ecb c\u00f3 th\u1ec3 xem h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng Google Colab to\u00e0n t\u1eadp \u0111\u01b0\u1ee3c Th\u1ecbnh chia s\u1ebb t\u1ea1i \u0111\u00e2y. Gi\u00e1o tr\u00ecnh kh\u00f3a h\u1ecdc tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab
Google Colab l\u00e0 g\u00ec? L\u00e0m sao \u0111\u1ec3 s\u1eed d\u1ee5ng?Google Colab l\u00e0 d\u1ecbch v\u1ee5 \u0111\u00e1m m\u00e2y c\u1ee7a Google ph\u1ee5c v\u1ee5 cho Khoa h\u1ecdc d\u1eef li\u1ec7u. Google Colab \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong c\u1ed9ng \u0111\u1ed3ng v\u1ec1 tr\u00ed th\u00f4ng minh nh\u00e2n t\u1ea1o (AI), m\u00e1y h\u1ecdc (machine learning). G\u1ea7n \u0111\u00e2y nh\u1ea5t v\u1edbi s\u1ef1 ra \u0111\u1eddi c\u1ee7a c\u00e1c m\u00f4 h\u00ecnh AI t\u1ea1o \u1ea3nh, b\u1ea1n c\u0169ng s\u1ebd nghe \u0111\u1ebfn vi\u1ec7c s\u1eed d\u1ee5ng Colab \u0111\u1ec3 ch\u1ea1y m\u00f4 h\u00ecnh Stable Diffusion v\u1edbi c\u00e1c b\u1ea1n l\u00e0m c\u00f4ng vi\u1ec7c thi\u1ebft k\u1ebf (designer). Google Colab cho ph\u00e9p b\u1ea1n s\u1eed d\u1ee5ng t\u00e0i nguy\u00ean ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed v\u1edbi b\u1ed9 nh\u1edb RAM cao v\u00e0 dung l\u01b0\u1ee3ng l\u01b0u tr\u1eef t\u1ea1m th\u1eddi \u0111\u1ee7 l\u1edbn \u0111\u1ec3 v\u1eadn h\u00e0nh c\u00e1c d\u1ef1 \u00e1n v\u1ec1 AI.
Trong khu\u00f4n kh\u1ed5 l\u1edbp h\u1ecdc Python, ch\u00fang ta s\u1eed d\u1ee5ng Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng Python th\u1ef1c h\u00e0nh b\u1edfi t\u00ednh ti\u1ec7n l\u1ee3i v\u00e0 t\u00ednh n\u0103ng \u0111a d\u1ea1ng. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng Colab AI \u0111\u1ec3 h\u1ed7 tr\u1ee3 l\u1eadp tr\u00ecnh nhanh ch\u00f3ng v\u00e0 ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed (c\u00f3 gi\u1edbi h\u1ea1n).
S\u1eed d\u1ee5ng v\u00e0 chia s\u1ebb file v\u1edbi Google Colab r\u1ea5t \u0111\u01a1n gi\u1ea3n, t\u01b0\u01a1ng t\u1ef1 c\u00e1ch b\u1ea1n s\u1eed d\u1ee5ng \u1ee9ng d\u1ee5ng b\u1ea3ng t\u00ednh (Sheets) hay t\u00e0i li\u1ec7u (Docs) c\u1ee7a Google. Ngo\u00e0i ra Colab cho ph\u00e9p b\u1ea1n k\u1ebft n\u1ed1i v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi d\u1eef li\u1ec7u l\u01b0u tr\u1eef trong Google Drive c\u0169ng nh\u01b0 d\u1ecbch v\u1ee5 Google Cloud c\u1ee7a b\u1ea1n d\u1ec5 d\u00e0ng.
T\u00f4i mu\u1ed1n \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc. C\u1ea7n th\u1ef1c hi\u1ec7n nh\u01b0 th\u1ebf n\u00e0o?\u0110\u1ec3 \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc, anh/ch\u1ecb vui l\u00f2ng trao \u0111\u1ed5i tr\u1ef1c ti\u1ebfp v\u1edbi Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c gi\u1ea3i \u0111\u00e1p chi ti\u1ebft v\u1ec1 th\u00f4ng tin h\u1ecdc ph\u00ed, ch\u01b0\u01a1ng tr\u00ecnh h\u1ecdc, l\u1ed9 tr\u00ecnh v\u00e0 b\u1ea5t k\u1ef3 c\u00e2u h\u1ecfi n\u00e0o.
Sau khi th\u1ed1ng nh\u1ea5t v\u1ec1 m\u1ee9c h\u1ecdc ph\u00ed, m\u1ee5c ti\u00eau v\u00e0 k\u1ebf ho\u1ea1ch h\u1ecdc t\u1eadp, anh/ch\u1ecb s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c bi\u1ec3u m\u1eabu \u0111\u0103ng k\u00fd qua Google. Anh ch\u1ecb s\u1ebd gi\u00fap Th\u1ecbnh chia s\u1ebb m\u1ed9t s\u1ed1 th\u00f4ng tin c\u01a1 b\u1ea3n \u0111\u1ec3 ti\u1ec7n giao ti\u1ebfp, li\u00ean l\u1ea1c v\u00e0 m\u1ee5c ti\u00eau h\u1ecdc t\u1eadp \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 trong qu\u00e1 tr\u00ecnh h\u1ecdc t\u1eadp m\u1ed9t c\u00e1ch s\u00e2u s\u00e1t nh\u1ea5t.
Th\u00f4ng tin email anh/ch\u1ecb chia s\u1ebb \u0111\u01b0\u1ee3c d\u00f9ng \u0111\u1ec3 t\u1ea1o t\u00e0i kho\u1ea3n qua trang web h\u1ecdc t\u1eadp Learn Anything cho ph\u00e9p anh/ch\u1ecb truy c\u1eadp t\u00e0i nguy\u00ean h\u1ecdc t\u1eadp tr\u1ef1c tuy\u1ebfn bao g\u1ed3m: video, gi\u00e1o tr\u00ecnh, b\u00e0i t\u1eadp v\u00e0 \u0111\u00e1p \u00e1n c\u00f9ng c\u00e1c t\u00e0i nguy\u00ean h\u1ecdc t\u1eadp kh\u00e1c.
Chat qua Messenger
M\u00f4i tr\u01b0\u1eddng h\u1ecdc t\u1eadp \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf nh\u01b0 th\u1ebf n\u00e0o?Kh\u00f4ng gian h\u1ecdc t\u1eadp \u0111\u01b0\u1ee3c chia th\u00e0nh c\u00e1c nh\u00f3m ch\u00ednh sau \u0111\u00e2y:
Nh\u00f3m Telegram cho t\u1eebng kh\u00f3a h\u1ecdc: S\u1eed d\u1ee5ng l\u00e0m k\u00eanh trao \u0111\u1ed5i ch\u00ednh th\u1ee9c cho c\u00e1c t\u01b0\u01a1ng t\u00e1c l\u1edbp h\u1ecdc, h\u1ecfi \u0111\u00e1p, th\u00f4ng b\u00e1o, vv. C\u00e1c t\u00ednh n\u0103ng nh\u1eafn tin c\u1ea3nh b\u00e1o trong khu\u00f4n kh\u1ed5 l\u1edbp h\u1ecdc c\u0169ng s\u1ebd \u0111\u01b0\u1ee3c h\u01b0\u1edbng d\u1eabn \u0111\u1ec3 \u00e1p d\u1ee5ng v\u1edbi Telegram b\u1edfi t\u00ednh m\u1edf v\u00e0 ti\u1ec7n l\u1ee3i c\u1ee7a n\u00f3.
Microsoft Teams l\u00e0 c\u00f4ng c\u1ee5 h\u1ed9i th\u1ea3o tr\u1ef1c tuy\u1ebfn s\u1eed d\u1ee5ng \u0111\u1ec3 tham gia l\u1edbp h\u1ecdc tr\u1ef1c tuy\u1ebfn m\u1ed7i ch\u1ee7 nh\u1eadt h\u00e0ng tu\u1ea7n. C\u00f4ng c\u1ee5 n\u00e0y t\u01b0\u01a1ng t\u1ef1 nh\u01b0 Zoom hay Google Meets m\u00e0 anh/ch\u1ecb \u0111\u00e3 bi\u1ebft. \u0110\u1ec3 tham gia h\u1ecdc, anh/ch\u1ecb c\u00f3 th\u1ec3 m\u1edf link ngay trong tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam ph\u1ea7n m\u1ec1m tr\u00ean m\u00e1y t\u00ednh.
Google Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng/c\u00f4ng c\u1ee5 th\u1ef1c h\u00e0nh Python ti\u00eau chu\u1ea9n c\u1ee7a l\u1edbp h\u1ecdc. T\u1ea5t c\u1ea3 t\u00e0i li\u1ec7u gi\u00e1o tr\u00ecnh Python chi ti\u1ebft d\u01b0\u1edbi d\u1ea1ng s\u00e1ch gi\u00e1o khoa \u0111\u01b0\u1ee3c bi\u00ean so\u1ea1n b\u1eb1ng \u0111\u1ecbnh d\u1ea1ng Colab Notebook gi\u00fap b\u1ea1n h\u1ecdc v\u00e0 th\u1ef1c h\u00e0nh \u0111\u01a1n gi\u1ea3n, d\u1ec5 hi\u1ec3u.
Kh\u00f3a h\u1ecdc tr\u1ef1c tuy\u1ebfn LEarn Anything: l\u00e0 n\u01a1i \u0111\u1ec3 anh/ch\u1ecb truy c\u1eadp c\u00e1c t\u00e0i nguy\u00ean kh\u00f3a h\u1ecdc nh\u01b0 slide b\u00e0i gi\u1ea3ng, gi\u00e1o tr\u00ecnh, video, code m\u1eabu, vv v\u00e0 xem l\u1ea1i video c\u00e1c bu\u1ed5i h\u1ecdc \u0111\u00e3 qua. \u0110\u1ed1i v\u1edbi anh/ch\u1ecb kh\u00f4ng c\u00f3 \u0111i\u1ec1u ki\u1ec7n tham gia h\u1ecdc ngay t\u1eeb \u0111\u1ea7u th\u00ec \u0111\u00e2y l\u00e0 n\u01a1i m\u00ecnh xem l\u1ea1i c\u00e1c video bu\u1ed5i h\u1ecdc \u0111\u00e3 qua v\u00e0 ch\u1ee7 \u0111\u1ed9ng th\u1eddi gian h\u1ecdc khi c\u00f3 th\u1ec3.
K\u00eanh Youtube LEarn Anything: l\u00e0 n\u01a1i Th\u1ecbnh chia s\u1ebb c\u00e1c h\u01b0\u1edbng d\u1eabn, minh h\u1ecda tr\u1ef1c ti\u1ebfp qua video gi\u00fap anh/ch\u1ecb n\u1eafm b\u1eaft c\u00e1c kh\u00e1i ni\u1ec7m v\u00e0 th\u1ef1c h\u00e0nh m\u1ed9t c\u00e1ch ch\u00ednh x\u00e1c, d\u1ec5 hi\u1ec3u. H\u00e3y b\u1ea5m n\u00fat theo d\u00f5i \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00e1c n\u1ed9i dung m\u1edbi nh\u1ea5t.
Github thinh-vu v\u00e0 vnstock-hq Th\u1ecbnh chia s\u1ebb c\u00e1c d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf, ch\u01b0\u01a1ng tr\u00ecnh Python v\u00e0 gi\u00fap h\u1ecdc vi\u00ean l\u00e0m quen v\u1edbi c\u00f4ng c\u1ee5 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n n\u00e0y khi l\u1eadp tr\u00ecnh.
M\u1eb7c \u0111\u1ecbnh t\u00e0i kho\u1ea3n h\u1ecdc t\u1eadp c\u1ee7a anh/ch\u1ecb c\u00f3 gi\u00e1 tr\u1ecb trong 1 n\u0103m khi \u0111\u01b0\u1ee3c t\u1ea1o. \u0110i\u1ec1u n\u00e0y c\u0169ng khuy\u1ebfn kh\u00edch anh/ch\u1ecb th\u1ef1c s\u1ef1 ch\u00fa t\u00e2m v\u00e0o khai th\u00e1c nh\u1eefng n\u1ed9i dung m\u00ecnh \u0111\u00e3 tr\u1ea3 ph\u00ed \u0111\u1ec3 s\u1edf h\u1eefu. Ki\u1ebfn th\u1ef1c th\u1ef1c s\u1ef1 h\u1eefu d\u1ee5ng khi \u0111i v\u00e0o th\u1ef1c t\u1ebf ch\u1ee9 kh\u00f4ng ph\u1ea3i l\u01b0u trong kho. Do \u0111\u00f3 d\u00f9 c\u00f3 th\u1eddi gian truy c\u1eadp v\u00f4 h\u1ea1n n\u00f3 c\u0169ng tr\u1edf n\u00ean v\u00f4 gi\u00e1 tr\u1ecb.
T\u00f9y ch\u00ednh s\u00e1ch c\u1ee7a kh\u00f3a h\u1ecdc theo t\u1eebng th\u1eddi k\u1ef3 m\u00e0 vi\u1ec7c n\u00e0y c\u00f3 th\u1ec3 thay \u0111\u1ed5i, tuy nhi\u00ean anh/ch\u1ecb c\u00f3 th\u1ec3 nh\u1eafn Th\u1ecbnh \u0111\u1ec3 y\u00eau c\u1ea7u xem l\u1ea1i n\u1ed9i dung n\u1ebfu c\u1ea7n thi\u1ebft m\u00e0 kh\u00f4ng ph\u00e1t sinh th\u00eam ph\u00ed.
L\u1edbp h\u1ecdc tr\u1ef1c tuy\u1ebfn th\u00ec vi\u1ec7c th\u1ef1c h\u00e0nh di\u1ec5n ra nh\u01b0 th\u1ebf n\u00e0o?Anh/ch\u1ecb \u0111\u01b0\u1ee3c c\u1ecd x\u00e1t v\u1edbi ki\u1ebfn th\u1ee9c th\u1ef1c t\u1ebf v\u00e0 l\u00fd thuy\u1ebft qua m\u1ed7i b\u00e0i gi\u1ea3ng m\u1ed7i bu\u1ed5i h\u1ecdc. B\u00e0i t\u1eadp th\u1ef1c h\u00e0nh \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang kh\u00f3a h\u1ecdc tr\u1ef1c tuy\u1ebfn theo s\u00e1t n\u1ed9i dung m\u1ed7i bu\u1ed5i h\u1ecdc.
Anh/ch\u1ecb c\u1ea7n d\u00e0nh th\u1eddi gian tr\u1ed1ng trong tu\u1ea7n gi\u1eefa 2 bu\u1ed5i h\u1ecdc \u0111\u1ec3 thao t\u00e1c th\u1ef1c h\u00e0nh v\u00e0 gi\u1ea3i quy\u1ebft c\u00e1c b\u00e0i t\u1eadp \u0111\u1ecbnh h\u01b0\u1edbng trong n\u1ed9i dung th\u1ef1c h\u00e0nh. Vi\u1ec7c t\u1ef1 l\u00e0m b\u00e0i t\u1eadp gi\u00fap anh ch\u1ecb v\u1ee1 ra nhi\u1ec1u \u0111i\u1ec1u so v\u1edbi ch\u1ec9 \u0111\u1ecdc l\u00fd thuy\u1ebft v\u00e0 th\u1ef1c s\u1ef1 bi\u1ebfn ki\u1ebfn th\u1ee9c tr\u1edf th\u00e0nh m\u1ed9t ph\u1ea7n c\u1ee7a m\u00ecnh.
Anh/ch\u1ecb s\u1ebd g\u1eedi l\u1ea1i ph\u1ea7n b\u00e0i t\u1eadp \u0111\u00e3 ho\u00e0n th\u00e0nh cho email c\u1ee7a Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c nh\u1eadn x\u00e9t v\u00e0 s\u1eeda b\u00e0i (n\u1ebfu c\u1ea7n thi\u1ebft). \u0110\u00e1p \u00e1n m\u1eabu c\u0169ng \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang kh\u00f3a h\u1ecdc \u0111\u1ec3 c\u1ea3 l\u1edbp c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 \u0111\u1ed1i chi\u1ebfu v\u1edbi c\u00e1ch l\u00e0m c\u1ee7a m\u00ecnh. Vi\u1ec7c xem b\u00e0i t\u1eadp th\u1ef1c h\u00e0nh c\u1ee7a anh/ch\u1ecb v\u00e0 nh\u1eadn x\u00e9t gi\u00fap Th\u1ecbnh n\u1eafm \u0111\u01b0\u1ee3c t\u00ecnh h\u00ecnh h\u1ecdc t\u1eadp v\u00e0 m\u1ee9c \u0111\u1ed9 hi\u1ec3u b\u00e0i c\u1ee7a anh/ch\u1ecb \u0111\u1ec3 h\u1ed7 tr\u1ee3. \u0110\u00e2y c\u0169ng l\u00e0 c\u00e1ch \"c\u1ea7m tay ch\u1ec9 vi\u1ec7c\" tuy kh\u00f4ng ng\u1ed3i c\u00f9ng nhau nh\u01b0ng t\u01b0 duy chung 1 h\u01b0\u1edbng r\u1ea5t hi\u1ec7u qu\u1ea3.
T\u00f4i mu\u1ed1n s\u1edf h\u1eefu ki\u1ebfn th\u1ee9c nhanh h\u01a1n, c\u00f3 c\u00e1ch n\u00e0o thay v\u00ec ph\u1ea3i tr\u1ea3i qua 2 th\u00e1ng r\u01b0\u1ee1i?Th\u1ecbnh r\u1ea5t vui khi nh\u1eadn \u0111\u01b0\u1ee3c th\u1eafc m\u1eafc n\u00e0y c\u1ee7a anh/ch\u1ecb. . L\u1ed9 tr\u00ecnh h\u1ecdc hi\u1ec7n t\u1ea1i tr\u1ea3i qua 10 bu\u1ed5i h\u1ecdc \u0111\u01b0\u1ee3c chia th\u00e0nh 10 tu\u1ea7n b\u1edfi l\u01b0\u1ee3ng ki\u1ebfn th\u1ee9c t\u01b0\u01a1ng \u0111\u1ed1i bao qu\u00e1t v\u00e0 \u0111\u1ee7 s\u00e2u \u0111\u1ec3 anh/ch\u1ecb s\u1edf h\u1eefu \u0111\u1ee7 ki\u1ebfn th\u1ee9c/k\u1ef9 n\u0103ng khi ho\u00e0n th\u00e0nh do \u0111\u00f3 1 bu\u1ed5i/tu\u1ea7n l\u00e0 ph\u00f9 h\u1ee3p theo kinh nghi\u1ec7m t\u1ed5 ch\u1ee9c l\u1edbp h\u1ecdc \u0111\u1ebfn hi\u1ec7n t\u1ea1i.
Anh ch\u1ecb c\u00f3 th\u1ec3 \u0111\u1ea9y nhanh t\u1ed1c \u0111\u1ed9 h\u1ecdc b\u1eb1ng c\u00e1ch y\u00eau c\u1ea7u Th\u1ecbnh m\u1edf truy c\u1eadp \u0111\u1ec3 xem video ghi h\u00ecnh c\u1ee7a c\u00e1c kh\u00f3a tr\u01b0\u1edbc n\u1ebfu c\u00f3 th\u1eddi gian v\u00e0 c\u00f3 b\u1eaft k\u1ecbp ki\u1ebfn th\u1ee9c t\u1ed1t.
\"Good things take time\" - Nh\u1eefng \u0111i\u1ec1u t\u1ed1t \u0111\u1eb9p th\u01b0\u1eddng c\u1ea7n nhi\u1ec1u th\u1eddi gian
Anh l\u1edbn tu\u1ed5i r\u1ed3i c\u00f3 tham gia h\u1ecdc \u0111\u01b0\u1ee3c kh\u00f4ng?Ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u1edbi Python kh\u00f4ng y\u00eau c\u1ea7u m\u1ee9c \u0111\u1ed9 chuy\u00ean nghi\u1ec7p cao nh\u01b0 l\u1eadp tr\u00ecnh \u1ee9ng d\u1ee5ng. Tuy nhi\u00ean \u0111\u1ec3 tr\u1edf n\u00ean th\u00e0nh th\u1ea1o v\u1eabn y\u00eau c\u1ea7u c\u00f3 nh\u1eefng ki\u1ebfn th\u1ee9c n\u1ec1n t\u1ed1t \u0111\u1eb7c bi\u1ec7t l\u00e0 l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh/ch\u1ee9ng kho\u00e1n trong kh\u00f3a h\u1ecdc n\u00e0y.
C\u00e1c ki\u1ebfn th\u1ee9c v\u1ec1 d\u1eef li\u1ec7u, l\u1eadp tr\u00ecnh \u0111\u1ec1u c\u00f3 th\u1ec3 h\u1ecdc v\u00e0 r\u00e8n luy\u1ec7n \u0111\u01b0\u1ee3c t\u00f9y t\u1ed1c \u0111\u1ed9 hi\u1ec3u c\u1ee7a m\u1ed7i ng\u01b0\u1eddi m\u00e0 y\u00eau c\u1ea7u th\u1eddi gian nghi\u00ean c\u1ee9u d\u00e0i hay ng\u1eafn.
N\u1ebfu anh quan t\u00e2m t\u1edbi kh\u00f3a h\u1ecdc v\u00e0 c\u00f2n e ng\u1ea1i v\u1ec1 \u0111\u1ed9 tu\u1ed5i v\u00e0 s\u1ee3 m\u00ecnh kh\u00f3 b\u1eaft k\u1ecbp th\u00ec h\u00e3y trao \u0111\u1ed5i tr\u1ef1c ti\u1ebfp v\u1edbi Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c t\u01b0 v\u1ea5n v\u00e0 hi\u1ec3u r\u00f5 m\u1ee9c \u0111\u1ed9 ph\u00f9 h\u1ee3p c\u1ee7a m\u00ecnh tr\u01b0\u1edbc khi \u0111\u0103ng k\u00fd kh\u00f3a h\u1ecdc.
Ch\u1ec9 c\u1ea7n anh/ch\u1ecb c\u00f3 tinh th\u1ea7n h\u1ecdc t\u1eadp b\u1ec1n b\u1ec9 v\u00e0 c\u1ed1 g\u1eafng, Th\u1ecbnh lu\u00f4n s\u1eb5n s\u00e0ng h\u1ed7 tr\u1ee3 v\u00e0 gi\u1ea3i th\u00edch \u0111\u1ec3 anh/ch\u1ecb b\u1eaft k\u1ecbp c\u00e1c ki\u1ebfn th\u1ee9c trong ph\u1ea1m vi l\u1edbp h\u1ecdc v\u00e0 \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf.
Th\u1ef1c t\u1ebf kh\u00f3a h\u1ecdc n\u00e0y \u0111\u00e3 ti\u1ebfp nh\u1eadn c\u00e1c anh l\u1edbn tu\u1ed5i, ng\u01b0\u1eddi l\u1edbn nh\u1ea5t sinh n\u0103m 1963 v\u00e0 nhi\u1ec1u U50 kh\u00e1c. C\u00e1c anh c\u00f3 kinh nghi\u1ec7m l\u00e0m vi\u1ec7c l\u00e2u n\u0103m, ti\u1ebfp c\u1eadn c\u00f4ng ngh\u1ec7 t\u1ed1t v\u00e0 cam k\u1ebft h\u1ecdc t\u1eadp m\u1ea1nh m\u1ebd n\u00ean ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 b\u1eaft k\u1ecbp ki\u1ebfn th\u1ee9c trong l\u1edbp h\u1ecdc.
Kh\u00f3a h\u1ecdc c\u00f3 c\u1ea5p ch\u1ee9ng ch\u1ec9 khi ho\u00e0n th\u00e0nh kh\u00f4ng?Kh\u00f3a h\u1ecdc ch\u00fa tr\u1ecdng v\u00e0o vi\u1ec7c ti\u1ebfp c\u1eadn v\u00e0 l\u00e0m quen v\u1edbi l\u1eadp tr\u00ecnh v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u b\u1eb1ng Python mang t\u00ednh \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf cao gi\u00fap \u0111\u1ea3m b\u1ea3o h\u1ecdc vi\u00ean c\u00f3 th\u1ec3 s\u1edf h\u1eefu k\u1ef9 n\u0103ng c\u1ea7n thi\u1ebft khi ho\u00e0n th\u00e0nh kh\u00f3a h\u1ecdc.
Kh\u00f3a h\u1ecdc ch\u1ec9 ghi nh\u1eadn s\u1ef1 tham gia v\u00e0 ho\u00e0n th\u00e0nh kh\u00f3a h\u1ecdc mang t\u00ednh kh\u00edch l\u1ec7 h\u01a1n l\u00e0 \u00fd ngh\u0129a v\u1ec1 h\u1ecdc thu\u1eadt hay ph\u00e1p l\u00fd c\u1ee7a t\u1ed5 ch\u1ee9c \u0111\u00e0o t\u1ea1o. N\u1ebfu b\u1ea1n th\u1ef1c s\u1ef1 c\u00f3 nhu c\u1ea7u \u0111\u01b0\u1ee3c c\u1ea5p ch\u1ee9ng ch\u1ec9 \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng cho qu\u00e1 tr\u00ecnh \u0111i l\u00e0m th\u00ec n\u00ean c\u00e2n nh\u1eafc y\u1ebfu t\u1ed1 n\u00e0y khi tham gia kh\u00f3a h\u1ecdc. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 tham gia kh\u00f3a h\u1ecdc \u0111\u1ec3 t\u0103ng t\u00ednh tr\u1ea3i nghi\u1ec7m th\u1ef1c t\u1ebf v\u00e0 b\u1ed3i d\u01b0\u1ee1ng ki\u1ebfn th\u1ee9c sau \u0111\u00f3 \u00f4n luy\u1ec7n thi ch\u1ee9ng ch\u1ec9 v\u1edbi ti\u00eau chu\u1ea9n ng\u00e0nh \u0111\u01b0\u1ee3c ch\u1ea5p nh\u1eadn r\u1ed9ng r\u00e3i th\u00f4ng qua Microsoft Learn, Coursera, Free Code Camp, vv.
"},{"location":"course/#chia-se-cua-hoc-vien","title":"Chia s\u1ebb c\u1ee7a h\u1ecdc vi\u00ean","text":"Thanh Nguy\u1ec5nD\u0169ng Nguy\u1ec5nThanh L\u00eaTr\u01b0\u1eddng H\u00e0Trang Nguy\u1ec5nChi VuBonnie \u0110inh
Thanh Nguy\u1ec5n @ Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n | HCM
Sau kho\u00e1 h\u1ecdc em c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u1ecbnh gi\u00e1 h\u00e0ng lo\u1ea1t, c\u00f3 th\u1ec3 bi\u1ebft \u0111\u01b0\u1ee3c c\u00f4ng ty n\u00e0o c\u00f3 c\u00e1i g\u00ec m\u1edbi. Bi\u1ebft c\u00e1i m\u1edbi n\u00e0y l\u00e0 theo ki\u1ec3u h\u00e0ng lo\u1ea1t. C\u00e1i \u0111\u00f3 m\u00e0 ng\u1ed3i soi t\u1eebng b\u00e1o c\u00e1o th\u00ec t\u1edbi t\u1ebft C\u00f4ng g\u00f4!
D\u0169ng Nguy\u1ec5n @ Nh\u00e0 qu\u1ea3n l\u00fd qu\u1ef9 | H\u00e0 N\u1ed9i
Ch\u1ec9 s\u1ee3 ko h\u1ecdc th\u00f4i, ch\u1ee9 c\u1ee9 \u0111i l\u00e0 s\u1ebd \u0111\u1ebfn. C\u00f3 em d\u1eabn \u0111\u01b0\u1eddng r\u1ed3i ch\u1ee9 a t\u1ef1 m\u00f2 m\u1eabm ch\u1eafc nhanh c\u0169ng ph\u1ea3i n\u1eeda n\u0103m. H\u1ecdc ph\u00ed cao ch\u00fat nh\u01b0ng anh th\u1ea5y em r\u1ea5t chuy\u00ean nghi\u1ec7p, l\u01b0\u1ee3ng ki\u1ebfn th\u1ee9c cung c\u1ea5p nhi\u1ec1u. C\u0169ng \u0111\u00e1ng gi\u00e1
Thanh L\u00ea @ Nh\u00e0 \u0111\u1ea7u t\u01b0 chuy\u00ean nghi\u1ec7p | H\u00e0 N\u1ed9i
Anh th\u1ea5y em h\u1ecdc kinh t\u1ebf, marketing ra r\u1ed3i l\u00e0m c\u00e1i n\u00e0y th\u00ec th\u1eadt \u0111am m\u00ea v\u00e0 th\u1ef1c t\u1ebf m\u1edbi c\u00f3 \u0111\u01b0\u1ee3c nh\u01b0 n\u00e0y, c\u00f3 g\u00ec em truy\u1ec1n \u0111am m\u00ea cho b\u1ea1n nh\u00e0 anh v\u1edbi nh\u00e9.
Anh Thanh sinh n\u0103m 1978 v\u00e0 con g\u00e1i 19 tu\u1ed5i \u0111ang h\u1ecdc n\u0103m nh\u1ea5t t\u1ea1i \u0110H Kinh T\u1ebf Qu\u1ed1c D\u00e2n, H\u00e0 N\u1ed9i c\u00f9ng tham gia kh\u00f3a h\u1ecdc. C\u00e2u chuy\u1ec7n v\u1ec1 anh \u0111\u01b0\u1ee3c chia s\u1ebb t\u00e0i b\u00e0i vi\u1ebft tr\u00ean trang c\u00e1 nh\u00e2n c\u1ee7a Th\u1ecbnh.
Tr\u01b0\u1eddng H\u00e0 @ Ng\u00e2n h\u00e0ng BIDV, H\u00e0 N\u1ed9i
Tr\u01b0\u1edbc m\u00ecnh c\u00f3 h\u1ecdc ch\u1ee9ng ch\u1ec9 qu\u1ea3n l\u00fd r\u1ee7i ro FRM, c\u00f3 kha kh\u00e1 \u00fd t\u01b0\u1edfng v\u1ec1 \u0111\u1ea7u t\u01b0 v\u00e0 trading nh\u01b0ng b\u1ecb v\u01b0\u1edbng m\u1ea5t ph\u1ea7n tri\u1ec3n khai gi\u1edd h\u1ecdc th\u00ec m\u1edbi t\u1ef1 tin \u0111\u1ec3 l\u00e0m \u0111\u01b0\u1ee3c.
Trang Nguy\u1ec5n - Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n, x\u00e2y d\u1ef1ng bot ph\u00e1i sinh, \u0110\u1ed3ng Nai
Th\u1ecbnh chia s\u1ebb r\u1ea5t nhi\u1ec7t t\u00ecnh chi ti\u1ebft v\u1ec1 c\u00e1ch requests webscaping. H\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 pandas. Nhi\u1ec7t t\u00ecnh h\u1ed7 tr\u1ee3 1 k\u00e8m 1. M\u00ecnh th\u00edch nh\u1ea5t c\u00e1ch request c\u00e0o d\u1eef li\u1ec7u tr\u00ean web v\u1ec1 python m\u00e0 Th\u1ecbnh chia s\u1ebb.
Chi V\u0169 - Marketing Solution @ Tiktok | HCM
C\u1ea3m \u01a1n Th\u1ecbnh nhi\u1ec1u, c\u00e1c ki\u1ebfn th\u1ee9c trong kho\u00e1 kh\u00e1 nhi\u1ec1u nh\u01b0ng \u0111\u01b0\u1ee3c s\u1eafp x\u1ebfp c\u00f4 \u0111\u1ecdng, t\u1edb h\u1ecdc xong th\u1ea5y t\u1ef1 tin khi nh\u00ecn d\u1eef li\u1ec7u h\u01a1n h\u1eb3n kaka.
Th\u00fay \u0110inh - Data Analayst @ Imerys, France
Con \u0111\u01b0\u1eddng chuy\u1ec3n ng\u00e0nh d\u00e0i gh\u00ea, m\u00e0 b\u01b0\u1edbc ch\u00e2n \u0111\u1ea7u ti\u00ean l\u00e0 v\u00e0o l\u1edbp Python c\u1ee7a Th\u1ecbnh :))
\u0110\u00e2y l\u00e0 chia s\u1ebb c\u1ee7a Th\u00fay v\u00e0 c\u0169ng l\u00e0 tin r\u1ea5t vui t\u1eeb b\u1ea1n v\u00ec \u0111\u00e3 ch\u1ecdn \u0111\u01b0\u1ee3c c\u00f4ng vi\u1ec7c m\u00ecnh y\u00eau th\u00edch t\u1ea1i Ph\u00e1p.
"},{"location":"disclaimer/","title":"Mi\u1ec5n tr\u1eeb tr\u00e1ch nhi\u1ec7m","text":""},{"location":"disclaimer/#oi-voi-nguoi-dung","title":"\u0110\u1ed1i v\u1edbi ng\u01b0\u1eddi d\u00f9ng","text":"Quan \u0111i\u1ec3m ph\u00e1t tri\u1ec3n s\u1ea3n ph\u1ea9m
vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n nh\u1eb1m m\u1ee5c \u0111\u00edch cung c\u1ea5p c\u00e1c c\u00f4ng c\u1ee5 nghi\u00ean c\u1ee9u \u0111\u01a1n gi\u1ea3n v\u00e0 mi\u1ec5n ph\u00ed, nh\u1eb1m gi\u00fap ng\u01b0\u1eddi nghi\u00ean c\u1ee9u ti\u1ebfp c\u1eadn v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c cung c\u1ea5p ph\u1ee5 thu\u1ed9c v\u00e0o ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u, do \u0111\u00f3, khi s\u1eed d\u1ee5ng, b\u1ea1n c\u1ea7n th\u1eadn tr\u1ecdng v\u00e0 c\u00e2n nh\u1eafc.
\ud83d\udcb0 Trong b\u1ea5t k\u1ef3 tr\u01b0\u1eddng h\u1ee3p n\u00e0o, ng\u01b0\u1eddi s\u1eed d\u1ee5ng ho\u00e0n to\u00e0n ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u1ec1 quy\u1ebft \u0111\u1ecbnh s\u1eed d\u1ee5ng d\u1eef li\u1ec7u tr\u00edch xu\u1ea5t t\u1eeb vnstock v\u00e0 ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u1edbi b\u1ea5t k\u1ef3 t\u1ed5n th\u1ea5t n\u00e0o c\u00f3 th\u1ec3 ph\u00e1t sinh. B\u1ea1n n\u00ean t\u1ef1 m\u00ecnh \u0111\u1ea3m b\u1ea3o t\u00ednh ch\u00ednh x\u00e1c v\u00e0 \u0111\u00e1ng tin c\u1eady c\u1ee7a d\u1eef li\u1ec7u tr\u01b0\u1edbc khi s\u1eed d\u1ee5ng ch\u00fang. M\u00e3 ngu\u1ed3n m\u1edf c\u1ee7a d\u1ef1 \u00e1n cho ph\u00e9p b\u1ea1n x\u00e1c th\u1ef1c th\u00f4ng tin v\u00e0 qu\u00e1 tr\u00ecnh bi\u1ebfn \u0111\u1ed5i \u0111\u1ec3 tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u cu\u1ed1i c\u00f9ng.
Vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n v\u00e0 quy\u1ebft \u0111\u1ecbnh \u0111\u1ea7u t\u01b0 l\u00e0 ho\u1ea1t \u0111\u1ed9ng c\u00f3 r\u1ee7i ro v\u00e0 c\u00f3 th\u1ec3 g\u00e2y m\u1ea5t m\u00e1t t\u00e0i s\u1ea3n. B\u1ea1n n\u00ean t\u00ecm ki\u1ebfm l\u1eddi khuy\u00ean t\u1eeb c\u00e1c chuy\u00ean gia t\u00e0i ch\u00ednh v\u00e0 tu\u00e2n th\u1ee7 c\u00e1c quy \u0111\u1ecbnh ph\u00e1p lu\u1eadt v\u1ec1 ch\u1ee9ng kho\u00e1n t\u1ea1i Vi\u1ec7t Nam v\u00e0 qu\u1ed1c t\u1ebf khi tham gia v\u00e0o ho\u1ea1t \u0111\u1ed9ng giao d\u1ecbch ch\u1ee9ng kho\u00e1n.
Xin l\u01b0u \u00fd r\u1eb1ng vnstock kh\u00f4ng ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 tr\u00e1ch nhi\u1ec7m ph\u00e1p l\u00fd n\u00e0o \u0111\u1ed1i v\u1edbi b\u1ea5t k\u1ef3 t\u1ed5n th\u1ea5t ho\u1eb7c thi\u1ec7t h\u1ea1i n\u00e0o ph\u00e1t sinh t\u1eeb vi\u1ec7c s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y.
Vi\u1ec7c truy xu\u1ea5t d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t th\u00f4ng qua c\u00e1c v\u00f2ng l\u1eb7p ho\u1eb7c ch\u01b0\u01a1ng tr\u00ecnh g\u1eedi y\u00eau c\u1ea7u (request) h\u00e0ng lo\u1ea1t trong th\u1eddi gian ng\u1eafn \u0111\u1ebfn c\u01a1 s\u1edf d\u1eef li\u1ec7u c\u00f9a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u kh\u00f4ng \u0111\u01b0\u1ee3c khuy\u1ebfn kh\u00edch. Ng\u01b0\u1eddi d\u00f9ng c\u1ea7n \u00fd th\u1ee9c \u0111\u01b0\u1ee3c h\u00e0nh \u0111\u1ed9ng c\u1ee7a m\u00ecnh \u0111\u1ec3 tr\u00e1nh g\u00e2y t\u1ed5n th\u1ea5t \u0111\u1ebfn h\u1ec7 th\u1ed1ng c\u1ee7a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u v\u00e0 li\u00ean quan \u0111\u1ebfn c\u00e1c r\u1ee7i ro ph\u00e1p l\u00fd li\u00ean quan, b\u1edfi ranh gi\u1edbi c\u1ee7a vi\u1ec7c truy c\u1eadp d\u1eef li\u1ec7u v\u00e0 t\u1ea1o ra m\u1ed9t cu\u1ed9c t\u1ea5n c\u00f4ng t\u1eeb ch\u1ed1i truy c\u1eadp t\u1edbi m\u00e1y ch\u1ee7 c\u1ee7a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u l\u00e0 t\u01b0\u01a1ng \u0111\u1ed1i mong manh.
"},{"location":"disclaimer/#oi-voi-cong-ty-chung-khoan-nguon-cap-du-lieu","title":"\u0110\u1ed1i v\u1edbi c\u00f4ng ty ch\u1ee9ng kho\u00e1n, ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u","text":"Quan \u0111i\u1ec3m thi\u1ebft k\u1ebf
\ud83d\udc31\u200d\ud83d\udc64 vnstock \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf ho\u00e0n to\u00e0n cho m\u1ee5c \u0111\u00edch ph\u00e2n t\u00edch v\u00e0 th\u1ef1c h\u00e0nh nghi\u00ean c\u1ee9u \u0111\u1ea7u t\u01b0. M\u1ecdi h\u00ecnh th\u1ee9c s\u1eed d\u1ee5ng kh\u00f4ng \u0111\u00fang m\u1ee5c \u0111\u00edch ho\u1eb7c vi\u1ec7c s\u1eed d\u1ee5ng tr\u00e1i ph\u00e9p th\u01b0 vi\u1ec7n v\u1edbi m\u1ee5c \u0111\u00edch x\u1ea5u nh\u01b0 t\u1ea5n c\u00f4ng public API hay g\u00e2y h\u1ea1i cho h\u1ec7 th\u1ed1ng th\u00f4ng qua t\u1eeb ch\u1ed1i truy c\u1eadp ho\u1eb7c c\u00e1c h\u00e0nh \u0111\u1ed9ng t\u01b0\u01a1ng t\u1ef1, ho\u00e0n to\u00e0n n\u1eb1m ngo\u00e0i ph\u1ea1m vi s\u1eed d\u1ee5ng d\u1ef1 \u0111\u1ecbnh v\u00e0 kh\u00f4ng thu\u1ed9c tr\u00e1ch nhi\u1ec7m c\u1ee7a nh\u00f3m ph\u00e1t tri\u1ec3n.
Nh\u1eadn th\u1ee9c \u0111\u01b0\u1ee3c nh\u1eefng r\u1ee7i ro h\u1ec7 th\u1ed1ng ti\u1ec1m t\u00e0ng, vnstock ch\u1ec9 ch\u00ednh th\u1ee9c cung c\u1ea5p c\u00e1c h\u00e0m truy xu\u1ea5t d\u1eef li\u1ec7u ri\u00eang l\u1ebb, vi\u1ec7c s\u1eed d\u1ee5ng k\u1ebft h\u1ee3p c\u00e1c h\u00e0m \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t g\u00e2y t\u1ed5n th\u1ea5t \u0111\u1ebfn h\u1ec7 th\u1ed1ng c\u1ee7a c\u00f4ng ty ch\u1ee9ng kho\u00e1n/ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u n\u1eb1m ngo\u00e0i ph\u1ea1m vi ch\u00fang t\u00f4i c\u00f3 th\u1ec3 ki\u1ec3m so\u00e1t.
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/","title":"Tr\u00edch d\u1eabn & gi\u1ea5y ph\u00e9p","text":""},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#trich-dan","title":"Tr\u00edch d\u1eabn","text":"Khi b\u1ea1n s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m vnstock trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh, h\u00e3y tu\u00e2n th\u1ee7 c\u00e1c h\u01b0\u1edbng d\u1eabn v\u1ec1 Tr\u00edch d\u1eabn (Cite) d\u01b0\u1edbi \u0111\u00e2y:
N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng d\u1eef li\u1ec7u ho\u1eb7c m\u00e3 ngu\u1ed3n c\u1ee7a Vnstock trong d\u1ef1 \u00e1n/b\u00e0i vi\u1ebft/video c\u1ee7a m\u00ecnh, xin vui l\u00f2ng cung c\u1ea5p tr\u00edch d\u1eabn (cite) t\u1edbi d\u1ef1 \u00e1n Vnstock. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 v\u00ed d\u1ee5 tr\u00edch d\u1eabn m\u1eabu:
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c l\u1ea5y t\u1eeb Vnstock - g\u00f3i ph\u1ea7n m\u1ec1m Python ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam. (thinh-vu @ Github, Copyright (c) 2022).\n
Tr\u00edch d\u1eabn cho m\u00e3 ngu\u1ed3n:
M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c l\u1ea5y t\u1eeb Vnstock - g\u00f3i ph\u1ea7n m\u1ec1m Python ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam. (thinh-vu @ Github, Copyright (c) 2022).\n
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#giay-phep","title":"Gi\u1ea5y ph\u00e9p","text":"Vnstock \u0111\u01b0\u1ee3c c\u1ea5p ph\u00e9p theo Gi\u1ea5y ph\u00e9p MIT. N\u1ed9i dung c\u1ee7a gi\u1ea5y ph\u00e9p nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y, v\u00e0 th\u1ec3 hi\u1ec7n trong file LICENSE.
Khi s\u1eed d\u1ee5ng Vnstock trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh, b\u1ea1n ph\u1ea3i tu\u00e2n th\u1ee7 v\u00e0 gi\u1eef nguy\u00ean gi\u1ea5y ph\u00e9p MIT c\u1ee7a Vnstock. \u0110\u1ed3ng th\u1eddi, h\u00e3y ch\u1eafc ch\u1eafn r\u1eb1ng b\u1ea1n \u0111\u00e3 bao g\u1ed3m t\u00ean t\u00e1c gi\u1ea3 v\u00e0 gi\u1ea5y ph\u00e9p trong d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n.
L\u01b0u \u00fd: Vnstock l\u00e0 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf, do \u0111\u00f3 vi\u1ec7c tu\u00e2n th\u1ee7 gi\u1ea5y ph\u00e9p v\u00e0 tr\u00edch d\u1eabn \u0111\u00f3ng vai tr\u00f2 quan tr\u1ecdng trong vi\u1ec7c h\u1ed7 tr\u1ee3 v\u00e0 duy tr\u00ec c\u1ed9ng \u0111\u1ed3ng ngu\u1ed3n m\u1edf.
C\u1ea3m \u01a1n b\u1ea1n \u0111\u00e3 s\u1eed d\u1ee5ng Vnstock v\u00e0 tu\u00e2n th\u1ee7 c\u00e1c h\u01b0\u1edbng d\u1eabn Tr\u00edch d\u1eabn v\u00e0 Gi\u1ea5y ph\u00e9p n\u00e0y. N\u1ebfu b\u1ea1n c\u00f3 b\u1ea5t k\u1ef3 c\u00e2u h\u1ecfi ho\u1eb7c g\u00f3p \u00fd n\u00e0o, xin vui l\u00f2ng li\u00ean h\u1ec7 v\u1edbi t\u00f4i qua m\u1ee5c Th\u1ea3o lu\u1eadn c\u1ee7a repo Github n\u00e0y ho\u1eb7c nh\u1eafn tin tr\u1ef1c ti\u1ebfp.
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#tieng-viet","title":"Ti\u1ebfng Vi\u1ec7t","text":"B\u1ea3n quy\u1ec1n (c) 2022 Thinh Vu | thinh-vu @ Github | MIT\n\n\u0110\u01b0\u1ee3c c\u1ea5p ph\u00e9p theo quy\u1ec1n t\u1ef1 do, mi\u1ec5n ph\u00ed, cho b\u1ea5t k\u1ef3 c\u00e1 nh\u00e2n n\u00e0o nh\u1eadn \u0111\u01b0\u1ee3c m\u1ed9t b\u1ea3n sao c\u1ee7a ph\u1ea7n m\u1ec1m n\u00e0y v\u00e0 c\u00e1c t\u1ec7p t\u00e0i li\u1ec7u li\u00ean quan (g\u1ecdi chung l\u00e0 \"Ph\u1ea7n m\u1ec1m\"), \u0111\u1ec3 s\u1eed d\u1ee5ng Ph\u1ea7n m\u1ec1m m\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 h\u1ea1n ch\u1ebf n\u00e0o, bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n quy\u1ec1n s\u1eed d\u1ee5ng, sao ch\u00e9p, s\u1eeda \u0111\u1ed5i, h\u1ee3p nh\u1ea5t, xu\u1ea5t b\u1ea3n, ph\u00e2n ph\u1ed1i, c\u1ea5p ph\u00e9p l\u1ea1i v\u00e0/ho\u1eb7c b\u00e1n c\u00e1c b\u1ea3n sao c\u1ee7a Ph\u1ea7n m\u1ec1m, v\u00e0 cho ph\u00e9p nh\u1eefng ng\u01b0\u1eddi nh\u1eadn Ph\u1ea7n m\u1ec1m \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o Ph\u1ea7n m\u1ec1m n\u00e0y, tu\u00e2n th\u1ee7 c\u00e1c \u0111i\u1ec1u ki\u1ec7n sau \u0111\u00e2y:\n\nTh\u00f4ng b\u00e1o b\u1ea3n quy\u1ec1n tr\u00ean v\u00e0 th\u00f4ng b\u00e1o gi\u1ea5y ph\u00e9p n\u00e0y ph\u1ea3i \u0111\u01b0\u1ee3c bao g\u1ed3m trong t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n sao ho\u1eb7c ph\u1ea7n quan tr\u1ecdng c\u1ee7a Ph\u1ea7n m\u1ec1m.\n\nPH\u1ea6N M\u1ec0M \u0110\u01af\u1ee2C CUNG C\u1ea4P \"NGUY\u00caN B\u1ea2N\", KH\u00d4NG C\u00d3 B\u1ea4T K\u1ef2 H\u00ccNH TH\u1ee8C B\u1ea2O \u0110\u1ea2M N\u00c0O, BAO G\u1ed2M NH\u01afNG KH\u00d4NG GI\u1edaI H\u1ea0N \u0110\u1ebeN S\u1ef0 B\u1ea2O \u0110\u1ea2M V\u1ec0 CH\u1ea4T L\u01af\u1ee2NG KINH DOANH, PH\u00d9 H\u1ee2P V\u1edaI M\u1ee4C \u0110\u00cdCH C\u1ee4 TH\u1ec2 V\u00c0 VI PH\u1ea0M QUY\u1ec0N S\u1ede H\u1eeeU. TRONG M\u1eccI TR\u01af\u1edcNG H\u1ee2P, T\u00c1C GI\u1ea2 HO\u1eb6C CH\u1ee6 S\u1ede H\u1eeeU B\u1ea2N QUY\u1ec0N KH\u00d4NG CH\u1ecaU TR\u00c1CH NHI\u1ec6M \u0110\u1ed0I V\u1edaI B\u1ea4T K\u1ef2 Y\u00caU C\u1ea6U B\u1ed2I TH\u01af\u1edcNG, THI\u1ec6T H\u1ea0I HO\u1eb6C TR\u00c1CH NHI\u1ec6M PH\u00c1P L\u00dd N\u00c0O PH\u00c1T SINH T\u1eea HO\u1eb6C LI\u00caN QUAN \u0110\u1ebeN S\u1eec D\u1ee4NG HO\u1eb6C HI\u1ec6N H\u1eeeU C\u1ee6A PH\u1ea6N M\u1ec0M.\n
Xin c\u1ea3m \u01a1n v\u00e0 ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#english","title":"English","text":"Copyright (c) 2022 Thinh Vu | thinh-vu @ Github\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n
"},{"location":"assets/templates/Button/","title":"Button","text":"Download
"},{"location":"assets/templates/Photo%20layout/","title":"Photo layout","text":"\u1ea2nh + m\u00f4 t\u1ea3 + CTA: C\u0103n l\u1ec1 tr\u00e1i, r\u1ed9ng 600px
V\u0103n b\u1ea3n m\u00f4 t\u1ea3
CTA c\u1ee7a b\u1ea1n
Image caption"},{"location":"assets/templates/Social%20link/","title":"Social link","text":"
Website: http://learn-anything.vn Youtube: https://www.youtube.com/@learn_anything_az?sub_confirmation=1 Fanpage: https://www.facebook.com/learn.anything.az
"},{"location":"assets/templates/Youtube%20Video%20embed/","title":"Youtube Video embed","text":""},{"location":"assets/templates/announcement/","title":"Announcement","text":"Ch\u00e8n \u0111o\u1ea1n code sau v\u00e0o cu\u1ed1i trang docs\\docs\\material\\overrides\\main.html
-sau d\u00f2ng 10 \u0111\u1ec3 hi\u1ec3n th\u1ecb banner th\u00f4ng b\u00e1o.
{% block announce %}
{% endblock %}
"},{"location":"assets/templates/new-post/","title":"New post","text":"date: {{date}} title: {{title}} alias: {{title}} description: description goes here tags: - example categories: - example authors: [thinh-vu] draft: false links: - setup/setting-up-a-blog.md readtime: 10
"},{"location":"assets/templates/substack%20subscribe/","title":"Substack subscribe","text":"\u0110\u1ec3 theo d\u00f5i nh\u1eefng n\u1ed9i dung \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt m\u1edbi nh\u1ea5t c\u1ee7a LEarn Anything, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ec3 l\u1ea1i email \u0111\u1ec3 nh\u1eadn th\u00f4ng b\u00e1o qua Substack nh\u00e9.
"},{"location":"blog/","title":"Ki\u1ebfn th\u1ee9c","text":""},{"location":"blog/category/how-to/","title":"H\u01b0\u1edbng d\u1eabn","text":"\u0110\u00e2y l\u00e0 d\u00f2ng ch\u1eef th\u1ee9 hai
"},{"location":"blog/category/knowledge/","title":"Ki\u1ebfn th\u1ee9c","text":"\u0110\u00e2y l\u00e0 d\u00f2ng ch\u1eef \u0111\u1ea7u ti\u00ean
"},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/","title":"Thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u Vnstock s\u1eed d\u1ee5ng Mkdocs Matterial","text":"V\u00ec sao c\u00f3 b\u00e0i vi\u1ebft n\u00e0y?
Ghi ch\u00fa v\u1ec1 c\u00e1c thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u v\u1edbi Mkdocs Matterial gi\u00fap c\u00e1c b\u1ea1n \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n v\u00e0 t\u00e0i li\u1ec7u cho d\u1ef1 \u00e1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng c\u1ea5u h\u00ecnh m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh c\u1ee7a m\u00ecnh v\u00e0 xem tr\u01b0\u1edbc n\u1ed9i dung s\u1ebd chia s\u1ebb tr\u00ean trang t\u00e0i li\u1ec7u vnstock. Ho\u1eb7c \u0111\u01a1n gi\u1ea3n l\u00e0 b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng MKDocs t\u01b0\u01a1ng t\u1ef1 vnstocho m\u1ee5c \u0111\u00edch c\u00e1 nh\u00e2n c\u1ee7a m\u00ecnh.
","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cai-at-moi-truong","title":"C\u00e0i \u0111\u1eb7t m\u00f4i tr\u01b0\u1eddng","text":"","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cai-at-python","title":"C\u00e0i \u0111\u1eb7t Python","text":"MKDocs ch\u1ea1y b\u1eb1ng ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python. H\u00e3y \u0111\u1ea3m b\u1ea3o r\u1eb1ng thi\u1ebft b\u1ecb b\u1ea1n \u0111ang d\u00f9ng \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t Python.
Th\u01b0 m\u1ee5c MKDocs c\u1ee7a vnstock \u0111\u01b0\u1ee3c \u0111\u1eb7t t\u1ea1i th\u01b0 m\u1ee5c vnstock/docs
c\u1ee7a d\u1ef1 \u00e1n.
\u0110\u1ec3 c\u00e0i \u0111\u1eb7t c\u00e1c g\u00f3i ph\u1ee5 thu\u1ed9c c\u1ea7n thi\u1ebft \u0111\u1ec3 ch\u1ea1y th\u1eed v\u00e0 xem tr\u01b0\u1edbc trang t\u00e0i li\u1ec7u, b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc sau:
/vnstock/docs
. B\u1ea1n c\u1ea7n copy/paste \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c t\u01b0\u01a1ng \u1ee9ng tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n.pip install -r requirements.txt
C\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t s\u1ebd \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n trong kho\u1ea3ng 30s. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u n\u00e2ng c\u1ea5p pip
tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh tr\u00ean n\u1ebfu pip \u0111\u00e3 ra m\u1eaft phi\u00ean b\u1ea3n m\u1edbi.
Gi\u1edbi thi\u1ec7u
T\u00ednh n\u0103ng xem tr\u01b0\u1edbc (live preview) cho ph\u00e9p b\u1ea1n xem c\u00e1c thay \u0111\u1ed5i th\u1ec3 hi\u1ec7n tr\u1ef1c ti\u1ebfp qua tr\u00ecnh duy\u1ec7t web t\u1eeb m\u00f4i tr\u01b0\u1eddng localhost m\u1ed7i khi b\u1ea1n th\u1ef1c hi\u1ec7n thay \u0111\u1ed5i v\u1edbi c\u1ea5u h\u00ecnh v\u00e0 n\u1ed9i dung trang t\u00e0i li\u1ec7u. Vi\u1ec7c n\u00e0y cho ph\u00e9p b\u1ea1n ph\u00e1t hi\u1ec7n ra l\u1ed7i v\u00e0 t\u00f9y ch\u1ec9nh m\u1ed9t c\u00e1ch nhanh ch\u00f3ng thay v\u00ec ph\u1ea3i chia s\u1ebb c\u00f4ng khai c\u00e1c thay \u0111\u1ed5i \u0111\u1ec3 xem.
vnstock/docs
, ch\u1ea1y l\u1ec7nh sau mkdocs serve
http://127.0.0.1:8000/
\u0111\u1ec3 xem trang t\u00e0i li\u1ec7u.Giao di\u1ec7n l\u00e0m vi\u1ec7c v\u1edbi MKDocs t\u1eeb Github Codespace","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cau-truc-trang-tai-lieu","title":"C\u1ea5u tr\u00fac trang t\u00e0i li\u1ec7u","text":"
Gi\u1edbi thi\u1ec7u
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u1ea5u tr\u00fac c\u00e2y th\u01b0 m\u1ee5c c\u1ee7a trang t\u00e0i li\u1ec7u Vnstock t\u01b0\u01a1ng \u1ee9ng v\u1edbi c\u00e1c m\u1ee5c tr\u00ean thanh \u0111i\u1ec1u h\u01b0\u1edbng v\u00e0 m\u00f4 t\u1ea3 n\u1ed9i dung chi ti\u1ebft \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 hi\u1ec3u \u0111\u01b0\u1ee3c \u0111\u1ec3 b\u1eaft \u0111\u1ea7u d\u1ec5 d\u00e0ng.
docs/\n\u251c\u2500start/\n\u2502 \u251c\u2500tai-nguyen-quan-trong-vnstock-website.md\n\u2502 \u251c\u2500huong-dan-su-dung-nhanh-vnstock.md\n\u2502 \u2514\u2500huong-dan-cai-dat-vnstock-python.md\n\u251c\u2500functions/\n\u2502 \u251c\u2500fundamental.md\n\u2502 \u251c\u2500market.md\n\u2502 \u251c\u2500ratio.md\n\u2502 \u251c\u2500listing.md\n\u2502 \u251c\u2500chart.md\n\u2502 \u251c\u2500rating.md\n\u2502 \u251c\u2500financial.md\n\u2502 \u251c\u2500export.md\n\u2502 \u251c\u2500screener.md\n\u2502 \u251c\u2500funds.md\n\u2502 \u251c\u2500comparison.md\n\u2502 \u251c\u2500technical.md\n\u2502 \u2514\u2500evaluation.md\n\u251c\u2500integrate/\n\u2502 \u251c\u2500huggingface.md\n\u2502 \u251c\u2500messaging.md\n\u2502 \u251c\u2500dnse_api.md\n\u2502 \u251c\u2500backtesting.md\n\u2502 \u251c\u2500ta_lib.md\n\u2502 \u251c\u2500web_app.md\n\u2502 \u251c\u2500google_sheets.md\n\u2502 \u251c\u2500pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban.md\n\u2502 \u251c\u2500amibroker.md\n\u2502 \u2514\u2500ssi_fast_connect_api.md\n\u251c\u2500insiders-program/\n\u2502 \u2514\u2500gioi-thieu-chuong-trinh-vnstock-insiders-program.md\n\u251c\u2500community/\n\u2502 \u251c\u2500contribute.md\n\u2502 \u251c\u2500tai-tro-du-an-vnstock.md\n\u2502 \u251c\u2500support.md\n\u2502 \u251c\u2500vnstock-contributors-thanh-vien-tich-cuc.md\n\u2502 \u251c\u2500feedback.md\n\u2502 \u251c\u2500join.md\n\u2502 \u2514\u2500lan-toa-trai-nghiem-voi-vnstock.md\n\u2514\u2500faq/\n\u2502 \u251c\u2500feature.md\n\u2502 \u251c\u2500ung-ho-du-an-vnstock.md\n\u2502 \u251c\u2500community.md\n\u2502 \u2514\u2500vnstock-ho-tro-nguoi-dung.md\n\u251c\u2500changes_log.md\n\u251c\u2500course.md\n\u251c\u2500trich-dan-va-giay-phep-su-dung-vnstock.md\n\u2514\u2500disclaimer.md\n\u251c\u2500assets/\n\u2502 \u2514\u2500images/\n\u251c\u2500material/\n\u2502 \u2514\u2500overrides/\n\u251c\u2500stylesheets/\n\u2502 \u2514\u2500extra.css\n\u251c\u2500requirements.txt\n
","tags":["blog"]},{"location":"community/contribute/","title":"\u0110\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n","text":"L\u1eddi n\u00f3i \u0111\u1ea7u
C\u00e1m \u01a1n b\u1ea1n \u0111\u00e3 quan t\u00e2m \u0111\u1ebfn vi\u1ec7c \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho d\u1ef1 \u00e1n Vnstock. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn nhi\u1ec1u h\u00ecnh th\u1ee9c \u0111\u00f3ng g\u00f3p kh\u00e1c nhau, trong \u0111\u00f3 bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n c\u00e1c vi\u1ec7c nh\u01b0 x\u00e2y d\u1ef1ng v\u00e0 c\u1ea3i ti\u1ebfn m\u00e3 ngu\u1ed3n ho\u1eb7c d\u1ecbch t\u00e0i li\u1ec7u c\u1ee7a d\u1ef1 \u00e1n.
"},{"location":"community/contribute/#triet-ly-thiet-ke","title":"Tri\u1ebft l\u00fd thi\u1ebft k\u1ebf","text":"H\u1ea7u h\u1ebft m\u00e3 ngu\u1ed3n Vnstock cho \u0111\u1ebfn th\u1eddi \u0111i\u1ec3m 11/2023 \u0111\u1ec1u do m\u1ed9t m\u00ecnh t\u00e1c gi\u1ea3 ph\u00e1t tri\u1ec3n v\u00e0 th\u1ef1c s\u1ef1 \u0111\u00e2y l\u00e0 m\u1ed9t n\u1ed7 l\u1ef1c r\u1ea5t l\u1edbn v\u1edbi kh\u1ed1i l\u01b0\u1ee3ng c\u00f4ng vi\u1ec7c kh\u1ed5ng l\u1ed3. Nh\u1eb1m t\u1ed1i \u01b0u h\u00f3a ngu\u1ed3n l\u1ef1c v\u00e0 t\u1eadp trung v\u00e0o nh\u1eefng \u0111i\u1ec1u c\u00f3 gi\u00e1 tr\u1ecb, nh\u1eefng \u01b0u ti\u00ean v\u00e0 tri\u1ebft l\u00fd thi\u1ebft k\u1ebf Vnstock \u0111\u01b0\u1ee3c t\u00f4i s\u1eed d\u1ee5ng nh\u01b0 sau:
B\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p t\u00ednh n\u0103ng m\u00ecnh c\u1ea3m th\u1ea5y c\u1ea7n thi\u1ebft ho\u1eb7c ph\u00f9 h\u1ee3p v\u1edbi nh\u1eefng g\u00ec vnstock hi\u1ec7n c\u00f3. Vnstock kh\u00f4ng ch\u1ec9 d\u1eebng l\u1ea1i \u1edf m\u1ed9t g\u00f3i ph\u1ea7n m\u1ec1m truy xu\u1ea5t d\u1eef li\u1ec7u hay ch\u1ec9 gi\u1edbi h\u1ea1n v\u1edbi ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u00e0 m\u1ee5c ti\u00eau l\u1edbn nh\u1ea5t l\u00e0 ph\u1ee5c v\u1ee5 ng\u01b0\u1eddi Vi\u1ec7t, v\u00e0 do ng\u01b0\u1eddi Vi\u1ec7t ph\u00e1t tri\u1ec3n.
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c nh\u00f3m th\u00f4ng tin/t\u00ednh n\u0103ng b\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o \u0111\u1ec3 ph\u00e1t tri\u1ec3n.
"},{"location":"community/contribute/#truy-xuat-du-lieu","title":"Truy xu\u1ea5t d\u1eef li\u1ec7u","text":"T\u00f4i tin l\u00e0 t\u1edbi \u0111\u00e2y, b\u1ea1n \u0111\u00e3 c\u00f3 \u0111\u1ee7 th\u00f4ng tin \u0111\u1ec3 b\u1eaft \u0111\u1ea7u h\u00e0nh tr\u00ecnh code d\u1ea1o c\u00f9ng Vnstock. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 nh\u1eefng h\u01b0\u1edbng d\u1eabn gi\u00fap b\u1ea1n b\u1eaft \u0111\u1ea7u d\u1ec5 d\u00e0ng h\u01a1n.
beta
\u0111\u1ec3 y\u00eau c\u1ea7u duy\u1ec7t v\u00e0 c\u1eadp nh\u1eadt m\u00e3 ngu\u1ed3n khi c\u00f4ng vi\u1ec7c ho\u00e0n th\u00e0nh. Nh\u1eefng thay \u0111\u1ed5i do b\u1ea1n \u0111\u00f3ng g\u00f3p s\u1ebd \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean nh\u00e1nh beta
\u0111\u1ec3 th\u1eed nghi\u1ec7m, sau \u0111\u00f3 ph\u00e1t h\u00e0nh ch\u00ednh th\u1ee9c trong phi\u00ean b\u1ea3n ti\u1ebfp theo c\u1ee7a vnstock tr\u00ean Pypi.org c\u00f9ng nh\u1eefng c\u1eadp nh\u1eadt c\u1ee7a t\u00e1c gi\u1ea3.C\u00e1c trao \u0111\u1ed5i v\u1edbi t\u00e1c gi\u1ea3 trong vi\u1ec7c l\u1eadp tr\u00ecnh v\u00e0 \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho d\u1ef1 \u00e1n Vnstock, b\u1ea1n vui l\u00f2ng s\u1eed d\u1ee5ng m\u1ed9t trong c\u00e1c t\u00f9y ch\u1ecdn sau.
T\u00f4i h\u01b0\u1edbng \u0111\u1ebfn m\u1ed9t m\u00f4i tr\u01b0\u1eddng trao \u0111\u1ed5i th\u00e2n thi\u1ec7n, t\u00edch c\u1ef1c v\u00e0 th\u00fac \u0111\u1ea9y h\u1ee3p t\u00e1c khi m\u1eddi c\u00e1c b\u1ea1n tham gia x\u00e2y d\u1ef1ng vnstock. \u0110\u1ec3 m\u1ecdi th\u1ee9 r\u00f5 r\u00e0ng v\u00e0 minh b\u1ea1ch, t\u00f4i chia s\u1ebb t\u1edbi c\u00e1c b\u1ea1n nh\u1eefng nguy\u00ean t\u1eafc gi\u00fap ch\u00fang ta h\u1ee3p t\u00e1c d\u1ec5 d\u00e0ng h\u01a1n trong khu\u00f4n kh\u1ed5 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf nh\u01b0 sau:
Ch\u00fang t\u00f4i c\u1ea3m \u01a1n s\u1ef1 \u0111\u00f3ng g\u00f3p c\u1ee7a b\u1ea1n cho Vnstock. Nh\u00f3m ph\u00e1t tri\u1ec3n s\u1eb5n l\u00f2ng h\u1ed7 tr\u1ee3 v\u00e0 xem x\u00e9t m\u1ecdi \u0111\u00f3ng g\u00f3p \u0111\u1ec3 n\u00e2ng cao ch\u1ea5t l\u01b0\u1ee3ng v\u00e0 t\u00ednh n\u0103ng c\u1ee7a d\u1ef1 \u00e1n. H\u00e3y c\u00f9ng nhau t\u1ea1o n\u00ean m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd h\u1ed7 tr\u1ee3 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam! \ud83d\ude80
"},{"location":"community/feedback/","title":"\u0110\u00f3ng g\u00f3p \u00fd ki\u1ebfn v\u00e0 ph\u1ea3n h\u1ed3i","text":""},{"location":"community/feedback/#bao-loi","title":"B\u00e1o l\u1ed7i","text":"B\u1ea1n c\u00f3 th\u1ec3 gi\u00fap t\u00e1c gi\u1ea3 ki\u1ec3m tra m\u1ee5c Issues tr\u00ean Github v\u00e0 m\u1ee5c B\u00e1o l\u1ed7i tr\u00ean Discord xem v\u1ea5n \u0111\u1ec1 c\u1ee7a b\u1ea1n \u0111\u00e3 \u0111\u01b0\u1ee3c \u0111\u1ec1 c\u1eadp tr\u01b0\u1edbc \u0111\u00f3 ch\u01b0a tr\u01b0\u1edbc khi g\u1eedi b\u00e1o l\u1ed7i.
N\u1ebfu ch\u01b0a, h\u00e3y t\u1ea1o m\u1ed9t issue m\u1edbi \u0111\u1ec3 b\u00e1o c\u00e1o l\u1ed7i ho\u1eb7c y\u00eau c\u1ea7u t\u00ednh n\u0103ng. Vui l\u00f2ng cung c\u1ea5p m\u1ed9t m\u00f4 t\u1ea3 chi ti\u1ebft v\u1ec1 v\u1ea5n \u0111\u1ec1 c\u1ee7a b\u1ea1n, bao g\u1ed3m c\u00e1c b\u01b0\u1edbc \u0111\u1ec3 t\u00e1i t\u1ea1o v\u1ea5n \u0111\u1ec1 (n\u1ebfu c\u00f3 th\u1ec3) v\u00e0 \u1ea3nh ch\u1ee5p m\u00e0nh h\u00ecnh l\u1ed7i. C\u00e1c b\u00e1o l\u1ed7i m\u01a1 h\u1ed3 s\u1ebd kh\u00f4ng \u0111\u01b0\u1ee3c xem x\u00e9t.
N\u1ebfu b\u1ea1n kh\u00f4ng quen v\u1edbi Github, b\u1ea1n c\u1ee9 tho\u1ea3i m\u00e1i chia s\u1ebb l\u1ed7i qua c\u00e1c k\u00eanh m\u00e0 b\u1ea1n th\u1ea5y thu\u1eadn ti\u1ec7n nh\u1ea5t v\u00e0 gi\u00fap t\u00f4i c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam \u0111\u1ec3 hi\u1ec3u r\u00f5 v\u1ea5n \u0111\u1ec1 b\u1ea1n g\u1eb7p ph\u1ea3i.
"},{"location":"community/feedback/#gop-y","title":"G\u00f3p \u00fd","text":"vnstock l\u00e0 m\u1ed9t d\u1ef1 \u00e1n t\u00f4i t\u00e2m huy\u1ebft, \u0111\u1ea7u t\u01b0 nhi\u1ec1u th\u1eddi gian \u0111\u1ec3 ph\u00e1t tri\u1ec3n gi\u00fap b\u1ea3n th\u00e2n v\u00e0 c\u1ed9ng \u0111\u1ed3ng ti\u1ebfp c\u1eadn ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n mi\u1ec5n ph\u00ed v\u00e0 \u0111\u00e1ng tin c\u1eady.
\u0110\u1ec3 \u0111\u1ea3m b\u1ea3o r\u1eb1ng vnstock ph\u00e1t tri\u1ec3n theo h\u01b0\u1edbng \u0111\u00e1p \u1ee9ng nhu c\u1ea7u c\u1ee7a b\u1ea1n, t\u00f4i r\u1ea5t mong nh\u1eadn \u0111\u01b0\u1ee3c ph\u1ea3n h\u1ed3i t\u1eeb b\u1ea1n. B\u1ea1n l\u00e0 ng\u01b0\u1eddi d\u00f9ng quan tr\u1ecdng c\u1ee7a vnstock v\u00e0 \u00fd ki\u1ebfn c\u1ee7a b\u1ea1n s\u1ebd gi\u00fap ch\u00fang t\u00f4i x\u00e2y d\u1ef1ng m\u1ed9t k\u1ebf ho\u1ea1ch ph\u00e1t tri\u1ec3n vnstock m\u1ed9t c\u00e1ch to\u00e0n di\u1ec7n. B\u1ea1n h\u00e3y d\u00e0nh ra 5 ph\u00fat \u0111\u1ec3 ho\u00e0n th\u00e0nh b\u1ea3n kh\u1ea3o s\u00e1t n\u00e0y. C\u1ea3m \u01a1n b\u1ea1n r\u1ea5t nhi\u1ec1u!
\u0110ang t\u1ea3i\u2026"},{"location":"community/join/","title":"C\u1ed9ng \u0111\u1ed3ng vnstock","text":"Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi d\u1ef1 \u00e1n Vnstock! Ch\u00fang t\u00f4i tr\u00e2n tr\u1ecdng m\u1ecdi \u0111\u00f3ng g\u00f3p t\u1eeb c\u1ed9ng \u0111\u1ed3ng \u0111\u1ec3 ph\u00e1t tri\u1ec3n g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y th\u00e0nh m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd h\u1ed7 tr\u1ee3 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n t\u1ea1i th\u1ecb tr\u01b0\u1eddng Vi\u1ec7t Nam.
B\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn tham gia c\u00e1c c\u1ed9ng \u0111\u1ed3ng Vnstock hi\u1ec7n c\u00f3:
"},{"location":"community/lan-toa-trai-nghiem-voi-vnstock/","title":"Gi\u1edbi thi\u1ec7u vnstock t\u1edbi c\u1ed9ng \u0111\u1ed3ng c\u1ee7a b\u1ea1n","text":"\ud83d\udd90 N\u1ebfu vnstock gi\u00fap \u00edch cho b\u1ea1n, h\u00e3y g\u00f3p s\u1ee9c t\u00e0i tr\u1ee3 cho s\u1ef1 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n theo kh\u1ea3 n\u0103ng c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn h\u00ecnh th\u1ee9c ph\u00f9 h\u1ee3p v\u1edbi m\u00ecnh nh\u1ea5t trong c\u00e1c h\u00ecnh th\u1ee9c d\u01b0\u1edbi \u0111\u00e2y. M\u1ecdi kho\u1ea3n \u0111\u00f3ng g\u00f3p \u0111\u1ec1u \u0111\u00e1ng tr\u00e2n qu\u00fd v\u00e0 l\u00e0 ngu\u1ed3n t\u00e0i ch\u00ednh gi\u00fap duy tr\u00ec vnstock lu\u00f4n \u0111\u01b0\u1ee3c n\u00e2ng c\u1ea5p, m\u00e3 ngu\u1ed3n m\u1edf, v\u00e0 d\u1ec5 ti\u1ebfp c\u1eadn cho c\u1ed9ng \u0111\u1ed3ng.
"},{"location":"community/support/#tai-tro-du-an-qua-github","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Github","text":"L\u1ef1a ch\u1ecdn Sponsor (t\u00e0i tr\u1ee3) cho d\u1ef1 \u00e1n qua Github l\u00e0 m\u1ed9t c\u00e1ch minh b\u1ea1ch v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t cho b\u1ea5t k\u1ef3 ai s\u1edf h\u1eefu th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa, Master, vv \u0110\u1ed3ng th\u1eddi b\u1ea1n c\u00f3 c\u00e1c t\u00f9y ch\u1ecdn t\u00e0i tr\u1ee3 linh ho\u1ea1t theo th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n. C\u00f9ng v\u1edbi \u0111\u00f3, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c x\u1ebfp v\u00e0o c\u00e1c tier (h\u1ea1ng) ng\u01b0\u1eddi d\u00f9ng kh\u00e1c nhau \u0111\u1ec3 s\u1edf h\u1eefu nh\u1eefng quy\u1ec1n l\u1ee3i \u0111i k\u00e8m, v\u00ed d\u1ee5 truy c\u1eadp nh\u1eefng b\u1ea3n n\u00e2ng c\u1ea5p v\u00e0 t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n cho nh\u00e0 t\u00e0i tr\u1ee3 (\u0111ang tri\u1ec3n khai). T\u1ea5t c\u1ea3 kho\u1ea3n t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho m\u1ee5c \u0111\u00edch ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n v\u00e0 duy tr\u00ec h\u1ea1 t\u1ea7ng c\u00f4ng ngh\u1ec7 cho nh\u00f3m ph\u00e1t tri\u1ec3n.
L\u01b0u \u00fd: \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n qua Github Sponsor, b\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp Github v\u00e0 s\u1eed d\u1ee5ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf.
B1. Ch\u1ecdn m\u1ee5c SponsorB2. Ch\u1ecdn lo\u1ea1i h\u00ecnh v\u00e0 m\u1ee9c t\u00e0i tr\u1ee3 B3. Nh\u1eadp th\u00f4ng tin thanh to\u00e1nB\u1ea1n c\u00f3 th\u1ec3 t\u00ecm th\u1ea5y m\u1ee5c Sponsor t\u1ea1i Github repo c\u1ee7a Vnstock, t\u1ea1i Github profile Th\u1ecbnh V\u0169 ho\u1eb7c ph\u1ea7n th\u00f4ng tin Sponsor \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o web \u1edf tr\u00ean \ud83d\udc46.
"},{"location":"community/support/#gui-tang-mot-ly-cafe","title":"G\u1eedi t\u1eb7ng m\u1ed9t ly cafe","text":"T\u1eb7ng m\u1ed9t ly cafe
B\u1ea1n c\u00f3 th\u1ec3 g\u1eedi t\u1eb7ng t\u00e1c gi\u1ea3 m\u1ed9t ly cafe \u0111\u1ec3 c\u1ea3m \u01a1n v\u00e0 \u0111\u1ed9ng vi\u00ean n\u1ebfu th\u1ea5y Vnstock gi\u00fap \u00edch nhi\u1ec1u cho b\u1ea1n. B\u1ea1n ch\u1ecdn m\u1ed9t trong 4 c\u00e1ch sau t\u00f9y theo h\u00ecnh th\u1ee9c n\u00e0o thu\u1eadn ti\u1ec7n cho b\u1ea1n nh\u1ea5t. C\u00e1m \u01a1n b\u1ea1n th\u1eadt nhi\u1ec1u!
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Ng\u00e2n h\u00e0ng nh\u1eadn: Vietcombank
chi nh\u00e1nh Thanh \u0110a
T\u00e0i kho\u1ea3n: nh\u1eadp t\u00ean VNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"community/support/#su-dung-dich-vu","title":"S\u1eed d\u1ee5ng d\u1ecbch v\u1ee5","text":"
D\u1ecbch v\u1ee5
N\u1ebfu b\u1ea1n n\u00e0o quan t\u00e2m v\u00e0 c\u00f3 nhu c\u1ea7u v\u1ec1 code
theo y\u00eau c\u1ea7u ho\u1eb7c h\u1ecdc python, vui l\u00f2ng inbox v\u1edbi Th\u1ecbnh \u0111\u1ec3 trao \u0111\u1ed5i th\u00eam. Ho\u1ea1t \u0111\u1ed9ng n\u00e0y c\u0169ng gi\u00fap t\u00e1c gi\u1ea3 hi\u1ec3u th\u00eam v\u1ec1 nh\u1eefng \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf v\u00e0 ph\u00e1t tri\u1ec3n vnstock trong t\u01b0\u01a1ng lai.
Kh\u00f3a h\u1ecdc
N\u1ebfu b\u1ea1n y\u00eau th\u00edch vnstock, mu\u1ed1n \u1ee7ng h\u1ed9 t\u00e1c gi\u1ea3 \u0111\u1ed3ng th\u1eddi quan t\u00e2m v\u1ec1 h\u1ecdc l\u1eadp tr\u00ecnh Python cho vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u n\u00f3i chung v\u00e0 ch\u1ee9ng kho\u00e1n n\u00f3i ri\u00eang, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd c\u00e1c kh\u00f3a h\u1ecdc ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u1eeb t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Hi\u1ec7n t\u1ea1i, AI c\u0169ng c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 b\u1ea1n th\u1ef1c hi\u1ec7n h\u1ea7u h\u1ebft c\u00f4ng vi\u1ec7c l\u1eadp tr\u00ecnh mi\u1ec5n l\u00e0 b\u1ea1n c\u00f3 ki\u1ebfn th\u1ee9c c\u0103n b\u1ea3n v\u00e0 bi\u1ebft c\u00e1ch s\u1eed d\u1ee5ng ch\u00fang. Tham gia kh\u00f3a h\u1ecdc gi\u00fap b\u1ea1n c\u00f3 n\u1ec1n t\u1ea3ng ki\u1ebfn th\u1ee9c t\u1ed1t \u0111\u1ec3 t\u1eadn d\u1ee5ng s\u1ee9c m\u1ea1nh c\u1ee7a AI.
Kh\u00f3a h\u1ecdc Ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u1edbi Python #4 \u0111\u01b0\u1ee3c tri\u1ec3n khai v\u00e0o 29/10/2023, b\u1ea1n n\u00e0o quan t\u00e2m h\u00e3y inbox cho t\u00f4i \u0111\u1ec3 trao \u0111\u1ed5i th\u00eam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 tham kh\u1ea3o b\u00e0i vi\u1ebft gi\u1edbi thi\u1ec7u kh\u00f3a h\u1ecdc tr\u00ean blog v\u1ec1 ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u00f4i \u0111\u00e3 t\u1eebng t\u1ed5 ch\u1ee9c t\u1ea1i \u0111\u00e2y
"},{"location":"community/tai-tro-du-an-vnstock/","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n Vnstock","text":"\ud83d\udd90 N\u1ebfu vnstock gi\u00fap \u00edch cho b\u1ea1n, h\u00e3y g\u00f3p s\u1ee9c t\u00e0i tr\u1ee3 cho s\u1ef1 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n theo kh\u1ea3 n\u0103ng c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn h\u00ecnh th\u1ee9c ph\u00f9 h\u1ee3p v\u1edbi m\u00ecnh nh\u1ea5t trong c\u00e1c h\u00ecnh th\u1ee9c d\u01b0\u1edbi \u0111\u00e2y. M\u1ecdi kho\u1ea3n \u0111\u00f3ng g\u00f3p \u0111\u1ec1u \u0111\u00e1ng tr\u00e2n qu\u00fd v\u00e0 l\u00e0 ngu\u1ed3n t\u00e0i ch\u00ednh gi\u00fap duy tr\u00ec vnstock lu\u00f4n \u0111\u01b0\u1ee3c n\u00e2ng c\u1ea5p, m\u00e3 ngu\u1ed3n m\u1edf, v\u00e0 d\u1ec5 ti\u1ebfp c\u1eadn cho c\u1ed9ng \u0111\u1ed3ng.
"},{"location":"community/tai-tro-du-an-vnstock/#tai-tro-du-an-qua-github","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Github","text":"L\u1ef1a ch\u1ecdn Sponsor (t\u00e0i tr\u1ee3) cho d\u1ef1 \u00e1n qua Github l\u00e0 m\u1ed9t c\u00e1ch minh b\u1ea1ch v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t cho b\u1ea5t k\u1ef3 ai s\u1edf h\u1eefu th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa, Master, vv \u0110\u1ed3ng th\u1eddi b\u1ea1n c\u00f3 c\u00e1c t\u00f9y ch\u1ecdn t\u00e0i tr\u1ee3 linh ho\u1ea1t theo th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n. C\u00f9ng v\u1edbi \u0111\u00f3, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c x\u1ebfp v\u00e0o c\u00e1c tier (h\u1ea1ng) ng\u01b0\u1eddi d\u00f9ng kh\u00e1c nhau \u0111\u1ec3 s\u1edf h\u1eefu nh\u1eefng quy\u1ec1n l\u1ee3i \u0111i k\u00e8m, v\u00ed d\u1ee5 truy c\u1eadp nh\u1eefng b\u1ea3n n\u00e2ng c\u1ea5p v\u00e0 t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n cho nh\u00e0 t\u00e0i tr\u1ee3 (\u0111ang tri\u1ec3n khai). T\u1ea5t c\u1ea3 kho\u1ea3n t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho m\u1ee5c \u0111\u00edch ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n v\u00e0 duy tr\u00ec h\u1ea1 t\u1ea7ng c\u00f4ng ngh\u1ec7 cho nh\u00f3m ph\u00e1t tri\u1ec3n.
L\u01b0u \u00fd: \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n qua Github Sponsor, b\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp Github v\u00e0 s\u1eed d\u1ee5ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf.
B1. Ch\u1ecdn m\u1ee5c SponsorB2. Ch\u1ecdn lo\u1ea1i h\u00ecnh v\u00e0 m\u1ee9c t\u00e0i tr\u1ee3 B3. Nh\u1eadp th\u00f4ng tin thanh to\u00e1nB\u1ea1n c\u00f3 th\u1ec3 t\u00ecm th\u1ea5y m\u1ee5c Sponsor t\u1ea1i Github repo c\u1ee7a Vnstock, t\u1ea1i Github profile Th\u1ecbnh V\u0169 ho\u1eb7c ph\u1ea7n th\u00f4ng tin Sponsor \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o web \u1edf tr\u00ean \ud83d\udc46.
"},{"location":"community/tai-tro-du-an-vnstock/#gui-tang-mot-ly-cafe","title":"G\u1eedi t\u1eb7ng m\u1ed9t ly cafe","text":"T\u1eb7ng m\u1ed9t ly cafe
B\u1ea1n c\u00f3 th\u1ec3 g\u1eedi t\u1eb7ng t\u00e1c gi\u1ea3 m\u1ed9t ly cafe \u0111\u1ec3 c\u1ea3m \u01a1n v\u00e0 \u0111\u1ed9ng vi\u00ean n\u1ebfu th\u1ea5y Vnstock gi\u00fap \u00edch nhi\u1ec1u cho b\u1ea1n. B\u1ea1n ch\u1ecdn m\u1ed9t trong 4 c\u00e1ch sau t\u00f9y theo h\u00ecnh th\u1ee9c n\u00e0o thu\u1eadn ti\u1ec7n cho b\u1ea1n nh\u1ea5t. C\u00e1m \u01a1n b\u1ea1n th\u1eadt nhi\u1ec1u!
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Vietcombank
chi nh\u00e1nh Thanh \u0110aVNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"community/tai-tro-du-an-vnstock/#ao-tao-python","title":"\u0110\u00e0o t\u1ea1o Python","text":"
Kh\u00f3a h\u1ecdc
N\u1ebfu b\u1ea1n y\u00eau th\u00edch vnstock, mu\u1ed1n \u1ee7ng h\u1ed9 t\u00e1c gi\u1ea3 \u0111\u1ed3ng th\u1eddi quan t\u00e2m v\u1ec1 h\u1ecdc l\u1eadp tr\u00ecnh Python cho vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u n\u00f3i chung v\u00e0 ch\u1ee9ng kho\u00e1n n\u00f3i ri\u00eang, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd c\u00e1c kh\u00f3a h\u1ecdc ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u1eeb t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Hi\u1ec7n t\u1ea1i, AI c\u0169ng c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 b\u1ea1n th\u1ef1c hi\u1ec7n h\u1ea7u h\u1ebft c\u00f4ng vi\u1ec7c l\u1eadp tr\u00ecnh mi\u1ec5n l\u00e0 b\u1ea1n c\u00f3 ki\u1ebfn th\u1ee9c c\u0103n b\u1ea3n v\u00e0 bi\u1ebft c\u00e1ch s\u1eed d\u1ee5ng ch\u00fang. Tham gia kh\u00f3a h\u1ecdc gi\u00fap b\u1ea1n c\u00f3 n\u1ec1n t\u1ea3ng ki\u1ebfn th\u1ee9c t\u1ed1t \u0111\u1ec3 t\u1eadn d\u1ee5ng s\u1ee9c m\u1ea1nh c\u1ee7a AI.
B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o kh\u00f3a h\u1ecdc \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi Th\u1ecbnh t\u1ea1i m\u1ee5c Kh\u00f3a h\u1ecdc t\u1ea1i trang web n\u00e0y.
"},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/","title":"Vinh danh th\u00e0nh vi\u00ean ti\u00eau bi\u1ec3u","text":"Gi\u1edbi thi\u1ec7u
vnstock mu\u1ed1n b\u00e0y t\u1ecf l\u00f2ng bi\u1ebft \u01a1n ch\u00e2n th\u00e0nh \u0111\u1ed1i v\u1edbi c\u00e1c th\u00e0nh vi\u00ean t\u00edch c\u1ef1c \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n n\u00e0y qua nhi\u1ec1u c\u00e1ch kh\u00e1c nhau b\u00ean c\u1ea1nh t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Nh\u1edd v\u00e0o s\u1ef1 n\u1ed7 l\u1ef1c c\u1ee7a c\u00e1c b\u1ea1n, c\u1ed9ng \u0111\u1ed3ng vnstock c\u00f3 c\u01a1 h\u1ed9i ti\u1ebfp c\u1eadn m\u1ed9t s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n m\u1edf ch\u1ea5t l\u01b0\u1ee3ng. Ngo\u00e0i ra, tuy kh\u00f4ng li\u1ec7t k\u00ea c\u1ee5 th\u1ec3 nh\u01b0ng c\u00e1c th\u00e0nh vi\u00ean tham gia g\u1eedi t\u1eb7ng cafe \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n \u0111\u00e3 g\u00f3p ph\u1ea7n kh\u00edch l\u1ec7 r\u1ea5t l\u1edbn \u0111\u1ec3 Vnstock ti\u1ebfn xa \u0111\u1ebfn hi\u1ec7n t\u1ea1i. Xin c\u00e1m \u01a1n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea1n!
"},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/#thanh-vien-tich-cuc","title":"Th\u00e0nh vi\u00ean t\u00edch c\u1ef1c","text":"# Avatar Th\u00e0nh vi\u00ean \u0110\u00f3ng g\u00f3p n\u1ed5i b\u1eadt 1 andrey-jef - G\u1ee3i \u00fd s\u1eed d\u1ee5ng mkdocs matterial cho trang t\u00e0i li\u1ec7u Vnstock hi\u1ec7n t\u1ea1i - \u0110\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho modul Qu\u1ef9 m\u1edf - \u0110\u1ec1 xu\u1ea5t v\u00e0 vi\u1ebft m\u00e3 ngu\u1ed3n cho pytest s\u1eed d\u1ee5ng \u0111\u1ec3 ki\u1ec3m th\u1eed d\u1ef1 \u00e1n - H\u1ed7 tr\u1ee3 g\u1ee1 l\u1ed7i - \u0110\u00f3ng g\u00f3p v\u00e0 s\u1eeda t\u00e0i li\u1ec7u..."},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/#thanh-vien-khac","title":"Th\u00e0nh vi\u00ean kh\u00e1c","text":"D\u01b0\u1edbi \u0111\u00e2y l\u00e0 danh s\u00e1ch c\u00e1c th\u00e0nh vi\u00ean \u0111\u00e3 h\u1ed7 tr\u1ee3 s\u1eeda l\u1ed7i v\u00e0 \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n.
# Avatar Th\u00e0nh vi\u00ean \u0110\u00f3ng g\u00f3p n\u1ed5i b\u1eadt 1 hungdq11 G\u00f3p \u00fd & s\u1eeda l\u1ed7i 2 nvh95 G\u00f3p \u00fd & s\u1eeda l\u1ed7i"},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/","title":"Vnstock road map lo trinh phat trien vnstock","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#lo-trinh-phat-trien-vnstock-nam-2024","title":"L\u1ed9 tr\u00ecnh ph\u00e1t tri\u1ec3n vnstock n\u0103m 2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q1-2024","title":"Q1-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q2-2024","title":"Q2-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q3-2024","title":"Q3-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q4-2024","title":"Q4-2024","text":""},{"location":"faq/community/","title":"C\u1ed9ng \u0111\u1ed3ng","text":""},{"location":"faq/community/#he-sinh-thai-vnstock-bao-gom-nhung-gi","title":"H\u1ec7 sinh th\u00e1i vnstock bao g\u1ed3m nh\u1eefng g\u00ec?","text":"Hi\u1ec7n t\u1ea1i Vnstock cung c\u1ea5p c\u00e1c s\u1ea3n ph\u1ea9m/k\u00eanh th\u00f4ng tin sau: - G\u00f3i ph\u1ea7n m\u1ec1m python: vnstock python & vnstock web app
Website:
C\u1ed9ng \u0111\u1ed3ng v\u00e0 k\u00eanh th\u00f4ng tin:
N\u1ebfu b\u1ea1n ch\u01b0a s\u1eb5n s\u00e0ng \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n 100K \u0111\u1ec3 tham gia nh\u00f3m c\u0169ng kh\u00f4ng sao. B\u1ea1n v\u1eabn c\u00f3 th\u1ec3 tham gia nh\u00f3m Discord \u0111\u1ec3 nh\u1eadn h\u1ed7 tr\u1ee3 chung t\u1eeb c\u1ed9ng \u0111\u1ed3ng. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
"},{"location":"faq/community/#lam-the-nao-e-tham-gia-cong-ong-vnstock-tra-phi","title":"L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 tham gia c\u1ed9ng \u0111\u1ed3ng vnstock tr\u1ea3 ph\u00ed?","text":"H\u01b0\u1edbng d\u1eabn
\u0110\u1ec3 c\u00f3 th\u1ec3 tham gia c\u1ed9ng \u0111\u1ed3ng tr\u1ea3 ph\u00ed c\u1ee7a vnstock \u0111\u01b0\u1ee3c t\u1ed5 ch\u1ee9c tr\u00ean n\u1ec1n t\u1ea3ng Facebook, b\u1ea1n vui l\u00f2ng \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n t\u1ed1i thi\u1ec3u 100K theo h\u00ecnh th\u1ee9c chuy\u1ec3n ti\u1ec1n Momo ho\u1eb7c chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng nh\u01b0 th\u00f4ng tin b\u00ean d\u01b0\u1edbi. Sau \u0111\u00f3 b\u1ea1n g\u1eedi y\u00eau c\u1ea7u tham gia nh\u00f3m v\u00e0 tr\u1ea3 l\u1eddi 3 c\u00e2u h\u1ecfi \u0111\u01a1n gi\u1ea3n \u0111\u1ec3 \u0111\u01b0\u1ee3c duy\u1ec7t tham gia nh\u00f3m. Ngay khi nh\u1eadn \u0111\u01b0\u1ee3c chuy\u1ec3n kho\u1ea3n, admin s\u1ebd duy\u1ec7t y\u00eau c\u1ea7u c\u1ee7a b\u1ea1n ngay l\u1eadp t\u1ee9c.
C\u00e1m \u01a1n b\u1ea1n \u0111\u00e3 tin t\u01b0\u1edfng, \u0111\u1ed3ng h\u00e0nh v\u00e0 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n.
"},{"location":"faq/community/#ai-la-nguoi-dung-cua-vnstock","title":"Ai l\u00e0 ng\u01b0\u1eddi d\u00f9ng c\u1ee7a vnstock?","text":"Qua giao l\u01b0u v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi ng\u01b0\u1eddi d\u00f9ng, c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng ng\u01b0\u1eddi d\u00f9ng ch\u00ednh hi\u1ec7n ghi nh\u1eadn \u0111\u01b0\u1ee3c bao g\u1ed3m:
Chuy\u00ean gia d\u1eef li\u1ec7u/l\u1eadp tr\u00ecnh vi\u00ean: \u0111\u00e2y l\u00e0 nh\u1eefng ng\u01b0\u1eddi c\u00f3 chuy\u00ean m\u00f4n c\u00f4ng ngh\u1ec7 v\u00e0 d\u1eef li\u1ec7u, l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng tr\u1ef1c ti\u1ebfp s\u1eed d\u1ee5ng th\u00e0nh th\u1ea1o python cho d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh ho\u1eb7c x\u00e2y d\u1ef1ng s\u1ea3n ph\u1ea9m d\u1ef1a tr\u00ean b\u1ed9 API m\u00e0 vnstock cung c\u1ea5p.
Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n: Xu h\u01b0\u1edbng giao d\u1ecbch thu\u1eadt to\u00e1n \u0111ang ph\u00e1t tri\u1ec3n n\u00f3ng trong th\u1eddi gian g\u1ea7n \u0111\u00e2y, c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n t\u00ecm ki\u1ebfm gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 l\u00e0m l\u1ee3i th\u1ebf giao d\u1ecbch c\u1ee7a m\u00ecnh v\u00e0 t\u1ef1 x\u00e2y d\u1ef1ng h\u1ec7 th\u1ed1ng ph\u00e2n t\u00edch ho\u1eb7c bot giao d\u1ecbch \u0111\u1ec3 hi\u1ec7n th\u1ef1c h\u00f3a chi\u1ebfn l\u01b0\u1ee3c \u0111\u1ea7u t\u01b0.
Sinh vi\u00ean: Sinh vi\u00ean c\u00e1c tr\u01b0\u1eddng \u0111\u1ea1i h\u1ecdc kh\u1ed1i ng\u00e0nh kinh t\u1ebf to\u00e0n qu\u1ed1c l\u00e0 m\u1ed9t b\u1ed9 ph\u1eadn ng\u01b0\u1eddi d\u00f9ng quan tr\u1ecdng c\u1ee7a vnstock. \u0110\u00e2y c\u0169ng l\u00e0 ngu\u1ed3n l\u1ef1c \u0111\u1ed5i m\u1edbi, s\u00e1ng t\u1ea1o trong vi\u1ec7c \u00e1p d\u1ee5ng c\u00f4ng ngh\u1ec7 r\u1ed9ng r\u00e3i v\u00e0o vi\u1ec7c ph\u00e1t tri\u1ec3n th\u1ecb tr\u01b0\u1eddng t\u00e0i ch\u00ednh Vi\u1ec7t Nam.
Nh\u00e0 nghi\u00ean c\u1ee9u: L\u0129nh v\u1ef1c nghi\u00ean c\u1ee9u t\u01b0\u01a1ng \u0111\u1ed1i \u0111a d\u1ea1ng, qua trao \u0111\u1ed5i c\u00e1 nh\u00e2n th\u00ec vnstock \u0111\u01b0\u1ee3c c\u00e1c b\u1ea1n l\u00e0m c\u00f4ng t\u00e1c nghi\u00ean c\u1ee9u y\u00eau th\u00edch b\u1edfi cho ph\u00e9p truy c\u1eadp d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t, c\u1eadp nh\u1eadt d\u1ec5 d\u00e0ng v\u00e0 ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed (ph\u00f9 h\u1ee3p v\u1edbi ng\u00e2n s\u00e1ch gi\u1edbi h\u1ea1n).
D\u00f9 b\u1ea1n l\u00e0 ai, l\u00e0m l\u0129nh v\u1ef1c g\u00ec, vnstock mu\u1ed1n \u0111\u1ed3ng h\u00e0nh v\u1edbi b\u1ea1n c\u00f9ng ph\u00e1t tri\u1ec3n. N\u1ebfu c\u00f3 nh\u1eefng y\u00eau c\u1ea7u \u0111\u1eb7c bi\u1ec7t c\u1ea7n \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 ho\u1eb7c g\u00f3p \u00fd ph\u00e1t tri\u1ec3n s\u1ea3n ph\u1ea9m, b\u1ea1n c\u00f3 th\u1ec3 li\u00ean h\u1ec7 v\u1edbi ch\u00fang t\u00f4i qua email: support@vnstock.site ho\u1eb7c c\u00e1c k\u00eanh trao \u0111\u1ed5i c\u1ed9ng \u0111\u1ed3ng. \u00dd ki\u1ebfn c\u1ee7a b\u1ea1n lu\u00f4n \u0111\u01b0\u1ee3c \u0111\u00f3n nh\u1eadn v\u00e0 \u0111\u00e1nh gi\u00e1 cao.
"},{"location":"faq/feature/","title":"S\u1ea3n ph\u1ea9m","text":""},{"location":"faq/feature/#co-so-cua-phuong-phap-thu-thap-du-lieu-do-vnstock-cung-cap-la-gi","title":"C\u01a1 s\u1edf c\u1ee7a ph\u01b0\u01a1ng ph\u00e1p thu th\u1eadp d\u1eef li\u1ec7u do vnstock cung c\u1ea5p l\u00e0 g\u00ec?","text":"Vnstock cung c\u1ea5p gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 s\u1eed d\u1ee5ng Python \u0111\u1ec3 thu th\u1eadp d\u1eef li\u1ec7u t\u1eeb c\u00e1c ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam th\u00f4ng qua c\u00e1c APIs c\u00f4ng khai. N\u00f3i m\u1ed9t c\u00e1ch d\u1ec5 hi\u1ec3u, c\u00e1c APIs n\u00e0y \u0111\u01b0\u1ee3c kh\u00e1m ph\u00e1 th\u00f4ng qua th\u1ee7 thu\u1eadt Web Scraping hay c\u00f2n g\u1ecdi l\u00e0 Reverse Engineering t\u1ee9c d\u00f2 c\u00e1c APIs \u0111\u01b0\u1ee3c website ch\u1ee9ng kho\u00e1n s\u1eed d\u1ee5ng \u0111\u1ec3 g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u gi\u1eefa h\u1ec7 th\u1ed1ng c\u01a1 s\u1edf d\u1eef li\u1ec7u (back-end) v\u1edbi giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng cu\u1ed1i (front-end).
C\u00e1c API n\u00e0y kh\u00f4ng \u0111\u01b0\u1ee3c chia s\u1ebb c\u00f4ng khai k\u00e8m t\u00e0i li\u1ec7u h\u01b0\u1edbng d\u1eabn cho ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng, tuy nhi\u00ean th\u00f4ng qua bi\u1ec7n ph\u00e1p so s\u00e1nh d\u1eef li\u1ec7u c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng g\u00e1n nh\u00e3n v\u00e0 t\u00e1i t\u1ea1o d\u1eef li\u1ec7u thu \u0111\u01b0\u1ee3c t\u1eeb API v\u1edbi \u0111\u1ed9 ch\u00ednh x\u00e1c g\u1ea7n nh\u01b0 tuy\u1ec7t \u0111\u1ed1i so v\u1edbi d\u1eef li\u1ec7u hi\u1ec3n th\u1ecb tr\u00ean website.
Vi\u1ec7c truy c\u1eadp c\u00e1c APIs d\u1eef li\u1ec7u n\u00e0y l\u00e0 h\u1ee3p ph\u00e1p v\u00ec ph\u01b0\u01a1ng ph\u00e1p truy c\u1eadp t\u01b0\u01a1ng \u0111\u01b0\u01a1ng v\u1edbi vi\u1ec7c g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u c\u1ee7a ng\u01b0\u1eddi d\u00f9ng th\u00f4ng qua tr\u00ecnh duy\u1ec7t web, tuy nhi\u00ean s\u1ed1 l\u01b0\u1ee3t g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u c\u00f3 th\u1ec3 ph\u00e1t sinh \u0111\u1ed9t bi\u1ebfn do ng\u01b0\u1eddi d\u00f9ng g\u1ecdi API li\u00ean t\u1ee5c th\u00f4ng qua l\u1eadp tr\u00ecnh do v\u00f4 t\u00ecnh hay c\u1ed1 \u00fd.
Do \u0111\u00f3, vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c APIs n\u00e0y c\u1ea7n \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n v\u1edbi tinh th\u1ea7n tr\u00e1ch nhi\u1ec7m v\u00e0 t\u00f4n tr\u1ecdng ngu\u1ed3n d\u1eef li\u1ec7u nh\u1eb1m tr\u00e1nh g\u1eedi y\u00eau c\u1ea7u g\u00e2y qu\u00e1 t\u1ea3i h\u1ec7 th\u1ed1ng c\u1ee7a ngu\u1ed3n d\u1eef li\u1ec7u (c\u00f4ng ty ch\u1ee9ng kho\u00e1n). Ch\u00fang t\u00f4i khuy\u00ean ng\u01b0\u1eddi d\u00f9ng h\u1ea1n ch\u1ebf s\u1eed d\u1ee5ng API h\u00e0ng lo\u1ea1t trong khung gi\u1edd giao d\u1ecbch \u0111\u1ec3 tr\u00e1nh l\u00e0m \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn ho\u1ea1t \u0111\u1ed9ng th\u01b0\u1eddng xuy\u00ean c\u1ee7a c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 kh\u00e1c v\u00e0 b\u1ea3n th\u00e2n ngu\u1ed3n d\u1eef li\u1ec7u. Trong th\u1eddi gian t\u1edbi, Vnstock s\u1ebd nghi\u00ean c\u1ee9u c\u00e1c gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 m\u1edbi nh\u1eb1m t\u1ea1o v\u00e0 l\u01b0u tr\u1eef c\u01a1 s\u1edf d\u1eef li\u1ec7u ri\u00eang \u0111\u1ec3 h\u1ea1n ch\u1ebf \u0111\u1ebfn m\u1ee9c th\u1ea5p nh\u1ea5t \u1ea3nh h\u01b0\u1edfng ti\u00eau c\u1ef1c \u0111\u1ebfn ngu\u1ed3n d\u1eef li\u1ec7u g\u1ed1c.
V\u1ec1 ph\u00eda c\u00f4ng ty ch\u1ee9ng kho\u00e1n, c\u00e1c anh ch\u1ecb c\u00f3 th\u1ec3 h\u1ee3p t\u00e1c ch\u00ednh th\u1ee9c v\u1edbi Vnstock \u0111\u1ec3 cung c\u1ea5p d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n th\u00f4ng qua c\u00e1c APIs ri\u00eang bi\u1ec7t cho ng\u01b0\u1eddi d\u00f9ng n\u00e2ng cao. Nh\u01b0 v\u1eady, h\u1ec7 th\u1ed1ng giao d\u1ecbch cho ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng s\u1ebd kh\u00f4ng b\u1ecb \u1ea3nh h\u01b0\u1edfng do thao t\u00e1c Web Scraping g\u00e2y ra. Ho\u1ea1t \u0111\u1ed9ng n\u00e0y gi\u00fap anh ch\u1ecb x\u00e2y d\u1ef1ng s\u1ef1 g\u1eafn k\u1ebft kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n v\u1edbi c\u00f4ng ty m\u00ecnh, \u0111\u1ed3ng th\u1eddi th\u00fac \u0111\u1ea9y kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n gia t\u0103ng giao d\u1ecbch qua n\u1ec1n t\u1ea3ng m\u00e0 c\u00f4ng ty cung c\u1ea5p b\u1edfi d\u1eef li\u1ec7u l\u00e0 minh b\u1ea1ch v\u00e0 d\u1ec5 d\u00e0ng truy c\u1eadp. Giao d\u1ecbch thu\u1eadt to\u00e1n l\u00e0 xu th\u1ebf t\u1ea5t y\u1ebfu c\u1ee7a t\u01b0\u01a1ng lai, vi\u1ec7c ng\u01b0\u1eddi d\u00f9ng t\u00ecm ki\u1ebfm gi\u1ea3i ph\u00e1p x\u1eed l\u00fd d\u1eef li\u1ec7u hi\u1ec7u qu\u1ea3 v\u00e0 t\u1ed1c \u0111\u1ed9 h\u01a1n khi d\u00f9ng vnstock v\u00e0 python l\u00e0 m\u1ed9t nhu c\u1ea7u thi\u1ebft y\u1ebfu n\u00ean \u0111\u01b0\u1ee3c \u0111\u00e1p \u1ee9ng. Vnstock r\u1ea5t s\u1eb5n l\u00f2ng gi\u1edbi thi\u1ec7u th\u01b0\u01a1ng hi\u1ec7u c\u1ee7a qu\u00fd c\u00f4ng ty t\u1edbi c\u1ed9ng \u0111\u1ed3ng ng\u01b0\u1eddi d\u00f9ng v\u00e0 h\u1ee3p t\u00e1c v\u1edbi qu\u00fd c\u00f4ng ty trong vi\u1ec7c x\u00e2y d\u1ef1ng h\u1ec7 sinh th\u00e1i c\u00f4ng ngh\u1ec7 cho kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n.
\u0110\u1ec3 li\u00ean h\u1ec7 h\u1ee3p t\u00e1c, anh/ch\u1ecb vui l\u00f2ng trao \u0111\u1ed5i qua email: support@vnstock.site
"},{"location":"faq/feature/#tai-sao-vnstock-chon-phat-trien-ma-nguon-mo","title":"T\u1ea1i sao vnstock ch\u1ecdn ph\u00e1t tri\u1ec3n M\u00e3 Ngu\u1ed3n M\u1edf?","text":"Kh\u00e1c v\u1edbi c\u00e1c s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n \u0111\u00f3ng (closed-source), c\u00e1c s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n m\u1edf (open-source) th\u00fac \u0111\u1ea9y t\u00ednh minh b\u1ea1ch v\u00e0 cho ph\u00e9p ph\u00e1t tri\u1ec3n ph\u1ea7n m\u1ec1m \u0111\u1ea1t ch\u1ea5t l\u01b0\u1ee3ng cao. B\u1edfi t\u00ednh m\u1edf, vnstock mu\u1ed1n ch\u00e0o \u0111\u00f3n nh\u1eefng \u00fd t\u01b0\u1edfng t\u1ed1t nh\u1ea5t, c\u00e1c nh\u00e0 ph\u00e1t tri\u1ec3n xu\u1ea5t s\u1eafc nh\u1ea5t tham gia, v\u00e0 t\u1ea1o n\u00ean m\u1ed9t c\u1ed9ng \u0111\u1ed3ng \u0111o\u00e0n k\u1ebft.
M\u1ed9t c\u00e1ch ng\u1eafn g\u1ecdn, vnstock ch\u1ecdn ph\u00e1t tri\u1ec3n m\u00e3 ngu\u1ed3n m\u1edf nh\u1eb1m th\u00fac \u0111\u1ea9y s\u1ef1 \u0111\u1ed5i m\u1edbi v\u00e0 \u0111\u1ed9t ph\u00e1 trong ph\u00e1t tri\u1ec3n c\u00f4ng ngh\u1ec7 trong l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh t\u1ea1i Vi\u1ec7t Nam. \u0110\u1ed3ng th\u1eddi, vnstock cho ph\u00e9p b\u1ea1n t\u00f9y ch\u1ec9nh m\u00e3 ngu\u1ed3n vnstock \u0111\u1ec3 ph\u00f9 h\u1ee3p v\u1edbi nhu c\u1ea7u \u0111a d\u1ea1ng c\u1ee7a m\u00ecnh.
"},{"location":"faq/feature/#tai-sao-vnstock-uoc-cung-cap-mien-phi","title":"T\u1ea1i sao vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p mi\u1ec5n ph\u00ed?","text":"T\u1ea7m nh\u00ecn
Ch\u00fang t\u00f4i tin r\u1eb1ng ho\u1ea1t \u0111\u1ed9ng nghi\u00ean c\u1ee9u \u0111\u1ea7u t\u01b0 n\u00ean \u0111\u01b0\u1ee3c ph\u1ed5 bi\u1ebfn v\u1edbi t\u1ea5t c\u1ea3 m\u1ecdi ng\u01b0\u1eddi Vi\u1ec7t Nam \u0111\u1ec3 t\u1ea1o ra m\u1ed9t c\u1ed9ng \u0111\u1ed3ng th\u1ecbnh v\u01b0\u1ee3ng, m\u1ed9t \u0111\u1ea5t n\u01b0\u1edbc ph\u00e1t tri\u1ec3n v\u1edbi n\u1ec1n d\u00e2n tr\u00ed t\u00e0i ch\u00ednh \u1edf t\u1ea7m b\u1eadc cao.
vnstock s\u01b0u t\u1ea7m c\u00e1c API c\u00f4ng khai v\u00e0 cung c\u1ea5p t\u1edbi b\u1ea1n b\u1ed9 d\u1eef li\u1ec7u ho\u00e0n ch\u1ec9nh v\u00e0 mi\u1ec5n ph\u00ed, gi\u00fap c\u00e1c c\u00e1 nh\u00e2n/t\u1ed5 ch\u1ee9c d\u1ec5 d\u00e0ng truy c\u1eadp v\u00e0o c\u00e1c d\u1eef li\u1ec7u t\u00e0i ch\u00ednh hi\u1ec7n c\u00f3 m\u00e0 kh\u00f4ng ph\u1ea3i tr\u1ea3 b\u1ea5t k\u1ef3 chi ph\u00ed n\u00e0o.
Tuy nhi\u00ean, ngu\u1ed3n d\u1eef li\u1ec7u mi\u1ec5n ph\u00ed c\u0169ng th\u1ec3 hi\u1ec7n m\u1ed9t s\u1ed1 h\u1ea1n ch\u1ebf \u0111\u1ebfn v\u1edbi \u0111\u1ed9 tin c\u1eady v\u00e0 ch\u00ednh x\u00e1c xu\u1ea5t ph\u00e1t t\u1eeb ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u (c\u00f4ng ty ch\u1ee9ng kho\u00e1n). Vnstock cung c\u1ea5p cho b\u1ea1n d\u1eef li\u1ec7u m\u00e0 c\u00e1c ngu\u1ed3n d\u1eef li\u1ec7u n\u00e0y hi\u1ec3n th\u1ecb tr\u00ean website c\u1ee7a h\u1ecd. T\u00f9y t\u1eebng th\u1eddi \u0111i\u1ec3m, ngu\u1ed3n d\u1eef li\u1ec7u ph\u00f9 h\u1ee3p \u0111\u01b0\u1ee3c l\u1ef1a ch\u1ecdn \u0111\u1ec3 cung c\u1ea5p cho b\u1ea1n.
\u0110\u1ec3 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n, ch\u00fang t\u00f4i s\u1ebd cung c\u1ea5p th\u00eam c\u00e1c t\u00f9y ch\u1ecdn tr\u1ea3 ph\u00ed h\u1ee3p l\u00fd trong th\u1eddi gian t\u1edbi gi\u00fap ng\u01b0\u1eddi d\u00f9ng \u0111\u01b0\u1ee3c l\u1ef1a ch\u1ecdn ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ea5t l\u01b0\u1ee3ng, t\u1ed1c \u0111\u1ed9 v\u1edbi \u0111\u1ed9 tin c\u1eady cao ph\u1ee5c v\u1ee5 cho nhu c\u1ea7u \u0111\u1ea7u t\u01b0/nghi\u00ean c\u1ee9u c\u1ee7a m\u00ecnh.
"},{"location":"faq/feature/#han-che-cua-du-lieu-vnstock","title":"H\u1ea1n ch\u1ebf c\u1ee7a d\u1eef li\u1ec7u vnstock?","text":"vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n d\u1ef1a tr\u00ean c\u00e1c Public APIs c\u1ee7a c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n cung c\u1ea5p cho kh\u00e1ch h\u00e0ng. Ph\u01b0\u01a1ng ph\u00e1p t\u00ednh to\u00e1n c\u1ee7a c\u00e1c d\u1eef li\u1ec7u n\u00e0y ph\u1ee5 thu\u1ed9c v\u00e0o \u0111\u1ed1i t\u00e1c cung c\u1ea5p d\u1eef li\u1ec7u v\u00e0 kh\u00f4ng \u0111\u01b0\u1ee3c chia s\u1ebb c\u00f4ng khai. Do \u0111\u00f3, khi th\u1ef1c hi\u1ec7n so s\u00e1nh d\u1eef li\u1ec7u gi\u1eefa c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u kh\u00e1c nhau b\u1ea1n c\u00f3 th\u1ec3 ph\u00e1t hi\u1ec7n ra c\u00f3 s\u1ef1 sai kh\u00e1c.
Hi\u1ec7n nay tr\u00ean th\u1ecb tr\u01b0\u1eddng, c\u00f3 m\u1ed9t s\u1ed1 ngu\u1ed3n cung c\u1ea5p d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i b\u1edfi c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n bao g\u1ed3m:
G\u1ee3i \u00fd
N\u1ebfu b\u1ea1n ph\u00e1t hi\u1ec7n ra b\u1ea5t k\u1ef3 th\u00f4ng tin n\u00e0o b\u1ea5t th\u01b0\u1eddng ho\u1eb7c kh\u00f4ng \u0111\u00e1ng tin c\u1eady, vui l\u00f2ng b\u00e1o cho t\u00e1c gi\u1ea3 v\u00e0 c\u1ed9ng \u0111\u1ed3ng th\u00f4ng qua Discord server ho\u1eb7c nh\u1eafn tin tr\u1ef1c ti\u1ebfp cho t\u00e1c gi\u1ea3.
"},{"location":"faq/ung-ho-du-an-vnstock/","title":"\u1ee6ng h\u1ed9 d\u1ef1 \u00e1n","text":""},{"location":"faq/ung-ho-du-an-vnstock/#toi-co-phai-tra-phi-khi-su-dung-vnstock","title":"T\u00f4i c\u00f3 ph\u1ea3i tr\u1ea3 ph\u00ed khi s\u1eed d\u1ee5ng vnstock?","text":"Th\u00f4ng tin
Vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p d\u01b0\u1edbi d\u1ea1ng ph\u1ea7n m\u1ec1m m\u00e3 ngu\u1ed3n m\u1edf, mi\u1ec5n ph\u00ed. B\u1ea1n \u0111\u01b0\u1ee3c t\u1ef1 do s\u1eed d\u1ee5ng, ph\u00e2n ph\u1ed1i v\u00e0 s\u1eeda \u0111\u1ed5i ph\u1ea7n m\u1ec1m theo c\u00e1c \u0111i\u1ec1u kho\u1ea3n c\u1ee7a gi\u1ea5y ph\u00e9p MIT v\u00e0 c\u00e1c nguy\u00ean t\u1eafc c\u1ee7a d\u1ef1 \u00e1n. B\u1ea1n c\u00f3 th\u1ec3 t\u00f9y t\u00e2m \u0111\u00f3ng g\u00f3p kinh ph\u00ed ph\u00e1t tri\u1ec3n v\u00e0 duy tr\u00ec d\u1ef1 \u00e1n t\u1edbi t\u00e1c gi\u1ea3.
B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn c\u00e1ch \u0111\u01a1n gi\u1ea3n l\u00e0 g\u1eedi t\u1eb7ng m\u1ed9t ly cafe nh\u01b0 vi\u1ec7c ai \u0111\u00f3 \u0111\u00e3 gi\u00fap b\u1ea1n m\u1ed9t vi\u1ec7c t\u1ed1t v\u00e0 b\u1ea1n mu\u1ed1n tri \u00e2n. \u0110\u1ec3 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n b\u1ec1n v\u1eefng, trong t\u01b0\u01a1ng lai vnstock s\u1ebd gi\u1edbi thi\u1ec7u th\u00eam c\u00e1c s\u1ea3n ph\u1ea9m/t\u00ednh n\u0103ng n\u00e2ng cao c\u00f3 tr\u1ea3 ph\u00ed b\u1edfi kh\u00f4ng ai c\u00f3 th\u1ec3 t\u1ed3n t\u1ea1i ch\u1ec9 \u0111\u1ec3 cung c\u1ea5p m\u1ecdi th\u1ee9 mi\u1ec5n ph\u00ed v\u00e0 ch\u00fang t\u00f4i c\u0169ng c\u00f3 c\u00f4ng vi\u1ec7c, gia \u0111\u00ecnh c\u1ea7n ch\u0103m lo nh\u01b0 b\u1ea1n v\u1eady. Tuy nhi\u00ean, vnstock phi\u00ean b\u1ea3n m\u00e3 ngu\u1ed3n m\u1edf lu\u00f4n mi\u1ec5n ph\u00ed.
"},{"location":"faq/ung-ho-du-an-vnstock/#toi-co-the-ong-gop-quy-vnstock-nhu-the-nao","title":"T\u00f4i c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p qu\u1ef9 Vnstock nh\u01b0 th\u1ebf n\u00e0o?","text":"\u0110\u1ec3 \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n, b\u1ea1n l\u1ef1a ch\u1ecdn 1 trong 4 c\u00e1ch sau \u0111\u00e2y:
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Ng\u00e2n h\u00e0ng nh\u1eadn: Vietcombank
chi nh\u00e1nh Thanh \u0110a
T\u00e0i kho\u1ea3n: nh\u1eadp t\u00ean VNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card [t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"faq/ung-ho-du-an-vnstock/#quy-vnstock-uoc-su-dung-nhu-the-nao","title":"Qu\u1ef9 Vnstock \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng nh\u01b0 th\u1ebf n\u00e0o?","text":"
T\u00e1c gi\u1ea3 s\u1eed d\u1ee5ng qu\u1ef9 Vnstock \u0111\u1ec3 duy tr\u00ec v\u00e0 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n. C\u1ee5 th\u1ec3, qu\u1ef9 Vnstock \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3:
Tr\u1ea3 chi ph\u00ed duy tr\u00ec m\u00e1y ch\u1ee7 v\u00e0 t\u00ean mi\u1ec1n c\u1ee7a d\u1ef1 \u00e1n.
Tr\u1ea3 chi ph\u00ed n\u00e2ng c\u1ea5p v\u00e0 v\u1eadn h\u00e0nh c\u00e1c d\u1ecbch v\u1ee5 h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng cho d\u1ef1 \u00e1n.
S\u1eed d\u1ee5ng l\u00e0m chi ph\u00ed cho c\u00e1c ho\u1ea1t \u0111\u1ed9ng qu\u1ea3ng b\u00e1 v\u00e0 marketing c\u1ee7a d\u1ef1 \u00e1n.
S\u1eed d\u1ee5ng l\u00e0m chi ph\u00ed cho c\u00e1c ho\u1ea1t \u0111\u1ed9ng \u0111\u00e0o t\u1ea1o v\u00e0 h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng.
Hi\u1ec7n t\u1ea1i Vnstock docs \u0111\u00e3 \u0111\u01b0\u1ee3c ho\u00e0n thi\u1ec7n v\u00e0 cung c\u1ea5p m\u1ed9t m\u1ea3nh gh\u00e9p quan tr\u1ecdng gi\u00fap ng\u01b0\u1eddi d\u00f9ng ti\u1ebfp c\u1eadn t\u00e0i li\u1ec7u v\u00e0 c\u00e1c h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng vnstock tr\u1ef1c quan v\u00e0 t\u1ed1i \u01b0u.
L\u01b0u \u00fd
Tr\u01b0\u1edbc khi t\u00ecm \u0111\u1ebfn t\u00e1c gi\u1ea3 \u0111\u1ec3 nh\u1eafn tin tr\u1ef1c ti\u1ebfp, b\u1ea1n vui l\u00f2ng t\u1ef1 nghi\u00ean c\u1ee9u \u0111\u1ec3 ti\u1ebft ki\u1ec7m th\u1eddi gian cho c\u1ea3 hai b\u00ean. T\u00f4i c\u0169ng c\u00f3 nh\u1eefng c\u00f4ng vi\u1ec7c v\u00e0 \u01b0u ti\u00ean ri\u00eang c\u1ee7a m\u00ecnh v\u00e0 kh\u00f4ng ph\u1ea3i l\u00fac n\u00e0o c\u0169ng s\u1eb5n s\u00e0ng h\u1ed7 tr\u1ee3 b\u1ea1n 24/4 cho nh\u1eefng c\u00e2u h\u1ecfi r\u1ea5t c\u0103n b\u1ea3n \u0111\u00e3 c\u00f3 trong t\u00e0i li\u1ec7u v\u00e0 vi\u1ec7c b\u1ea1n \u0111\u1eb7t c\u00e2u h\u1ecfi ch\u1ec9 v\u00ec m\u00ecnh \"l\u01b0\u1eddi\" t\u00ecm ki\u1ebfm. \u0110i\u1ec1u n\u00e0y l\u00e0 kh\u00f4ng th\u1ec3 ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c.
N\u1ebfu b\u1ea1n th\u1ef1c s\u1ef1 c\u1ea7n h\u1ed7 tr\u1ee3, \u0111\u00e2y l\u00e0 nh\u1eefng c\u00e1ch b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo th\u1ee9 t\u1ef1 \u01b0u ti\u00ean:
H\u1ecfi trong nh\u00f3m Facebook th\u00e0nh vi\u00ean (\u1ee6ng h\u1ed9 Vnstock 100k \u0111\u1ec3 tham gia):
H\u1ecfi trong nh\u00f3m c\u1ed9ng \u0111\u1ed3ng Discord (mi\u1ec5n ph\u00ed):
G\u1eedi email y\u00eau c\u1ea7u h\u1ed7 tr\u1ee3: support@vnstock.site
Nh\u1eafn tin tr\u1ef1c ti\u1ebfp cho t\u00e1c gi\u1ea3:
L\u01b0u \u00fd
vnstock s\u1eed d\u1ee5ng th\u01b0 vi\u1ec7n plotly l\u00e0m th\u01b0 vi\u1ec7n bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u tr\u1ef1c quan. \u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb, b\u1ea1n c\u1ea7n \u0111\u1ea3m b\u1ea3o plotly \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng.
Plotly l\u00e0 th\u01b0 vi\u1ec7n bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u m\u1ea1nh m\u1ebd trong Python, cung c\u1ea5p \u0111a d\u1ea1ng c\u00e1c lo\u1ea1i bi\u1ec3u \u0111\u1ed3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 v\u00e0 t\u1ea5t c\u1ea3 \u0111\u1ed3 th\u1ecb \u0111\u1ec1u h\u1ed7 tr\u1ee3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c quan (interactive). H\u00e0m candlestick_chart
d\u01b0\u1edbi \u0111\u00e2y \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean n\u1ec1n Plotly graph object
, h\u1ed7 tr\u1ee3 \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng c\u1ee7a Plotly.
T\u00ednh n\u0103ng v\u1ebd bi\u1ec3u \u0111\u1ed3 kh\u00f4ng ph\u1ea3i ai c\u0169ng c\u1ea7n thi\u1ebft d\u00f9ng, do \u0111\u00f3 \u0111\u1ec3 t\u1ed1i \u01b0u th\u1eddi gian c\u00e0i \u0111\u1eb7t th\u01b0 vi\u1ec7n vnstock v\u00e0 c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c, plotly
\u0111\u01b0\u1ee3c t\u00e1ch kh\u1ecfi ti\u1ebfn tr\u00ecnh c\u00e0i \u0111\u1eb7t t\u1ef1 \u0111\u1ed9ng. B\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t plotly th\u1ee7 c\u00f4ng nh\u01b0 sau:
pip install plotly\n
"},{"location":"functions/chart/#o-thi-nen","title":"\u0110\u1ed3 th\u1ecb n\u1ebfn","text":"C\u00fa ph\u00e1p c\u00e2u l\u1ec7nh v\u1ebd bi\u1ec3u \u0111\u1ed3 \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau:
from vnstock import * #import all functions, including functions that provide OHLC data for charting\nfrom vnstock.chart import * # import chart functions\ndf = stock_historical_data(\"VIC\", \"2022-01-01\", \"2023-10-10\", \"1D\", \"stock\")\nfig = candlestick_chart(df, ma_periods=[50,200], show_volume=False, reference_period=300, figure_size=(15, 8), \n title='VIC - Candlestick Chart with MA and Volume', x_label='Date', y_label='Price', \n colors=('lightgray', 'gray'), reference_colors=('black', 'blue'))\nfig.show()\n
B\u1ea1n c\u00f3 th\u1ec3 t\u00f9y ch\u1ecdn b\u1ecf qua b\u01b0\u1edbc g\u00e1n \u0111\u1ed3 th\u1ecb v\u1edbi bi\u1ebfn fig n\u1ebfu ch\u1ec9 mu\u1ed1n xem \u0111\u1ed3 th\u1ecb tr\u1ef1c ti\u1ebfp tr\u00ean Jupyter Notebook m\u00e0 kh\u00f4ng thao t\u00e1c ti\u1ebfp theo nh\u01b0 l\u01b0u file. \u0110\u1ec3 v\u1ebd bi\u1ec3u \u0111\u1ed3 cho m\u00e3 ch\u1ec9 s\u1ed1 (index) ho\u1eb7c m\u00e3 ph\u00e1i sinh (derivative), b\u1ea1n c\u1ea7n thay \u0111\u1ed5i tham s\u1ed1 type
th\u00e0nh index
ho\u1eb7c derivative
.
from vnstock import * #import all functions\n\ndf = stock_historical_data(symbol='VNINDEX', start_date='2022-01-01', end_date='2023-10-10', resolution='1D', type='index')\nfig = candlestick_chart(df, \n title='VNINDEX Candlestick Chart with MA and Volume', x_label='Date', y_label='Price', ma_periods=[50,200], \n show_volume=True, figure_size=(15, 8), reference_period=300, \n colors=('lightgray', 'gray'), reference_colors=('black', 'blue'))\nfig.show()\n
B\u1ea1n c\u00f3 th\u1ec3 \u0111i\u1ec1u ch\u1ec9nh l\u1ea1i c\u00e1c th\u00f4ng s\u1ed1 c\u1ee7a h\u00e0m cho ph\u00f9 h\u1ee3p, lo\u1ea1i b\u1ecf c\u00e1c th\u00f4ng s\u1ed1 kh\u00f4ng c\u1ea7n thi\u1ebft khi g\u1ecdi h\u00e0m s\u1ebd cho ph\u00e9p h\u00e0m s\u1eed d\u1ee5ng gi\u00e1 tr\u1ecb c\u00e0i \u0111\u1eb7t m\u1eb7c \u0111\u1ecbnh, ho\u1eb7c b\u1ea1n \u0111i\u1ec1u ch\u1ec9nh b\u1eb1ng c\u00e1ch cung c\u1ea5p tham s\u1ed1 m\u1edbi v\u00e0o. Ngo\u00e0i ra b\u1ea1n c\u00f3 th\u1ec3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c ti\u1ebfp v\u1edbi \u0111\u1ed3 th\u1ecb, v\u00ed d\u1ee5 click v\u00e0o th\u00f4ng tin ch\u00fa th\u00edch t\u01b0\u01a1ng t\u1ee9ng t\u1eebng lo\u1ea1i d\u1eef li\u1ec7u \u0111\u1ec3 b\u1eadt/t\u1eaft ch\u00fang m\u00e0 kh\u00f4ng c\u1ea7n can thi\u1ec7p v\u00e0o d\u00f2ng l\u1ec7nh.
C\u00e1c tham s\u1ed1 c\u1ee7a h\u00e0m bao g\u1ed3m:
df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLCma_periods
: C\u00e1c d\u1ea3i MA c\u1ea7n t\u00ednh to\u00e1n, nh\u1eadp v\u00e0o d\u01b0\u1edbi d\u1ea1ng m\u1ed9t danh s\u00e1ch. V\u00ed d\u1ee5 [10, 50, 200] s\u1ebd cho ph\u00e9p t\u00ednh MA10, MA50, MA200. B\u1ea1n c\u00f3 th\u1ec3 nh\u1eadp bao nhi\u00eau d\u1ea3i MA t\u00f9y th\u00edch.show_volume
: True \u0111\u1ec3 hi\u1ec3n th\u1ecb th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch, False \u0111\u1ec3 \u1ea9n.reference_period
: S\u1ed1 ng\u00e0y \u0111\u1ec3 t\u00ednh to\u00e1n \u0111\u01b0\u1eddng tham chi\u1ebfu \u0111\u1ec9nh/\u0111\u00e1y c\u1ee7a gi\u00e1 V\u00ed d\u1ee5 90.figure_size
: K\u00edch th\u01b0\u1edbc \u0111\u1ed3 th\u1ecb, nh\u1eadp d\u01b0\u1edbi d\u1ea1ng tupple v\u00ed d\u1ee5 (15, 8) th\u1ec3 hi\u1ec7n 1500 x 800px.title
: T\u00ean c\u1ee7a \u0111\u1ed3 th\u1ecb.x_label
: Nh\u00e3n tr\u1ee5c x (ho\u00e0nh)y_label
: Nh\u00e3n tr\u1ee5c y (tung)colors
: M\u00e3 m\u00e0u th\u1ec3 hi\u1ec7n cho kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trong nh\u1eefng ng\u00e0y gi\u00e1 c\u1ed5 phi\u1ebfu t\u0103ng/gi\u1ea3m, \u0111\u01b0\u1ee3c nh\u1eadp d\u01b0\u1edbi d\u1ea1ng tupple. V\u00ed d\u1ee5 ('#00F4B0', '#FF3747').reference_color
: C\u1eb7p m\u00e3 m\u00e0u cho \u0111\u01b0\u1eddng gi\u00e1 th\u1ea5p nh\u1ea5t (lowest low), v\u00e0 cao nh\u1ea5t (highest high) \u0111\u01b0\u1ee3c nh\u1eadp v\u00e0o d\u01b0\u1edbi d\u1ea1ng tupple. V\u00ed d\u1ee5 ('black', 'blue')C\u00fa ph\u00e1p c\u00e2u l\u1ec7nh v\u1ebd bi\u1ec3u \u0111\u1ed3 \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau:
from vnstock import * #import all functions\ndf = stock_historical_data(symbol='VNINDEX', start_date='2022-01-01', end_date='2023-10-10', resolution='1D', type='index')\nbollinger_df = bollinger_bands(df, window=20, num_std_dev=2)\nfig = bollinger_bands_chart(bollinger_df, use_candlestick=True, show_volume=True, \n fig_size=(15, 8), chart_title='Bollinger Bands Chart', xaxis_title='Date', yaxis_title='Price', \n bollinger_band_colors=('gray', 'orange', 'gray'), volume_colors=('#00F4B0', '#FF3747'))\nfig.show()\n
K\u1ebft qu\u1ea3 nh\u01b0 sau:
Trong \u0111\u00f3, DataFrame df
c\u00f3 th\u1ec3 kh\u00f4ng ph\u1ea3i t\u00ednh to\u00e1n l\u1ea1i n\u1ebfu \u0111\u00e3 khai b\u00e1o tr\u01b0\u1edbc \u0111\u00f3 trong d\u1ef1 \u00e1n.
H\u00e0m bollinger_bands cho ph\u00e9p t\u00f9y ch\u1ec9nh c\u00e1c tham s\u1ed1 t\u00ednh to\u00e1n gi\u00e1 tr\u1ecb \u0111\u1ec3 s\u1eed d\u1ee5ng trong bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u, c\u00e1c tham s\u1ed1 bao g\u1ed3m: - df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLC, s\u1eed d\u1ee5ng h\u00e0m stock_historical_data. - window
: Khung th\u1eddi gian \u0111\u1ec3 t\u00ednh to\u00e1n gi\u00e1 tr\u1ecb trung b\u00ecnh \u0111\u1ed9ng \u0111\u01a1n gi\u1ea3n (SMA), m\u1eb7c \u0111\u1ecbnh l\u00e0 20 ng\u00e0y. - num_std_dev
: S\u1ed1 k\u1ef3 t\u00ednh \u0111\u1ed9 l\u1ec7ch chu\u1ea9n. M\u1eb7c \u0111\u1ecbnh l\u00e0 2.
H\u00e0m v\u1ebd \u0111\u1ed3 th\u1ecb Bollinger Bands bao g\u1ed3m c\u00e1c tham s\u1ed1:
df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u Bollinger Bands: time, open, high, low, close, volume, ticker, upper_band, middle_band, lower_band. D\u1eef li\u1ec7u n\u00e0y c\u00f3 \u0111\u01b0\u1ee3c sau khi x\u1eed l\u00fd d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLC (h\u00e0m stock_historical_data) v\u1edbi h\u00e0m bollinger_bands
.use_candlestick
: Ch\u1ecdn s\u1eed d\u1ee5ng \u0111\u1ed3 th\u1ecb n\u1ebfn (gi\u00e1 tr\u1ecb True) hay ch\u1ec9 bi\u1ec3u di\u1ec5n gi\u00e1 \u0111\u00f3ng c\u1eeda d\u1ea1ng \u0111\u1ed3 th\u1ecb \u0111\u01b0\u1eddng (gi\u00e1 tr\u1ecb False). M\u1eb7c \u0111\u1ecbnh d\u00f9ng \u0111\u1ed3 th\u1ecb n\u1ebfn.show_volume
: Ch\u1ecdn hi\u1ec3n th\u1ecb th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch (True) ho\u1eb7c \u1ea9n \u0111i (False). M\u1eb7c \u0111\u1ecbnh hi\u1ec3n th\u1ecb.fig_size
: Tupple ch\u1ee9a gi\u00e1 tr\u1ecb k\u00edch th\u01b0\u1edbc \u0111\u1ed3 th\u1ecb (width, height). V\u00ed d\u1ee5 (15, 8) th\u1ec3 hi\u1ec7n 1500 x 800px.chart_title
: T\u00ean c\u1ee7a \u0111\u1ed3 th\u1ecb. N\u1ebfu kh\u00f4ng ch\u1ec9 r\u00f5, s\u1ebd d\u00f9ng t\u00ean m\u1eb7c \u0111\u1ecbnhxaxis_title
: T\u00ean c\u1ee7a tr\u1ee5c x (ho\u00e0nh)yaxis_title
: T\u00ean c\u1ee7a tr\u1ee5c y (tung)bollinger_band_colors
: Tupple ch\u1ee9a b\u1ed9 m\u00e3 m\u00e0u cho d\u1ea3i Bollinger Bands (upper, middle, lower).volume_colors
: Tuple ch\u1ee9a m\u00e3 m\u00e0u cho th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trong nh\u1eefng ng\u00e0y gi\u00e1 t\u0103ng, gi\u1ea3m. V\u00ed d\u1ee5 ('green', 'red').\u0110\u1ec3 l\u01b0u \u0111\u1ed3 th\u1ecb v\u1edbi c\u00e2u l\u1ec7nh, b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c kaleido
sau \u0111\u00f3 th\u1ef1c hi\u1ec7n l\u01b0u file nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y. Sau khi c\u00e0i \u0111\u1eb7t th\u00ec c\u1ea7n ph\u1ea3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i runtime c\u1ee7a Jupyter Notebook. Tr\u00ean Google Colab ch\u1ecdn Menu Runtime
-> Restart runtime
. Sau \u0111\u00f3 b\u1ea1n c\u1ea7n ch\u1ea1y l\u1ea1i c\u00e1c l\u1ec7nh \u0111\u1ec3 v\u1ebd \u0111\u1ed3 th\u1ecb r\u1ed3i m\u1edbi c\u00f3 th\u1ec3 l\u01b0u. Vi\u1ec7c n\u00e0y kh\u00e1 b\u1ea5t ti\u1ec7n, do \u0111\u00f3 n\u1ebfu kh\u00f4ng c\u00f3 nhu c\u1ea7u l\u01b0u file b\u1eb1ng c\u00e2u l\u1ec7nh, b\u1ea1n c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n t\u1eeb giao di\u1ec7n \u0111\u1ed3 h\u1ecda c\u1ee7a \u0111\u1ed3 th\u1ecb, ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng c\u00e1i m\u00e1y \u1ea3nh (thanh c\u00f4ng c\u1ee5 ph\u00eda tr\u00ean b\u00ean ph\u1ea3i), click v\u00e0o v\u00e0 ch\u1ecdn th\u01b0 m\u1ee5c \u0111\u1ec3 l\u01b0u file.
!pip install -U kaleido\n
Vi\u1ec7c c\u00e0i \u0111\u1eb7t ch\u1ec9 c\u1ea7n th\u1ef1c hi\u1ec7n m\u1ed9t l\u1ea7n, cu\u1ed1i c\u00f9ng d\u00f9ng c\u00e2u l\u1ec7nh sau \u0111\u1ec3 l\u01b0u file \u1ea3nh. Thay \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn th\u01b0 m\u1ee5c v\u00e0 t\u00ean file theo \u00fd b\u1ea1n \u0111\u1ec3 l\u01b0u file \u1ea3nh v\u00e0o th\u01b0 m\u1ee5c mong mu\u1ed1n. fig.write_image(\"TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/VNINDEX_candlestick.png\")\n
"},{"location":"functions/chart/#go-loi-thu-vien-phu-thuoc","title":"G\u1ee1 l\u1ed7i th\u01b0 vi\u1ec7n ph\u1ee5 thu\u1ed9c","text":"B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y l\u1ec7nh c\u00e0i \u0111\u1eb7t to\u00e0n b\u1ed9 th\u01b0 vi\u1ec7n ph\u1ee5 thu\u1ed9c t\u1eeb file requirements.txt
. T\u1ea3i file requirements.txt v\u1ec1 m\u00e1y c\u1ee7a b\u1ea1n. H\u00e3y \u0111\u1ea3m b\u1ea3o b\u1ea1n \u0111\u00e3 cd
\u0111\u1ebfn \u0111\u00fang th\u01b0 m\u1ee5c ch\u1ee9a file requirements.txt tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh.
cd TH\u01af_M\u1ee4C_CH\u1ee8A_FILE\n
pip install -r requirements.txt\n
"},{"location":"functions/chart/#xay-dung-dashboard-voi-streamlit","title":"X\u00e2y d\u1ef1ng dashboard v\u1edbi Streamlit","text":"\u0110\u1ec3 t\u1ed1i \u01b0u s\u1ee9c m\u1ea1nh c\u1ee7a vnstock v\u00e0 x\u00e2y d\u1ef1ng nh\u1eefng s\u1ea3n ph\u1ea9m th\u1ef1c s\u1ef1 trong ph\u00e2n t\u00edch \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n th\u00ec Streamlit l\u00e0 l\u1ef1a ch\u1ecdn h\u00e0ng \u0111\u1ea7u. Streamlit l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n m\u00e3 ngu\u1ed3n m\u1edf, cho ph\u00e9p b\u1ea1n x\u00e2y d\u1ef1ng c\u00e1c \u1ee9ng d\u1ee5ng web tr\u1ef1c quan v\u1edbi Python m\u1ed9t c\u00e1ch nhanh ch\u00f3ng v\u00e0 d\u1ec5 d\u00e0ng. Vnstock Web App ch\u00ednh l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb ch\u00ednh vnstock \u0111\u1ec3 t\u1ea1o ra \u1ee9ng d\u1ee5ng v\u1edbi giao di\u1ec7n \u0111\u1ed3 h\u1ecda tr\u1ef1c quan v\u00e0 th\u00e2n thi\u1ec7n. Web App n\u00e0y ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y, kh\u00f4ng c\u1ea7n thi\u1ebft l\u1eadp b\u1ea5t c\u1ee9 c\u01a1 s\u1edf d\u1eef li\u1ec7u n\u00e0o, d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o c\u1ee7a Web App ch\u00ednh l\u00e0 c\u00e1c APIs do vnstock cung c\u1ea5p.
\u0110\u1ec3 c\u00f3 th\u1ec3 l\u00e0m ch\u1ee7 Streamlit nhanh ch\u00f3ng v\u1edbi l\u1ed9 tr\u00ecnh \u0111\u00e0o t\u1ea1o th\u1ef1c t\u1ebf, \u1ee9ng d\u1ee5ng cho ch\u00ednh th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 s\u1eed d\u1ee5ng vnstock. B\u1ea1n c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam v\u1edbi Th\u1ecbnh v\u1ec1 kh\u00f3a h\u1ecdc ng\u1eafn h\u1ea1n s\u1eafp tri\u1ec3n khai.
"},{"location":"functions/comparison/","title":"So s\u00e1nh c\u1ed5 phi\u1ebfu ti\u1ec1m n\u0103ng","text":"G\u1ee3i \u00fd
B\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i xu\u1ed1ng b\u1ea3ng gi\u00e1 c\u1ee7a m\u1ed9t danh s\u00e1ch c\u00e1c c\u1ed5 phi\u1ebfu \u0111\u01b0\u1ee3c ch\u1ecdn \u0111\u1ec3 ph\u00e2n t\u00edch, thi\u1ebft l\u1eadp thu\u1eadt to\u00e1n d\u1ec5 d\u00e0ng h\u01a1n (khi xu\u1ea5t ra Google Sheets/Excel) so v\u1edbi vi\u1ec7c xem tr\u1ef1c ti\u1ebfp tr\u00ean b\u1ea3ng gi\u00e1 c\u1ee7a c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n.
"},{"location":"functions/comparison/#bang-gia","title":"B\u1ea3ng gi\u00e1","text":"Minh h\u1ecda B\u1ea3ng gi\u00e1 TCBS
"},{"location":"functions/comparison/#khop-lenh-buoc-gia-khoi-luong","title":"Kh\u1edbp l\u1ec7nh, B\u01b0\u1edbc gi\u00e1 & kh\u1ed1i l\u01b0\u1ee3ng","text":"price_depth('TCB,SSI,VND')\n
S\u1eed d\u1ee5ng h\u00e0m n\u00e0y cho ph\u00e9p th\u1ed1ng k\u00ea c\u00e1c b\u01b0\u1edbc gi\u00e1 v\u00e0 kh\u1ed1i l\u01b0\u1ee3ng tr\u00ean b\u1ea3ng gi\u00e1 c\u1ee7a m\u1ed9t ho\u1eb7c m\u1ed9t danh s\u00e1ch c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng k\u1ebft h\u1ee3p h\u00e0m n\u00e0y v\u1edbi h\u00e0m price_board \u0111\u1ec3 k\u1ebft h\u1ee3p c\u00e1c th\u00f4ng tin \u0111a d\u1ea1ng v\u1ec1 gi\u00e1, kh\u1ed1i l\u01b0\u1ee3ng, ch\u1ec9 s\u1ed1, th\u00f4ng tin giao d\u1ecbch \u0111\u1ec3 ch\u1ecdn l\u1ecdc v\u00e0 theo d\u00f5i c\u1ed5 phi\u1ebfu theo m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng c\u1ee7a m\u00ecnh. >>> price_depth('TCB,SSI,VND').T\n 0 1 2\nM\u00e3 CP TCB SSI VND\nGi\u00e1 tham chi\u1ebfu 30650 30100 19150\nGi\u00e1 Tr\u1ea7n 32750 32200 20450\nGi\u00e1 S\u00e0n 28550 28000 17850\nGi\u00e1 mua 3 31100 29850 18900\nKL mua 3 1630 3240 8310\nGi\u00e1 mua 2 31050 29800 18850\nKL mua 2 1320 10690 13480\nGi\u00e1 mua 1 31000 29750 18800\nKL mua 1 2260 3220 12160\nGi\u00e1 kh\u1edbp l\u1ec7nh 31100 29900 18900\nKL Kh\u1edbp l\u1ec7nh 90 140 100\nGi\u00e1 b\u00e1n 1 31200 29900 18950\nKL b\u00e1n 1 2140 2980 6720\nGi\u00e1 b\u00e1n 2 31250 29950 19000\nKL b\u00e1n 2 5410 4340 16200\nGi\u00e1 b\u00e1n 3 31300 30000 19050\nKL b\u00e1n 3 810 17840 11000\nT\u1ed5ng Kh\u1ed1i L\u01b0\u1ee3ng 164810 1783250 1812410\n\u0110TNN Mua 0 45896 20285\n\u0110TNN B\u00e1n 0 77526 38110\n\u0110TNN Room 0 837230225 936537977\n
"},{"location":"functions/comparison/#thong-tin-giao-dich","title":"Th\u00f4ng tin giao d\u1ecbch","text":"price_board('TCB,SSI,VND')\n
H\u00e0m n\u00e0y cho ph\u00e9p t\u1ea3i v\u1ec1 th\u00f4ng tin gi\u00e1, kh\u1ed1i l\u01b0\u1ee3ng v\u00e0 c\u00e1c ch\u1ec9 s\u1ed1 quan tr\u1ecdng cho m\u1ed9t ho\u1eb7c m\u1ed9t danh s\u00e1ch m\u00e3 c\u1ed5 phi\u1ebfu. S\u1eed d\u1ee5ng k\u1ebft h\u1ee3p v\u1edbi h\u00e0m price_depth cho hi\u1ec7u qu\u1ea3 t\u1ed1t nh\u1ea5t. >>> price_board('TCB,SSI,VND').T\n 0 1 2\nM\u00e3 CP TCB SSI VND\nGi\u00e1 31100.0 29900.0 18850.0\nKLBD/TB5D 0.95 1.33 1.28\nT.\u0111\u1ed9 GD 0.82 0.68 0.83\nKLGD r\u00f2ng(CM) 0 -219100 198000\n%KLGD r\u00f2ng (CM) 0.0 -19.6 14.2\nRSI 35.168889 38.43115 35.726964\nMACD Hist -0.13 -0.34 -0.23\nMACD Signal Neutral Sell Sell\nT\u00edn hi\u1ec7u KT Neutral Neutral Neutral\nT\u00edn hi\u1ec7u TB \u0111\u1ed9ng Strong Buy Strong Buy Strong Buy\nMA20 32265.0 31957.5 20772.5\nMA50 33446.0 32258.0 21899.0\nMA100 33034.5 29527.0 20479.0\nPhi\u00ean +/- -6 -1 -1\n% thay \u0111\u1ed5i gi\u00e1 3D -3.5 -4.3 -4.3\n% thay \u0111\u1ed5i gi\u00e1 1M -10.1 -15.7 -22.0\n% thay \u0111\u1ed5i gi\u00e1 3M -5.1 5.4 4.1\n% thay \u0111\u1ed5i gi\u00e1 1Y 21.1 75.8 31.2\nRS 3D 50.0 34.0 22.0\nRS 1M 38.0 23.0 11.0\nRS 3M 45.0 76.0 73.0\nRS 1Y 69.0 95.0 77.0\nRS TB 50.0 57.0 46.0\n\u0110\u1ec9nh 1M 34350 36450 25250\n\u0110\u1ec9nh 3M 35750 36450 25250\n\u0110\u1ec9nh 1Y 35750 36450 25250\n\u0110\u00e1y 1M 30650 30100 19150\n\u0110\u00e1y 3M 30650 28000 18100\n\u0110\u00e1y 1Y 20700 13373 9720\n%\u0110\u1ec9nh 1Y -14.3 -17.4 -24.2\n%\u0110\u00e1y 1Y 48.1 125.1 97.0\nP/E 6.1 22.4 41.0\nP/B 0.9 2.0 1.5\nROE 0.15834 0.090235 0.038377\nTCRating 4.2 3.8 3.8\nKh\u1ed1i l\u01b0\u1ee3ng D\u01b0 b\u00e1n 84500 251400 292000\nKh\u1ed1i l\u01b0\u1ee3ng D\u01b0 mua 51000 168800 503100\nTCBS \u0111\u1ecbnh gi\u00e1 48627 17496 12096\nKh\u1edbp nhi\u1ec1u nh\u1ea5t 30650 29500 18800\n\u0110.g\u00f3p VNINDEX 0.4 -0.08 -0.09\n%Gi\u00e1 - %VNI (1M) 0.1 -5.5 -11.8\n%Gi\u00e1 - %VNI (1Y) 18.9 73.5 28.9\nVNINDEX P/E 13.9448 13.9448 13.9448\nVNINDEX P/B 1.58262 1.58262 1.58262\nvnid3d -3.0 -3.0 -3.0\nvnid1m -10.2 -10.2 -10.2\nvnid3m -7.3 -7.3 -7.3\nvnid1y 2.3 2.3 2.3\n
"},{"location":"functions/comparison/#so-sanh-co-phieu-cung-nganh","title":"So s\u00e1nh c\u1ed5 phi\u1ebfu c\u00f9ng ng\u00e0nh","text":"industry_analysis(\"VNM\", lang='vi')\n
- Tr\u1ea3 v\u1ec1 th\u00f4ng tin c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu c\u00f9ng ng\u00e0nh v\u1edbi m\u00e3 c\u1ed5 phi\u1ebfu n\u1eb1m trong c\u00f9ng nh\u00f3m ng\u00e0nh v\u1edbi m\u00e3 VNM. - Tham s\u1ed1 lang='vi m\u1eb7c \u0111\u1ecbnh tr\u1ea3 v\u1ec1 t\u00ean c\u00e1c ch\u1ec9 s\u1ed1 b\u1eb1ng ti\u1ebfng Vi\u1ec7t, \u0111\u1ed5i th\u00e0nh en \u0111\u1ec3 gi\u1eef nguy\u00ean ch\u1ec9 s\u1ed1 v\u1edbi t\u00ean ti\u1ebfng Anh. dividend (C\u1ed5 t\u1ee9c), ROE, ROA, ebitOnInterest (Thanh to\u00e1n l\u00e3i vay), currentPayment (Thanh to\u00e1n hi\u1ec7n h\u00e0nh), quickPayment (Thanh to\u00e1n nhanh), grossProfitMargin (Bi\u00ean LNG), postTaxMargin (Bi\u00ean LNST), badDebtPercentage (T\u1ec9 l\u1ec7 n\u1ee3 x\u1ea5u), debtOnEquity (N\u1ee3/V\u1ed1n CSH), debtOnEbitda (N\u1ee3/EBITDA), income5year (LNST 5 n\u0103m), sale5year (Doanh thu 5 n\u0103m), income1quarter (LNST qu\u00fd g\u1ea7n nh\u1ea5t), sale1quarter (Doanh thu qu\u00fd g\u1ea7n nh\u1ea5t), nextIncome (LNST n\u0103m t\u1edbi), nextSale (Doanh thu qu\u00fd t\u1edbi)
L\u01b0u \u00fd: T\u00ean c\u00e1c column c\u00f3 th\u1ec3 ch\u01b0a \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ed5i \u0111\u1ea7y \u0111\u1ee7 th\u00e0nh ti\u1ebfng Vi\u1ec7t. N\u1ebfu g\u1eb7p ch\u1ec9 s\u1ed1 n\u00e0o ch\u01b0a \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ed5i t\u00ean th\u00e0nh ti\u1ebfng Vi\u1ec7t, b\u1ea1n vui l\u00f2ng comment cho t\u00e1c gi\u1ea3 nh\u00e9.
K\u1ebft qu\u1ea3:
>>> industry_analysis('VNM', lang='vi')\nM\u00e3 CP VNM MSN MCH QNS KDC IDP SBT MML PAN MCM VSF VOC OCH VSN CLX LSS KTC HSL HKB\nV\u1ed1n h\u00f3a (t\u1ef7) None 107634 51307 17543 16102 13204 11478 10108 4303 4232 3979 2890 1680 1618 1274 932 383 219 46\nGi\u00e1 None 75600 71603 49149 62600 224000 15500 30900 20600 38473 7958 23727 8400 19994 14713 12500 10500 6180 900\nS\u1ed1 phi\u00ean t\u0103ng/gi\u1ea3m li\u00ean ti\u1ebfp None 3 2 4 0 -3 3 1 -1 1 -2 0 0 0 1 3 0 -1 0\nP/E NaN 49.2 9.1 12.3 -215.9 16.7 16.6 -18.7 13.2 11.7 -384.1 2.4 15.2 11.9 7.1 23.5 37.3 14.6 -0.8\nPEG NaN -0.6 -8.0 0.9 1.9 -1.6 -1.4 0.1 -1.9 5.9 4.0 0.0 -0.1 -1.6 1.1 2.2 -0.8 0.8 0.5\nP/B NaN 4.1 2.2 2.3 2.5 6.5 1.2 1.9 1.0 1.8 1.7 1.1 1.3 1.2 0.8 0.6 1.0 0.5 0.2\nEV/EBITDA NaN 20.0 8.2 10.4 36.1 13.1 13.7 -267.0 7.2 11.4 25.9 -8.9 6.3 8.3 10.5 6.5 20.0 12.8 -3.1\nC\u1ed5 t\u1ee9c NaN 0.009 0.0 0.0 0.086 0.033 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0\nROE NaN 0.081 0.277 0.195 -0.011 0.442 0.076 -0.098 0.075 0.159 -0.005 0.591 0.086 0.107 0.118 0.025 0.025 0.036 -0.263\nROA NaN 0.016 0.175 0.128 -0.006 0.22 0.025 -0.042 0.021 0.14 -0.001 0.484 0.049 0.067 0.082 0.014 0.007 0.031 -0.15\nThanh to\u00e1n l\u00e3i vay NaN 0.5 9.1 8.5 -0.2 19.4 0.9 -0.8 1.3 NaN 0.3 -2.0 -3.2 67.7 22.1 2.2 0.9 6.9 -4.4\nThanh to\u00e1n hi\u1ec7n h\u00e0nh NaN 0.8 2.7 1.8 1.6 1.5 1.2 1.4 1.3 8.6 1.0 4.2 1.9 2.5 3.1 1.3 0.9 9.7 0.3\nThanh to\u00e1n nhanh NaN 0.6 2.5 1.4 1.2 1.3 0.9 1.1 0.9 7.7 0.4 3.4 1.7 1.7 2.9 0.3 0.5 8.6 0.3\nBi\u00ean LNG NaN 0.272 0.432 0.28 0.188 0.385 0.115 0.117 0.171 0.323 0.067 NaN 0.286 0.247 0.264 0.121 0.035 0.039 0.728\nBi\u00ean LNST NaN 0.011 0.228 0.149 NaN 0.138 0.026 NaN 0.016 0.138 NaN 6.467 NaN 0.039 0.372 0.017 0.004 0.024 NaN\nN\u1ee3/V\u1ed1n CSH NaN 2.0 0.3 0.4 0.6 0.4 1.3 1.0 0.7 0.0 1.5 0.1 0.1 0.0 0.0 0.4 2.3 0.0 0.5\nN\u1ee3/EBITDA NaN 7.6 1.1 1.5 8.1 0.7 7.2 -88.3 3.4 0.1 12.3 -1.1 0.7 1.1 0.4 2.6 15.5 0.8 -2.0\nLNST 5 n\u0103m NaN 0.028 0.207 0.046 -0.04 NaN 0.12 NaN 0.001 0.098 NaN NaN NaN 0.012 0.065 -0.1 -0.157 -0.081 NaN\nDoanh thu 5 n\u0103m NaN 0.152 0.153 0.016 0.123 NaN 0.22 -0.239 0.274 0.049 -0.053 -0.181 -0.018 -0.002 0.088 -0.008 0.067 0.16 -0.474\nLNST qu\u00fd g\u1ea7n nh\u1ea5t NaN -0.519 -0.255 -0.258 NaN 0.316 0.443 NaN -0.694 0.397 NaN NaN NaN -0.131 0.092 NaN 36.983 -0.44 NaN\nDoanh thu qu\u00fd g\u1ea7n nh\u1ea5t NaN -0.094 -0.252 0.093 -0.302 -0.057 -0.181 0.031 -0.352 -0.067 -0.31 -0.675 -0.197 -0.134 -0.123 0.102 -0.122 -0.142 0.009\nLNST n\u0103m t\u1edbi NaN 0.285 0.26 0.173 -0.202 0.074 0.047 -0.719 -0.041 0.04 -0.939 0.116 6.025 -0.034 0.09 -0.155 0.813 0.022 NaN\nDoanh thu n\u0103m t\u1edbi NaN 0.2 0.3 0.162 0.283 0.1 0.1 -0.7 0.05 0.05 0.03 0.15 -0.5 0.1 0.3 -0.08 -0.06 0.02 NaN\nRSI NaN 50.7 43.1 71.8 24.0 28.5 59.2 33.7 68.2 53.5 46.6 44.1 51.1 32.3 55.5 55.3 33.3 54.8 61.1\n
"},{"location":"functions/comparison/#so-sanh-cac-co-phieu-tuy-y","title":"So s\u00e1nh c\u00e1c c\u1ed5 phi\u1ebfu t\u00f9y \u00fd","text":"Ghi nh\u1eadn l\u1ed7i
20/10/2023: Hi\u1ec7n t\u1ea1i h\u00e0m ghi nh\u1eadn l\u1ed7i kh\u00f4ng tr\u1ea3 v\u1ec1 k\u1ebft qu\u1ea3 nh\u01b0 mong mu\u1ed1n t\u1eeb ch\u00ednh ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u l\u00e0 TCBS.
stock_ls_analysis(\"TCB, BID, CEO, GMD\", lang='vi')\n
K\u1ebft qu\u1ea3:
>>> stock_ls_analysis(\"TCB, BID, CEO, GMD\", lang='vi')\nM\u00e3 CP BID CEO GMD TCB\nV\u1ed1n h\u00f3a (t\u1ef7) 203353 9367 19853 107803\nGi\u00e1 40200 18200 64900 30650\nS\u1ed1 phi\u00ean t\u0103ng/gi\u1ea3m li\u00ean ti\u1ebfp 1 0 2 -6\nP/E 10.0 32.8 8.7 6.1\nPEG 0.2 2.3 0.1 -0.5\nP/B 1.8 2.8 2.3 0.9\nC\u1ed5 t\u1ee9c 0.0 0.0 0.045 0.0\nROE 0.203 0.09 0.294 0.158\nROA 0.01 0.04 0.18 0.026\nN\u1ee3/V\u1ed1n CSH 17.6 0.2 0.2 5.0\nLNST 5 n\u0103m 0.218 0.094 0.144 0.256\nDoanh thu 5 n\u0103m 0.123 0.068 -0.004 0.2\nLNST qu\u00fd g\u1ea7n nh\u1ea5t -0.008 0.412 7.163 -0.009\nDoanh thu qu\u00fd g\u1ea7n nh\u1ea5t -0.001 -0.073 0.011 0.003\nLNST n\u0103m t\u1edbi -0.023 -0.012 1.288 -0.084\nDoanh thu n\u0103m t\u1edbi 0.124 -0.1 0.0 0.084\nRSI 29.2 34.9 54.9 29.0\nRS 44.0 48.0 85.0 50.0\n
"},{"location":"functions/evaluation/","title":"Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m stock_evaluation
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edch
period
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: 1
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, 2
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
time_window
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: D
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, W
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
Minh h\u1ecda cho h\u00e0m n\u00e0y nh\u01b0 sau:
Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m stock_evaluation
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1: - symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edch
period
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: 1
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, 2
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
time_window
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: D
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, W
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
Minh h\u1ecda cho h\u00e0m n\u00e0y nh\u01b0 sau:
stock_evaluation (symbol='TCB', period=1, time_window='D')\n
>>> stock_evaluation (symbol='TCB', period=1, time_window='D')\n ticker fromDate toDate PE PB industryPE vnindexPE industryPB vnindexPB\n0 TCB 2022-09-05 2022-09-05 6.4 1.2 9.8 14.0 1.7 2.0\n1 TCB 2022-09-06 2022-09-06 6.4 1.2 9.9 14.0 1.7 2.0\n2 TCB 2022-09-07 2022-09-07 6.2 1.2 9.6 13.7 1.7 2.0\n3 TCB 2022-09-08 2022-09-08 6.2 1.2 9.4 13.5 1.6 1.9\n4 TCB 2022-09-09 2022-09-09 6.2 1.2 9.5 13.7 1.6 2.0\n.. ... ... ... ... ... ... ... ... ...\n245 TCB 2023-08-25 2023-08-25 6.7 1.0 9.3 14.8 1.5 1.7\n246 TCB 2023-08-28 2023-08-28 6.7 1.0 9.3 15.0 1.6 1.7\n247 TCB 2023-08-29 2023-08-29 6.7 1.0 9.4 15.1 1.6 1.7\n248 TCB 2023-08-30 2023-08-30 6.7 1.0 9.5 15.2 1.6 1.7\n249 TCB 2023-08-31 2023-08-31 6.8 1.0 9.6 15.4 1.6 1.7\n\n[250 rows x 9 columns]\n
"},{"location":"functions/export/","title":"Xu\u1ea5t d\u1eef li\u1ec7u","text":"Xu\u1ea5t file csv
Xu\u1ea5t d\u1eef li\u1ec7u ra d\u1ea1ng b\u1ea3ng t\u00ednh \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 m\u1eb7c \u0111\u1ecbnh b\u1edfi vnstock v\u00ec b\u1ea3n th\u00e2n d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 khi b\u1ea1n g\u1ecdi h\u00e0m vnstock b\u1ea5t k\u1ef3 l\u00e0 c\u00e1c Pandas DataFrame trong Python c\u00f3 h\u1ed7 tr\u1ee3 kh\u1ea3 n\u0103ng n\u00e0y. vnstock ho\u1ea1t \u0111\u1ed9ng t\u1ed1t nh\u1ea5t khi t\u00edch h\u1ee3p v\u1edbi h\u1ec7 sinh th\u00e1i Python, tuy nhi\u00ean n\u1ebfu b\u1ea1n ch\u01b0a s\u1eb5n s\u00e0ng s\u1eed d\u1ee5ng Python th\u00ec v\u1eabn c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb vnstock cho c\u00e1c ph\u1ea7n m\u1ec1m quen thu\u1ed9c nh\u01b0 CSV, Excel hay Google Sheets ho\u1eb7c th\u1eadm ch\u00ed l\u00e0 l\u01b0u v\u00e0o c\u01a1 s\u1edf d\u1eef li\u1ec7u. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1ch th\u1ef1c hi\u1ec7n.
"},{"location":"functions/export/#xuat-file-csv","title":"Xu\u1ea5t file CSV","text":"Khi g\u1ecdi m\u1ed9t h\u00e0m vnstock, b\u1ea1n c\u00f3 th\u1ec3 g\u00e1n k\u1ebft qu\u1ea3 c\u1ee7a h\u00e0m v\u1edbi m\u1ed9t bi\u1ebfn b\u1ea5t k\u1ef3 v\u00e0 xu\u1ea5t ra file csv. V\u00ed d\u1ee5 v\u1edbi h\u00e0m l\u1ea5y gi\u00e1 l\u1ecbch s\u1eed:
from vnstock import * # b\u1ecf qua d\u00f2ng n\u00e0y n\u1ebfu \u0111\u00e3 th\u1ef1c hi\u1ec7n import\ndf = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True)\ndf.to_csv(r'\u0110\u01af\u1edcNG_D\u1eaaN_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/GMD.csv', index=False)\n
Trong \u0111\u00f3:
df
b\u1eb1ng t\u00ean \u0111\u1ed1i t\u01b0\u1ee3ng DataFrame b\u1ea5t k\u1ef3 tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m c\u1ee7a vnstock./
, v\u00ed d\u1ee5 /content/drive/MyDrive/Colab Notebooks/GMD.csv
.\\
, v\u00ed d\u1ee5 C:\\Users\\user\\Downloads\\GMD.csv
. L\u01b0u \u00fd \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c cho m\u00e1y t\u00ednh Windows, c\u1ea7n s\u1eed d\u1ee5ng ch\u1eef r
ph\u00eda tr\u01b0\u1edbc nh\u01b0 trong code m\u1eabu.from vnstock import * # b\u1ecf qua d\u00f2ng n\u00e0y n\u1ebfu \u0111\u00e3 th\u1ef1c hi\u1ec7n import\ndf = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True)\ndf.to_excel(r'\u0110\u01af\u1edcNG_D\u1eaaN_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/GMD.xlsx', index=False)\n
Trong \u0111\u00f3:
df
b\u1eb1ng t\u00ean \u0111\u1ed1i t\u01b0\u1ee3ng DataFrame b\u1ea5t k\u1ef3 tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m c\u1ee7a vnstock.xls
cho b\u1ea3n Office 2007 tr\u1edf xu\u1ed1ng thay v\u00ec b\u1ea3n Office m\u1edbi th\u00ec \u0111\u1ed5i \u0111u\u00f4i file t\u1eeb xlsx
th\u00e0nh .xls
trong code m\u1eabu.Xu\u1ea5t file Google Sheets
\u0110\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u qua Google Sheets, c\u00e1ch \u0111\u01a1n gi\u1ea3n nh\u1ea5t l\u00e0 ch\u1ea1y notebook tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab, nh\u01b0 v\u1eady qu\u00e1 tr\u00ecnh x\u00e1c th\u1ef1c d\u1ecbch v\u1ee5 di\u1ec5n ra \u0111\u01a1n gi\u1ea3n h\u01a1n r\u1ea5t nhi\u1ec1u so v\u1edbi b\u1ea1n ch\u1ea1y t\u1eeb m\u00e1y c\u1ee5c b\u1ed9. \u0110\u1ecdc b\u00e0i h\u01b0\u1edbng d\u1eabn \u0110\u1ecdc v\u00e0 xu\u1ea5t d\u1eef li\u1ec7u qua Google Sheets \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft n\u1ebfu b\u1ea1n c\u1ea7n xu\u1ea5t file t\u1eeb m\u00e1y \u1ea3o, m\u00e1y c\u1ee5c b\u1ed9.
from vnstock import *\ndf = listing_companies() # G\u00e1n b\u1ea5t h\u00e0m b\u1ea5t k\u1ef3 cho m\u1ed9t bi\u1ebfn, v\u00ed d\u1ee5 df\nsheet_file = 'listing_companies' # \u0110\u1eb7t t\u00ean cho file Google Sheets (n\u1ebfu t\u1ea1o m\u1edbi, d\u00f9ng file c\u00f3 s\u1eb5n th\u00ec kh\u00f4ng c\u1ea7n)\n
from google.colab import auth\nauth.authenticate_user()\n\nimport gspread\nfrom google.auth import default\nfrom gspread_dataframe import set_with_dataframe\n\ncreds, _ = default()\ngc = gspread.authorize(creds)from google.colab import auth\nauth.authenticate_user()\n\nimport gspread\nfrom google.auth import default\nfrom gspread_dataframe import set_with_dataframe\n\ncreds, _ = default()\ngc = gspread.authorize(creds)\n
sh = gc.create(sheet_file)\nworksheet = gc.open(sheet_file).sheet1 # M\u1edf sheet m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u, ch\u1ecdn 1 trong 3 t\u00f9y ch\u1ecdn v\u1edbi bi\u1ebfn worksheet, d\u00f9ng d\u00f2ng n\u00e0o b\u1ecf comment d\u00f2ng \u0111\u00f3, v\u00e0 comment d\u00f2ng kh\u00f4ng c\u1ea7n d\u00f9ng\n# worksheet = sh.add_worksheet(title=\"listing_companies\", rows=\"1000\", cols=\"20\") # T\u1ea1o sheet m\u1edbi \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u\n# worksheet = gc.open_by_url('https://docs.google.com/spreadsheets/d/1vT6o6U1dHYMdHASZNKPvmzDRhgKTvQXsZ_46CvBOpuI').sheet1 # M\u1edf file sheet c\u00f3 s\u1eb5n b\u1eb1ng URL\nset_with_dataframe(worksheet, df)\n
"},{"location":"functions/export/#xuat-vao-dai-o-co-san","title":"Xu\u1ea5t v\u00e0o d\u1ea3i \u00f4 c\u00f3 s\u1eb5n","text":"worksheet = gc.open(sheet_file).sheet1 # M\u1edf sheet m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u, ch\u1ecdn 1 trong 3 t\u00f9y ch\u1ecdn v\u1edbi bi\u1ebfn worksheet, d\u00f9ng d\u00f2ng n\u00e0o b\u1ecf comment d\u00f2ng \u0111\u00f3, v\u00e0 comment d\u00f2ng kh\u00f4ng c\u1ea7n d\u00f9ng\n\ncell_list = worksheet.range('A1:C2') # Ch\u1ecdn v\u00f9ng d\u1eef li\u1ec7u tr\u00ean Google Sheets b\u1ea1n mu\u1ed1n ch\u00e8n d\u1eef li\u1ec7u t\u1eeb DataFrame\n# Update the data in the worksheet\n\nfor cell, value in zip(cell_list, df.values.flatten()):\n cell.value = value\n\nworksheet.update_cells(cell_list)\n
"},{"location":"functions/export/#xuat-du-lieu-cho-amibroker","title":"Xu\u1ea5t d\u1eef li\u1ec7u cho Amibroker","text":"T\u1ea3i d\u1eef li\u1ec7u cho Amibroker
\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb vnstock cho \u1ee9ng d\u1ee5ng Amibroker, b\u1ea1n c\u00f3 th\u1ec3 xem chi ti\u1ebft h\u01b0\u1edbng d\u1eabn t\u1ea1i m\u1ee5c T\u00edch h\u1ee3p Amibroker
"},{"location":"functions/financial/","title":"B\u00e1o c\u00e1o t\u00e0i ch\u00ednh","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
C\u1eadp nh\u1eadt
26/10/2023, Hi\u1ec7n t\u1ea1i SSI \u0111\u00e3 g\u1ee1 b\u1ecf m\u1ecdi bi\u1ec7n ph\u00e1p ng\u0103n ch\u1eb7n truy c\u1eadp d\u1eef li\u1ec7u qua Web Scraping \u0111\u00e3 tri\u1ec3n khai trong kho\u1ea3ng 6 th\u00e1ng tr\u01b0\u1edbc. \u0110\u00e2y l\u00e0 tin vui cho c\u1ed9ng \u0111\u1ed3ng vnstock v\u00ec c\u00e1c b\u1ea1n c\u00f3 th\u00eam l\u1ef1a ch\u1ecdn ch\u1ea5t l\u01b0\u1ee3ng ti\u1ebfp c\u1eadn ngu\u1ed3n d\u1eef li\u1ec7u t\u1eeb SSI \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi FiinTrade.
\u0110\u1ec3 truy c\u1eadp b\u00e1o c\u00e1o t\u00e0i ch\u00ednh s\u1eed d\u1ee5ng ngu\u1ed3n SSI, c\u00f3 \u0111\u1ed9 chi ti\u1ebft h\u01a1n so v\u1edbi b\u1ea3n r\u00fat g\u1ecdn c\u1ee7a TCBS, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m financial_report
v\u1edbi c\u00e1c tham s\u1ed1 nh\u01b0 sau:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_type
nh\u1eadn 1 trong 3 gi\u00e1 tr\u1ecb: IncomeStatement
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh, BalanceSheet
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, CashFlow
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7frequency
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: Quarterly
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o theo qu\u00fd, Yearly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo n\u0103mperiods=15
: \ud83c\udd95 t\u1eeb v0.2.8.9. Cho ph\u00e9p ch\u1ecdn s\u1ed1 k\u1ef3 t\u1ea3i b\u00e1o c\u00e1olatest_year
: \ud83c\udd95 t\u1eeb v0.2.8.9. Cho ph\u00e9p ch\u1ecdn m\u1ed1c th\u1eddi gian tra c\u1ee9u nh\u1ea5t \u0111\u1ecbnh \u0111\u1ec3 truy xu\u1ea5t ng\u01b0\u1ee3c d\u1eef li\u1ec7u v\u1ec1 qu\u00e1 kh\u1ee9. V\u00ed d\u1ee5 15 k\u1ef3 k\u1ec3 t\u1eeb n\u0103m 202 (ho\u1eb7c n\u0103m b\u1ea5t k\u1ef3). Gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 None
cho ph\u00e9p ch\u1ecdn n\u0103m hi\u1ec7n t\u1ea1i l\u00e0 m\u1ed1c t\u00ednh to\u00e1n.L\u01b0u \u00fd: D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 \u0111\u01a1n v\u1ecb T\u1ef7 VND
"},{"location":"functions/financial/#bao-cao-kinh-doanh","title":"B\u00e1o c\u00e1o kinh doanh","text":"financial_report (symbol='SSI', report_type='IncomeStatement', frequency='Quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nha sau:
>>> income_df = financial_report (symbol='SSI', report_type='IncomeStatement', frequency='Quarterly', periods=15, latest_year=None)\nincome_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 Doanh thu ho\u1ea1t \u0111\u1ed9ng 1.327443e+12 9.195507e+11 1.174729e+12 1.505580e+12\n1 L\u00e3i t\u1eeb c\u00e1c t\u00e0i s\u1ea3n t\u00e0i ch\u00ednh ghi nh\u1eadn th\u00f4ng qu... 7.340652e+11 3.273310e+11 5.215590e+11 6.001373e+11\n2 L\u00e3i b\u00e1n c\u00e1c t\u00e0i s\u1ea3n t\u00e0i ch\u00ednh 2.194943e+11 1.175892e+11 2.630871e+11 3.947613e+11\n3 Ch\u00each l\u1ec7ch t\u0103ng \u0111\u00e1nh gi\u00e1 l\u1ea1i c\u00e1c t\u00e0i s\u1ea3n t\u00e0i c... 4.326673e+11 9.963909e+10 1.132451e+11 8.292811e+10\n4 C\u1ed5 t\u1ee9c, ti\u1ec1n l\u00e3i ph\u00e1t sinh t\u1eeb t\u00e0i s\u1ea3n t\u00e0i ch\u00edn... 8.190361e+10 1.101027e+11 1.452268e+11 1.224479e+11\n.. ... ... ... ... ...\n78 Thu nh\u1eadp to\u00e0n di\u1ec7n ph\u00e2n b\u1ed5 cho ch\u1ee7 s\u1edf h\u1eefu 5.372627e+11 2.924053e+11 3.925444e+11 4.246680e+11\n79 Thu nh\u1eadp to\u00e0n di\u1ec7n ph\u00e2n b\u1ed5 cho c\u1ed5 \u0111\u00f4ng kh\u00f4ng k... 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n80 Thu nh\u1eadp thu\u1ea7n tr\u00ean c\u1ed5 phi\u1ebfu ph\u1ed5 th\u00f4ng 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n81 L\u00e3i c\u01a1 b\u1ea3n tr\u00ean c\u1ed5 phi\u1ebfu 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n82 Thu nh\u1eadp pha lo\u00e3ng tr\u00ean c\u1ed5 phi\u1ebfu 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n\n[83 rows x 5 columns]\n
"},{"location":"functions/financial/#bang-can-oi-ke-toan","title":"B\u1ea3ng c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n","text":"financial_report (symbol='SSI', report_type='BalanceSheet', frequency='quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> balance_df = financial_report (symbol='SSI', report_type='BalanceSheet', frequency='quarterly', periods=15, latest_year=None)\n>>> balance_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 T\u1ed4NG C\u1ed8NG T\u00c0I S\u1ea2N 2.592647e+13 2.693295e+13 3.576953e+13 3.762330e+13\n1 T\u00c0I S\u1ea2N NG\u1eaeN H\u1ea0N 2.004129e+13 2.105024e+13 2.904003e+13 3.286192e+13\n2 T\u00e0i s\u1ea3n t\u00e0i ch\u00ednh ng\u1eafn h\u1ea1n 2.000235e+13 2.100282e+13 2.888881e+13 3.280760e+13\n3 Ti\u1ec1n v\u00e0 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n 2.024338e+11 2.123246e+11 3.632519e+11 2.792879e+11\n4 Ti\u1ec1n 1.913260e+11 2.123246e+11 2.319712e+11 2.251205e+11\n.. ... ... ... ... ...\n155 V\u1ed1n ng\u00e2n s\u00e1ch nh\u00e0 n\u01b0\u1edbc 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n156 Ngu\u1ed3n kinh ph\u00ed \u0111\u00e3 h\u00ecnh th\u00e0nh TSC\u0110 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n157 L\u1ee2I \u00cdCH C\u1ee6A C\u1ed4 \u0110\u00d4NG THI\u1ec2U S\u1ed0 (tr\u01b0\u1edbc 2015) 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n158 T\u1ed4NG C\u1ed8NG NGU\u1ed2N V\u1ed0N 2.592647e+13 2.693295e+13 3.576953e+13 3.762330e+13\n159 L\u1ee2I NHU\u1eacN \u0110\u00c3 PH\u00c2N PH\u1ed0I CHO NH\u00c0 \u0110\u1ea6U T\u01af 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n\n[160 rows x 5 columns]\n
"},{"location":"functions/financial/#bao-cao-luu-chuyen-tien-te","title":"B\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7","text":"financial_report (symbol='SSI', report_type='CashFlow', frequency='Quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> cashflow_df = financial_report (symbol='SSI', report_type='CashFlow', frequency='Quarterly', periods=15, latest_year=None)\n>>> cashflow_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 L\u01b0u chuy\u1ec3n thu\u1ea7n t\u1eeb ho\u1ea1t \u0111\u1ed9ng kinh doanh ch\u1ee9ng... -1.405338e+12 -3.067307e+12 -7.146167e+12 -7.818107e+11\n1 L\u1ee3i nhu\u1eadn t\u1eeb ho\u1ea1t \u0111\u1ed9ng kinh doanh tr\u01b0\u1edbc thay \u0111... 2.548685e+10 8.183428e+10 1.992083e+11 2.596829e+11\n2 L\u1ee3i nhu\u1eadn tr\u01b0\u1edbc thu\u1ebf 6.515280e+11 4.208731e+11 4.771873e+11 5.300678e+11\n3 \u0110i\u1ec1u ch\u1ec9nh cho c\u00e1c kho\u1ea3n -2.123427e+11 -1.965194e+11 -2.268494e+11 -2.521012e+11\n4 Kh\u1ea5u hao t\u00e0i s\u1ea3n c\u1ed1 \u0111\u1ecbnh 1.315363e+10 1.378121e+10 1.333019e+10 1.445720e+10\n.. ... ... ... ... ...\n93 Ti\u1ec1n v\u00e0 c\u00e1c kho\u1ea3n t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n \u0111\u1ea7u k\u1ef3 2.824377e+11 2.024338e+11 2.123246e+11 3.632519e+11\n94 Ti\u1ec1n m\u1eb7t, ti\u1ec1n g\u1eedi ng\u00e2n h\u00e0ng \u0111\u1ea7u k\u1ef3 2.485882e+11 1.911860e+11 2.123605e+11 2.323398e+11\n95 C\u00e1c kho\u1ea3n t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n 3.120858e+10 1.110788e+10 0.000000e+00 1.312807e+11\n96 \u1ea2nh h\u01b0\u1edfng c\u1ee7a thay \u0111\u1ed5i t\u1ef7 gi\u00e1 h\u1ed1i \u0111o\u00e1n quy \u0111\u1ed5i... 2.640888e+09 1.399426e+08 -3.589952e+07 -3.685565e+08\n97 Ti\u1ec1n v\u00e0 c\u00e1c kho\u1ea3ng t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n cu\u1ed1i k\u1ef3 2.024338e+11 2.123246e+11 3.632519e+11 2.792879e+11\n\n[98 rows x 5 columns]\n
"},{"location":"functions/financial/#du-lieu-tu-tcbs","title":"D\u1eef li\u1ec7u t\u1eeb TCBS","text":"Ba lo\u1ea1i b\u00e1o c\u00e1o n\u00e0y \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m financial_flow
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_type
nh\u1eadn 1 trong 3 gi\u00e1 tr\u1ecb: incomestatement
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh, balancesheet
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, cashflow
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7report_range
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: yearly
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o theo n\u0103m, quarterly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo qu\u00fdC\u1ee5 th\u1ec3 t\u1eebng b\u00e1o c\u00e1o \u0111\u01b0\u1ee3c minh h\u1ecda chi ti\u1ebft th\u00e0nh t\u1eebng ph\u1ea7n nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y.
"},{"location":"functions/financial/#bao-cao-kinh-doanh_1","title":"B\u00e1o c\u00e1o kinh doanh","text":"B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c truy xu\u1ea5t b\u1eb1ng c\u00e2u l\u1ec7nh:
income_df = financial_flow(symbol=\"TCB\", report_type='incomestatement', report_range='quarterly')\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y.
>>> financial_flow(symbol=\"TCB\", report_type='incomestatement', report_range='quarterly').T\n\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2 ... 2012-Q4 2012-Q3 2012-Q2 2012-Q1 2010-Q2\nticker TCB TCB TCB TCB TCB ... TCB TCB TCB TCB TCB\nrevenue 6295 6527 6819 7565 7794 ... 951 1414 1432 1318 814\nyearRevenueGrowth -0.192 -0.195 -0.059 0.122 0.183 ... NaN NaN NaN NaN NaN\nquarterRevenueGrowth -0.036 -0.043 -0.099 -0.029 -0.039 ... -0.327 -0.013 0.086 NaN NaN\ncostOfGoodSold None None None None None ... None None None None None\ngrossProfit None None None None None ... None None None None None\noperationExpense -2869 -3142 -3990 -3014 -3196 ... -1263 -615 -574 -826 -446\noperationProfit 9325 9300 9427 10338 10934 ... 1175 1373 1347 1851 972\nyearOperationProfitGrowth -0.147 -0.071 -0.072 0.178 0.188 ... NaN NaN NaN NaN NaN\nquarterOperationProfitGrowth 0.003 -0.014 -0.088 -0.055 0.093 ... -0.144 0.019 -0.272 NaN NaN\ninterestExpense None None None None None ... None None None None None\npreTaxProfit 5649 5623 4746 6715 7321 ... -1216 603 602 1028 384\npostTaxProfit 4503 4537 3572 5368 5882 ... -1216 603 602 1028 384\nshareHolderIncome 4455 4497 3544 5298 5804 ... -1216 603 602 1028 384\nyearShareHolderIncomeGrowth -0.232 -0.183 -0.228 0.221 0.232 ... NaN NaN NaN NaN NaN\nquarterShareHolderIncomeGrowth -0.009 0.269 -0.331 -0.087 0.054 ... NaN 0.002 -0.414 NaN NaN\ninvestProfit 72 -228 -422 209 411 ... -81 -201 -119 120 26\nserviceProfit 2019 1944 2535 2123 1987 ... 39 151 228 147 104\notherProfit 939 1057 495 441 743 ... 266 9 -194 266 28\nprovisionExpense -807 -535 -691 -609 -417 ... -1128 -155 -170 3 -142\noperationIncome 6456 6158 5437 7324 7739 ... -88 758 773 1025 526\nebitda None None None None None ... None None None None None\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn income_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: income_df.T
Trong \u0111\u00f3 t\u00ean c\u00e1c c\u1ed9t \u0111\u01b0\u1ee3c chu\u1ea9n h\u00f3a b\u1eb1ng ti\u1ebfng Anh. \u0110\u1ec3 \u0111\u1ed5i t\u00ean sang ti\u1ebfng Vi\u1ec7t, c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c rename
ti\u00eau chu\u1ea9n c\u1ee7a Pandas trong Python. T\u00f4i \u0111\u00e3 chia s\u1ebb m\u1ed9t video c\u1ee5 th\u1ec3 c\u00e1ch s\u1eed d\u1ee5ng Bard \u0111\u1ec3 tr\u00edch xu\u1ea5t th\u00f4ng tin v\u00e0 gh\u00e9p n\u1ed1i b\u1ea3n d\u1ecbch ti\u1ebfng Vi\u1ec7t c\u1ee7a c\u00e1c ch\u1ec9 s\u1ed1. C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 theo d\u00f5i \u0111\u1ec3 t\u1ef1 th\u1ef1c hi\u1ec7n n\u1ebfu c\u1ea7n. C\u00e1ch l\u00e0m n\u00e0y \u00e1p d\u1ee5ng v\u1edbi t\u1ea5t c\u1ea3 c\u00e1c b\u00e1o c\u00e1o t\u00e0i ch\u00ednh \u0111\u01b0\u1ee3c cung c\u1ea5p \u1edf \u0111\u00e2y.
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u1ea3ng c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
balance_df = financial_flow(symbol=\"TCB\", report_type='balancesheet', report_range='quarterly')\n
K\u1ebft qu\u1ea3:
>>> financial_flow(symbol=\"TCB\", report_type='balancesheet', report_range='quarterly').T\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2\nticker TCB TCB TCB TCB TCB\nshortAsset None None None None None\ncash 3113 2852 4216 3026 3204\nshortInvest None None None None None\nshortReceivable None None None None None\ninventory None None None None None\nlongAsset None None None None None\nfixedAsset 8742 8275 8411 7282 7220\nasset 732470 723518 699033 671354 623739\ndebt 610005 605552 585608 561454 519263\nshortDebt None None None None None\nlongDebt None None None None None\nequity 122465 117965 113425 109899 104475\ncapital 35172 35172 35172 35172 35109\ncentralBankDeposit 7860 15834 11476 4709 4814\notherBankDeposit 63215 56675 69925 65183 57270\notherBankLoan 8079 10265 13050 7215 14962\nstockInvest 112613 99162 104626 104673 98072\ncustomerLoan 466546 465425 420524 410546 391824\nbadLoan 5012.0 3946.0 3818.0 2665.0 2359.0\nprovision -5793 -5280 -4771 -4397 -4049\nnetCustomerLoan 460753 460145 415752 406148 387775\notherAsset 67879 70304 70517 71795 49269\notherBankCredit 49594 47940 61294 68284 57307\noweOtherBank 104031 103254 106269 110868 83894\noweCentralBank 136 122 8 6 2\nvaluablePaper 54958 46729 34007 42858 37122\npayableInterest 8118 8303 6144 4750 3375\nreceivableInterest 8875 8365 8029 8681 8072\ndeposit 381947 387298 358404 318919 321634\notherDebt 54958 46729 34007 42858 37122\nfund 43387 11607 11609 9151 9152\nunDistributedIncome 41654 68979 64483 64059 58761\nminorShareHolderProfit 1218 1170 1129 1032 963\npayable 610005 605552 585608 561454 519263\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn balance_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: balance_df.T
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
cashflow_df = financial_flow(symbol=\"TCB\", report_type='cashflow', report_range='quarterly')\n
K\u1ebft qu\u1ea3:
>>> financial_flow(symbol=\"TCB\", report_type='cashflow', report_range='quarterly').T\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2\nticker TCB TCB TCB TCB TCB\ninvestCost -395 -73 -720 -212 -65\nfromInvest -3042 260 -679 -205 -62\nfromFinancial 0 1 -700 63 0\nfromSale -2480 -21875 19130 15950 -4020\nfreeCashFlow 0 0 0 0 0\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn cashflow_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: cashflow_df.T
L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
company_overview('TCB')\n
Nh\u1ea5p \u0111\u1ec3 xem v\u1ecb tr\u00ed hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n TCBS >>> company_overview('TCB').T\n 0\nticker TCB\nexchange HOSE\nindustry Ng\u00e2n h\u00e0ng\ncompanyType NH\nnoShareholders 1901\nforeignPercent 0.225\noutstandingShare 3517.2\nissueShare 3517.2\nestablishedYear 1993\nnoEmployees 9757\nstockRating 4.2\ndeltaInWeek -0.002\ndeltaInMonth 0.001\ndeltaInYear 0.189\nshortName Techcombank\nindustryEn Banks\nindustryID 289\nindustryIDv2 8355\nwebsite http://www.techcombank.com.vn\n
"},{"location":"functions/fundamental/#ho-so-cong-ty","title":"H\u1ed3 s\u01a1 c\u00f4ng ty","text":"company_profile ('TCB')\n
\u0110\u00e2y l\u00e0 ph\u1ea7n m\u00f4 t\u1ea3 v\u1ec1 c\u00f4ng ty b\u1eb1ng v\u0103n b\u1ea3n, bao g\u1ed3m m\u1ee5c T\u1ed5ng quan v\u00e0 Th\u00f4ng tin kh\u00e1c trong m\u1ee5c H\u1ed3 s\u01a1 doanh nghi\u1ec7p tr\u00ean TCBS.
Nh\u1ea5p \u0111\u1ec3 xem v\u1ecb tr\u00ed hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n TCBS>>> company_profile ('TCB').T\n 0\nid None\ncompanyName Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n K\u1ef9 th\u01b0\u01a1ng Vi\u1ec7t Nam\nticker TCB\ncompanyProfile Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n K\u1ef9 th\u01b0\u01a1ng Vi\u1ec7t Na...\nhistoryDev Ng\u00e0y 27/09/1993: Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7...\ncompanyPromise None\nbusinessRisk Th\u00f4ng t\u01b0 36/2014/TT-NHNN c\u0169ng g\u00e2y ra m\u1ed9t s\u1ed1 ...\nkeyDevelopments Huy \u0111\u1ed9ng v\u1ed1n; T\u00edn d\u1ee5ng; Li\u00ean k\u1ebft v\u00e0 \u0111\u1ea7u t\u01b0 t...\nbusinessStrategies M\u1edf r\u1ed9ng t\u1eadp kh\u00e1ch h\u00e0ng c\u1ea3 v\u1ec1 quy m\u00f4 v\u00e0 t\u1ed1c \u0111\u1ed9...\n
"},{"location":"functions/fundamental/#danh-sach-co-ong","title":"Danh s\u00e1ch c\u1ed5 \u0111\u00f4ng","text":"company_large_shareholders ('TCB')\n
>>> company_large_shareholders ('TCB')\n ticker shareHolder shareOwnPercent\n 0 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Masan 0.1491\n 1 TCB Nguy\u1ec5n Th\u1ecb Thanh Th\u1ee7y 0.0495\n 2 TCB Nguy\u1ec5n Th\u1ecb Thanh T\u00e2m 0.0495\n 3 TCB H\u1ed3 Anh Minh 0.0392\n 4 TCB Nguy\u1ec5n Ph\u01b0\u01a1ng Hoa 0.0216\n 5 TCB Nguy\u1ec5n H\u01b0\u01a1ng Li\u00ean 0.0198\n 6 TCB H\u1ed2 H\u00d9NG ANH 0.0112\n 7 TCB Nguy\u1ec5n Thi\u1ec1u Quang 0.0086\n 8 TCB H\u1ed3 Th\u1ee7y Anh 0.0064\n 9 TCB Kh\u00e1c 0.0292\n
"},{"location":"functions/fundamental/#cac-chi-so-tai-chinh-co-ban","title":"C\u00e1c ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh c\u01a1 b\u1ea3n","text":"company_fundamental_ratio (symbol='TCB', mode='simplify', missing_pct=0.8)\n
Trong \u0111\u00f3:
Tham s\u1ed1 mode
nh\u1eadn 2 gi\u00e1 tr\u1ecb:
simplify
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 c\u00e1c gi\u00e1 tr\u1ecb s\u1ed1 c\u00f3 \u00fd ngh\u0129a. M\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb simplify
.
''
tr\u1ea3 v\u1ec1 to\u00e0n b\u1ed9 c\u00e1c c\u1ed9t c\u00f3 trong DataFrame
Tham s\u1ed1 missing_pct
: nh\u1eadn gi\u00e1 tr\u1ecb t\u1eeb 0 \u0111\u1ebfn 1, quy \u0111\u1ecbnh t\u1ec9 l\u1ec7 % s\u1ebd cho ph\u00e9p h\u00e0m lo\u1ea1i b\u1ecf d\u1eef li\u1ec7u b\u1ecb thi\u1ebfu. V\u00ed d\u1ee5 0.8 th\u1ec3 hi\u1ec7n r\u1eb1ng h\u00e0m n\u00e0y s\u1ebd lo\u1ea1i b\u1ecf c\u1ed9t t\u01b0\u01a1ng \u1ee9ng khi 80% s\u1ed1 d\u00f2ng trong c\u1ed9t l\u00e0 d\u1eef li\u1ec7u r\u1ed7ng.
>>> company_fundamental_ratio (symbol='TCB', mode='simplify', missing_pct=0.8).T\n 0\nticker TCB\ncostOfFinancing.industryAvgValue 0.056\ninterestMargin.industryAvgValue 0.034\nnonInterestOnToi.industryAvgValue 0.215\ncostToIncome.industryAvgValue 0.437\npreProvisionOnToi.industryAvgValue 0.449\npostTaxOnToi.industryAvgValue 0.322\ndepositOnEarnAsset.industryAvgValue 0.725\ncancelDebt.industryAvgValue 0.007\nbadDebtPercentage.industryAvgValue 0.024\nprovisionOnBadDebt.industryAvgValue 0.609\nloanOnDeposit.industryAvgValue 0.96\nequityOnTotalAsset.industryAvgValue 0.086\nbadDebtOnAsset.industryAvgValue 0.015\n
"},{"location":"functions/fundamental/#muc-bien-ong-gia-co-phieu","title":"M\u1ee9c bi\u1ebfn \u0111\u1ed9ng gi\u00e1 c\u1ed5 phi\u1ebfu","text":"ticker_price_volatility (symbol='TCB')\n
>>> ticker_price_volatility (symbol='TCB').T\n 0\nticker TCB\nticker_highestPrice 35750.0\nticker_lowestPrice 20700.0\nticker_highestPricePercent -0.143\nticker_lowestPricePercent 0.481\n
"},{"location":"functions/fundamental/#thong-tin-giao-dich-noi-bo","title":"Th\u00f4ng tin giao d\u1ecbch n\u1ed9i b\u1ed9","text":"company_insider_deals (symbol='TCB', page_size=20, page=0)\n
>>> company_insider_deals (symbol='TCB', page_size=20, page=0)\nticker dealAnnounceDate dealMethod dealAction dealQuantity dealPrice dealRatio\n0 TCB 2023-08-31 C\u1ed5 \u0111\u00f4ng l\u1edbn B\u00e1n -300000.0 34500.0 0.000\n1 TCB 2023-08-22 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp Mua 0.0 33100.0 0.042\n2 TCB 2023-07-20 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -933169.0 31900.0 0.082\n3 TCB 2023-04-18 C\u1ed5 \u0111\u00f4ng l\u1edbn B\u00e1n -30000.0 29150.0 0.184\n4 TCB 2022-12-28 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -21496.0 26150.0 0.319\n5 TCB 2022-11-28 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 200000.0 24600.0 0.402\n13 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 350000.0 38650.0 -0.107\n12 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 111404.0 38650.0 -0.107\n11 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 100021.0 38650.0 -0.107\n10 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 97770.0 38650.0 -0.107\n9 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 80945.0 38650.0 -0.107\n8 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 55764.0 38650.0 -0.107\n7 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 42118.0 38650.0 -0.107\n6 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 5318.0 38650.0 -0.107\n14 TCB 2022-08-08 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -100000.0 39200.0 -0.120\n15 TCB 2022-05-10 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -868500.0 38700.0 -0.109\n16 TCB 2022-04-05 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -150000.0 49050.0 -0.297\n17 TCB 2022-03-23 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -200000.0 49600.0 -0.304\n18 TCB 2021-10-26 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -35704.0 51000.0 -0.324\n19 TCB 2021-10-14 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp Mua 300000.0 52500.0 -0.343\n
"},{"location":"functions/fundamental/#danh-sach-cong-ty-con-cong-ty-lien-ket","title":"Danh s\u00e1ch c\u00f4ng ty con, c\u00f4ng ty li\u00ean k\u1ebft","text":"company_subsidiaries_listing (symbol='TCB', page_size=100, page=0)\n
>>> company_subsidiaries_listing (symbol='TCB', page_size=100, page=0)\nticker subCompanyName subOwnPercent\n0 TCB C\u00f4ng ty TNHH MTV Qu\u1ea3n L\u00fd N\u1ee3 V\u00e0 Khai Th\u00e1c T\u00e0i S... 1.000\n1 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n Ch\u1ee9ng kho\u00e1n K\u1ef9 Th\u01b0\u01a1ng 0.942\n2 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n Qu\u1ea3n L\u00fd Qu\u1ef9 K\u1ef9 Th\u01b0\u01a1ng 0.900\n3 TCB T\u1ed5ng C\u00f4ng ty C\u1ed5 ph\u1ea7n Xu\u1ea5t nh\u1eadp kh\u1ea9u v\u00e0 X\u00e2y d\u1ef1n... 0.004\n4 TCB T\u1ed5ng C\u00f4ng ty H\u00e0ng kh\u00f4ng Vi\u1ec7t Nam - CTCP 0.000\n5 TCB C\u00f4ng ty T\u00e0i Ch\u00ednh TNHH MTV Lotte Vi\u1ec7t Nam 0.000\n
"},{"location":"functions/fundamental/#ban-lanh-ao-cong-ty","title":"Ban l\u00e3nh \u0111\u1ea1o c\u00f4ng ty","text":"company_officers (symbol='TCB', page_size=20, page=0)\n
>>> company_officers (symbol='TCB', page_size=10, page=0)\nticker officerName officerPosition officerOwnPercent\n0 TCB Nguy\u1ec5n Th\u1ecb Thanh Th\u1ee7y None 0.0495\n1 TCB Nguy\u1ec5n Th\u1ecb Thanh T\u00e2m None 0.0495\n2 TCB H\u1ed3 Anh Minh None 0.0392\n3 TCB Nguy\u1ec5n Ph\u01b0\u01a1ng Hoa None 0.0216\n4 TCB Nguy\u1ec5n H\u01b0\u01a1ng Li\u00ean None 0.0198\n5 TCB H\u1ed2 H\u00d9NG ANH None 0.0112\n6 TCB Nguy\u1ec5n Thi\u1ec1u Quang Ph\u00f3 Ch\u1ee7 t\u1ecbch H\u1ed9i \u0111\u1ed3ng Qu\u1ea3n tr\u1ecb 0.0086\n7 TCB H\u1ed3 Th\u1ee7y Anh None 0.0064\n8 TCB Nguy\u1ec5n C\u1ea3nh S\u01a1n T\u00f9ng None 0.0060\n9 TCB Nguy\u1ec5n C\u1ea3nh S\u01a1n Ph\u00f3 Ch\u1ee7 t\u1ecbch H\u1ed9i \u0111\u1ed3ng Qu\u1ea3n tr\u1ecb 0.0051\n
"},{"location":"functions/fundamental/#thong-tin-su-kien-quyen","title":"Th\u00f4ng tin s\u1ef1 ki\u1ec7n quy\u1ec1n","text":"company_events (symbol='TPB', page_size=10, page=0)\n
>>> company_events (symbol='TPB', page_size=10, page=0)\n id ticker price priceChange priceChangeRatio ... exerDate regFinalDate exRigthDate eventDesc eventNote\n0 2563370 TPB 18100 -350 -0.019 ... 2023-07-07 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n1 2563135 TPB 18535 -215 -0.011 ... 2023-06-09 00:00:00 2023-06-12 00:00:00 2023-06-09 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n2 2561933 TPB 15668 -64 -0.004 ... 2023-04-26 00:00:00 2023-03-29 00:00:00 2023-03-28 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n3 2561033 TPB 15441 -97 -0.006 ... 2023-04-03 00:00:00 2023-03-21 00:00:00 2023-03-20 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n4 2560718 TPB 14567 0 0.000 ... 1753-01-01 00:00:00 2023-01-17 00:00:00 2023-01-16 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n5 2517318 TPB 25832 453 0.018 ... 2022-04-26 00:00:00 2022-03-28 00:00:00 2022-03-25 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n6 2406108 TPB 27192 0 0.000 ... 2022-01-13 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n7 2395935 TPB 24936 719 0.030 ... 2021-12-20 00:00:00 2021-12-21 00:00:00 2021-12-20 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n8 2235221 TPB 31480 371 0.012 ... 2022-09-15 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n9 2215176 TPB 30665 519 0.017 ... 1753-01-01 00:00:00 2021-10-11 00:00:00 2021-10-08 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n\n[10 rows x 15 columns]\n
"},{"location":"functions/fundamental/#tin-tuc-cong-ty","title":"Tin t\u1ee9c c\u00f4ng ty","text":"company_news (symbol='TCB', page_size=10, page=0)\n
>>> company_news (symbol='TCB', page_size=10, page=0)\nticker price priceChange priceChangeRatio priceChangeRatio1W priceChangeRatio1M id title source publishDate\n0 TCB 34500 500 0.015 0.021 0.006 10915190 TCB: B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 giao d\u1ecbch c\u1ed5 phi\u1ebfu c\u1ee7a n... HOSE 2023-08-31 11:12:00\n1 TCB 33650 -150 -0.004 0.035 0.004 10909083 TCB: CBTT v\u1ec1 vi\u1ec7c gi\u1ea3i t\u1ecfa c\u1ed5 phi\u1ebfu h\u1ea1n ch\u1ebf c... HOSE 2023-08-25 16:35:00\n2 TCB 33100 350 0.011 -0.028 0.020 10905062 TCB: Con g\u00e1i Ch\u1ee7 t\u1ecbch \u0111\u0103ng k\u00fd mua tr\u00ean 82 tri\u1ec7... HOSE 2023-08-22 11:19:00\n3 TCB 32750 250 0.008 -0.031 0.014 10904072 B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 ph\u00e2n ph\u1ed1i ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111... HOSE 2023-08-21 16:21:00\n4 TCB 34700 -600 -0.017 0.036 0.088 10900206 Th\u00f4ng b\u00e1o ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n v\u00e0 B\u1ea3n c\u00e1o b\u1ea1c... HOSE 2023-08-17 14:48:00\n5 TCB 34700 -600 -0.017 0.036 0.088 10899331 Gi\u1ea5y ch\u1ee9ng nh\u1eadn ch\u00e0o b\u00e1n ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111\u1ea3... HOSE 2023-08-17 08:55:00\n6 TCB 33800 150 0.004 -0.016 0.058 10895913 Th\u00f4ng b\u00e1o h\u1ee7y \u0111\u1ee3t ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o... HOSE 2023-08-14 17:36:00\n7 TCB 33500 -500 -0.015 0.000 0.047 10892819 TCB: CBTT Chuy\u1ec3n quy\u1ec1n s\u1edf h\u1eefu c\u1ed5 phi\u1ebfu t\u1eeb C\u00f4n... HOSE 2023-08-10 17:55:00\n8 TCB 34000 0 0.000 0.003 0.063 10891020 Th\u00f4ng b\u00e1o ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n v\u00e0 B\u1ea3n c\u00e1o b\u1ea1c... HOSE 2023-08-09 16:55:00\n9 TCB 34000 0 0.000 0.003 0.063 10890346 B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 ph\u00e2n ph\u1ed1i ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111... HOSE 2023-08-09 10:26:00\n
"},{"location":"functions/funds/","title":"Th\u00f4ng tin qu\u1ef9 m\u1edf","text":"Gi\u1edbi thi\u1ec7u
Th\u00f4ng tin c\u00e1c qu\u1ef9 m\u1edf \u0111\u01b0\u1ee3c cung c\u1ea5p th\u00f4ng qua vnstock \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb Public API c\u1ee7a fmarket.vn. Hi\u1ec7n t\u1ea1i, vnstock cung c\u1ea5p c\u00e1ch th\u1ee9c truy xu\u1ea5t c\u00e1c nh\u00f3m th\u00f4ng tin qu\u1ef9 m\u1edf quan tr\u1ecdng \u0111\u01b0\u1ee3c m\u00f4 t\u1ea3 chi ti\u1ebft d\u01b0\u1edbi d\u00e2y.
vnstock xin g\u1eedi l\u1eddi c\u00e1m \u01a1n ch\u00e2n th\u00e0nh t\u1edbi b\u1ea1n andrey_jef \u0111\u00e3 \u0111\u1ec1 xu\u1ea5t v\u00e0 \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n kh\u1edfi x\u01b0\u1edbng cho nh\u00f3m t\u00ednh n\u0103ng n\u00e0y qua Github.
T\u00ednh n\u0103ng tra c\u1ee9u th\u00f4ng tin qu\u1ef9 m\u1edf hi\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt qua nh\u00e1nh beta c\u1ee7a vnstock tr\u00ean Github. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t b\u1ea3n beta theo h\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y:
C\u00e0i \u0111\u1eb7t b\u1ea3n beta
"},{"location":"functions/funds/#liet-ke-danh-sach-quy","title":"Li\u1ec7t k\u00ea danh s\u00e1ch qu\u1ef9","text":""},{"location":"functions/funds/#cau-lenh","title":"C\u00e2u l\u1ec7nh","text":"\u0110\u1ec3 truy xu\u1ea5t th\u00f4ng tin to\u00e0n b\u1ed9 c\u00e1c ch\u1ee9ng ch\u1ec9 qu\u1ef9 (CCQ) m\u1edf, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m d\u01b0\u1edbi \u0111\u00e2y:
funds_listing()\n
"},{"location":"functions/funds/#vi-du-thong-tin-tra-ve","title":"V\u00ed d\u1ee5 th\u00f4ng tin tr\u1ea3 v\u1ec1","text":">>> funds_listing(fund_type=\"\").head()\nTotal number of funds currently listed on Fmarket: 41\n fundId T\u00ean vi\u1ebft t\u1eaft T\u00ean CCQ ... Gi\u00e1 g\u1ea7n nh\u1ea5t code vsdFeeId\n0 23 VESAF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU TI\u1ebeP C\u1eacN TH\u1eca TR\u01af\u1edcNG VINACA... ... 25620.68 VESAF VESAFN002\n1 20 VEOF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU H\u01afNG TH\u1ecaNH VINACAPITAL ... 24748.62 VEOF VEOFN003\n2 11 SSISCA QU\u1ef8 \u0110\u1ea6U T\u01af L\u1ee2I TH\u1ebe C\u1ea0NH TRANH B\u1ec0N V\u1eeeNG SSI ... 29880.06 SSISCA SSISCAN001\n3 32 VCBF-BCF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU H\u00c0NG \u0110\u1ea6U VCBF ... 27526.16 VCBFBCF VCBFBCFN001\n4 22 VIBF QU\u1ef8 \u0110\u1ea6U T\u01af C\u00c2N B\u1eb0NG TU\u1ec6 S\u00c1NG VINACAPITAL ... 14983.38 VIBF VIBFN003\n\n[5 rows x 11 columns]\n
"},{"location":"functions/funds/#tham-so-au-vao","title":"Tham s\u1ed1 \u0111\u1ea7u v\u00e0o","text":"Field Type Description Default Optional fund_type
str lo\u1ea1i qu\u1ef9, ch\u1ea5p nh\u1eadn c\u00e1c gi\u00e1 tr\u1ecb sau: STOCK
cho qu\u1ef9 c\u1ed5 phi\u1ebfu, BOND
cho qu\u1ef9 tr\u00e1i phi\u1ebfu, BALANCED
cho qu\u1ef9 c\u00e2n b\u1eb1ng, N\u1ebfu \u0111\u1ec3 tr\u1ed1ng, k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 l\u00e0 t\u1ea5t c\u1ea3 c\u00e1c qu\u1ef9 hi\u1ec7n c\u00f3 tr\u00ean Fmarket. None False"},{"location":"functions/funds/#thong-tin-tra-ve","title":"Th\u00f4ng tin tr\u1ea3 v\u1ec1","text":"Th\u00f4ng tin tr\u1ea3 v\u1ec1 l\u00e0 m\u1ed9t DataFrame c\u00f3 m\u00f4 h\u00ecnh d\u1eef li\u1ec7u (data model) nh\u01b0 sau:
Field Type Descriptionshort_name
str T\u00ean vi\u1ebft t\u1eaft c\u1ee7a CCQ name
str T\u00ean CCQ fund_type
str Lo\u1ea1i qu\u1ef9 fund_owner_name
str T\u1ed5 ch\u1ee9c ph\u00e1t h\u00e0nh management_fee
float Ph\u00ed qu\u1ea3n l\u00fd (%) inception_date
date Ng\u00e0y th\u00e0nh l\u1eadp qu\u1ef9 nav
float Gi\u00e1 g\u1ea7n nh\u1ea5t nav_change_previous
float L\u1ee3i nhu\u1eadn so v\u1edbi phi\u00ean tr\u01b0\u1edbc (%) nav_change_last_year
float L\u1ee3i nhu\u1eadn so v\u1edbi n\u0103m tr\u01b0\u1edbc (%) nav_change_inception
float L\u1ee3i nhu\u1eadn t\u1eeb khi th\u00e0nh l\u1eadp (%) nav_change_1m
float L\u1ee3i nhu\u1eadn 1 th\u00e1ng g\u1ea7n nh\u1ea5t (%) nav_change_3m
float L\u1ee3i nhu\u1eadn 3 th\u00e1ng (%) nav_change_6m
float L\u1ee3i nhu\u1eadn 6 th\u00e1ng (%) nav_change_12m
float L\u1ee3i nhu\u1eadn 12 th\u00e1ng (%) nav_change_24m
float L\u1ee3i nhu\u1eadn 24 th\u00e1ng (%) nav_change_36m
float L\u1ee3i nhu\u1eadn 36 th\u00e1ng (%) nav_change_36m_annualized
float L\u1ee3i nhu\u1eadn trung b\u00ecnh 36 th\u00e1ng (%/n\u0103m) nav_update_at
date Ng\u00e0y c\u1eadp nh\u1eadt NAV fund_id_fmarket
int ID c\u1ee7a CCQ trong csdl c\u1ee7a Fmarket fund_code
str T\u00ean m\u00e3 CCQ trong csdl c\u1ee7a Fmarket vsd_fee_id
str T\u00ean m\u00e3 CCQ trong csdl c\u1ee7a Trung t\u00e2m l\u01b0u k\u00fd (VSD)"},{"location":"functions/funds/#truy-xuat-thong-tin-quy","title":"Truy xu\u1ea5t th\u00f4ng tin qu\u1ef9","text":"B\u1ea1n c\u00f3 th\u1ec3 truy xu\u1ea5t c\u00e1c th\u00f4ng tin c\u01a1 b\u1ea3n c\u1ee7a m\u1ed9t qu\u1ef9 qua h\u00e0m fund_details
nh\u01b0 d\u01b0\u1edbi d\u00e2y.
symbol
str T\u00ean CCQ \"SSISCA\" False type
str lo\u1ea1i th\u00f4ng tin c\u1ea7n truy xu\u1ea5t, ch\u1ea5p nh\u1eadn c\u00e1c gi\u00e1 tr\u1ecb sau: top_holding_list
: danh m\u1ee5c \u0111\u1ea7u t\u01b0 l\u1edbn, industry_holding_list
: ph\u00e2n b\u1ed5 theo ng\u00e0nh, asset_holding_list
: ph\u00e2n b\u1ed5 theo lo\u1ea1i t\u00e0i s\u1ea3n, nav_report
: l\u1ecbch s\u1eed gi\u00e1 \u0111\u01a1n v\u1ecb qu\u1ef9. \"top_holding_list\" False"},{"location":"functions/funds/#thong-tin-tra-ve_1","title":"Th\u00f4ng tin tr\u1ea3 v\u1ec1","text":"T\u01b0\u01a1ng \u1ee9ng v\u1edbi t\u1eebng lo\u1ea1i th\u00f4ng tin c\u1ea7n truy xu\u1ea5t, d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 m\u1ed9t DataFrame c\u00f3 m\u00f4 h\u00ecnh d\u1eef li\u1ec7u (data model) nh\u01b0 sau:
top_holding_listindustry_holding_listasset_holding_listnav_report Field Type Descriptionstock_code
str M\u00e3 c\u1ed5 phi\u1ebfu / tr\u00e1i phi\u1ebfu m\u00e0 qu\u1ef9 \u0111ang n\u1eafm gi\u1eef industry
str Ng\u00e0nh net_asset_percent
float % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n type_asset
str Lo\u1ea1i t\u00e0i s\u1ea3n update_at
date C\u1eadp nh\u1eadt l\u00fac short_name
str T\u00ean CCQ Field Type Description industry
str Ng\u00e0nh net_asset_percent
float % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n short_name
str T\u00ean CCQ Field Type Description asset_percent
str % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n asset_type
str Lo\u1ea1i t\u00e0i s\u1ea3n short_name
str T\u00ean CCQ Field Type Description date
str Ng\u00e0y nav_per_unit
str NAV / \u0111\u01a1n v\u1ecb qu\u1ef9 (\u0111\u01a1n v\u1ecb: VND) short_name
str T\u00ean CCQ"},{"location":"functions/funds/#vi-du-thong-tin-tra-ve_1","title":"V\u00ed d\u1ee5 th\u00f4ng tin tr\u1ea3 v\u1ec1","text":""},{"location":"functions/funds/#danh-muc-au-tu-lon-top-10-cac-ma-quy-nam-giu","title":"Danh m\u1ee5c \u0111\u1ea7u t\u01b0 l\u1edbn - top 10 c\u00e1c m\u00e3 qu\u1ef9 n\u1eafm gi\u1eef","text":"fund_details (symbol='SSISCA', type='top_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='SSISCA', type='top_holding_list')\nGetting data for SSISCA\n T\u00ean Ng\u00e0nh % Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n Lo\u1ea1i t\u00e0i s\u1ea3n C\u1eadp nh\u1eadt l\u1ea7n cu\u1ed1i fundId symbol\n0 FPT C\u00f4ng ngh\u1ec7 v\u00e0 th\u00f4ng tin 19.48 STOCK 2023-12-08 11 SSISCA\n1 MWG B\u00e1n l\u1ebb 8.73 STOCK 2023-12-08 11 SSISCA\n2 ACB Ng\u00e2n h\u00e0ng 4.80 STOCK 2023-12-08 11 SSISCA\n3 HPG V\u1eadt li\u1ec7u x\u00e2y d\u1ef1ng 4.53 STOCK 2023-12-08 11 SSISCA\n4 MBB Ng\u00e2n h\u00e0ng 4.29 STOCK 2023-12-08 11 SSISCA\n5 CTG Ng\u00e2n h\u00e0ng 3.88 STOCK 2023-12-08 11 SSISCA\n6 VRE B\u1ea5t \u0111\u1ed9ng s\u1ea3n 3.44 STOCK 2023-12-08 11 SSISCA\n7 DRC S\u1ea3n ph\u1ea9m cao su 3.43 STOCK 2023-12-08 11 SSISCA\n8 TV2 D\u1ecbch v\u1ee5 t\u01b0 v\u1ea5n, h\u1ed7 tr\u1ee3 3.42 STOCK 2023-12-08 11 SSISCA\n9 TCB Ng\u00e2n h\u00e0ng 3.31 STOCK 2023-12-08 11 SSISCA\n
"},{"location":"functions/funds/#ti-trong-cac-nganh-ma-quy-ang-au-tu","title":"T\u1ec9 tr\u1ecdng c\u00e1c ng\u00e0nh m\u00e0 qu\u1ef9 \u0111ang \u0111\u1ea7u t\u01b0","text":"fund_details (symbol='VESAF', type='industry_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='industry_holding_list')\nGetting data for VESAF\n Ng\u00e0nh % Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n symbol\n0 C\u00f4ng ngh\u1ec7 v\u00e0 th\u00f4ng tin 15.12 VESAF\n1 Ng\u00e2n h\u00e0ng 11.52 VESAF\n2 B\u1ea5t \u0111\u1ed9ng s\u1ea3n 10.77 VESAF\n3 S\u1ea3n xu\u1ea5t Ph\u1ee5 tr\u1ee3 10.03 VESAF\n4 V\u1eadn t\u1ea3i - Kho b\u00e3i 8.22 VESAF\n5 Khai kho\u00e1ng 5.44 VESAF\n6 Th\u1ef1c ph\u1ea9m - \u0110\u1ed3 u\u1ed1ng 5.28 VESAF\n7 Ch\u1ebf bi\u1ebfn th\u1ee7y s\u1ea3n 4.80 VESAF\n8 S\u1ea3n xu\u1ea5t Nh\u1ef1a - H\u00f3a ch\u1ea5t 3.48 VESAF\n9 X\u00e2y d\u1ef1ng 2.91 VESAF\n10 B\u00e1n l\u1ebb 2.77 VESAF\n11 Ch\u1ee9ng kho\u00e1n 2.54 VESAF\n12 Ti\u1ec7n \u00edch 2.31 VESAF\n13 B\u1ea3o hi\u1ec3m 1.41 VESAF\n
"},{"location":"functions/funds/#bao-cao-nav-quy","title":"B\u00e1o c\u00e1o NAV qu\u1ef9","text":"fund_details (symbol='VESAF', type='nav_report')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 DataFrame c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='nav_report')\nGetting data for VESAF\n Ng\u00e0y Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n r\u00f2ng/CCQ (VND) fundId symbol\n0 2017-04-25 10000.00 23 VESAF\n1 2017-04-29 10058.00 23 VESAF\n2 2017-05-09 10093.00 23 VESAF\n3 2017-05-16 10165.00 23 VESAF\n4 2017-05-23 10254.00 23 VESAF\n.. ... ... ... ...\n816 2023-12-04 25300.86 23 VESAF\n817 2023-12-05 25707.10 23 VESAF\n818 2023-12-06 25713.20 23 VESAF\n819 2023-12-07 25825.37 23 VESAF\n820 2023-12-08 25620.68 23 VESAF\n\n[821 rows x 4 columns]\n
"},{"location":"functions/funds/#ti-trong-tai-san-nam-giu","title":"T\u1ec9 tr\u1ecdng t\u00e0i s\u1ea3n n\u1eafm gi\u1eef","text":"fund_details (symbol='VESAF', type='asset_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 DataFrame nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='asset_holding_list')\nGetting data for VESAF\n T\u1ec9 tr\u1ecdng updateAt Lo\u1ea1i t\u00e0i s\u1ea3n symbol\n0 86.61 2023-12-08 C\u1ed5 phi\u1ebfu VESAF\n1 13.39 2023-12-08 Ti\u1ec1n v\u00e0 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n VESAF\n
"},{"location":"functions/listing/","title":"Danh s\u00e1ch ni\u00eam y\u1ebft","text":""},{"location":"functions/listing/#cong-ty-niem-yet","title":"C\u00f4ng ty ni\u00eam y\u1ebft","text":"listing_companies(live=True)\n
Trong \u0111\u00f3:
live
nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb.live=False
: Cho ph\u00e9p \u0111\u1ecdc d\u1eef li\u1ec7u c\u1ee5c b\u1ed9 t\u1eeb t\u1ec7p csv listing_companies \u0111\u00ednh k\u00e8m tr\u00ean Github theo m\u1eb7c \u0111\u1ecbnh. File n\u00e0y \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt h\u00e0ng th\u00e1ng. Ch\u1ee9a th\u00f4ng tin r\u1ea5t chi ti\u1ebft. B\u1edfi danh s\u00e1ch c\u00e1c c\u00f4ng ty ni\u00eam y\u1ebft th\u01b0\u1eddng kh\u00f4ng thay \u0111\u1ed5i li\u00ean t\u1ee5c n\u00ean vi\u1ec7c n\u00e0y kh\u00f4ng g\u00e2y tr\u1edf ng\u1ea1i nhi\u1ec1u.
live=True
: Cho ph\u00e9p \u0111\u1ecdc d\u1eef li\u1ec7u danh s\u00e1ch c\u00f4ng ty ni\u00eam y\u1ebft \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt realtime t\u1eeb API mi\u1ec5n ph\u00ed do Wifeed cung c\u1ea5p. D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y ch\u1ec9 g\u1ed3m 4 th\u00f4ng tin c\u01a1 b\u1ea3n: m\u00e3 CK, t\u00ean c\u00f4ng ty, m\u00e3 ph\u00e2n lo\u1ea1i c\u00f4ng ty, s\u00e0n ni\u00eam y\u1ebft.
Tham s\u1ed1 source
nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 Wifeed
(m\u1eb7c \u0111\u1ecbnh) ho\u1eb7c SSI
. B\u1ecf qua tham s\u1ed1 n\u00e0y n\u1ebfu s\u1eed d\u1ee5ng live=True
. Vi\u1ec7c b\u1ed5 sung th\u00eam ngu\u00f2n d\u1eef li\u1ec7u SSI cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng d\u1ec5 d\u00e0ng t\u00ecm ra m\u00e3 c\u00f4ng ty \u0111\u1ec3 tham chi\u1ebfu m\u1ed9t s\u1ed1 h\u00e0m c\u1ee7a SSI khi s\u1eed d\u1ee5ng m\u00e3 c\u1ed5 phi\u1ebfu kh\u00f4ng cho k\u1ebft qu\u1ea3.
>>> listing_companies(True)\n ticker organName organTypeCode comGroupCode\n0 A32 CTCP 32 1 UPCOM\n1 AAA CTCP Nh\u1ef1a An Ph\u00e1t Xanh 1 HOSE\n2 AAM CTCP Th\u1ee7y s\u1ea3n MeKong 1 HOSE\n3 AAS CTCP Ch\u1ee9ng kho\u00e1n SmartInvest 4 UPCOM\n4 AAT CTCP T\u1eadp \u0110o\u00e0n Ti\u00ean S\u01a1n Thanh H\u00f3a 1 HOSE\n... ... ... ... ...\n1579 XPH CTCP X\u00e0 ph\u00f2ng H\u00e0 N\u1ed9i 1 UPCOM\n1580 YBC CTCP Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i 1 UPCOM\n1581 YBM CTCP Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i 1 HOSE\n1582 YEG CTCP T\u1eadp \u0111o\u00e0n Yeah1 1 HOSE\n1583 YTC CTCP Xu\u1ea5t nh\u1eadp kh\u1ea9u Y t\u1ebf Th\u00e0nh ph\u1ed1 H\u1ed3 Ch\u00ed Minh 1 UPCOM\n
>>> listing_companies(True, source='SSI')\n organCode ticker ... organName organShortName\n0 0104498100 VVS ... C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 Ph\u00e1t tri\u1ec3n M\u00e1y Vi\u1ec7t Nam \u0110\u1ea7u t\u01b0 Ph\u00e1t tri\u1ec3n M\u00e1y Vi\u1ec7t Nam\n1 0109204756 HIO ... C\u00f4ng ty C\u1ed5 Ph\u1ea7n Helio Energy Helio Energy\n2 0304941312 XDC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n X\u00e2y d\u1ef1ng C\u00f4ng tr\u00ecnh T\u00e2n C\u1ea3ng X\u00e2y d\u1ef1ng C\u00f4ng tr\u00ecnh T\u00e2n C\u1ea3ng\n3 0700519785 THM ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1ee9 H\u1ea3i H\u00e0 Nam T\u1ee9 H\u1ea3i H\u00e0 Nam\n4 10659 HSV ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n HSV Vi\u1ec7t Nam Gang Th\u00e9p H\u00e0 N\u1ed9i\n... ... ... ... ... ...\n1599 XUANMINHHP XMP ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Th\u1ee7y \u0111i\u1ec7n Xu\u00e2n Minh Th\u1ee7y \u0111i\u1ec7n Xu\u00e2n Minh\n1600 YBC YBC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i\n1601 YBMC YBM ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i Kho\u00e1ng s\u1ea3n CN Y\u00ean B\u00e1i\n1602 YEGCORP YEG ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Yeah1 T\u1eadp \u0111o\u00e0n Yeah1\n1603 YTECO YTC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Xu\u1ea5t nh\u1eadp kh\u1ea9u Y t\u1ebf Th\u00e0nh ph\u1ed1 ... XNK Y t\u1ebf TP.HCM\n\n[1604 rows x 8 columns]\n
>>> listing_companies()\n ticker comGroupCode organName organShortName ... VNIT VNMAT VNREAL VNUTI\n0 SSI HOSE C\u00f4ng ty C\u1ed5 ph\u1ea7n Ch\u1ee9ng kho\u00e1n SSI Ch\u1ee9ng kho\u00e1n SSI ... False False False False\n1 BCM HOSE T\u1ed5ng C\u00f4ng ty \u0110\u1ea7u t\u01b0 v\u00e0 Ph\u00e1t tri\u1ec3n C\u00f4ng nghi\u1ec7p ... Becamex IDC ... False False True False\n2 VHM HOSE C\u00f4ng ty C\u1ed5 ph\u1ea7n Vinhomes Vinhomes ... False False True False\n\n[3 rows x 35 columns]\n
"},{"location":"functions/listing/#cac-ma-chi-so","title":"C\u00e1c m\u00e3 ch\u1ec9 s\u1ed1","text":"indices_listing (lang='vi')\n
Trong \u0111\u00f3, tham s\u1ed1 lang
cho ph\u00e9p nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 vi
cho Ti\u1ebfng Vi\u1ec7t, en
cho Ti\u1ebfng Anh. K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 l\u00e0 t\u1ea5t c\u1ea3 c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1 hi\u1ec7n c\u00f3, d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi FiinTrade/SSI. Khi s\u1eed d\u1ee5ng, c\u00f3 nh\u1eefng tr\u01b0\u1eddng h\u1ee3p c\u1ea7n \u0111\u1ed5i t\u00ean c\u00e1c m\u00e3 HNXIndex th\u00e0nh HNX, UpcomIndex th\u00e0nh UPCOM n\u1ebfu c\u1ea7n thi\u1ebft.
>>> indices_listing (lang='vi')\n comGroupCode parentComGroupCode comGroupOrder\n0 VNINDEX VNINDEX 1\n1 HNXIndex HNXIndex 2\n2 VN30 VNINDEX 2\n3 VNCOND VNINDEX 2\n4 HNX30 HNXIndex 3\n5 UpcomIndex UpcomIndex 3\n6 VN100 VNINDEX 3\n7 VNCONS VNINDEX 3\n8 VNENE VNINDEX 4\n9 VNX50 VNINDEX 4\n10 VNFIN VNINDEX 5\n11 VNHEAL VNINDEX 6\n12 VNXALL VNINDEX 6\n13 VNIND VNINDEX 7\n14 VNIT VNINDEX 8\n15 VNMAT VNINDEX 9\n16 VNSML VNINDEX 9\n17 VNMID VNINDEX 10\n18 VNREAL VNINDEX 10\n19 VNALL VNINDEX 11\n20 VNUTI VNINDEX 11\n21 VNDIAMOND VNINDEX 12\n22 VNFINLEAD VNINDEX 13\n23 VNFINSELECT VNINDEX 14\n24 VNSI VNINDEX 17\n
"},{"location":"functions/market/","title":"Chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng","text":"SSI - Chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng
Th\u00f4ng tin chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng c\u1ee7a vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p t\u1eeb ngu\u1ed3n SSI. B\u1ea1n c\u00f3 th\u1ec3 truy xu\u1ea5t c\u00e1c th\u00f4ng tin \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng c\u1ee7a SSI v\u00e0o m\u00f4i tr\u01b0\u1eddng Python b\u1eb1ng c\u00e1c h\u00e0m d\u01b0\u1edbi \u0111\u00e2y. \u0110i\u1ec3m kh\u00e1c bi\u1ec7t c\u0103n b\u1ea3n gi\u1eefa vi\u1ec7c l\u1ea5y d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng b\u1eb1ng h\u00e0m vnstock so v\u1edbi t\u1ea3i file excel tr\u1ef1c ti\u1ebfp t\u1eeb SSI l\u00e0 d\u1eef li\u1ec7u c\u1ee7a vnstock c\u00f3 \u0111\u1ed9 chi ti\u1ebft cao h\u01a1n, \u0111\u1ed3ng th\u1eddi c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c l\u1ea5y tr\u1ef1c ti\u1ebfp v\u00e0o m\u00f4i tr\u01b0\u1eddng Python m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i l\u01b0u file excel v\u1ec1 m\u00e1y \u0111\u1ec3 ph\u00e2n t\u00edch.
"},{"location":"functions/market/#ban-o-nhiet-gia","title":"B\u1ea3n \u0111\u1ed3 nhi\u1ec7t gi\u00e1","text":"S\u1eed d\u1ee5ng h\u00e0m:
fr_trade_heatmap (symbol='HOSE', report_type='FrBuyVal')\n
Trong \u0111\u00f3: symbol
: M\u00e3 s\u00e0n ch\u1ee9ng kho\u00e1n ho\u1eb7c m\u00e3 Ch\u1ec9 s\u1ed1.
HOSE
, HNX
ho\u1eb7c UPCOM
VN30
, VN100
, ho\u1eb7c b\u1ea5t k\u1ef3 m\u00e3 ch\u1ec9 s\u1ed1 n\u00e0o c\u00f3 trong h\u00ecnh b\u00ean tr\u00ean, \u0111\u01b0\u1ee3c khoanh v\u00f9ng m\u00e0u xanh.report_type
: Lo\u1ea1i b\u1ea3n \u0111\u1ed3 nhi\u1ec7t gi\u00e1.
FrBuyVal
: Gi\u00e1 tr\u1ecb N\u0110TNN mua r\u00f2ngFrSellVal
: Gi\u00e1 tr\u1ecb N\u0110TNN b\u00e1n r\u00f2ngFrBuyVol
: Kh\u1ed1i l\u01b0\u1ee3ng N\u0110TNN mua r\u00f2ngFrSellVol
: Kh\u1ed1i l\u01b0\u1ee3ng N\u0110TNN b\u00e1n r\u00f2ngVolume
: Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbchValue
: Gi\u00e1 tr\u1ecb giao d\u1ecbchMarketCap
: V\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddngK\u1ebft qu\u1ea3:
>>> fr_trade_heatmap (symbol='VN30', report_type='FrBuyVal').T\n 0 ... 29\navgPrice 21583.35 ... 24757.58\nbest1Bid 21550.0 ... NaN\nbest1BidVol 205900.0 ... NaN\nbest1Offer 21600 ... 24600\nbest1OfferVol 39500 ... 690100\nbest2Bid 21500.0 ... NaN\nbest2BidVol 620300.0 ... NaN\nbest2Offer 21650 ... 24650\nbest2OfferVol 65700 ... 86200\nbest3Bid 21450.0 ... NaN\nbest3BidVol 483100.0 ... NaN\nbest3Offer 21700 ... 24700\nbest3OfferVol 29700 ... 20500\ncaStatus ...\nceiling 23400 ... 28300\ncorporateEvents [] ... []\ncoveredWarrantType ...\nexchange hose ... hose\nexercisePrice 0 ... 0\nexerciseRatio ...\nfloor 20400 ... 24600\nhighest 21750 ... 25900\nissuerName ...\nlastTradingDate ...\nlastVol 38999 ... 54716\nlowest 21450 ... 24600\nmatchedPrice 21550 ... 24600\nmaturityDate ...\nnmTotalTradedValue 84172900000 ... 135463580000\nopenPrice 21750 ... 25900\npriorClosePrice 21900 ... 26450\nrefPrice 21900 ... 26450\nsecurityName NGAN HANG TMCP A CHAU ... CTCP VINCOM RETAIL\nstockSymbol ACB ... VRE\nstockType s ... s\ntotalShare 38999 ... 54716\ntradingStatus ...\ntradingUnit 100 ... 100\nunderlyingSymbol ...\ncompanyNameEn Asia Commercial Joint Stock Bank ... Vincom Retail Joint Stock Company\ncompanyNameVi Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n \u00c1 Ch\u00e2u ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Vincom Retail\noddSession LO ... LO\nsession LO ... LO\nbuyForeignQtty 120300 ... 748207\nremainForeignQtty 0 ... 382909157\nsellForeignQtty 120365 ... 695725\nmatchedVolume 30 ... 50\npriceChange -350 ... -1850\npriceChangePercent -1.6 ... -6.99\nlastMatchedPrice 21550 ... 24600\nlastMatchedVolume 30 ... 50\nlastPriceChange -350 ... -1850\nlastPriceChangePercent -1.6 ... -6.99\nnmTotalTradedQty 3899900 ... 5471600\n\n[54 rows x 30 columns]\n
"},{"location":"functions/market/#top-co-phieu","title":"Top c\u1ed5 phi\u1ebfu","text":"S\u1eed d\u1ee5ng h\u00e0m:
market_top_mover (report_name='Value', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
Trong \u0111\u00f3 report_name
l\u00e0 t\u00ean lo\u1ea1i b\u00e1o c\u00e1o c\u1ea7n truy xu\u1ea5t, nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb sau:
Breakout
: Top \u0111\u1ed9t ph\u00e1Value
: Top gi\u00e1 tr\u1ecbLosers
: Top gi\u1ea3m gi\u00e1Gainers
: Top t\u0103ng gi\u00e1Volume
: Top kh\u1ed1i l\u01b0\u1ee3ngForeignTrading
: Top N\u0110TNNNewHigh
: Top v\u01b0\u1ee3t \u0111\u1ec9nhNewLow
: Top th\u1ee7ng \u0111\u00e1yexchange
: Ch\u1ecdn s\u00e0n giao d\u1ecbch \u0111\u1ec3 truy xu\u1ea5t b\u00e1o c\u00e1o. All
cho t\u1ea5t c\u1ea3, ho\u1eb7c ri\u00eang l\u1ebb t\u1eebng s\u00e0n HOSE
, HNX
, UPCOM
filter
: L\u1ecdc lo\u1ea1i b\u00e1o c\u00e1o, \u00e1p d\u1ee5ng cho lo\u1ea1i b\u00e1o c\u00e1o Top N\u0110TNN, h\u00e0m s\u1ebd t\u1ef1 \u0111\u1ed9ng \u00e1p d\u1ee5ng v\u1edbi lo\u1ea1i b\u00e1o c\u00e1o ph\u00f9 h\u1ee3p.NetBuyVol
: Top kh\u1ed1i l\u01b0\u1ee3ng mua r\u00f2ngNetBuyVal
: Top gi\u00e1 tr\u1ecb mua r\u00f2ngNetSellVol
: Top kh\u1ed1i l\u01b0\u1ee3ng b\u00e1n r\u00f2ngNetSellVal
: Top gi\u00e1 tr\u1ecb b\u00e1n r\u00f2ngreport_range
: Ch\u1ecdn khung th\u1eddi gian b\u00e1o c\u00e1o OneWeek
cho 5 ng\u00e0y, TwoWeek
cho 10 ng\u00e0y, OneMonth
cho 1 th\u00e1ng, ThreeMonths
cho 3 th\u00e1ng, SixMonths
cho 6 th\u00e1ng, OneYear
cho 1 n\u0103mrate
: T\u1ec9 l\u1ec7 Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch so v\u1edbi Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trung b\u00ecnh trong s\u1ed1 phi\u00ean x\u00e1c \u0111\u1ecbnh (v\u00ed d\u1ee5 10 ng\u00e0y, 1 th\u00e1ng). Nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb OnePointTwo
cho 1.2, OnePointFive
cho 1.5, Two
cho 2, Five
cho 5, Ten
cho 10lang
: ch\u1ecdn ng\u00f4n ng\u1eef c\u1ee7a d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 ti\u1ebfng Vi\u1ec7t vi
, ho\u1eb7c Anh en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c m\u1eabu l\u1ec7nh \u0111\u1ec3 t\u1ea3i t\u1eebng lo\u1ea1i b\u00e1o c\u00e1o n\u00eau tr\u00ean. Xem th\u00eam chi ti\u1ebft Demo Notebook \u0111\u1ec3 tham chi\u1ebfu k\u1ebft qu\u1ea3 t\u1eebng h\u00e0m c\u1ee5 th\u1ec3.
market_top_mover (report_name='Value', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Losers', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Gainers', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Volume', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='ForeignTrading', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='NewLow', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='NewHigh', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Breakout', exchange='All', filter= 'NetBuyVol', report_range='TwoWeeks', rate='OnePointFive', lang='vi')\n
"},{"location":"functions/market/#giao-dich-ntnn","title":"\ud83d\udd10 Giao d\u1ecbch N\u0110TNN","text":"Gi\u1edbi thi\u1ec7u
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u00edch xu\u1ea5t t\u1eeb CafeF, kh\u00f4ng gi\u1edbi h\u1ea1n th\u1eddi gian tra c\u1ee9u. N\u1ebfu b\u1ea1n xu\u1ea5t d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp t\u1eeb CafeF ch\u1ec9 c\u00f3 th\u1ec3 xu\u1ea5t t\u1eebng trang v\u1edbi gi\u1edbi h\u1ea1n 20 d\u00f2ng g\u1ea7n nh\u1ea5t. T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn tham gia Insiders Program t\u1ea1i \u0111\u00e2y
B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
foreign_trade_data(symbol='VIC', start_date='2003-01-01', end_date='2023-12-22', limit=5000, page=1, lang='vi')\n
Trong \u0111\u00f3:
symbol
: M\u00e3 ch\u1ee9ng kho\u00e1n ho\u1eb7c ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. Kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef hoa/th\u01b0\u1eddng.start_date
: Ng\u00e0y b\u1eaft \u0111\u1ea7u tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
end_date
: Ng\u00e0y k\u1ebft th\u00fac tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
limit
: S\u1ed1 l\u01b0\u1ee3ng b\u1ea3n ghi tr\u1ea3 v\u1ec1 trong m\u1ed9t l\u1ea7n truy v\u1ea5n, m\u1eb7c \u0111\u1ecbnh l\u00e0 500page
: Trang k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1, m\u1eb7c \u0111\u1ecbnh l\u00e0 1. B\u1ecf qua tham s\u1ed1 n\u00e0y v\u00e0 \u0111i\u1ec1u ch\u1ec9nh limit
\u0111\u1ec3 truy v\u1ea5n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n ghi.lang
: Ng\u00f4n ng\u1eef c\u1ee7a t\u00ean c\u1ed9t d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1, nh\u1eadn gi\u00e1 tr\u1ecb vi
ho\u1eb7c en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3 minh h\u1ecda:
>>> foreign_trade_data(symbol='VIC', start_date='2003-01-01', end_date='2023-12-22', limit=5000, page=1, lang='vi')\n\nTotal records: 4141. Returned records: 4141\n Ngay KLGDRong GTDGRong ThayDoi KLMua GtMua KLBan GtBan RoomConLai DangSoHuu MaCK\n0 22/12/2023 -396290 -1.700099e+10 43.15(-0.12 %) 231200 9.950400e+09 627490 2.695139e+10 0 0.0 VIC\n1 21/12/2023 -129968 -5.564799e+09 43.2(-0.12 %) 224100 9.642125e+09 354068 1.520692e+10 0 0.0 VIC\n2 20/12/2023 -59541 -2.503370e+09 43.25(0.12 %) 268088 1.158413e+10 327629 1.408750e+10 0 0.0 VIC\n3 19/12/2023 -199294 -8.485858e+09 43.2(0.00 %) 195100 8.357565e+09 394394 1.684342e+10 0 0.0 VIC\n4 18/12/2023 -145146 -6.305306e+09 43.2(-1.14 %) 263710 1.145286e+10 408856 1.775816e+10 0 0.0 VIC\n... ... ... ... ... ... ... ... ... ... ... ...\n4136 07/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4137 06/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4138 05/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4139 02/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4140 01/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n\n[4141 rows x 11 columns]\n
"},{"location":"functions/market/#giao-dich-tu-doanh","title":"\ud83d\udd10 Giao d\u1ecbch t\u1ef1 doanh","text":"T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn ng\u01b0\u1eddi d\u00f9ng tham gia t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Insiders Program t\u1ea1i \u0111\u00e2y
Gi\u1edbi thi\u1ec7u
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u00edch xu\u1ea5t t\u1eeb CafeF, gi\u1edbi h\u1ea1n th\u1eddi gian tra c\u1ee9u trong v\u00f2ng 1 n\u0103m. N\u1ebfu b\u1ea1n xu\u1ea5t d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp t\u1eeb CafeF ch\u1ec9 c\u00f3 th\u1ec3 xu\u1ea5t t\u1eebng trang v\u1edbi gi\u1edbi h\u1ea1n 20 d\u00f2ng g\u1ea7n nh\u1ea5t. T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn tham gia Insiders Program t\u1ea1i \u0111\u00e2y
B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
proprietary_trade_data(symbol='VIC', start_date='2022-01-01', end_date='2023-12-22', limit=1000, page=1, lang='vi')\n
Trong \u0111\u00f3:
symbol
: M\u00e3 ch\u1ee9ng kho\u00e1n ho\u1eb7c ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. Kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef hoa/th\u01b0\u1eddng.start_date
: Ng\u00e0y b\u1eaft \u0111\u1ea7u tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
end_date
: Ng\u00e0y k\u1ebft th\u00fac tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
limit
: S\u1ed1 l\u01b0\u1ee3ng b\u1ea3n ghi tr\u1ea3 v\u1ec1 trong m\u1ed9t l\u1ea7n truy v\u1ea5n, m\u1eb7c \u0111\u1ecbnh l\u00e0 500page
: Trang k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1, m\u1eb7c \u0111\u1ecbnh l\u00e0 1. B\u1ecf qua tham s\u1ed1 n\u00e0y v\u00e0 \u0111i\u1ec1u ch\u1ec9nh limit
\u0111\u1ec3 truy v\u1ea5n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n ghi.lang
: Ng\u00f4n ng\u1eef c\u1ee7a t\u00ean c\u1ed9t d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1, nh\u1eadn gi\u00e1 tr\u1ecb vi
ho\u1eb7c en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3 minh h\u1ecda:
>>> proprietary_trade_data(symbol='VIC', start_date='2022-01-01', end_date='2023-12-22', limit=1000, page=1, lang='vi')\n\nTotal records: 287. Returned records: 287\n Ngay KLcpMua KlcpBan GtMua GtBan MaCK\n0 22/12/2023 112100 361000 4832690000 15497035000 VIC\n1 21/12/2023 257900 402100 11096970000 17287675000 VIC\n2 20/12/2023 56400 353200 2423970000 15201520000 VIC\n3 19/12/2023 226300 357100 9690645000 15290020000 VIC\n4 18/12/2023 160000 177800 6955905000 7715020000 VIC\n.. ... ... ... ... ... ...\n282 07/11/2022 183600 27200 9778640000 1424160000 VIC\n283 04/11/2022 153000 165700 8108240000 8866530000 VIC\n284 03/11/2022 71700 15300 3907960000 836750000 VIC\n285 02/11/2022 87700 180000 4817810000 9893270000 VIC\n286 01/11/2022 198900 81800 10938740000 4461310000 VIC\n\n[287 rows x 6 columns]\n
"},{"location":"functions/rating/","title":"\u0110\u00e1nh gi\u00e1 & x\u1ebfp h\u1ea1ng","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
general_rating(\"VNM\")\n
>>> general_rating(\"VNM\").T\n 0\nstockRating 3.7\nvaluation 1.4\nfinancialHealth 4.8\nbusinessModel 3.9\nbusinessOperation 2.8\nrsRating 2.2\ntaScore 1.0\nticker VNM\nhighestPrice 80815.2\nlowestPrice 63390.9\npriceChange3m 0.016\npriceChange1y -0.018\nbeta 0.36\nalpha 0.0013\n
"},{"location":"functions/rating/#mo-hinh-kinh-doanh","title":"M\u00f4 h\u00ecnh kinh doanh","text":"biz_model_rating(\"VNM\")\n
>>> biz_model_rating(\"VNM\").T\n 0\nticker VNM\nbusinessModel 3.9\nbusinessEfficiency 3\nassetQuality 4\ncashFlowQuality 4\nbom 4\nbusinessAdministration 4\nproductService 4\nbusinessAdvantage 4\ncompanyPosition 4\nindustry 4\noperationRisk 4\n
"},{"location":"functions/rating/#hieu-qua-hoat-ong","title":"Hi\u1ec7u qu\u1ea3 ho\u1ea1t \u0111\u1ed9ng","text":"biz_operation_rating(\"VNM\")\n
>>> biz_operation_rating(\"VNM\").T\n 0\nindustryEn Food Products\nloanGrowth None\ndepositGrowth None\nnetInterestIncomeGrowth None\nnetInterestMargin None\ncostToIncome None\nnetIncomeTOI None\nticker VNM\nbusinessOperation 2.8\navgROE 5\navgROA 5\nlast5yearsNetProfitGrowth 1\nlast5yearsRevenueGrowth 2\nlast5yearsOperatingProfitGrowth 1\nlast5yearsEBITDAGrowth 1\nlast5yearsFCFFGrowth 2\nlastYearGrossProfitMargin 4\nlastYearOperatingProfitMargin 3\nlastYearNetProfitMargin 3\nTOIGrowth None\n
"},{"location":"functions/rating/#suc-khoe-tai-chinh","title":"S\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh","text":"financial_health_rating(\"VNM\")\n
>>> financial_health_rating(\"VNM\").T\n 0\nindustryEn Food Products\nloanDeposit None\nbadLoanGrossLoan None\nbadLoanAsset None\nprovisionBadLoan None\nticker VNM\nfinancialHealth 4.8\nnetDebtEquity 4\ncurrentRatio 5\nquickRatio 5\ninterestCoverage 5\nnetDebtEBITDA 5\n
"},{"location":"functions/rating/#inh-gia","title":"\u0110\u1ecbnh gi\u00e1","text":"valuation_rating(\"VNM\")\n
>>> valuation_rating(\"VNM\").T\n 0\nindustryEn Food Products\nticker VNM\nvaluation 1.4\npe 1\npb 1\nps 1\nevebitda 1\ndividendRate 4\n
"},{"location":"functions/rating/#suc-khoe-tai-chinh-nganh","title":"S\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh ng\u00e0nh","text":"industry_financial_health(\"VNM\")\n
>>> industry_financial_health(\"VNM\").T\n 0\nindustryEn None\nloanDeposit None\nbadLoanGrossLoan None\nbadLoanAsset None\nprovisionBadLoan None\nticker VNM\nfinancialHealth 3.4\nnetDebtEquity 4\ncurrentRatio 3\nquickRatio 3\ninterestCoverage 3\nnetDebtEBITDA 3\n
"},{"location":"functions/ratio/","title":"B\u1ed9 ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh","text":""},{"location":"functions/ratio/#chi-so-co-ban","title":"Ch\u1ec9 s\u1ed1 c\u01a1 b\u1ea3n","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
B\u1ed9 ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh do TCBS cung c\u1ea5p c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c tr\u00edch m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng \u0111\u1ec3 c\u00f3 to\u00e0n b\u1ed9 th\u00f4ng tin ph\u00e2n t\u00edch nh\u01b0 b\u1ea1n th\u1ea5y tr\u00ean giao di\u1ec7n website TCBS b\u1eb1ng c\u00e2u l\u1ec7nh:
financial_ratio(symbol=\"TCB\", report_range='yearly', is_all=False)\n
Trong \u0111\u00f3:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_range
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: yearly
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo n\u0103m, quarterly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo qu\u00fdis_all
c\u00f3 gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 True
cho ph\u00e9p l\u1ea5y ch\u1ec9 s\u1ed1 qua t\u1ea5t c\u1ea3 c\u00e1c k\u1ef3 (n\u0103m ho\u1eb7c qu\u00fd), False
cho ph\u00e9p l\u1ea5y c\u00e1c k\u1ef3 g\u1ea7n nh\u1ea5t (5 n\u0103m ho\u1eb7c 10 qu\u00fd g\u1ea7n \u0111\u00e2y). \u0110\u00e2y l\u00e0 tham s\u1ed1 t\u00f9y ch\u1ecdn, n\u1ebfu b\u1ea1n kh\u00f4ng ch\u1ec9 r\u00f5, n\u00f3 s\u1ebd nh\u1eadn gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
t\u1ee9c r\u00fat g\u1ecdn b\u00e1o c\u00e1o \u0111\u1ec3 l\u1ea5y 5 n\u0103m ho\u1eb7c 10 qu\u00fd g\u1ea7n nh\u1ea5t.K\u1ebft qu\u1ea3:
>>> financial_ratio('TCB', 'yearly')\nyear 2022 2021 2020 2019 2018\nticker TCB TCB TCB TCB TCB\npriceToEarning 4.5 9.7 9.0 8.2 10.7\npriceToBook 0.8 1.9 1.5 1.3 1.8\nroe 0.197 0.217 0.181 0.178 0.215\nroa 0.032 0.036 0.03 0.029 0.029\nearningPerShare 5729 5132 3504 2869 2410\nbookValuePerShare 32248 26452 21214 17679 14749\ninterestMargin 0.053 0.057 0.049 0.043 0.041\nnonInterestOnToi 0.259 0.28 0.307 0.323 0.379\nbadDebtPercentage 0.007 0.007 0.005 0.013 0.018\nprovisionOnBadDebt 1.573 1.629 1.71 0.948 0.851\ncostOfFinancing 0.028 0.022 0.031 0.038 0.041\nequityOnTotalAsset 0.162 0.164 0.17 0.162 0.161\nequityOnLoan 0.27 0.268 0.269 0.269 0.324\ncostToIncome 0.328 0.301 0.319 0.347 0.318\nequityOnLiability 0.2 0.2 0.2 0.2 0.2\nepsChange 0.116 0.465 0.221 0.191 0.313\nassetOnEquity 6.2 6.1 5.9 6.2 6.2\npreProvisionOnToi 0.537 0.554 0.542 0.52 0.542\npostTaxOnToi 0.5 0.497 0.465 0.485 0.462\nloanOnEarnAsset 0.684 0.665 0.681 0.649 0.537\nloanOnAsset 0.602 0.611 0.631 0.602 0.498\nloanOnDeposit 1.173 1.104 1.0 0.998 0.794\ndepositOnEarnAsset 0.583 0.603 0.68 0.651 0.676\nbadDebtOnAsset 0.004 0.004 0.003 0.008 0.009\nliquidityOnLiability 0.347 0.382 0.372 0.411 0.531\npayableOnEquity 5.2 5.1 4.9 5.2 5.2\ncancelDebt 0.002 0.004 0.013 0.002 0.008\nbookValuePerShareChange 0.219 0.247 0.2 0.199 0.923\ncreditGrowth 0.211 0.252 0.202 0.443 -0.006\n
"},{"location":"functions/ratio/#so-sanh-chi-so-giua-cac-ma-co-phieu","title":"So s\u00e1nh ch\u1ec9 s\u1ed1 gi\u1eefa c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu","text":"financial_ratio_compare (symbol_ls=[\"CTG\", \"TCB\", \"ACB\"], industry_comparison=True, frequency='Yearly', start_year=2010)\n
Trong \u0111\u00f3:
symbol_ls
l\u00e0 danh s\u00e1ch c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n so s\u00e1nh d\u1ea1ng danh s\u00e1ch trong Python. M\u00e3 c\u1ed5 phi\u1ebfu \u0111\u1ea7u ti\u00ean l\u00e0 m\u00e3 d\u00f9ng \u0111\u1ec3 tham chi\u1ebfu khi so s\u00e1nh v\u1edbi c\u00e1c m\u00e3 kh\u00e1c v\u00e0 ng\u00e0nh.industry_comparison
: m\u1eb7c \u0111\u1ecbnh l\u00e0 True
, cho ph\u00e9p so s\u00e1nh v\u1edbi ch\u1ec9 s\u1ed1 c\u1ee7a to\u00e0n ng\u00e0nh.frequency
: nh\u1eadn gi\u00e1 tr\u1ecb Yearly
cho h\u00e0ng n\u0103m, Quarterly
cho h\u00e0ng qu\u00fdstart_year
: n\u0103m b\u1eaft \u0111\u1ea7u l\u1ea5y b\u00e1o c\u00e1o cho \u0111\u1ebfn hi\u1ec7n t\u1ea1i.K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> financial_ratio_compare (symbol_ls=[\"CTG\", \"TCB\", \"ACB\"], industry_comparison=True, frequency='Yearly', start_year=2020)\n Ch\u1ec9 s\u1ed1 2020 2021 2022\n0 T\u1ec9 l\u1ec7 CASA NaN NaN NaN\n1 CTG 0.188273 0.194308 0.194949\n2 ACB 0.209698 0.248287 0.217765\n3 TCB 0.443210 0.469770 0.343410\n4 To\u00e0n ng\u00e0nh NaN NaN NaN\n.. ... ... ... ...\n138 Tr\u00edch l\u1eadp d\u1ef1 ph\u00f2ng/ Cho vay (%) NaN NaN NaN\n139 CTG -0.012455 -0.017131 -0.020090\n140 ACB -0.003244 -0.009908 -0.000183\n141 TCB -0.010273 -0.008529 -0.005043\n142 To\u00e0n ng\u00e0nh -0.015620 -0.018418 -0.015272\n
"},{"location":"functions/screener/","title":"B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu l\u00e0 m\u1ed9t h\u00e0m cho ph\u00e9p b\u1ea1n truy v\u1ea5n v\u00e0 l\u1ecdc c\u00e1c c\u1ed5 phi\u1ebfu theo nhi\u1ec1u ti\u00eau ch\u00ed \u0111a d\u1ea1ng d\u1ef1a tr\u00ean d\u1eef li\u1ec7u ph\u00e2n t\u00edch c\u1ee7a TCBS. H\u00e0m n\u00e0y s\u1ebd tr\u1ea3 v\u1ec1 m\u1ed9t DataFrame ch\u1ee9a c\u00e1c th\u00f4ng tin to\u00e0n di\u1ec7n v\u1ec1 c\u00e1c c\u1ed5 phi\u1ebfu th\u1ecfa m\u00e3n \u0111i\u1ec1u ki\u1ec7n l\u1ecdc c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng DataFrame n\u00e0y \u0111\u1ec3 ti\u1ebfp t\u1ee5c ph\u00e2n t\u00edch, bi\u1ec3u di\u1ec5n ho\u1eb7c xu\u1ea5t ra d\u1eef li\u1ec7u d\u1ea1ng b\u1ea3ng t\u00ednh. \u0110\u00e2y l\u00e0 c\u1eadp nh\u1eadt \u01b0u vi\u1ec7t gi\u00fap b\u1ea1n ti\u1ebft ki\u1ec7m th\u1eddi gian v\u00e0 c\u00f4ng s\u1ee9c \u0111\u00e1ng k\u1ec3 khi l\u00e0m vi\u1ec7c v\u1edbi d\u1eef li\u1ec7u c\u1ed5 phi\u1ebfu, \u0111\u1ed3ng th\u1eddi cho ph\u00e9p l\u1eadp tr\u00ecnh \u0111\u1ec3 l\u1ecdc l\u00e0 c\u1eadp nh\u1eadt danh s\u00e1ch c\u1ed5 phi\u1ebfu hi\u1ec7u qu\u1ea3 kh\u00f4ng c\u1ea7n s\u1eed d\u1ee5ng giao di\u1ec7n web t\u1eeb c\u00f4ng ty ch\u1ee9ng kho\u00e1n.
Tham s\u1ed1
key
l\u00e0 t\u00ean c\u1ee7a c\u00e1c b\u1ed9 l\u1ecdc, v\u00e0 c\u00e1c value
l\u00e0 m\u1ed9t gi\u00e1 tr\u1ecb \u0111\u01a1n ho\u1eb7c m\u1ed9t tupple g\u1ed3m hai gi\u00e1 tr\u1ecb (min v\u00e0 max) cho b\u1ed9 l\u1ecdc \u0111\u00f3. \u0110\u00e2y l\u00e0 v\u00ed d\u1ee5 cho tham s\u1ed1 params \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp \u0111\u00fang:vi
) ho\u1eb7c Anh (en
)params = {\n \"exchangeName\": \"HOSE,HNX,UPCOM\",\n \"marketCap\": (100, 1000),\n \"dividendYield\": (5, 10)\n }\n
\u00c1p d\u1ee5ng b\u1ed9 l\u1ecdc v\u1edbi h\u00e0m \u0111\u1ec3 l\u1ea5y k\u1ebft qu\u1ea3
df = stock_screening_insights (params, size=1700, drop_lang='vi')\n
"},{"location":"functions/screener/#ieu-kien-loc","title":"\u0110i\u1ec1u ki\u1ec7n l\u1ecdc","text":"B\u1ed9 l\u1ecdc g\u1ee3i \u00fd S\u1eed d\u1ee5ng c\u00e1c ti\u00eau ch\u00ed l\u1ecdc nh\u01b0 sau \u0111\u1ec3 thi\u1ebft l\u1eadp tham s\u1ed1 params.
exchangeName
: s\u00e0n giao d\u1ecbch c\u1ee7a c\u1ed5 phi\u1ebfu, v\u00ed d\u1ee5 \"HOSE\", \"HNX\", ho\u1eb7c \"UPCOM\". B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng d\u1ea5u ph\u1ea9y \u0111\u1ec3 ph\u00e2n t\u00e1ch nhi\u1ec1u s\u00e0n, v\u00ed d\u1ee5 \"HOSE,HNX,UPCOM\".hasFinancialReport
: C\u00f3 b\u00e1o c\u00e1o t\u00e0i ch\u00ednh g\u1ea7n nh\u1ea5t. 1
ngh\u0129a l\u00e0 c\u00f3, 0
ngh\u0129a l\u00e0 kh\u00f4ng.industryName
: L\u1ecdc c\u00e1c c\u1ed5 phi\u1ebfu theo ng\u00e0nh c\u1ee5 th\u1ec3. Gi\u00e1 tr\u1ecb d\u1ea1ng Retail
cho ng\u00e0nh B\u00e1n l\u1ebb. C\u00e1c gi\u00e1 tr\u1ecb kh\u00e1c c\u00f3 th\u1ec3 l\u00e0:Insurance
: B\u1ea3o hi\u1ec3mReal Estate
: B\u1ea5t \u0111\u1ed9ng s\u1ea3nTechnology
: C\u00f4ng ngh\u1ec7 th\u00f4ng tinOil & Gas
: D\u1ea7u kh\u00edFinancial Services
: D\u1ecbch v\u1ee5 t\u00e0i ch\u00ednhUtilities
: \u0110i\u1ec7n, n\u01b0\u1edbc, x\u0103ng d\u1ea7u v\u00e0 kh\u00ed \u0111\u1ed1tTravel & Leisure
: Du l\u1ecbch v\u00e0 gi\u1ea3i tr\u00edIndustrial Goods & Services
: H\u00e0ng v\u00e0 d\u1ecbch v\u1ee5 c\u00f4ng nghi\u1ec7pPersonal & Household Goods
: H\u00e0ng c\u00e1 nh\u00e2n v\u00e0 gia d\u1ee5ngChemicals
: H\u00f3a ch\u1ea5tBanks
: Ng\u00e2n h\u00e0ngAutomobiles & Parts
: \u00d4 t\u00f4 v\u00e0 ph\u1ee5 t\u00f9ngBasic Resources
: T\u00e0i nguy\u00ean c\u01a1 b\u1ea3nFood & Beverage
: Th\u1ef1c ph\u1ea9m v\u00e0 \u0111\u1ed3 u\u1ed1ngMedia
: Truy\u1ec1n th\u00f4ngTelecommunications
: Vi\u1ec5n th\u00f4ngConstruction & Materials
: X\u00e2y d\u1ef1ng v\u00e0 v\u1eadt li\u1ec7uHealth Care
: Y t\u1ebfmarketCap
: v\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddng c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng t\u1ef7 VND.priceNearRealtime
: gi\u00e1 hi\u1ec7n t\u1ea1i c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng VND.foreignVolumePercent
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m kh\u1ed1i l\u01b0\u1ee3ng n\u01b0\u1edbc ngo\u00e0i trong t\u1ed5ng kh\u1ed1i l\u01b0\u1ee3ng.alpha
: l\u1ee3i nhu\u1eadn v\u01b0\u1ee3t tr\u1ed9i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi l\u1ee3i nhu\u1eadn th\u1ecb tr\u01b0\u1eddng.beta
: \u0111\u1ed9 bi\u1ebfn \u0111\u1ed9ng c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng.freeTransferRate
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m c\u1ed5 phi\u1ebfu c\u00f3 th\u1ec3 chuy\u1ec3n nh\u01b0\u1ee3ng t\u1ef1 do.revenueGrowth1Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong n\u0103m qua.revenueGrowth5Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trung b\u00ecnh trong 5 n\u0103m qua.epsGrowth1Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu trong n\u0103m qua.epsGrowth5Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu trung b\u00ecnh trong 5 n\u0103m qua.lastQuarterRevenueGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong qu\u00fd g\u1ea7n nh\u1ea5t.secondQuarterRevenueGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong qu\u00fd th\u1ee9 hai.lastQuarterProfitGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn trong qu\u00fd g\u1ea7n nh\u1ea5t.secondQuarterProfitGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn trong qu\u00fd th\u1ee9 hai.grossMargin
: t\u1ef7 su\u1ea5t l\u1ee3i nhu\u1eadn g\u1ed9p c\u1ee7a c\u1ed5 phi\u1ebfu.netMargin
: t\u1ef7 su\u1ea5t l\u1ee3i nhu\u1eadn r\u00f2ng c\u1ee7a c\u1ed5 phi\u1ebfu.roe
: t\u1ef7 su\u1ea5t sinh l\u1eddi v\u1ec1 v\u1ed1n ch\u1ee7 s\u1edf h\u1eefu c\u1ee7a c\u1ed5 phi\u1ebfu.doe
: t\u1ef7 su\u1ea5t c\u1ed5 t\u1ee9c v\u1ec1 v\u1ed1n ch\u1ee7 s\u1edf h\u1eefu c\u1ee7a c\u1ed5 phi\u1ebfu.dividendYield
: t\u1ef7 su\u1ea5t c\u1ed5 t\u1ee9c c\u1ee7a c\u1ed5 phi\u1ebfu.eps
: l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng VND.pe
: t\u1ef7 s\u1ed1 gi\u00e1/l\u1ee3i nhu\u1eadn c\u1ee7a c\u1ed5 phi\u1ebfu.pb
: t\u1ef7 s\u1ed1 gi\u00e1/gi\u00e1 tr\u1ecb s\u1ed5 s\u00e1ch c\u1ee7a c\u1ed5 phi\u1ebfu.evEbitda
: t\u1ef7 s\u1ed1 gi\u00e1 tr\u1ecb doanh nghi\u1ec7p/l\u1ee3i nhu\u1eadn tr\u01b0\u1edbc thu\u1ebf, l\u00e3i vay, kh\u1ea5u hao v\u00e0 amortization c\u1ee7a c\u1ed5 phi\u1ebfu.netCashPerMarketCap
: t\u1ef7 s\u1ed1 ti\u1ec1n m\u1eb7t r\u00f2ng/v\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddng c\u1ee7a c\u1ed5 phi\u1ebfu.netCashPerTotalAssets
: t\u1ef7 s\u1ed1 ti\u1ec1n m\u1eb7t r\u00f2ng/t\u1ed5ng t\u00e0i s\u1ea3n c\u1ee7a c\u1ed5 phi\u1ebfu.profitForTheLast4Quarters
: t\u1ed5ng l\u1ee3i nhu\u1eadn trong 4 qu\u00fd g\u1ea7n nh\u1ea5t c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng t\u1ef7 VND.suddenlyHighVolumeMatching
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 t\u0103ng \u0111\u1ed9t bi\u1ebfn kh\u1ed1i l\u01b0\u1ee3ng kh\u1edbp l\u1ec7nh cho c\u1ed5 phi\u1ebfu n\u00e0y. 0 ngh\u0129a l\u00e0 kh\u00f4ng, 1 ngh\u0129a l\u00e0 c\u00f3.totalTradingValue
: t\u1ed5ng gi\u00e1 tr\u1ecb giao d\u1ecbch c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND h\u00f4m nay.avgTradingValue5Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 5 ng\u00e0y.avgTradingValue10Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 10 ng\u00e0y.avgTradingValue20Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 20 ng\u00e0y.priceGrowth1Week
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng gi\u00e1 c\u1ee7a c\u1ed5 phi\u1ebfu trong tu\u1ea7n qua.priceGrowth1Month
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng gi\u00e1 c\u1ee7a c\u1ed5 phi\u1ebfu trong th\u00e1ng qua.percent1YearFromPeak
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 cao nh\u1ea5t trong 1 n\u0103m.percentAwayFromHistoricalPeak
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 cao nh\u1ea5t l\u1ecbch s\u1eed.percent1YearFromBottom
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 th\u1ea5p nh\u1ea5t trong 1 n\u0103m.percentOffHistoricalBottom
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 th\u1ea5p nh\u1ea5t l\u1ecbch s\u1eed.priceVsSMA5
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 5 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSma10
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 10 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSMA20
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 20 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSma50
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 50 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSMA100
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 100 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.forecastVolumeRatio
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng d\u1ef1 b\u00e1o v\u00e0 kh\u1ed1i l\u01b0\u1ee3ng th\u1ef1c t\u1ebf c\u1ee7a c\u1ed5 phi\u1ebfu h\u00f4m nay.volumeVsVSma5
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 5 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma10
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 10 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma20
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 20 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma50
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 50 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.strongBuyPercentage
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m t\u00edn hi\u1ec7u mua m\u1ea1nh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt.activeBuyPercentage
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m t\u00edn hi\u1ec7u mua t\u00edch c\u1ef1c cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt.foreignTransaction
: lo\u1ea1i giao d\u1ecbch n\u01b0\u1edbc ngo\u00e0i cho c\u1ed5 phi\u1ebfu n\u00e0y h\u00f4m nay. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 buyMoreThanSell
, sellMoreThanBuy
, ho\u1eb7c noTransaction
.foreignBuySell20Session
: gi\u00e1 tr\u1ecb mua b\u00e1n r\u00f2ng n\u01b0\u1edbc ngo\u00e0i cho c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 20 phi\u00ean.numIncreaseContinuousDay
: s\u1ed1 ng\u00e0y li\u00ean ti\u1ebfp c\u1ed5 phi\u1ebfu n\u00e0y t\u0103ng gi\u00e1.numDecreaseContinuousDay
: s\u1ed1 ng\u00e0y li\u00ean ti\u1ebfp c\u1ed5 phi\u1ebfu n\u00e0y gi\u1ea3m gi\u00e1.rsi14
: ch\u1ec9 s\u1ed1 s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i (RSI) c\u1ee7a c\u1ed5 phi\u1ebfu v\u1edbi chu k\u1ef3 14 ng\u00e0y.rsi14Status
: tr\u1ea1ng th\u00e1i c\u1ee7a RSI cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 intoOverBought
, intoOverSold
, outOfOverBought
, ho\u1eb7c outOfOverSold
.tcbsBuySellSignal
: t\u00edn hi\u1ec7u mua b\u00e1n cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.priceBreakOut52Week
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 \u0111\u1ed9t ph\u00e1 gi\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y trong 52 tu\u1ea7n. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BREAK_OUT
ho\u1eb7c NO_BREAK_OUT
.priceWashOut52Week
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 r\u1eeda gi\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y trong 52 tu\u1ea7n. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 WASH_OUT
ho\u1eb7c NO_WASH_OUT
.macdHistogram
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u MACD histogram cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 macdHistGT0Increase
, macdHistGT0Decrease
, macdHistLT0Increase
, ho\u1eb7c macdHistLT0Decrease
.relativeStrength3Day
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 3 ng\u00e0y.relativeStrength1Month
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 1 th\u00e1ng.relativeStrength3Month
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 3 th\u00e1ng.relativeStrength1Year
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 1 n\u0103m.tcRS
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a TCBS c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng.sarVsMacdHist
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u SAR vs MACD histogram cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.bollingBandSignal
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u Bollinger Band cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.dmiSignal
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u ch\u1ec9 s\u1ed1 chuy\u1ec3n \u0111\u1ed9ng h\u01b0\u1edbng (DMI) cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.uptrend
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u xu h\u01b0\u1edbng t\u0103ng cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 buy-signal
ho\u1eb7c sell-signal
.breakout
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u \u0111\u1ed9t ph\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BULLISH
ho\u1eb7c BEARISH
.tcbsRecommend
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 khuy\u1ebfn ngh\u1ecb c\u1ee7a TCBS cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.stockRating
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 c\u1ed5 phi\u1ebfu cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.businessModel
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 m\u00f4 h\u00ecnh kinh doanh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.businessOperation
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 ho\u1ea1t \u0111\u1ed9ng kinh doanh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.financialHealth
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 s\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.L\u01b0u \u00fd
Phi\u00ean b\u1ea3n API hi\u1ec7n t\u1ea1i cho ph\u00e9p truy c\u1eadp gi\u00e1 l\u1ecbch s\u1eed t\u1ed1i \u0111a \u0111\u1ebfn ng\u00e0y 2012-03-20 \u0111\u1ed1i v\u1edbi t\u1ea5t c\u1ea3 m\u00e3 c\u1ed5 phi\u1ebfu. N\u1ebfu b\u1ea1n c\u00f3 nhu c\u1ea7u l\u1ea5y l\u1ecbch s\u1eed gi\u00e1 t\u1eeb th\u1eddi \u0111i\u1ec3m th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n b\u1eaft \u0111\u1ea7u ho\u1ea1t \u0111\u1ed9ng (REE l\u00e0 m\u00e3 c\u1ed5 phi\u1ebfu c\u00f3 giao d\u1ecbch s\u1edbm nh\u1ea5t th\u1ecb tr\u01b0\u1eddng v\u00e0o 2000-07-31), h\u00e3y tham gia nh\u00f3m th\u00e0nh vi\u00ean vnstock tr\u00ean Facebook \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3. Xem th\u00eam chi ti\u1ebft t\u1ea1i FAQ.
vnstock cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng t\u1ea3i xu\u1ed1ng d\u1eef li\u1ec7u l\u1ecbch s\u1eed giao d\u1ecbch c\u1ee7a m\u00e3 c\u1ed5 phi\u1ebfu, ch\u1ec9 s\u1ed1, h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh
.
D\u1eef li\u1ec7u h\u1ed7 tr\u1ee3 7 m\u1ee9c \u0111\u1ed9 chi ti\u1ebft theo kho\u1ea3ng th\u1eddi gian bao g\u1ed3m: 1 ph\u00fat, 3 ph\u00fat, 5 ph\u00fat, 15 ph\u00fat, 30 ph\u00fat, 1 gi\u1edd, 1 ng\u00e0y.
Tr\u01b0\u1eddng d\u1eef li\u1ec7u time
s\u1ebd l\u00e0 gi\u00e1 tr\u1ecb ng\u00e0y th\u00e1ng YYYY-mm-dd
n\u1ebfu resolution
nh\u1eadp v\u00e0o l\u00e0 1D
, trong khi resolution
l\u00e0 c\u1ea5p \u0111\u1ed9 ph\u00fat v\u00e0 gi\u1edd s\u1ebd cho th\u00eam th\u00f4ng tin th\u1eddi gian gi\u1edd/ph\u00fat.
\u0110\u01a1n v\u1ecb gi\u00e1 OHLC cho m\u00e3 c\u1ed5 phi\u1ebfu \u0111\u01b0\u1ee3c l\u00e0m tr\u00f2n theo m\u1eb7c \u0111\u1ecbnh, ch\u1ec9 l\u1ea5y ph\u1ea7n nguy\u00ean. \u0110\u01a1n v\u1ecb t\u00ednh l\u00e0 VND. B\u1ea1n c\u00f3 th\u1ec3 t\u1eaft t\u00ednh n\u0103ng l\u00e0m tr\u00f2n b\u1eb1ng tham s\u1ed1 beautify=False
.
Trong v\u00ed d\u1ee5 d\u01b0\u1edbi \u0111\u00e2y, d\u1eef li\u1ec7u gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t theo c\u1ea5p \u0111\u1ed9 ng\u00e0y.
df = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True, decor=False, source='DNSE')\nprint(df)\n
L\u01b0u \u00fd: \u0110\u1ed1i v\u1edbi khung th\u1eddi gian (resolution) nh\u1ecf h\u01a1n 1 ng\u00e0y (1D), API n\u00e0y (do DNSE cung c\u1ea5p) ch\u1ec9 cho ph\u00e9p truy ng\u01b0\u1ee3c l\u1ea1i trong kho\u1ea3ng th\u1eddi gian 90 ng\u00e0y. B\u1ea1n c\u00f3 th\u1ec3 g\u1eb7p l\u1ed7i khi c\u1ed1 g\u1eafng l\u1ea5y d\u1eef li\u1ec7u c\u0169 h\u01a1n trong th\u1eddi gian d\u00e0i h\u01a1n.
Gi\u00e1 tr\u1ecb m\u00e0 tham s\u1ed1 resolution
c\u00f3 th\u1ec3 nh\u1eadn l\u00e0 1D
(m\u1eb7c \u0111\u1ecbnh, 1 ng\u00e0y), '1' (1 ph\u00fat), 3 (3 ph\u00fat), 5 (5 ph\u00fat), 15 (15 ph\u00fat), 30 (30 ph\u00fat), '1H' (h\u00e0ng gi\u1edd).
type = 'stock'
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u gi\u00e1 c\u1ee7a m\u00e3 c\u1ed5 c\u1ed5 phi\u1ebfu, type = 'index'
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u gi\u00e1 c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1, v\u00e0 type='derivative
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u ph\u00e1i sinh. C\u00e1c m\u00e3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 bao g\u1ed3m (nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n): VNINDEX, VN30, HNX, HNX30, UPCOM, VNXALLSHARE, VN30F1M, VN30F2M, VN30F1Q, VN30F2Qbeautify=True
cho ph\u00e9p l\u00e0m tr\u00f2n gi\u00e1 tr\u1ecb OHLC theo m\u1eb7c \u0111\u1ecbnh (nh\u00e2n v\u1edbi 1000, v\u00ed d\u1ee5 gi\u00e1 32.05 th\u00e0nh 32500). \u0110\u1eb7t beautify=False
\u0111\u1ec3 t\u1eaft ch\u1ebf \u0111\u1ed9 l\u00e0m tr\u00f2n cho c\u1ed5 phi\u1ebfu. V\u1edbi m\u00e3 ch\u1ec9 s\u1ed1, gi\u00e1 tr\u1ecb tr\u1ea3 v\u1ec1 lu\u00f4n l\u00e0 s\u1ed1 th\u1eadp ph\u00e2n nguy\u00ean b\u1ea3n.decor=True
: \u00e1p d\u1ee5ng thay t\u00ean c\u00e1c c\u1ed9t trong DataFrame tr\u1ea3 v\u1ec1 d\u01b0\u1edbi d\u1ea1ng Title Case t\u1ee9c Open, High, Low, Close, Time, Ticker
thay v\u00ec open, high, low, close, time, ticker
nh\u01b0 hi\u1ec7n t\u1ea1i \u0111\u1ed3ng th\u1eddi \u0111\u1eb7t c\u1ed9t Time l\u00e0 index. Vi\u1ec7c n\u00e0y gi\u1ea3m b\u1edbt cho ng\u01b0\u1eddi d\u00f9ng ph\u1ea3i vi\u1ebft th\u00eam c\u00e2u l\u1ec7nh khi s\u1eed d\u1ee5ng d\u1eef li\u1ec7u vnstock k\u1ebft h\u1ee3p c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt ph\u1ed5 bi\u1ebfn v\u1ed1n d\u00f9ng th\u01b0 vi\u1ec7n Yahoo Finance l\u00e0m ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u. Gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
.
source='DNSE'
(kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef th\u01b0\u1eddng hay in hoa):
TCBS
cho l\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed theo ng\u00e0y (resolution = 1D
) trong th\u1eddi gian d\u00e0i, kh\u00f4ng h\u1ed7 tr\u1ee3 khung th\u1eddi gian nh\u1ecf h\u01a1n.VND
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u trong v\u00f2ng 10 n\u0103m g\u1ea7n nh\u1ea5t cho resolution = 1D
. T\u00f9y ch\u1ecdn n\u00e0y ch\u1ec9 \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng v\u1edbi ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
.SSI
, HSC
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u t\u1eeb n\u0103m 2000 cho resolution = 1D
v\u1edbi t\u1ed1c \u0111\u1ed9 truy c\u1eadp nhanh ch\u00f3ng trong 1 truy v\u1ea5n duy nh\u1ea5t. T\u00f9y ch\u1ecdn n\u00e0y ch\u1ec9 \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng v\u1edbi ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
.B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 vi\u1ebft h\u00e0m theo d\u1ea1ng r\u00fat g\u1ecdn nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y, \u0111i\u1ec1u n\u00e0y \u0111\u00fang v\u1edbi t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m, mi\u1ec5n l\u00e0 th\u00f4ng s\u1ed1 \u0111\u01b0\u1ee3c nh\u1eadp v\u00e0o \u0111\u00fang th\u1ee9 t\u1ef1:
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ed5 phi\u1ebfu
df = stock_historical_data(\"GMD\", \"2021-01-01\", \"2022-02-25\", \"1D\", 'stock')\nprint(df)\n
V\u00e0 \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3
time open high low close volume\n0 2021-01-04 32182.0 33157.0 31987.0 32279.0 4226500\n1 2021-01-05 32279.0 33596.0 31938.0 32962.0 4851900\n2 2021-01-06 33352.0 33352.0 32279.0 32572.0 3641300\n
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1
df = stock_historical_data(\"VNINDEX\", \"2021-01-01\", \"2022-02-25\", \"1D\", 'index')\nprint(df)\n
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ee7a h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh
df = stock_historical_data(\"VN30F1M\", \"2023-07-01\", \"2023-07-24\", \"1D\", 'derivative')\nprint(df)\n
vnstock cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng t\u1ea3i xu\u1ed1ng d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh trong ng\u00e0y giao d\u1ecbch theo th\u1eddi gian th\u1ef1c. N\u1ebfu m\u1ed1c th\u1eddi gian b\u1ea1n truy c\u1ee9u r\u01a1i v\u00e0o Th\u1ee9 B\u1ea3y, Ch\u1ee7 Nh\u1eadt th\u00ec d\u1eef li\u1ec7u nh\u1eadn \u0111\u01b0\u1ee3c th\u1ec3 hi\u1ec7n cho ng\u00e0y giao d\u1ecbch c\u1ee7a Th\u1ee9 6 c\u1ee7a tu\u1ea7n \u0111\u00f3.
df = stock_intraday_data(symbol='TCB', \n page_size=500, investor_segment=True)\nprint(df)\n
Trong \u0111\u00f3:
page_size
: nh\u1eadn gi\u00e1 tr\u1ecb t\u00f9y \u00fd nh\u1ecf h\u01a1n 100 ho\u1eb7c b\u1ed9i s\u1ed1 c\u1ee7a 100. V\u00ed d\u1ee5 ch\u1ecdn 1000 s\u1ebd cho ph\u00e9p l\u1ea5y h\u1ea7u h\u1ebft d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh trong ng\u00e0y giao d\u1ecbch v\u1edbi \u0111a s\u1ed1 m\u00e3 c\u1ed5 phi\u1ebfu.investor_segment
: m\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb True
, cho ph\u00e9p ph\u00e2n lo\u1ea1i nh\u00e0 \u0111\u1ea7u t\u01b0 theo C\u00e1 M\u1eadp, C\u1eebu Non hay S\u00f3i gi\u00e0. \u0110\u1eb7t gi\u00e1 tr\u1ecb False
\u0111\u1ec3 b\u1ecf qua b\u01b0\u1edbc ph\u00e2n lo\u1ea1i n\u00e0y, hi\u1ec3n th\u1ecb t\u1ea5t c\u1ea3 c\u00e1c l\u1ec7nh kh\u1edbp d\u01b0\u1edbi d\u1ea1ng d\u1eef li\u1ec7u th\u00f4. C\u1eadp nh\u1eadt n\u00e0y \u00e1p d\u1ee5ng t\u1eeb phi\u00ean b\u1ea3n 0.2.8.4K\u1ebft qu\u1ea3:
>>> stock_intraday_data (symbol='ACB', page_size=10, investor_segment=False)\n ticker time orderType volume price prevPriceChange\n0 ACB 14:45:00 211500 22550.0 -100.0\n1 ACB 14:29:53 BU 1000 22650.0 0.0\n2 ACB 14:29:38 BU 100 22650.0 0.0\n3 ACB 14:28:34 BU 300 22650.0 50.0\n4 ACB 14:28:15 SD 1200 22600.0 0.0\n5 ACB 14:28:15 SD 300 22600.0 0.0\n6 ACB 14:28:15 SD 400 22600.0 0.0\n7 ACB 14:28:15 SD 300 22600.0 0.0\n8 ACB 14:28:15 SD 100 22600.0 0.0\n9 ACB 14:28:15 SD 200 22600.0 0.0\n
>>> stock_intraday_data (symbol='ACB', page_size=10, investor_segment=True)\n ticker time orderType investorType volume averagePrice orderCount prevPriceChange\n0 ACB 14:29:54 Buy Up SHEEP 1000 22650.0 1 0.0\n1 ACB 14:29:39 Buy Up SHEEP 100 22650.0 1 0.0\n2 ACB 14:28:34 Buy Up SHEEP 300 22650.0 1 50.0\n3 ACB 14:28:16 Sell Down SHEEP 7000 22600.0 29 -50.0\n4 ACB 14:28:11 Buy Up SHEEP 200 22650.0 1 0.0\n5 ACB 14:27:43 Buy Up SHEEP 1000 22650.0 1 50.0\n6 ACB 14:27:28 Sell Down SHEEP 3200 22600.0 2 0.0\n7 ACB 14:26:38 Sell Down SHEEP 300 22600.0 1 -50.0\n8 ACB 14:26:36 Buy Up SHEEP 100 22650.0 1 0.0\n9 ACB 14:26:21 Buy Up SHEEP 3000 22650.0 1 50.0\n
Gi\u1ea3i th\u00edch \u00fd ngh\u0129a ch\u1ec9 s\u1ed1
Khi 1 l\u1ec7nh l\u1edbn (t\u1eeb C\u00e1 m\u1eadp, tay to, t\u1ed5 ch\u1ee9c....) mua ch\u1ee7 \u0111\u1ed9ng (ho\u1eb7c b\u00e1n ch\u1ee7 \u0111\u1ed9ng) \u0111\u01b0\u1ee3c \u0111\u01b0a v\u00e0o S\u00e0n, th\u01b0\u1eddng th\u00ec n\u00f3 s\u1ebd \u0111\u01b0\u1ee3c kh\u1edbp v\u1edbi nhi\u1ec1u l\u1ec7nh nh\u1ecf \u0111ang ch\u1edd b\u00e1n (ho\u1eb7c ch\u1edd mua). N\u1ebfu ch\u1ec9 nh\u00ecn realtime theo t\u1eebng l\u1ec7nh kh\u1edbp ri\u00eang l\u1ebb, th\u00ec s\u1ebd kh\u00f4ng th\u1ec3 ph\u00e1t hi\u1ec7n \u0111\u01b0\u1ee3c c\u00e1c l\u1ec7nh to (c\u1ee7a C\u00e1 m\u1eadp, tay to...) v\u1eeba \u0111\u01b0\u1ee3c \u0111\u1ea9y v\u00e0o S\u00e0n. V\u00ec v\u1eady, ch\u00fang t\u00f4i \"c\u1ed9ng d\u1ed3n\" c\u00e1c l\u1ec7nh kh\u1edbp n\u00e0y l\u1ea1i (ph\u00e1t sinh b\u1edfi 1 l\u1ec7nh l\u1edbn ch\u1ee7 \u0111\u1ed9ng v\u00e0o s\u00e0n trong 1 kho\u1ea3ng th\u1eddi gian r\u1ea5t nhanh) \u0111\u1ec3 gi\u00fap N\u0110T ph\u00e1t hi\u1ec7n c\u00e1c l\u1ec7nh l\u1edbn (c\u1ee7a C\u00e1 m\u1eadp, tay to....) ch\u00ednh x\u00e1c h\u01a1n. L\u1ec7nh C\u00e1 m\u1eadp s\u1ebd \u0111\u01b0\u1ee3c t\u00f4 xanh (cho Mua ch\u1ee7 \u0111\u1ed9ng) v\u00e0 \u0111\u1ecf (cho B\u00e1n ch\u1ee7 \u0111\u1ed9ng).
\u2022 C\u00e1 m\u1eadp: (CM - SHARK) nh\u00e0 \u0111\u1ea7u t\u01b0 tay to, t\u1ed5 ch\u1ee9c, \u0111\u1ea7u t\u01b0 l\u1edbn, d\u1eabn d\u1eaft th\u1ecb tr\u01b0\u1eddng. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t > 1 t\u1ef7 \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t. \u0110\u1ed3 th\u1ecb 1N d\u00f9ng s\u1ed1 li\u1ec7u 1 ph\u00fat cho 60\u2019 g\u1ea7n nh\u1ea5t; 1W l\u00e0 t\u1ed5ng m\u1ed7i 15\u2019 cho 1 tu\u1ea7n; 1M l\u00e0 t\u1ed5ng h\u00e0ng ng\u00e0y cho 1 th\u00e1ng
\u2022 S\u00f3i gi\u00e0: (SG - WOLF) nh\u00e0 \u0111\u1ea7u t\u01b0 kinh nghi\u1ec7m, gi\u00e1 tr\u1ecb l\u1ec7nh \u0111\u1eb7t cao. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t t\u1eeb 200 tr \u0111\u1ebfn 1 t\u1ef7 \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t.
\u2022 C\u1eebu non: (CN - SHEEP) nh\u00e0 \u0111\u1ea7u t\u01b0 nh\u1ecf l\u1ebb, gi\u00e1 tr\u1ecb giao d\u1ecbch v\u00e0 mua b\u00e1n ch\u1ee7 \u0111\u1ed9ng th\u1ea5p. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t Mua ho\u1eb7c B\u00e1n ch\u1ee7 \u0111\u1ed9ng < 200 tri\u1ec7u \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t v\u00e0o.
\u2022 Mua ch\u1ee7 \u0111\u1ed9ng (hay Buy Up) l\u00e0 khi N\u0110T th\u1ef1c hi\u1ec7n ch\u1ee7 \u0111\u1ed9ng mua l\u00ean qua vi\u1ec7c \u0111\u1eb7t l\u1ec7nh mua v\u1edbi gi\u00e1 b\u1eb1ng gi\u00e1 d\u01b0 b\u00e1n g\u1ea7n nh\u1ea5t \u0111\u1ec3 c\u00f3 th\u1ec3 kh\u1edbp lu\u00f4n. Nh\u01b0 th\u1ebf, gi\u00e1 kh\u1edbp cho l\u1ec7nh n\u00e0y th\u01b0\u1eddng s\u1ebd \u0111\u1ea9y gi\u00e1 kh\u1edbp l\u00ean cao h\u01a1n th\u1ecb gi\u00e1 tr\u01b0\u1edbc \u0111\u00f3.
\u2022 B\u00e1n ch\u1ee7 \u0111\u1ed9ng (hay Sell Down) l\u00e0 khi N\u0110T th\u1ef1c hi\u1ec7n ch\u1ee7 \u0111\u1ed9ng B\u00e1n d\u01b0\u1edbi gi\u00e1 hi\u1ec7n t\u1ea1i (hay th\u1ecb gi\u00e1) c\u1ee7a c\u1ed5 phi\u1ebfu b\u1eb1ng vi\u1ec7c \u0111\u1eb7t l\u1ec7nh b\u00e1n v\u1edbi gi\u00e1 b\u00e1n b\u1eb1ng gi\u00e1 d\u01b0 mua g\u1ea7n nh\u1ea5t \u0111\u1ec3 kh\u1edbp ngay. V\u00e0 nh\u01b0 th\u1ebf, th\u1ecb gi\u00e1 s\u1ebd b\u1ecb k\u00e9o xu\u1ed1ng th\u1ea5p h\u01a1n so v\u1edbi th\u1ecb gi\u00e1 tr\u01b0\u1edbc \u0111\u00f3. Th\u1ed1ng k\u00ea kh\u1ed1i l\u01b0\u1ee3ng giao dich theo Mua C\u0110 v\u00e0 B\u00e1n C\u0110 d\u00f9ng \u0111\u1ec3 \u0111\u00e1nh gi\u00e1 t\u01b0\u01a1ng quan gi\u1eefa cung (B\u00e1n C\u0110) v\u00e0 c\u1ea7u (Mua C\u0110) tr\u00ean giao d\u1ecbch kh\u1edbp l\u1ec7nh th\u1ef1c t\u1ebf, nh\u1eb1m nh\u1eadn \u0111\u1ecbnh t\u01b0\u01a1ng \u0111\u1ed1i v\u1ec1 s\u1ef1 v\u1eadn \u0111\u1ed9ng c\u1ee7a xu h\u01b0\u1edbng d\u00f2ng ti\u1ec1n. Khi t\u1ef7 l\u1ec7 % Mua C\u0110 tr\u00ean (T\u1ed5ng Mua v\u00e0 B\u00e1n C\u0110) l\u1edbn h\u01a1n 50%, \u0111\u1ed3ng ngh\u0129a v\u1edbi vi\u1ec7c th\u1ecb tr\u01b0\u1eddng \u0111ang c\u00f3 xu h\u01b0\u1edbng mua v\u00e0o nhi\u1ec1u h\u01a1n b\u00e1n ra v\u00e0 ng\u01b0\u1ee3c l\u1ea1i, qua \u0111\u00f3 x\u00e1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c d\u00f2ng ti\u1ec1n v\u00e0o/ra v\u1edbi m\u1ed7i c\u1ed5 phi\u1ebfu. Khi t\u1ef7 l\u1ec7 n\u00e0y cao \u0111\u1ed9t bi\u1ebfn (>70% hay <30%) so v\u1edbi \u0111i\u1ec3m c\u00e2n b\u1eb1ng (50%) , \u0111\u00f3 l\u00e0 t\u00edn hi\u1ec7u c\u1ee7a vi\u1ec7c mua ho\u1eb7c b\u00e1n b\u1ea5t ch\u1ea5p c\u1ee7a th\u1ecb tr\u01b0\u1eddng.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/","title":"Insiders Program","text":""},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#gioi-thieu","title":"Gi\u1edbi thi\u1ec7u","text":"Gi\u1edbi thi\u1ec7u
Vnstock Insiders Program l\u00e0 ch\u01b0\u01a1ng tr\u00ecnh d\u00e0nh ri\u00eang cho c\u00e1c nh\u00e0 t\u00e0i tr\u1ee3 v\u00e0 ng\u01b0\u1eddi d\u00f9ng th\u00e2n thi\u1ebft c\u1ee7a Vsntock. Ch\u01b0\u01a1ng tr\u00ecnh n\u00e0y cung c\u1ea5p c\u00e1c t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n,\u00a0\u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n m\u00e3 ngu\u1ed3n trong kho ch\u1ee9a ri\u00eang (private repo). C\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef m\u00e3 ngu\u1ed3n ri\u00eang bi\u1ec7t v\u1edbi th\u01b0 vi\u1ec7n ch\u00ednh vnstock
nh\u01b0ng c\u00e1c ch\u1ee9c n\u0103ng \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n theo h\u01b0\u1edbng b\u1ed5 tr\u1ee3 (add-on) v\u00e0 t\u01b0\u01a1ng th\u00edch t\u1ed1t v\u1edbi vnstock.
V\u1edbi t\u01b0 c\u00e1ch th\u00e0nh vi\u00ean c\u1ee7a ch\u01b0\u01a1ng tr\u00ecnh Vnstock Insiders,\u00a0b\u1ea1n s\u1ebd l\u00e0 ng\u01b0\u1eddi \u0111\u1ea7u ti\u00ean tr\u1ea3i nghi\u1ec7m nh\u1eefng t\u00ednh n\u0103ng m\u1edbi \u0111\u1ed9t ph\u00e1, ph\u1ea7n m\u1ec1m ch\u1ea5t l\u01b0\u1ee3ng cao/d\u1eef li\u1ec7u c\u00f3 t\u00ednh ch\u00ednh x\u00e1c cao \u0111\u1ed3ng th\u1eddi tham gia \u0111\u1ecbnh h\u01b0\u1edbng cho t\u01b0\u01a1ng lai c\u1ee7a vnstock.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#cach-thuc-tham-gia","title":"C\u00e1ch th\u1ee9c tham gia","text":"C\u00f3 2 c\u00e1ch \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 tham gia ch\u01b0\u01a1ng tr\u00ecnh nh\u01b0 sau:
T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua t\u00ednh n\u0103ng Github Sponsor: B\u1ea1n ch\u1ecdn g\u00f3i t\u00e0i tr\u1ee3 h\u00e0ng th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n v\u00e0 tier (c\u1ea5p \u0111\u1ed9) t\u01b0\u01a1ng \u1ee9ng v\u1edbi c\u00e1c quy\u1ec1n l\u1ee3i b\u1ea1n mong mu\u1ed1n. V\u1edbi h\u00ecnh th\u1ee9c n\u00e0y, b\u1ea1n ch\u1ec9 c\u1ea7n d\u00f9ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master c\u1ee7a m\u00ecnh \u0111\u1ec3 t\u00e0i tr\u1ee3 th\u00f4ng qua c\u1ed5ng thanh to\u00e1n Stripe do Github cung c\u1ea5p. M\u1ecdi kho\u1ea3n t\u00e0i tr\u1ee3 c\u1ee7a b\u1ea1n v\u00e0 c\u1ed9ng \u0111\u1ed3ng \u0111\u01b0\u1ee3c th\u1ec3 hi\u1ec7n c\u00f4ng khai/minh b\u1ea1ch v\u00e0 b\u1ea3o v\u1ec7 quy\u1ec1n l\u1ee3i b\u1edfi Github. B\u1ea1n \u0111\u01b0\u1ee3c truy c\u1eadp v\u00e0o c\u00e1c repo ri\u00eang t\u01b0 ngay l\u1eadp t\u1ee9c sau khi thanh to\u00e1n m\u00e0 kh\u00f4ng c\u1ea7n tr\u1ea3i qua c\u00e1c b\u01b0\u1edbc duy\u1ec7t th\u1ee7 c\u00f4ng.
H\u01b0\u1edbng d\u1eabn t\u00e0i tr\u1ee3
N\u1ebfu b\u1ea1n kh\u00f4ng c\u00f3 th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf, h\u00e3y\u00a0nh\u1eafn tin cho Th\u1ecbnh\u00a0\u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 th\u1ef1c hi\u1ec7n thi\u1ebft l\u1eadp ph\u00e2n quy\u1ec1n th\u1ee7 c\u00f4ng.
Th\u00f4ng tin m\u00f4 t\u1ea3 quy\u1ec1n l\u1ee3i t\u01b0\u01a1ng \u1ee9ng c\u00e1c g\u00f3i t\u00e0i tr\u1ee3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang th\u00f4ng tin t\u00e0i tr\u1ee3 Github t\u1ea1i \u0111\u00e2y
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#thoa-thuan-chinh-sach","title":"Th\u1ecfa thu\u1eadn & ch\u00ednh s\u00e1ch","text":""},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#tai-tro-hay-mua-giay-phep","title":"T\u00e0i tr\u1ee3 hay mua gi\u1ea5y ph\u00e9p?","text":"Ph\u00e2n bi\u1ec7t T\u00e0i tr\u1ee3 v\u00e0 Mua gi\u1ea5y ph\u00e9p s\u1ea3n ph\u1ea9m
Ch\u00fang t\u00f4i mu\u1ed1n r\u00f5 r\u00e0ng v\u00e0 minh b\u1ea1ch v\u1ec1 s\u1ef1 kh\u00e1c bi\u1ec7t gi\u1eefa Ch\u01b0\u01a1ng tr\u00ecnh T\u00e0i tr\u1ee3 cho D\u1ef1 \u00e1n tr\u00ean Github Sponsor v\u00e0 vi\u1ec7c b\u00e1n Gi\u1ea5y ph\u00e9p s\u1ea3n ph\u1ea9m th\u01b0\u01a1ng m\u1ea1i b\u1ea1n th\u01b0\u1eddng g\u1eb7p. \u0110i\u1ec1u n\u00e0y gi\u00fap minh b\u1ea1ch h\u00f3a ch\u01b0\u01a1ng tr\u00ecnh v\u00e0 tr\u00e1nh nh\u1eefng hi\u1ec3u l\u1ea7m kh\u00f4ng \u0111\u00e1ng c\u00f3 trong qu\u00e1 tr\u00ecnh tri\u1ec3n khai d\u1ef1 \u00e1n. Tuy b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf ra c\u00f9ng s\u1ed1 ti\u1ec1n \u0111\u1ec3 s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m, nh\u1eefng r\u00e0ng bu\u1ed9c v\u00e0 t\u00ednh ch\u1ea5t c\u1ee7a ho\u1ea1t \u0111\u1ed9ng t\u00e0i tr\u1ee3 hay mua/b\u00e1n c\u00f3 nh\u1eefng \u0111i\u1ec3m ho\u00e0n to\u00e0n kh\u00e1c bi\u1ec7t.
T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf tr\u00ean Github Sponsor l\u00e0 m\u1ed9t c\u00e1ch m\u00e0 b\u1ea1n v\u00e0 c\u1ed9ng \u0111\u1ed3ng c\u00f3 th\u1ec3 \u1ee7ng h\u1ed9 t\u00e0i ch\u00ednh \u0111\u1ec3 t\u00e1c gi\u1ea3 c\u00f3 th\u1ec3 ph\u00e1t tri\u1ec3n v\u00e0 duy tr\u00ec d\u1ef1 \u00e1n v\u1edbi m\u1ee5c \u0111\u00edch cung c\u1ea5p gi\u00e1 tr\u1ecb v\u00e0 quy\u1ec1n s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m t\u1edbi c\u1ed9ng \u0111\u1ed3ng nh\u00e0 t\u00e0i tr\u1ee3. V\u1edbi t\u01b0 c\u00e1ch l\u00e0 nh\u00e0 t\u00e0i tr\u1ee3, b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c nh\u1eefng \u01b0u \u0111\u00e3i \u0111\u1eb7c bi\u1ec7t nh\u01b0 truy c\u1eadp private repo (kho ch\u1ee9a m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0) hay tham gia c\u1ed9ng \u0111\u1ed3ng th\u00e0nh vi\u00ean c\u1ee7a vnstock, vv. Trong qu\u00e1 tr\u00ecnh tham gia t\u00e0i tr\u1ee3, d\u1ef1 \u00e1n c\u00f3 th\u1ec3 lu\u00f4n c\u00f3 nh\u1eefng c\u1eadp nh\u1eadt th\u01b0\u1eddng xuy\u00ean cho m\u00e3 ngu\u1ed3n \u0111\u1ec3 b\u1ea1n s\u1eed d\u1ee5ng nh\u01b0 nh\u1eefng ng\u01b0\u1eddi d\u00f9ng tr\u1ea3i nghi\u1ec7m.
Mua/b\u00e1n gi\u1ea5y ph\u00e9p S\u1ea3n ph\u1ea9m th\u01b0\u01a1ng m\u1ea1i l\u00e0 vi\u1ec7c b\u1ea1n b\u1ecf ra m\u1ed9t kho\u1ea3n ph\u00ed tr\u1ea3 cho nh\u00e0 ph\u00e1t h\u00e0nh s\u1ea3n ph\u1ea9m, \u0111\u1ed5i l\u1ea1i b\u1ea1n c\u00f3 quy\u1ec1n s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m (gi\u1ea5y ph\u00e9p) nh\u01b0 m\u1ed9t kh\u00e1ch h\u00e0ng v\u1edbi nh\u1eefng ti\u00eau chu\u1ea9n cao v\u1ec1 y\u00eau c\u1ea7u c\u1ee7a m\u1ed9t d\u1ecbch v\u1ee5 th\u01b0\u01a1ng m\u1ea1i.
L\u01b0u \u00fd
Vnstock ch\u1ec9 cung c\u1ea5p c\u00e1c gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 (th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh python) gi\u00fap b\u1ea1n k\u1ebft n\u1ed1i t\u1edbi ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u c\u00f4ng khai, h\u1ee3p l\u1ec7 m\u00e0 kh\u00f4ng ph\u00e2n ph\u1ed1i hay hay s\u1eed d\u1ee5ng b\u1ea5t k\u1ef3 d\u1eef li\u1ec7u n\u00e0o t\u1eeb b\u00ean th\u1ee9 3 cho m\u1ee5c \u0111\u00edch th\u01b0\u01a1ng m\u1ea1i t\u1edbi ng\u01b0\u1eddi d\u00f9ng.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#giay-phep-su-dung-san-pham","title":"Gi\u1ea5y ph\u00e9p s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m","text":"Gi\u1ea5y ph\u00e9p
Trong m\u1ecdi tr\u01b0\u1eddng h\u1ee3p, t\u00e1c gi\u1ea3 c\u00f3 to\u00e0n quy\u1ec1n s\u1edf h\u1eefu s\u1ea3n ph\u1ea9m \u0111\u01b0\u1ee3c chia s\u1ebb t\u1edbi b\u1ea1n. L\u00e0 m\u1ed9t th\u00e0nh vi\u00ean c\u1ee7a Vnstock Insiders Program, b\u1ea1n \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m cho m\u1ee5c \u0111\u00edch c\u00e1 nh\u00e2n nh\u01b0ng kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p chia s\u1ebb, ph\u00e2n ph\u1ed1i l\u1ea1i s\u1ea3n ph\u1ea9m d\u01b0\u1edbi b\u1ea5t k\u1ef3 h\u00ecnh th\u1ee9c n\u00e0o. H\u01a1n n\u1eefa, m\u1ee9c t\u00e0i tr\u1ee3 r\u1ea5t linh ho\u1ea1t v\u00e0 ch\u1ec9 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng 1 ly cafe, do \u0111\u00f3 n\u1ebfu ai \u0111\u00f3 xin chia s\u1ebb ho\u1eb7c b\u1ea1n mu\u1ed1n gi\u1edbi thi\u1ec7u th\u00ec b\u1ea1n b\u00e8 c\u1ee7a b\u1ea1n ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n th\u00f4ng qua t\u00e0i tr\u1ee3 ch\u00ednh th\u1ee9c. T\u00f4n tr\u1ecdng b\u1ea3n quy\u1ec1n t\u00e1c gi\u1ea3 l\u00e0 m\u1ed9t h\u00e0nh \u0111\u1ed9ng v\u0103n minh v\u00e0 \u0111\u00e1ng kh\u00edch l\u1ec7.
"},{"location":"integrate/OpenBBTerminal/","title":"OpenBB Terminal","text":"Gi\u1edbi thi\u1ec7u
OpenBB Terminal OpenBB Terminal l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 m\u00e3 ngu\u1ed3n m\u1edf m\u1ea1nh m\u1ebd d\u00e0nh cho c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n, cung c\u1ea5p cho b\u1ea1n kh\u1ea3 n\u0103ng ti\u1ebfp c\u1eadn v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u00e0i ch\u00ednh to\u00e0n di\u1ec7n ngay t\u1eeb giao di\u1ec7n d\u00f2ng l\u1ec7nh. Ph\u1ea7n m\u1ec1m n\u00e0y \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef Python cho \u1ee9ng d\u1ee5ng Desktop.
Hi\u1ec7n t\u1ea1i OpenBB Terminal cho ph\u00e9p s\u1eed d\u1ee5ng d\u1eef li\u1ec7u chu\u1ed7i th\u1eddi gian (time series) do b\u1ea1n t\u1ef1 cung c\u1ea5p. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u gi\u00e1 OHLCV ho\u1eb7c ch\u1ec9 s\u1ed1 th\u1ed1ng k\u00ea \u0111\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng Forecast ho\u1eb7c Econometrics c\u1ee7a OpenBB.
B\u1ea1n kh\u00f4ng th\u1ec3 thay \u0111\u1ed5i ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u ngo\u00e0i danh s\u00e1ch ch\u1ec9 \u0111\u1ecbnh s\u1eb5n c\u1ee7a OpenBB, do \u0111\u00f3 ch\u01b0a c\u00f3 c\u00e1ch \u0111\u1ea9y tr\u1ef1c ti\u1ebfp d\u1eef li\u1ec7u t\u1eeb vnstock ngay b\u00ean trong OpenBB.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng Forecast v\u00e0 Econometrics nh\u01b0 \u0111\u00e3 n\u00eau \u1edf tr\u00ean, b\u1ea1n l\u01b0u DataFrame t\u1ea1o ra b\u1edfi vnstock v\u1edbi h\u00e0m export_for_openbb()
\u0111\u1ec3 xu\u1ea5t file d\u01b0\u1edbi d\u1ea1ng csv trong th\u01b0 m\u1ee5c l\u00e0m vi\u1ec7c c\u1ee7a OpenBB. Tham kh\u1ea3o th\u00f4ng tin t\u1eeb OpenBB t\u1ea1i BRING YOUR OWN DATA m\u1ee5c IMPORT TIME SERIES DATA v\u00e0 Import data t\u1ea1i m\u1ee5c CUSTOM DATA
C\u00fa ph\u00e1p h\u00e0m \u0111\u01a1n gi\u1ea3n nh\u01b0 sau:
export_for_openbb (df, file_name='REE_ohlcv_export')\n
Trong \u0111\u00f3:
df
l\u00e0 DataFrame ch\u1ee9a d\u1eef li\u1ec7u b\u1ea1n mu\u1ed1n xu\u1ea5t filefile_name
l\u00e0 t\u00ean file b\u1ea1n mu\u1ed1n \u0111\u1eb7t, c\u00f3 th\u1ec3 theo t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu theo d\u00f5i nh\u01b0 REE_ohlcv_export
extension
(tham s\u1ed1 t\u00f9y ch\u1ecdn) m\u1eb7c \u0111\u1ecbnh l\u00e0 csv, kh\u00f4ng c\u1ea7n thay \u0111\u1ed5i, \u0111\u1ecbnh d\u1ea1ng kh\u00e1c l\u00e0 xlsxSau khi ch\u1ea1y l\u1ec7nh xong, file csv t\u01b0\u01a1ng \u1ee9ng s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u trong th\u01b0 m\u1ee5c c\u1ee7a OpenBB. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ecdc file trong giao di\u1ec7n OpenBB t\u1eeb t\u00ednh n\u0103ng forecast
v\u1edbi c\u00fa ph\u00e1p load -f REE_ohlcv_export.csv --alias REE
trong \u0111\u00f3 REE_ohlcv_export.csv
l\u00e0 file d\u1eef li\u1ec7u demo c\u00f2n --alias REE
gi\u00fap \u0111\u1eb7t t\u00ean r\u00fat g\u1ecdn cho file. Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng!
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng
08/11/2023, Hi\u1ec7n t\u1ea1i vnstock \u0111\u00e3 th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng h\u00e0m xu\u1ea5t d\u1eef li\u1ec7u t\u1eeb vnstock sang Amibroker cho ph\u00e9p l\u01b0u d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb h\u00e0m stock_historical_data
v\u1edbi t\u1ea5t c\u1ea3 \u0111\u1ed9 ph\u00e2n gi\u1ea3i th\u1eddi gian kh\u1ea3 d\u1ee5ng sang Amibroker d\u01b0\u1edbi d\u1ea1ng file CSV. \u0110\u00e2y l\u00e0 m\u1ed9t tin vui cho c\u1ed9ng \u0111\u1ed3ng ng\u01b0\u1eddi d\u00f9ng vnstock. N\u1ebfu b\u1ea1n ch\u01b0a s\u1eb3n s\u00e0ng s\u1eed d\u1ee5ng b\u1ed9 c\u00f4ng c\u1ee5 Python, vnstock d\u00e0nh cho b\u1ea1n m\u1ed9t s\u1ed1 t\u00ednh n\u0103ng h\u1eefu \u00edch trong th\u1eddi gian chuy\u1ec3n \u0111\u1ed5i ph\u01b0\u01a1ng ph\u00e1p l\u00e0m vi\u1ec7c m\u1edbi linh ho\u1ea1t v\u00e0 hi\u1ec7u qu\u1ea3 h\u01a1n. vnstock ch\u00e0o \u0111\u00f3n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea1n v\u1edbi m\u1ecdi tr\u00ecnh \u0111\u1ed9, kinh nghi\u1ec7m kh\u00e1c nhau \u0111\u1ec3 x\u00e2y d\u1ef1ng c\u1ed9ng \u0111\u1ed3ng \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam ng\u00e0y c\u00e0ng ph\u00e1t tri\u1ec3n.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng xu\u1ea5t d\u1eef li\u1ec7u cho Amibroker, b\u1ea1n th\u1ef1c hi\u1ec7n nh\u01b0 sau:
"},{"location":"integrate/amibroker/#xuat-file-csv-cho-amibroker","title":"Xu\u1ea5t file CSV cho Amibroker","text":"amibroker_ohlc_export (path=r'C:\\Users\\mrthi\\Desktop', symbol='TCB', start_date='2023-01-01', end_date='2023-11-08', resolution='1D', type='stock', source='DNSE')\n
Trong \u0111\u00f3:
path
: l\u00e0 \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c b\u1ea1n mu\u1ed1n l\u01b0u file, ti\u1ec7n cho vi\u1ec7c s\u1eed d\u1ee5ng Import Wizard trong Amibroker \u0111\u1ec3 n\u1ea1p d\u1eef li\u1ec7u.>>> amibroker_ohlc_export (path=r'C:\\Users\\mrthi\\Desktop', symbol='TCB', start_date='2023-01-01', end_date='2023-11-08', resolution='1D', type='stock', source='DNSE')\n\nData preview:\n <Ticker> <DTYYYYMMDD> <Open> <High> <Low> <Close> <Volume>\n0 TCB 20230103 25.75 27.45 25.75 27.45 3786800\n1 TCB 20230104 27.45 27.80 27.25 27.30 3185500\n2 TCB 20230105 27.30 27.80 27.15 27.65 2716900\n3 TCB 20230106 27.45 28.40 27.30 27.70 4803900\n4 TCB 20230109 27.80 27.95 27.60 27.75 2387700\n
"},{"location":"integrate/amibroker/#nap-du-lieu-cho-amibroker","title":"N\u1ea1p d\u1eef li\u1ec7u cho Amibroker","text":"S\u1eed d\u1ee5ng Import Wizard
Hi\u1ec7n t\u1ea1i, vnstock ch\u1ec9 h\u1ed7 tr\u1ee3 xu\u1ea5t d\u1eef li\u1ec7u sang d\u1ea1ng CSV \u0111\u01b0\u1ee3c \u0111\u1ecbnh d\u1ea1ng \u0111\u1ec3 s\u1eb3n s\u00e0ng n\u1ea1p v\u00e0o Amibroker. Qu\u00e1 tr\u00ecnh n\u00e0y v\u1eabn c\u1ea7n s\u1eed d\u1ee5ng b\u01b0\u1edbc d\u1eef li\u1ec7u th\u1ee7 c\u00f4ng d\u00f9ng Import Wizard. C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 vi\u1ebft th\u00eam ch\u01b0\u01a1ng tr\u00ecnh \u0111\u1ec3 th\u1ef1c hi\u1ec7n vi\u1ec7c n\u00e0y ho\u00e0n to\u00e0n t\u1ef1 \u0111\u1ed9ng thay cho data plugin n\u1ebfu c\u00f3 th\u1ec3. T\u00ednh n\u0103ng n\u00e0y ph\u00f9 h\u1ee3p v\u1edbi c\u00e1c b\u1ea1n mu\u1ed1n t\u1eadn d\u1ee5ng ngu\u1ed3n d\u1eef li\u1ec7u vnstock s\u1eb5n c\u00f3 \u0111\u1ec3 ti\u1ebft ki\u1ec7m cho vi\u1ec7c nghi\u00ean c\u1ee9u v\u00e0 ph\u00e2n t\u00edch \u0111\u1ea7u t\u01b0 m\u00e0 kh\u00f4ng c\u1ea7n \u0111\u1ebfn d\u1eef li\u1ec7u real-time cho giao d\u1ecbch th\u1ef1c t\u1ebf (nh\u01b0 ph\u00e1i sinh).
"},{"location":"integrate/amibroker/#tao-database","title":"T\u1ea1o database","text":"\u00c1p d\u1ee5ng n\u1ebfu b\u1ea1n ch\u01b0a t\u1ea1o s\u1eb5n c\u01a1 s\u1edf d\u1eef li\u1ec7u.
Kh\u1edfi t\u1ea1o Database. Click \u0111\u1ec3 m\u1edf r\u1ed9ngTh\u1ef1c hi\u1ec7n m\u1edf Menu File
> New
> Database
v\u00e0 thi\u1ebft l\u1eadp c\u00e1c th\u00f4ng s\u1ed1 nh\u01b0 h\u00ecnh (m\u1eb7c \u0111\u1ecbnh) ho\u1eb7c thay \u0111\u1ed5i theo \u0111\u00fang ki\u1ec3u d\u1eef li\u1ec7u b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng (EOD hay theo ph\u00fat c\u1ee5 th\u1ec3).
Next
t\u1edbi m\u00e0n h\u00ecnh ti\u1ebfp theo. T\u1ea1i \u0111\u00e2y tick v\u00e0o 2 \u00f4 l\u00e0 No quotation data
v\u00e0 Allow negative price
sau \u0111\u00f3 Next
cho \u0111\u1ebfn b\u01b0\u1edbc Finish
\u0111\u1ec3 k\u1ebft th\u00fac.Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng n\u1ea1p d\u1eef li\u1ec7u EOD cho Amibroker t\u1eeb vnstock.
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng n\u1ea1p d\u1eef li\u1ec7u 1 ph\u00fat cho Amibroker t\u1eeb vnstock.
"},{"location":"integrate/backtesting/","title":"Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c \u0111\u1ea7u t\u01b0","text":"Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c
H\u00e0m stock_historical_data c\u1ee7a vnstock sau khi tu\u1ef3 bi\u1ebfn l\u1ea1i c\u00e1ch tr\u00ecnh b\u00e0y (s\u1eed d\u1ee5ng tham s\u1ed1 decor=True
), c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00edch h\u1ee3p ngay v\u1edbi c\u00e1c th\u01b0 vi\u1ec7n gi\u00fap ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c giao d\u1ecbch trong m\u00f4i tr\u01b0\u1eddng Python.
vnstock gi\u1edbi thi\u1ec7u t\u1edbi b\u1ea1n m\u1ed9t s\u1ed1 t\u00f9y ch\u1ecdn cho backtesting \u0111\u1ec3 tham kh\u1ea3o. Ch\u00fang t\u00f4i s\u1ebd cung c\u1ea5p th\u00eam th\u00f4ng tin h\u01b0\u1edbng d\u1eabn chi ti\u1ebft trong th\u1eddi gian t\u1edbi.
Th\u01b0 vi\u1ec7n D\u1ec5 s\u1eed d\u1ee5ng T\u00ednh n\u0103ng T\u1ed1c \u0111\u1ed9 Ho\u1ea1t \u0111\u1ed9ng c\u1ed9ng \u0111\u1ed3ng T\u00e0i li\u1ec7u Ho\u1ea1t \u0111\u1ed9ng d\u1ef1 \u00e1n C\u1eadp nh\u1eadt g\u1ea7n nh\u1ea5t X\u1ebfp h\u1ea1ng Backtesting.py High High Medium High High Medium 1 n\u0103m 5 VectorBT Medium High High High High High 2 th\u00e1ng 5 Backtrader High High Low High High Low 7 th\u00e1ng 4 Zipline Medium Medium Low Medium Medium None 3 n\u0103m 3 bt Low Medium Low Medium Medium Low 6 th\u00e1ng 2 PyBacktest Low Low Medium Low Poor None 4 n\u0103m 1L\u01b0u \u00fd: \u0110i\u1ec3m x\u1ebfp h\u1ea1ng c\u00e0ng cao c\u00e0ng t\u1ed1t. Ngu\u1ed3n tham kh\u1ea3o: QMR AI
"},{"location":"integrate/dnse_api/","title":"T\u00edch h\u1ee3p API giao d\u1ecbch DNSE v\u00e0o vnstock","text":"DNSE API
DNSE l\u00e0 m\u1ed9t trong 3 c\u00f4ng ty ch\u1ee9ng kho\u00e1n c\u00f3 cung c\u1ea5p API giao d\u1ecbch cho kh\u00e1ch h\u00e0ng ph\u1ed5 th\u00f4ng b\u00ean c\u1ea1nh SSI v\u00e0 BSC (\u0111ang ki\u1ec3m duy\u1ec7t k\u1ef9, kh\u00f4ng duy\u1ec7t th\u00eam kh\u00e1ch h\u00e0ng m\u1edbi). API giao d\u1ecbch c\u1ee7a DNSE cho ph\u00e9p th\u1ef1c hi\u1ec7n \u0111\u1ecdc th\u00f4ng tin li\u00ean quan \u0111\u1ebfn t\u00e0i kho\u1ea3n v\u00e0 \u0111\u1eb7t l\u1ec7nh \u0111\u1ed1i v\u1edbi c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf l\u1eabn ph\u00e1i sinh. T\u00e0i li\u1ec7u API m\u1edbi \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt c\u00f4ng khai tr\u00ean website v\u00e0o \u0111\u1ea7u th\u00e1ng 11/2023. B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o th\u00f4ng tin chi ti\u1ebft API t\u1ea1i \u0111\u00e2y
vnstock cung c\u1ea5p ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i v\u1edbi API DNSE ho\u00e0n ch\u1ec9nh \u0111\u1ec3 \u0111\u1ecdc th\u00f4ng tin, \u0111\u1eb7t/ch\u1ec9nh s\u1eeda/h\u1ee7y l\u1ec7nh giao d\u1ecbch.
\u0110\u1ec3 b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng, c\u00e1c b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t g\u00f3i th\u01b0 vi\u1ec7n vnstock m\u1edbi nh\u1ea5t v0.2.8.1 c\u00f3 h\u1ed7 tr\u1ee3 \u0111\u1ea7y \u0111\u1ee7 c\u00e1c ch\u1ee9c n\u0103ng cho DNSE Lightspeed API. T\u1eeb c\u00e1c h\u00e0m python n\u00e0y, c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng bot giao d\u1ecbch/web app d\u1ec5 d\u00e0ng t\u1eeb m\u00f4i tr\u01b0\u1eddng cloud ho\u1eb7c m\u00e1y t\u00ednh c\u00e1 nh\u00e2n. Xem th\u00eam m\u00e3 ngu\u1ed3n \u0111\u1ec3 l\u1ea5y c\u1ea3m h\u1ee9ng.
Xem h\u01b0\u1edbng d\u1eabn
N\u1ebfu th\u1ea5y h\u01b0\u1edbng d\u1eabn n\u00e0y c\u00f3 \u00edch, b\u1ea1n lu\u00f4n c\u00f3 th\u1ec3 donate \u0111\u1ec3 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n thay l\u1eddi c\u00e1m \u01a1n.
"},{"location":"integrate/dnse_api/#ang-nhap-va-xac-thuc","title":"\u0110\u0103ng nh\u1eadp v\u00e0 x\u00e1c th\u1ef1c","text":""},{"location":"integrate/dnse_api/#khoi-tao-dnse-client","title":"Kh\u1edfi t\u1ea1o DNSE Client","text":"\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c ch\u1ee9c n\u0103ng c\u1ee7a DNSE API, tr\u01b0\u1edbc h\u1ebft b\u1ea1n c\u1ea7n kh\u1edfi t\u1ea1o m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng DNSE Client, theo \u0111\u00f3 c\u00e1c h\u00e0m ch\u1ee9c n\u0103ng s\u1ebd l\u00e0 c\u00e1c ph\u01b0\u01a1ng th\u1ee9c c\u1ee7a \u0111\u1ed1i t\u01b0\u1ee3ng Client n\u00e0y. Ch\u00fang ta g\u00e1n Client n\u00e0y v\u1edbi bi\u1ebfn client
cho ng\u1eafn g\u1ecdn \u0111\u1ec3 g\u1ecdi trong c\u00e1c b\u01b0\u1edbc ti\u1ebfp theo.
from vnstock.integration import *\nclient = DNSEClient()\n
"},{"location":"integrate/dnse_api/#ang-nhap-he-thong","title":"\u0110\u0103ng nh\u1eadp h\u1ec7 th\u1ed1ng","text":"JWT token
T\u1ea1i b\u01b0\u1edbc n\u00e0y, b\u1ea1n s\u1eed d\u1ee5ng t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u c\u1ee7a t\u00e0i kho\u1ea3n giao d\u1ecbch DNSE \u0111\u1ec3 t\u1ea1o ra JWT token - l\u00e0 m\u00e3 x\u00e1c th\u1ef1c \u0111\u01b0\u1ee3c t\u1ea1o ra khi b\u1ea1n \u0111\u0103ng nh\u1eadp v\u00e0o h\u1ec7 th\u1ed1ng API c\u1ee7a DNSE. JWT token cho ph\u00e9p b\u1ea1n \u0111\u1ecdc c\u00e1c th\u00f4ng tin v\u1ec1 t\u00e0i kho\u1ea3n (X\u00e1c th\u1ef1c c\u1ea5p 1), \u0111\u1ec3 th\u1ef1c hi\u1ec7n \u0111\u1eb7t l\u1ec7nh, s\u1eeda th\u00f4ng tin h\u1ec7 th\u1ed1ng th\u00ec c\u1ea7n d\u00f9ng k\u1ebft h\u1ee3p v\u1edbi m\u00e3 OTP \u0111\u01b0\u1ee3c c\u1ea5p qua email ho\u1eb7c SmartOTP tr\u00ean app EntradeX (x\u00e1c th\u1ef1c c\u1ea5p 2).
B\u1ea1n s\u1eed d\u1ee5ng \u0111o\u1ea1n m\u00e3 sau \u0111\u1ec3 \u0111\u0103ng nh\u1eadp h\u1ec7 th\u1ed1ng API.
user_name = \"T\u00caN_\u0110\u0102NG_NH\u1eacP_T\u00c0I_KHO\u1ea2N_DNSE\"\npassword = \"M\u1eacT_KH\u1ea8U_T\u00c0I_KHO\u1ea2N_DNSE\"\nclient.login(user_name, password)\n
Sau b\u01b0\u1edbc n\u00e0y, m\u00e3 JWT token \u0111\u01b0\u1ee3c t\u1ea1o ra \u0111\u1ec3 s\u1eed d\u1ee5ng trong c\u00e1c b\u01b0\u1edbc ti\u1ebfp theo.
"},{"location":"integrate/dnse_api/#xac-thuc-giao-dich","title":"X\u00e1c th\u1ef1c giao d\u1ecbch","text":"X\u00e1c th\u1ef1c c\u1ea5p 2 v\u1edbi OTP
\u0110\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c thao t\u00e1c li\u00ean quan \u0111\u1ebfn giao d\u1ecbch ho\u1eb7c thay \u0111\u1ed5i th\u00f4ng tin tr\u00ean t\u00e0i kho\u1ea3n DNSE, b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u00e3 OTP \u0111\u1ec3 th\u1ef1c hi\u1ec7n x\u00e1c th\u1ef1c c\u1ea5p 2. M\u00e3 OTP c\u00f3 th\u1ec3 l\u00e0 m\u00e3 SmartOTP l\u1ea5y t\u1eeb app EntradeX tr\u00ean smartphone ho\u1eb7c m\u00e3 \u0111\u01b0\u1ee3c g\u1eedi qua email. Sau khi th\u1ef1c hi\u1ec7n b\u01b0\u1edbc x\u00e1c th\u1ef1c OTP v\u1edbi h\u1ec7 th\u1ed1ng, m\u1ed9t m\u00e3 trading token
\u0111\u01b0\u1ee3c t\u1ea1o ra v\u00e0 c\u00f3 hi\u1ec7u l\u1ef1c trong 8 ti\u1ebfng cho ph\u00e9p b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc giao d\u1ecbch trong su\u1ed1t ng\u00e0y l\u00e0m vi\u1ec7c.
Khi n\u00e0o s\u1eed d\u1ee5ng SmartOTP, emailOTP?
B\u1ecf qua b\u01b0\u1edbc n\u00e0y n\u1ebfu b\u1ea1n ch\u1ecdn s\u1eed d\u1ee5ng SmartOTP thay v\u00ec email OTP. D\u00f2ng l\u1ec7nh sau gi\u00fap b\u1ea1n y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng g\u1eedi OTP qua email, m\u00e3 OTP n\u00e0y d\u00f9ng \u0111\u1ec3 t\u1ea1o trading token
cho ph\u00e9p th\u1ef1c hi\u1ec7n giao d\u1ecbch.
client.email_otp()\n
Sau khi nh\u1eadn m\u00e3 OTP qua email, b\u1ea1n s\u1eed d\u1ee5ng cho b\u01b0\u1edbc ti\u1ebfp theo. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 t\u1ef1 \u0111\u1ed9ng h\u00f3a qu\u00e1 tr\u00ecnh tr\u00edch xu\u1ea5t OTP n\u00e0y v\u00e0 n\u1ea1p cho b\u01b0\u1edbc ti\u1ebfp theo b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng Gmail API. Tham kh\u1ea3o th\u00eam th\u00f4ng tin t\u1ea1i \u0111\u00e2y
"},{"location":"integrate/dnse_api/#tao-ma-trading-token-e-giao-dich","title":"T\u1ea1o m\u00e3 trading token \u0111\u1ec3 giao d\u1ecbch","text":"T\u1ea1i b\u01b0\u1edbc n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 nh\u1eadp m\u00e3 OTP \u0111\u1ec3 t\u1ea1o trading token
b\u1eb1ng m\u00e3 SmartOTP ho\u1eb7c email OTP.
trading_token = client.get_trading_token(otp = 'M\u00c3_OTP_C\u1ee6A_B\u1ea0N', smart_otp=True)\n
Trong \u0111\u00f3:
otp
l\u00e0 m\u00e3 x\u00e1c th\u1ef1c c\u1ea5p 2 l\u1ea5y t\u1eeb app EntradeX d\u01b0\u1edbi d\u1ea1ng SmartOTP ho\u1eb7c m\u00e3 \u0111\u01b0\u1ee3c g\u1eedi qua email. M\u00e3 n\u00e0y ph\u1ea3i \u0111\u01b0\u1ee3c nh\u1eadp d\u01b0\u1edbi d\u1ea1ng string '12345'
.smart_otp
: nh\u1eadn gi\u00e1 tr\u1ecb True
n\u1ebfu b\u1ea1n l\u1ea5y m\u00e3 t\u1eeb app, False
n\u1ebfu l\u1ea5y m\u00e3 t\u1eeb emailTra c\u1ee9u th\u00f4ng tin v\u1edbi t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u t\u00e0i kho\u1ea3n
\u0110\u1ec3 s\u1eed d\u1ee5ng c\u00e1c h\u00e0m tra c\u1ee9u th\u00f4ng tin, b\u1ea1n ch\u1ec9 c\u1ea7n th\u1ef1c hi\u1ec7n x\u00e1c th\u1ef1c c\u1ea5p 1 v\u1edbi t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u t\u00e0i kho\u1ea3n.
"},{"location":"integrate/dnse_api/#thong-tin-tai-khoan","title":"Th\u00f4ng tin t\u00e0i kho\u1ea3n","text":"\u0110\u1ec3 truy c\u1eadp th\u00f4ng tin t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n t\u1ea1i DNSE, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
client.account()\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng:
>>> client.account()\nid 0123456789\ninvestorId 0123456789\nname V\u0169 Th\u1ecbnh\ncustodyCode 064C12345\nemail support@vnstock.site\nunverifiedEmail support@vnstock.site\nmobile 0123456789\nstatus ACTIVE\ncreatedDate 2023-01-01T00:00:00.007Z\nmodifiedDate 2023-01-01T00:00:00.007Z\nenId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx\nidentificationCode 0123456789010101\nidentificationDate 2021-01-01T00:00:00Z\nidentificationExpiredDate 2100-01-01T00:00:00Z\nidentificationPlace C\u1ee5c CS QLHC v\u1ec1 TTXH\nbirthday XXXX-XX-XXT00:00:00Z\naddress vnstock ch\u00e0o \u0111\u00f3n c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 \ud83d\ude01\ngender MALE\nflexCustomerId 000000000\nsmartOtpRegistrationId xxxxx\nuserApproveType AUTO_APPROVED\nreferralCode xxxxxx\nreferralUrl https://s.dnse.vn/xxxxxx\navatarUrl https://lh3.googleusercontent.com/xyzxyz\nneedToChangePassword True\nregisteredSmartOtp False\nisEmailVerified False\n
"},{"location":"integrate/dnse_api/#thong-tin-tieu-khoan","title":"Th\u00f4ng tin ti\u1ec3u kho\u1ea3n","text":"Ti\u1ec3u kho\u1ea3n
M\u1ed7i m\u1ed9t t\u00e0i kho\u1ea3n m\u1edf t\u1ea1i DNSE \u0111\u01b0\u1ee3c c\u1ea5u tr\u00fac th\u00e0nh c\u00e1c ti\u1ec3u kho\u1ea3n (t\u00e0i kho\u1ea3n con) cho ph\u00e9p s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch ch\u1ee9ng kho\u00e1n c\u01a1 s\u1edf ho\u1eb7c ph\u00e1i sinh.
\u0110\u1ec3 tra c\u1ee9u th\u00f4ng tin c\u00e1c ti\u1ec3u kho\u1ea3n trong t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n, s\u1eed d\u1ee5ng h\u00e0m sau:
client.sub_accounts()\n
"},{"location":"integrate/dnse_api/#thong-tin-so-du-tai-khoan","title":"Th\u00f4ng tin s\u1ed1 d\u01b0 t\u00e0i kho\u1ea3n","text":"Cho ph\u00e9p tra c\u1ee9u th\u00f4ng tin ti\u1ec1n s\u1ed1 d\u01b0 ti\u1ec1n theo m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n.
client.account_balance (sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N')\n
"},{"location":"integrate/dnse_api/#danh-sach-goi-vay","title":"Danh s\u00e1ch g\u00f3i vay","text":"G\u00f3i vay
G\u00f3i vay l\u00e0 kh\u00e1i ni\u1ec7m c\u1ee7a DNSE \u0111\u1ecbnh ngh\u0129a \u0111\u1ec3 h\u1ed7 tr\u1ee3 ph\u00e2n bi\u1ec7t c\u00e1c t\u1ef7 l\u1ec7 k\u00fd qu\u1ef9 khi \u0111\u1eb7t l\u1ec7nh (margin, kh\u00f4ng margin). M\u00e3 g\u00f3i vay \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng khi \u0111\u1eb7t l\u1ec7nh (n\u1ebfu c\u00f3).
client.loan_packages(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n tr\u00ean t\u00e0i kho\u1ea3n DNSE c\u1ee7a b\u1ea1n.asset_type
: nh\u1eadp stock
cho giao d\u1ecbch c\u01a1 s\u1edf, derivative
cho giao d\u1ecbch ph\u00e1i sinh.L\u1ea5y th\u00f4ng tin s\u1ee9c mua s\u1ee9c b\u00e1n t\u1ed1i \u0111a theo ti\u1ec3u kho\u1ea3n, m\u00e3, gi\u00e1 v\u00e0 g\u00f3i vay
client.trade_capacities(symbol='VIC', price=41600, sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock', loan_package_id=None)\n
Trong \u0111\u00f3:
symbol
: l\u00e0 t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu ho\u1eb7c m\u00e3 h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh, v\u00ed d\u1ee5 VN30F2311
price
: gi\u00e1, \u0111\u01a1n v\u1ecb l\u00e0 \u0111\u1ed3ng.sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.loan_package_id
: m\u00e3 g\u00f3i vay, l\u1ea5y t\u1eeb danh s\u00e1ch g\u00f3i vay \u00e1p d\u1ee5ng v\u1edbi t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n.sub_account = \"M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N\"\nsymbol = \"VIC\"\nside = \"buy\"\nquantity = 100\nprice = 41600\norder_type = 'LO'\nloan_package_id = None # Thay th\u1ebf v\u1edbi m\u00e3 g\u00f3i vay th\u1ef1c t\u1ebf c\u1ee7a b\u1ea1n\nasset_type = 'stock'\n\nclient.place_order(account, symbol, side, quantity, price, order_type, loan_package_id, asset_type)\n
ho\u1eb7c s\u1eed d\u1ee5ng d\u1ea1ng r\u00fat g\u1ecdn
client.place_order('M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', 'VIC', 'buy', 500, 41600, 'LO', None, 'stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
symbol
: l\u00e0 t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu ho\u1eb7c m\u00e3 h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh, v\u00ed d\u1ee5 VN30F2311
side
: lo\u1ea1i l\u1ec7nh mua buy
hay b\u00e1n sell
quantity
: s\u1ed1 l\u01b0\u1ee3ng h\u1ee3p \u0111\u1ed3ng, c\u1ed5 phi\u1ebfu giao d\u1ecbchprice
: gi\u00e1, \u0111\u01a1n v\u1ecb l\u00e0 \u0111\u1ed3ng.order_type
: Lo\u1ea1i l\u1ec7nh, s\u1eed d\u1ee5ng 1 trong c\u00e1c gi\u00e1 tr\u1ecb LO
, MP
, MTL
, ATO
, ATC
, MOK
, MAK
loan_package_id
: m\u00e3 g\u00f3i vay, l\u1ea5y t\u1eeb danh s\u00e1ch g\u00f3i vay \u00e1p d\u1ee5ng v\u1edbi t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n.asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Cho ph\u00e9p li\u1ec7t k\u00ea c\u00e1c l\u1ec7nh \u0111\u00e3 \u0111\u1eb7t trong s\u1ed5 l\u1ec7nh. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
\u0110\u1ec3 li\u1ec7t k\u00ea danh s\u00e1ch l\u1ec7nh trong s\u1ed5 l\u1ec7nh, b\u1ea1n s\u1eed d\u1ee5ng d\u00f2ng l\u1ec7nh sau \u0111\u1ed1i v\u1edbi giao d\u1ecbch c\u01a1 s\u1edf
client.order_list(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
ho\u1eb7c s\u1eed d\u1ee5ng l\u1ec7nh sau cho ph\u00e1i sinh
client.order_list(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='derivative')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n t\u01b0\u01a1ng \u1ee9ng cho giao d\u1ecbch c\u01a1 s\u1edf/ph\u00e1i sinh c\u1ea7n tra c\u1ee9uasset_type
: nh\u1eadn gi\u00e1 tr\u1ecb l\u00e0 stock
cho giao d\u1ecbch c\u01a1 s\u1edf, v\u00e0 derivative
cho giao d\u1ecbch ph\u00e1i sinh.Tra c\u1ee9u th\u00f4ng tin chi ti\u1ebft c\u1ee7a m\u1ed9t l\u1ec7nh b\u1ea5t k\u1ef3 thu\u1ed9c m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.order_detail(order_id='M\u00c3_L\u1ec6NH_C\u1ee6A_B\u1ea0N', sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
order_id
: m\u00e3 l\u1ec7nh \u0111\u1eb7t, th\u00f4ng tin l\u1ea5y t\u1eeb S\u1ed5 l\u1ec7nh
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Cho ph\u00e9p h\u1ee7y l\u1ec7nh b\u1ea5t k\u1ef3 theo id t\u1eeb m\u1ed9t ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.cancel_order (order_id='M\u00c3_L\u1ec6NH_C\u1ee6A_B\u1ea0N', sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
order_id
: m\u00e3 l\u1ec7nh \u0111\u1eb7t, th\u00f4ng tin l\u1ea5y t\u1eeb S\u1ed5 l\u1ec7nh
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Tr\u1ea3 v\u1ec1 danh s\u00e1ch c\u00e1c deal b\u1ea1n \u0111ang n\u1eafm gi\u1eef. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.deals_list (sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Neptyne for Google Sheets
Neptyne l\u00e0 m\u1ed9t ti\u1ec7n \u00edch m\u1edf r\u1ed9ng cho ph\u00e9p s\u1eed d\u1ee5ng python ngay trong Google Sheets, c\u00e1c l\u1ec7nh Python \u0111\u01b0\u1ee3c ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i vnstock th\u00f4ng qua Neptyne v\u00e0 s\u1eed d\u1ee5ng \u0111\u1ec3 tr\u00edch xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng cho c\u00e1c d\u1ef1 \u00e1n ph\u00e2n t\u00edch m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i s\u1eed d\u1ee5ng m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh Python ph\u1ee9c t\u1ea1p.
\u0110\u1ec3 s\u1eed d\u1ee5ng vnstock qua Neptyne, b\u1ea1n l\u00e0m nh\u01b0 sau:
Extensions
> Neptyne for Google Sheets
> Install Python Packages
t\u1eeb file Google Sheets b\u1ea5t k\u1ef3. N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef ti\u1ebfng Vi\u1ec7t, b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm menu Ti\u1ec7n \u00edch m\u1edf r\u1ed9ng
v\u00e0 t\u00ecm c\u00e1c m\u1ee5c t\u01b0\u01a1ng \u1ee9ngvnstock
v\u00e0o c\u1eeda s\u1ed5 hi\u1ec7n ra v\u00e0 ch\u1ecdn Apply
\u0111\u1ec3 \u00e1p d\u1ee5ng c\u00e0i \u0111\u1eb7t. Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t s\u1ebd di\u1ec5n ra trong ch\u1ed1c l\u00e1t. Sau khi nh\u1eadn th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng c\u1eeda s\u1ed5 hi\u1ec7n ra n\u00e0y b\u1eb1ng n\u00fat Close
.Extensions
> Neptyne for Google Sheets
> Show Code Editor
. T\u1eeb \u0111\u00e2y, nh\u1eadp d\u00f2ng l\u1ec7nh from vnstock import *
\u0111\u1ec3 Import t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m vnstock
v\u00e0o Neptyne.Th\u1ef1c thi l\u1ec7nh Python trong Google Sheets b\u1eb1ng c\u00e1ch nh\u1eadp h\u00e0m =Py()
v\u00e0o \u00f4 t\u00ednh b\u1ea5t k\u1ef3. Nh\u1eadp t\u00ean h\u00e0m v\u00e0 c\u00e1c tham s\u1ed1 t\u01b0\u01a1ng \u1ee9ng theo th\u1ee9 t\u1ef1. V\u00ed d\u1ee5 \u0111\u1ec3 g\u1ecdi h\u00e0m l\u1ea5y gi\u00e1 stock_historical_data
ta s\u1ebd c\u1ea5u tr\u00fac nh\u01b0 sau:
stock_historical_data(symbol='GMD', \n start_date=\"2023-10-01\", \n end_date='2023-10-20', resolution='1D', type='stock', beautify=True)\n
=Py(\"stock_historical_data\", \"GMD\",\"2023-10-01\", \"2023-10-20\",\"1D\",\"stock\", \"True\")\n
L\u01b0u \u00fd
Khi s\u1eed d\u1ee5ng c\u00e1c h\u00e0m Python trong Neptyne, thay v\u00ec nh\u1eadp nh\u01b0 c\u00fa ph\u00e1p Python th\u00f4ng th\u01b0\u1eddng, b\u1ea1n nh\u1eadp t\u00ean h\u00e0m v\u00e0 c\u00e1c tham s\u1ed1 l\u1ea7n l\u01b0\u1ee3t, ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u ph\u1ea9y ,
\u0111\u1ed3ng th\u1eddi c\u00e1c gi\u00e1 tr\u1ecb nh\u1eadp v\u00e0o \u0111\u01b0\u1ee3c \u0111\u1eb7t trong ngo\u1eb7c k\u00e9p \"\"
vnstock
v\u00e0 ch\u1ecdn Apply
B\u01b0\u1edbc 4. Import h\u00e0mB\u01b0\u1edbc 5. Ch\u1ea1y h\u00e0m vnstock \u0111\u1ec3 l\u1ea5y d\u1eef li\u1ec7u Th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng hi\u1ec7n ra trong gi\u00e2y l\u00e1t.
N\u1ea1p c\u00e1c h\u00e0m vnstock v\u00e0o Neptyne. T\u00edch xanh hi\u1ec7n ra th\u1ec3 hi\u1ec7n qu\u00e1 tr\u00ecnh th\u1ef1c thi l\u1ec7nh th\u00e0nh c\u00f4ng.
"},{"location":"integrate/google_sheets/#chuyen-oi-ham-python-sang-google-apps-script","title":"Chuy\u1ec3n \u0111\u1ed5i h\u00e0m Python sang Google Apps Script","text":"vnstock cung c\u1ea5p m\u1ed9t h\u00e0m t\u00f9y bi\u1ebfn l\u00e0m m\u1eabu gi\u00fap b\u1ea1n h\u00ecnh dung v\u00e0 b\u1eaft \u0111\u1ea7u chuy\u1ec3n \u0111\u1ed5i c\u00e1c h\u00e0m python \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi vnstock sang ng\u00f4n ng\u1eef Google Apps Script \u0111\u1ec3 s\u1eed d\u1ee5ng v\u1edbi Google Sheets. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p v\u00e0o m\u00e3 ngu\u1ed3n d\u1ef1 \u00e1n gi\u00fap vnstock ho\u00e0n thi\u1ec7n \u0111\u1ea7y \u0111\u1ee7 c\u00e1c t\u00ednh n\u0103ng cho Google Sheets v\u00e0 lan t\u1ecfa t\u1edbi c\u1ed9ng \u0111\u1ed3ng.
\u0110\u1ec3 s\u1eed d\u1ee5ng th\u1eed \u0111o\u1ea1n code tr\u00ean cho vi\u1ec7c l\u1ea5y d\u1eef li\u1ec7u, b\u1ea1n l\u00e0m nh\u01b0 sau:
= derivativesOhlc(\"VN30F1M\", \"2023-06-01\", \"2023-09-26\", \"15\")
G\u1ee3i \u00fd
\u0110\u1ec3 chuy\u1ec3n \u0111\u1ed5i c\u00e1c h\u00e0m python hi\u1ec7n t\u1ea1i do vnstock cung c\u1ea5p, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00f4ng c\u1ee5 ChatGPT \u0111\u1ec3 th\u1ef1c hi\u1ec7n. B\u1ea1n s\u1ebd c\u1ea7n c\u00f3 ch\u00fat ki\u1ebfn th\u1ee9c v\u1ec1 JavaScript \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00f9y bi\u1ebfn c\u00e1c h\u00e0m n\u00e0y nhanh ch\u00f3ng. N\u1ebfu kh\u00f4ng s\u1ebd c\u1ea7n k\u1ef9 n\u0103ng prompt engineering t\u1ed1t \u0111\u1ec3 c\u00f3 th\u1ec3 y\u00eau c\u1ea7u AI h\u1ed7 tr\u1ee3. Xa h\u01a1n, khi c\u00f3 ngu\u1ed3n l\u1ef1c, t\u00f4i s\u1ebd cung c\u1ea5p Add-in cho Google Sheets \u0111\u1ec3 c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ec5 d\u00e0ng h\u01a1n. B\u1ea1n c\u00f3 th\u1ec3 xem video h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 hi\u1ec3u c\u00e1ch d\u00f9ng ChatGPT h\u1ed7 tr\u1ee3 chuy\u1ec3n \u0111\u1ed5i h\u00e0m Python sang JavaScript.
"},{"location":"integrate/huggingface/","title":"vnstock x Huggingface","text":"Hugginface
We\u2019re on a journey to advance and democratize NLP for everyone. Along the way, we contribute to the development of technology for the better -- Huggingface
Huggingface l\u00e0 m\u1ed9t d\u1ecbch v\u1ee5 h\u00e0ng \u0111\u1ea7u \u0111\u1ec3 l\u01b0u tr\u1eef, chia s\u1ebb c\u00e1c m\u00f4 h\u00ecnh AI v\u00e0 Machine Learning (h\u1ecdc m\u00e1y) m\u1ed9t c\u00e1ch nhanh ch\u00f3ng d\u1ec5 d\u00e0ng, \u0111\u1ed3ng th\u1eddi \u0111\u00e2y c\u0169ng l\u00e0 m\u1ed9t c\u1ed9ng \u0111\u1ed3ng v\u1ec1 AI m\u1ea1nh tr\u00ean th\u1ebf gi\u1edbi. B\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00ecm th\u1ea5y c\u00e1c m\u00f4 h\u00ecnh AI/ML \u0111\u1ec3 s\u1eed d\u1ee5ng mi\u1ec5n ph\u00ed t\u1ea1i \u0111\u00e2y v\u1edbi v\u00e0i d\u00f2ng code. N\u1ebfu b\u1ea1n mu\u1ed1n t\u1ea1o web app v\u1edbi Python, \u0111\u00e2y c\u0169ng l\u00e0 d\u1ecbch v\u1ee5 tuy\u1ec7t v\u1eddi. Huggingface Spaces cho ph\u00e9p b\u1ea1n ch\u1ea1y c\u00e1c \u1ee9ng d\u1ee5ng vi\u1ebft b\u1eb1ng python cho Streamlit ho\u1eb7c Gradio framework hay Docker kh\u00e1 \u0111\u01a1n gi\u1ea3n. T\u00ecm hi\u1ec3u th\u00eam \u0111\u1ec3 bi\u1ebft chi ti\u1ebft.
vnstock cung c\u1ea5p c\u00e1c h\u00e0m s\u1eed d\u1ee5ng API \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. \u0110i\u1ec1u n\u00e0y c\u00f3 ngh\u0129a l\u00e0 b\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng web app v\u1edbi r\u1ea5t nhi\u1ec1u d\u1ecbch v\u1ee5 m\u00e0 kh\u00f4ng c\u1ea7n lo \u0111\u1ebfn kh\u00e2u thi\u1ebft l\u1eadp c\u01a1 s\u1edf d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o v\u00e0 Huggingface l\u00e0 m\u1ed9t trong s\u1ed1 \u0111\u00f3. M\u1ecdi th\u1ee9 m\u1edf, d\u1ec5 s\u1eed d\u1ee5ng v\u00e0 mi\u1ec5n ph\u00ed.
D\u1eef li\u1ec7u gi\u00e1 c\u1ee7a vnstock c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho c\u00e1c m\u00f4 h\u00ecnh Machine Learning \u0111\u1ec3 ki\u1ec3m th\u1eed tr\u00ean n\u1ec1n t\u1ea3ng Huggingface Spaces, ho\u1eb7c b\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp m\u1ed9t trung t\u00e2m ph\u00e2n t\u00edch t\u1eeb d\u1eef li\u1ec7u to\u00e0n di\u1ec7n m\u00e0 vnstock cung c\u1ea5p v\u1edbi Streamlit, Gradio. L\u1ef1a ch\u1ecdn l\u00e0 \u1edf b\u1ea1n.
Gi\u1edbi thi\u1ec7u
pytesseract l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n Python gi\u00fap ng\u01b0\u1eddi d\u00f9ng s\u1eed d\u1ee5ng c\u00f4ng c\u1ee5 Tesseract OCR c\u1ee7a Google m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. Tesseract l\u00e0 c\u00f4ng c\u1ee5 OCR m\u00e3 ngu\u1ed3n m\u1edf, m\u1ea1nh m\u1ebd v\u00e0 h\u1ed7 tr\u1ee3 nhi\u1ec1u ng\u00f4n ng\u1eef bao g\u1ed3m ti\u1ebfng Vi\u1ec7t. Vnstock gi\u1edbi thi\u1ec7u \u0111\u1ebfn b\u1ea1n c\u00e1ch th\u1ee9c nh\u1eadn d\u1ea1ng v\u0103n b\u1ea3n t\u1eeb h\u00ecnh \u1ea3nh v\u1edbi pytesseract t\u1eeb \u0111\u01a1n gi\u1ea3n \u0111\u1ebfn lu\u1ed3ng t\u1ef1 \u0111\u1ed9ng chuy\u1ec3n \u0111\u1ed5i to\u00e0n b\u1ed9 t\u00e0i li\u1ec7u m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng t\u1eeb Google Colab.
PyTesseract c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 tr\u00edch xu\u1ea5t v\u0103n b\u1ea3n t\u1eeb t\u1ea5t c\u1ea3 c\u00e1c \u0111\u1ecbnh d\u1ea1ng h\u00ecnh \u1ea3nh \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 b\u1edfi g\u00f3i th\u01b0 vi\u1ec7n Pillow v\u00e0 Leptonica, bao g\u1ed3m JPEG
, PNG
, GIF
, BMP
, TIFF
, v.v.
PyTesseract c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong nhi\u1ec1u \u1ee9ng d\u1ee5ng kh\u00e1c nhau, c\u1ee5 th\u1ec3 v\u1edbi l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh/ch\u1ee9ng kho\u00e1n th\u00ec b\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n \u0111\u1ed5i t\u00e0i li\u1ec7u scan sang v\u0103n b\u1ea3n k\u1ef9 thu\u1eadt s\u1ed1 \u0111\u1ed1i v\u1edbi c\u00e1c t\u00e0i li\u1ec7u ph\u1ed5 bi\u1ebfn nh\u01b0:
C\u00e1c t\u00e0i li\u1ec7u scan n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00ecm th\u1ea5y tr\u00ean Vietstock ho\u1eb7c CafeF.
\ud83d\udc47 B\u1ea1n c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u v\u1edbi Demo Notebook d\u01b0\u1edbi \u0111\u00e2y, \u0111\u1ecdc th\u00eam chi ti\u1ebft \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ec5 d\u00e0ng.
M\u1edf Demo Notebook
T\u00ednh n\u0103ng n\u00e0y hi\u1ec7n t\u1ea1i \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean m\u00e3 ngu\u1ed3n, nh\u00e1nh beta
tr\u00ean Github. Xem h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t t\u1ea1i \u0111\u00e2y
C\u00e0i \u0111\u1eb7t \u00e1p d\u1ee5ng cho m\u00f4i tr\u01b0\u1eddng Linux
C\u00e0i \u0111\u1eb7t m\u00f4i tr\u01b0\u1eddng \u0111\u1ec3 ch\u1ea1y Pytesseract t\u1eeb Google Colab tr\u00ean n\u1ec1n h\u1ec7 \u0111i\u1ec1u h\u00e0nh Ubuntu di\u1ec5n ra kh\u00e1 \u0111\u01a1n gi\u1ea3n.
B\u1ea1n copy c\u00e1c d\u00f2ng l\u1ec7nh sau v\u00e0 paste v\u00e0o m\u1ed9t \u00f4 l\u1ec7nh m\u1edbi \u0111\u1ec3 th\u1ef1c thi:
!sudo apt install tesseract-ocr\n!pip install pytesseract\n!sudo apt-get install tesseract-ocr-vie # C\u00e0i \u0111\u1eb7t g\u00f3i ng\u00f4n ng\u1eef ti\u1ebfng Vi\u1ec7t\n
Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t di\u1ec5n ra trong kho\u1ea3ng 30 gi\u00e2y.
"},{"location":"integrate/pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban/#windows","title":"Windows","text":"C\u00e0i \u0111\u1eb7t \u00e1p d\u1ee5ng cho m\u00f4i tr\u01b0\u1eddng Linux
\u0110\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c Pytesseract t\u1eeb m\u00e1y t\u00ednh Windows, qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t s\u1ebd ph\u1ee9c t\u1ea1p h\u01a1n \u0111\u00f4i ch\u00fat.
.exe
l\u00e0 b\u1eaft \u0111\u1ea7u qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t, m\u1ecdi t\u00f9y ch\u1ecdn \u0111\u1ec3 m\u1eb7c \u0111\u1ecbnh, b\u1ea5m Next l\u00e0 \u0111\u01b0\u1ee3c. B\u1ea1n ch\u00fa \u00fd ghi nh\u1edb \u0111\u1ecba ch\u1ec9 c\u00e0i \u0111\u1eb7t Tesseract-OCR tr\u00ean m\u00e1y t\u00ednh trong qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t. vie.traineddata
m\u1edbi v\u1eeba t\u1ea3i v\u1ec1 v\u00e0o th\u01b0 m\u1ee5c Tesseract-OCR. T\u1eeb th\u01b0 m\u1ee5c ch\u1ee9a file b\u1ea1n l\u01b0u, v\u00ed d\u1ee5 Downloads, nh\u1eadp cmd
v\u00e0o \u00f4 \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c \u0111\u1ec3 m\u1edf giao di\u1ec7n d\u00f2ng l\u1ec7nh v\u00e0 ch\u1ea1y l\u1ec7nh di chuy\u1ec3n file d\u01b0\u1edbi \u0111\u00e2y. Trong \u0111\u00f3, b\u1ea1n thay th\u1ebf {USER_NAME_CUA_BAN}
th\u00e0nh t\u00ean username tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n. V\u00ed d\u1ee5 tr\u00ean m\u00e1y t\u00ednh c\u1ee7a m\u00ecnh th\u00ec user name l\u00e0 mrthi
nh\u01b0 trong c\u00e1c h\u00ecnh minh h\u1ecda b\u00ean d\u01b0\u1edbi. move vie.traineddata C:\\Users\\{USER_NAME_CUA_BAN}\\AppData\\Local\\Programs\\Tesseract-OCR\\tessdata \n
M\u1edf Command Prompt t\u1eeb File Explorer
Di chuy\u1ec3n file trong Command Prompt
B\u1ea1n ch\u1ec9 c\u1ea7n n\u1ea1p h\u00e0m \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi vnstock \u0111\u1ec3 th\u1ef1c hi\u1ec7n nh\u1eadn di\u1ec7n \u1ea3nh th\u00e0nh v\u0103n b\u1ea3n nh\u01b0 sau. Trong \u0111\u00f3 image_path
l\u00e0 \u0111\u1ecba ch\u1ec9 file \u1ea3nh c\u1ea7n nh\u1eadn d\u1ea1ng.
from vnstock.ocr import *\nimage_ocr(image_path=r'/content/chrome_runiB0dpB3.png', lang='vie', output_path='', file_name='string_from_image.txt')\n
C\u00e1c tham s\u1ed1 kh\u00e1c nh\u01b0 sau:
output_path
: \u0111\u1ecba ch\u1ec9 l\u01b0u file v\u0103n b\u1ea3n \u0111\u00e3 nh\u1eadn d\u1ea1ng t\u1eeb h\u00ecnh \u1ea3nhfile_name
: \u0111\u1eb7t t\u00ean file v\u0103n b\u1ea3n s\u1ebd l\u01b0u. M\u1eb7c \u0111\u1ecbnh l\u00e0: string_from_image.txt
Sau khi c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp m\u00f4i tr\u01b0\u1eddng \u0111\u00e3 chu\u1ea9n b\u1ecb xong. B\u1ea1n c\u00f3 th\u1ec3 upload h\u00ecnh \u1ea3nh l\u00ean
Nh\u01b0 v\u1eady, ch\u00fang ta c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u tr\u00edch xu\u1ea5t v\u0103n b\u1ea3n t\u1eeb h\u00ecnh \u1ea3nh v\u1eeba upload v\u1edbi c\u00e2u l\u1ec7nh sau:
extracted_text = pytesseract.image_to_string(Image.open('/content/chrome_runiB0dpB3.png'), lang='vie')\nextracted_text\n
\u0110\u1ec3 l\u01b0u v\u0103n b\u1ea3n \u0111\u00e3 tr\u00edch xu\u1ea5t th\u00e0nh file text, b\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng c\u00e2u l\u1ec7nh d\u01b0\u1edbi \u0111\u00e2y:
with open('extracted_text.txt', 'w') as f: # M\u1eb7c \u0111\u1ecbnh l\u01b0u file v\u00e0o th\u01b0 m\u1ee5c \u0111ang l\u00e0m vi\u1ec7c c\u1ee7a Colab, b\u1ecb x\u00f3a khi k\u1ebft th\u00fac phi\u00ean. Ch\u1ecdn \u0111\u1ecba ch\u1ec9 l\u01b0u trong Drive \u0111\u1ec3 thay th\u1ebf.\n\u00a0 \u00a0 f.write(extracted_text)\n
"},{"location":"integrate/pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban/#trich-xuat-toan-bo-van-ban-tu-bao-cao-tai-chinh","title":"\ud83d\udd10 Tr\u00edch xu\u1ea5t to\u00e0n b\u1ed9 v\u0103n b\u1ea3n t\u1eeb b\u00e1o c\u00e1o t\u00e0i ch\u00ednh","text":"Ch\u01b0\u01a1ng tr\u00ecnh vi\u1ebft s\u1eb5n
B\u1ea1n c\u1ea7n tham gia g\u00f3i vnstock-data-pro th\u00f4ng qua Vnstock Insiders Program \u0111\u1ec3 c\u00f3 th\u1ec3 tr\u00edch xu\u1ea5t to\u00e0n b\u1ed9 m\u1ed9t t\u00e0i li\u1ec7u b\u1ea5t k\u1ef3 ho\u1eb7c b\u00e1o c\u00e1o t\u00e0i ch\u00ednh c\u1ee7a c\u00f4ng ty b\u1ea1n quan t\u00e2m s\u1eed d\u1ee5ng ch\u01b0\u01a1ng tr\u00ecnh vi\u1ebft s\u1eb5n t\u1eeb vnstock gi\u00fap t\u1ef1 \u0111\u1ed9ng h\u00f3a ho\u00e0n to\u00e0n qu\u00e1 tr\u00ecnh t\u1eeb kh\u00e2u truy c\u1eadp t\u00e0i li\u1ec7u t\u1eeb API. Sau khi t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n, b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c quy\u1ec1n truy c\u1eadp private repo tr\u00ean Github \u0111\u1ec3 s\u1eed d\u1ee5ng k\u00e8m h\u01b0\u1edbng d\u1eabn chi ti\u1ebft.
"},{"location":"integrate/ssi_fast_connect_api/","title":"SSI Fast Connect API","text":"Fast Connect API
SSI cung c\u1ea5p b\u1ed9 APIs cho ph\u00e9p thi\u1ebft l\u1eadp giao d\u1ecbch t\u1ef1 \u0111\u1ed9ng (FastConnect Trading) v\u00e0 truy xu\u1ea5t d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n c\u01a1 b\u1ea3n (FastConnect Data) cho ng\u00f4n ng\u1eef Python. C\u00f4ng c\u1ee5 n\u00e0y ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed, b\u1ea1n c\u00f3 th\u1ec3 xin c\u1ea5p quy\u1ec1n s\u1eed d\u1ee5ng b\u1eb1ng c\u00e1ch mang CCCD ra ph\u00f2ng giao d\u1ecbch c\u1ee7a SSI g\u1ea7n nh\u1ea5t \u0111\u1ec3 \u0111\u0103ng k\u00fd v\u00e0 k\u00edch ho\u1ea1t.
vnstock cung c\u1ea5p t\u1edbi c\u00e1c b\u1ea1n c\u00e1c h\u00e0m \u0111\u01b0\u1ee3c t\u00f9y bi\u1ebfn s\u1eb5n gi\u00fap d\u1ec5 d\u00e0ng s\u1eed d\u1ee5ng m\u00e0 kh\u00f4ng c\u1ea7n b\u1ecf nhi\u1ec1u th\u1eddi gian nghi\u00ean c\u1ee9u v\u00e0 t\u00f9y bi\u1ebfn t\u1eeb demo s\u01a1 khai do SSI cung c\u1ea5p. B\u1ea1n c\u00f3 th\u1ec3 s\u1edf h\u1eefu g\u00f3i ph\u1ea7n m\u1ec1m t\u00edch h\u1ee3p n\u00e0y th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh Github Sponsor. Theo \u0111\u00f3, b\u1ea1n s\u1ebd tr\u1edf th\u00e0nh nh\u00e0 t\u00e0i tr\u1ee3 c\u1ee7a vnstock \u0111\u1ec3 c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 s\u1eed d\u1ee5ng c\u00e1c t\u00ednh n\u0103ng n\u00e0y \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh d\u01b0\u1edbi d\u1ea1ng g\u00f3i ph\u1ea7n m\u1ec1m n\u00e2ng cao cho vnstock. Truy c\u1eadp trang t\u00e0i tr\u1ee3 v\u00e0 ch\u1ecdn g\u00f3i ph\u00f9 h\u1ee3p v\u00e0 thanh to\u00e1n b\u1eb1ng th\u1ebb Visa/Master \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ngay h\u00f4m nay.
K\u1ebft n\u1ed1i SSI v\u1edbi vnstock
Chia s\u1ebb th\u00eam:
\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng th\u00e0nh th\u1ea1o ssi_fc_data
v\u00e0 ssi_fc_trading
, b\u1ea1n c\u1ea7n c\u00f3 kinh nghi\u1ec7m s\u1eed d\u1ee5ng Python v\u00e0 d\u00e0nh kh\u00e1 nhi\u1ec1u th\u1eddi gian nghi\u00ean c\u1ee9u b\u1edfi nh\u1eefng \u0111o\u1ea1n code m\u1eabu \u0111\u01b0\u1ee3c cung c\u1ea5p \u1edf m\u1ee9c t\u1ed1i thi\u1ec3u \u0111\u1ec3 b\u1ea1n h\u00ecnh dung \u0111\u01b0\u1ee3c API cung c\u1ea5p d\u1eef li\u1ec7u g\u00ec. D\u1eef li\u1ec7u n\u00e0y m\u1eb7c \u0111\u1ecbnh \u0111\u01b0\u1ee3c in ra m\u00e0n h\u00ecnh Terminal/Command Prompt nh\u01b0ng kh\u00f4ng ph\u1ea3i ki\u1ec3u d\u1eef li\u1ec7u object \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ngay. B\u1ea1n c\u00f3 th\u1ec3 xem th\u00eam chi ti\u1ebft t\u1ea1i ticket t\u00f4i nh\u1edd team Dev c\u1ee7a SSI gi\u1ea3i \u0111\u00e1p. Hi\u1ec7n t\u1ea1i c\u00e1c issue hay trao \u0111\u1ed5i qua Github th\u01b0\u1eddng kh\u00f4ng \u0111\u01b0\u1ee3c ph\u1ea3n h\u1ed3i nhanh ch\u00f3ng. \u0110i\u1ec3m t\u00edch c\u1ef1c l\u00e0 t\u00e0i li\u1ec7u h\u01b0\u1edbng d\u1eabn \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt chu\u1ea9n h\u01a1n sau sau khi t\u00f4i g\u1eedi ph\u1ea3n h\u1ed3i.
Thi\u1ebft l\u1eadp x\u00e1c th\u1ef1c d\u1ecbch v\u1ee5
\u0110\u1ec3 \u0111\u0103ng k\u00fd s\u1eed d\u1ee5ng API \u0111ang \u0111\u01b0\u1ee3c cung c\u1ea5p mi\u1ec5n ph\u00ed, b\u1ea1n \u0111em theo CCCD ra ph\u00f2ng giao d\u1ecbch SSI g\u1eb7p l\u1ec5 t\u00e2n ho\u1eb7c m\u00f4i gi\u1edbi \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 k\u00edch ho\u1ea1t d\u1ecbch v\u1ee5. Sau m\u1ed7i 3 th\u00e1ng th\u00ec d\u1ecbch v\u1ee5 s\u1ebd c\u1ea7n gia h\u1ea1n l\u1ea1i b\u1eb1ng c\u00e1ch g\u1ecdi hotline ho\u1eb7c g\u1eedi email y\u00eau c\u1ea7u.
C\u00e1c b\u01b0\u1edbc th\u1ef1c hi\u1ec7n thi\u1ebft l\u1eadp x\u00e1c th\u1ef1c ng\u01b0\u1eddi d\u00f9ng \u0111\u1ec3 k\u1ebft n\u1ed1i API nh\u01b0 sau:
D\u1ecbch v\u1ee5 & Ti\u1ec7n \u00edch
> D\u1ecbch v\u1ee5 API
nh\u01b0 h\u00ecnh minh h\u1ecda b\u00ean d\u01b0\u1edbi. Ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng ch\u00eca kh\u00f3a \u0111\u1ec3 l\u1ea5y m\u00e3 x\u00e1c th\u1ef1c. B\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u cung c\u1ea5p OTP \u0111\u01b0\u1ee3c g\u1eedi qua tin nh\u1eafn (ho\u1eb7c h\u00ecnh th\u1ee9c b\u1ea1n \u0111\u0103ng k\u00fd t\u01b0\u01a1ng \u1ee9ng). ConsumerID
v\u00e0 ConsumerSecret
v\u00e0 l\u01b0u v\u00e0o file \u0111\u1ec3 ti\u1ebfp t\u1ee5c c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp ti\u1ebfp theo. H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng module SSI Fast Connect API trong vnstock
Trong h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y, b\u1ea1n s\u1ebd l\u00e0m quen v\u1edbi c\u00e1ch s\u1eed d\u1ee5ng module ssi
trong vnstock-pro-data
cho ph\u00e9p b\u1ea1n k\u1ebft n\u1ed1i t\u1edbi API d\u1eef li\u1ec7u c\u1ee7a SSI th\u00f4ng qua c\u00e1c h\u00e0m \u0111\u00e3 t\u00f9y bi\u1ebfn m\u00e0 vnstock cung c\u1ea5p.
B\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u1ed9t \u1ee9ng d\u1ee5ng so\u1ea1n th\u1ea3o l\u1ec7nh nh\u01b0 Visual Studio Code ho\u1eb7c \u0111\u01a1n gi\u1ea3n l\u00e0 notepad v\u00e0 t\u1ea1o ra m\u1ed9t file v\u0103n b\u1ea3n c\u00f3 t\u00ean config.py
v\u1edbi n\u1ed9i dung nh\u01b0 sau:
auth_type = 'Bearer'\nconsumerID = 'ID_C\u1ee6A_B\u1ea0N'\nconsumerSecret = 'SECRET_C\u1ee6A_B\u1ea0N'\naccess_jwt = 'TOKEN_C\u1ee6A_B\u1ea0N'\nurl = 'https://fc-data.ssi.com.vn/' \nstream_url = 'https://fc-data.ssi.com.vn/'\n
Trong \u0111\u00f3 ID v\u00e0 Secret l\u00e0 2 th\u00f4ng tin t\u01b0\u01a1ng \u1ee9ng l\u1ea5y t\u1eeb iBoard nh\u01b0 h\u01b0\u1edbng d\u1eabn \u1edf tr\u00ean. Th\u00f4ng tin access_jwt
token c\u1ea7n ph\u1ea3i ch\u1ea1y l\u1ec7nh trong ch\u01b0\u01a1ng tr\u00ecnh Python \u0111\u1ec3 l\u1ea5y. B\u1ea1n m\u1edf Terminal/Command Prompt t\u1eeb th\u01b0 m\u1ee5c ch\u1ee9a file config.py b\u1eb1ng c\u00e1ch g\u00f5 cmd
v\u00e0o thanh \u0111\u1ecba ch\u1ec9 Windows Explorer. M\u1edf Python trong giao di\u1ec7n d\u00f2ng l\u1ec7nh, ch\u1ea1y c\u00e1c l\u1ec7nh sau:
import config\nfrom ssi_fc_data import fc_md_client , model\nclient = fc_md_client.MarketDataClient(config)\nprint(client.access_token(model.accessToken(config.consumerID, config.consumerSecret)))\n
Copy \u0111o\u1ea1n token \u0111\u01b0\u1ee3c in ra m\u00e0n h\u00ecnh v\u00e0 l\u01b0u v\u00e0o file config.py t\u1ea1i m\u1ee5c access_jwt
.
T\u1edbi \u0111\u00e2y, b\u1ea1n c\u00f3 th\u1ec3 l\u01b0u file config.py
v\u00e0o m\u1ed9t n\u01a1i b\u1ea5t k\u1ef3 \u0111\u1ec3 b\u1ea3o m\u1eadt, sau \u0111\u00f3 ch\u00e9p \u0111\u01b0\u1eddng d\u1eabn file n\u00e0y \u0111\u1ec3 thi\u1ebft l\u1eadp \u1edf b\u01b0\u1edbc ti\u1ebfp theo trong ch\u01b0\u01a1ng tr\u00ecnh Python (file .py
ho\u1eb7c Jupyter Notebook). \u0110\u01b0\u1eddng d\u1eabn file \u0111\u01b0\u1ee3c thay th\u1ebf \u0111o\u1ea1n TH\u01af_M\u1ee4C_CH\u1ee8A_FILE_CONFIG_C\u1ee6A_B\u1ea0N
.
from vnstock_data.ssi import *\nimport sys\nsys.path.append(r'TH\u01af_M\u1ee4C_CH\u1ee8A_FILE_CONFIG_C\u1ee6A_B\u1ea0N') # Thay \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a file config.py c\u1ee7a b\u1ea1n t\u1ea1i \u0111\u00e2y. M\u1eabu file config c\u00f3 trong th\u01b0 m\u1ee5c docs c\u1ee7a repo\nimport config\n\nclient = fc_md_client.MarketDataClient(config)\n
"},{"location":"integrate/ssi_fast_connect_api/#tai-du-lieu","title":"T\u1ea3i d\u1eef li\u1ec7u","text":""},{"location":"integrate/ssi_fast_connect_api/#danh-sach-ma-chung-khoan-theo-san","title":"Danh s\u00e1ch m\u00e3 ch\u1ee9ng kho\u00e1n theo s\u00e0n","text":"S\u1eed d\u1ee5ng h\u00e0m securities_list
nh\u01b0 sau:
securities_list(market='HOSE', size=1000, page=1, client=client, config=config)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.market
: t\u00ean s\u00e0n giao d\u1ecbch, nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb: HOSE
, HNX
, UPCOM
cho giao d\u1ecbch c\u01a1 s\u1edf ho\u1eb7c DER
cho giao d\u1ecbch Ph\u00e1i sinhsize
: S\u1ed1 k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 cho m\u1ed9t trangpage
: S\u1ed1 th\u1ee9 t\u1ef1 trang. N\u1ebfu b\u1ea1n mu\u1ed1n l\u1ea5y h\u1ebft t\u1ea5t c\u1ea3 m\u00e3 trong m\u1ed9t l\u1ea7n tra c\u1ee9u th\u00ec \u0111\u1eb7t tham s\u1ed1 size
\u0111\u1ee7 l\u1edbn, n\u1ebfu ch\u1ec9 mu\u1ed1n l\u1ea5y m\u1ed9t ph\u1ea7n k\u1ebft qu\u1ea3 th\u00ec ch\u1ec9 \u0111\u1ecbnh r\u00f5 size
v\u00e0 page
.Minh h\u1ecda v\u00e0 k\u1ebft qu\u1ea3 nh\u01b0 sau:
>>> securities_list(market='HOSE', page=1, size=1000, client=client, config=config)\n\nTotal records: 414\n Market Symbol StockName StockEnName\n0 HOSE AAA C\u00f4ng ty C\u1ed5 ph\u1ea7n Nh\u1ef1a An Ph\u00e1t Xanh An Phat Bioplastics Joint Stock Company\n1 HOSE AAM C\u00f4ng ty C\u1ed5 Ph\u1ea7n Th\u1ee7y S\u1ea3n MeKong Mekong Fisheries Joint Stock Company\n2 HOSE AAT C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Ti\u00ean S\u01a1n Thanh H\u00f3a Tien Son Thanh Hoa Group Joint Stock Company\n3 HOSE ABR C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 Nh\u00e3n Hi\u1ec7u Vi\u1ec7t Viet Brand Invest Joint Stock Company\n4 HOSE ABS C\u00f4ng ty C\u1ed5 ph\u1ea7n D\u1ecbch v\u1ee5 N\u00f4ng nghi\u1ec7p B\u00ecnh Thu\u1eadn BinhThuan Agriculture Services Joint Stock Com...\n.. ... ... ... ...\n409 HOSE VSI C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 v\u00e0 X\u00e2y d\u1ef1ng C\u1ea5p tho\u00e1t n\u01b0\u1edbc Water Supply Sewerage Construction and Investm...\n410 HOSE VTB C\u00f4ng ty C\u1ed5 ph\u1ea7n Viettronics T\u00e2n B\u00ecnh Viettronics Tan Binh Joint Stock Company\n411 HOSE VTO C\u00f4ng ty C\u1ed5 ph\u1ea7n V\u1eadn t\u1ea3i X\u0103ng d\u1ea7u VITACO Vietnam Tanker Joint Stock Company\n412 HOSE YBM C\u00f4ng ty C\u1ed5 ph\u1ea7n Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i Yen Bai Industry Mineral Joint Stock Company\n413 HOSE YEG C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Yeah1 Yeah1 Group Corporation\n\n[414 rows x 4 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#thong-tin-ma-chung-khoan-cu-the","title":"Th\u00f4ng tin m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ee5 th\u1ec3","text":"\u0110\u1ec3 tr\u00edch xu\u1ea5t th\u00f4ng tin m\u1ed9t m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea5t k\u1ef3 t\u1eeb h\u1ec7 th\u1ed1ng, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m get_securities_details
nh\u01b0 sau:
get_securities_details(client=client, config=config, symbol='ACB', market='HOSE', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9umarket
>>> get_securities_details(client=client, config=config, symbol='ACB', market='HOSE', page=1, pageSize=100).T\n 0\nSymbol ACB\nSymbolName Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n \u00c1 Ch\u00e2u\nSymbolEngName Asia Commercial Joint Stock Bank\nSecType S\nMarketId HOSE\nExchange HOSE\nLotSize 100\nIssueDate\nMaturityDate\nFirstTradingDate\nLastTradingDate\nContractMultiplier 0\nSettlMethod C\nExercisePrice 0\nExerciseStyle\nExcerciseRatio 0\nListedShare 3884050358\nTickPrice1 1\nTickIncrement1 10\nTickPrice2 10000\nTickIncrement2 50\nTickPrice3 50000\nTickIncrement3 100\nReportDate 15/12/2023\n
"},{"location":"integrate/ssi_fast_connect_api/#lay-danh-sach-cac-ma-chi-so","title":"L\u1ea5y danh s\u00e1ch c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1","text":"get_index_list(client, config, exchange='', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.exchange
: s\u00e0n giao d\u1ecbch (kh\u00f4ng b\u1eaft bu\u1ed9c \u0111i\u1ec1n). Tr\u1ea3 to\u00e0n b\u1ed9 d\u1eef li\u1ec7u c\u00e1c s\u00e0n n\u1ebfu \u0111\u1ec3 tr\u1ed1ng.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_index_list(client, config, exchange='', page=1, pageSize=100)\n\n IndexCode IndexName Exchange\n0 HNX30 HNX30 HNX\n1 HNXIndex HNXIndex HNX\n2 HNXUpcomIndex HNXUpcomIndex HNX\n3 VN100 VN100 HOSE\n4 VN30 VN30 HOSE\n5 VNALL VNAllshare HOSE\n6 VNCOND VNAllShare\u00a0H\u00e0ng\u00a0Ti\u00eau\u00a0d\u00f9ng HOSE\n7 VNCONS VNAllShare\u00a0H\u00e0ng\u00a0thi\u00eau\u00a0d\u00f9ng\u00a0thi\u1ebft\u00a0y\u1ebfu HOSE\n8 VNDIAMOND Vietnam Diamond Index HOSE\n9 VNENE VNAllShare\u00a0N\u0103ng\u00a0l\u01b0\u1ee3ng HOSE\n10 VNFIN VNAllShare\u00a0T\u00e0i\u00a0ch\u00ednh HOSE\n11 VNFINLEAD Vietnam Diamond Index HOSE\n12 VNFINSELECT Vietnam Diamond Index HOSE\n13 VNHEAL VNAllShare\u00a0Ch\u0103m\u00a0s\u00f3c\u00a0s\u1ee9c\u00a0kh\u1ecfe HOSE\n14 VNIND VNAllShare\u00a0C\u00f4ng\u00a0nghi\u1ec7p HOSE\n15 VNIT VNAllShare\u00a0C\u00f4ng\u00a0ngh\u1ec7\u00a0th\u00f4ng\u00a0tin HOSE\n16 VNIndex VNINDEX HOSE\n17 VNMAT VNAllShare\u00a0Nguy\u00ean\u00a0v\u1eadt\u00a0li\u1ec7u HOSE\n18 VNMID VNMidcap\u00a0 HOSE\n19 VNREAL VNAllShare\u00a0B\u1ea5t\u00a0\u0111\u1ed9ng\u00a0s\u1ea3n HOSE\n20 VNSI VNStability\u00a0Index HOSE\n21 VNSML VNSmallcap HOSE\n22 VNUTI VNAllShare\u00a0D\u1ecbch\u00a0v\u1ee5\u00a0ti\u1ec7n\u00a0\u00edch HOSE\n23 VNX50 VNX50 HOSE\n24 VNXALL VNXAllshare HOSE\n
"},{"location":"integrate/ssi_fast_connect_api/#liet-ke-cac-ma-chung-khoan-thuoc-mot-ma-chi-so","title":"Li\u1ec7t k\u00ea c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n thu\u1ed9c m\u1ed9t m\u00e3 ch\u1ec9 s\u1ed1","text":"get_index_component(client, config, index='VN30', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.index
: M\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. L\u1ea5y trong danh s\u00e1ch tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m get_index_list
.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_index_component(client, config, index='VN30', page=1, pageSize=100)\nIndex: VN30 - HOSE. Total 30 symbols\n StockSymbol\n0 ACB\n1 BCM\n2 BID\n3 BVH\n4 CTG\n5 FPT\n...\n25 VIC\n26 VJC\n27 VNM\n28 VPB\n29 VRE\n
"},{"location":"integrate/ssi_fast_connect_api/#truy-xuat-du-lieu-gia-lich-su-ohlcv","title":"Truy xu\u1ea5t d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed OHLCV","text":"Tips
V\u1edbi h\u00e0m get_daily_ohlc
d\u01b0\u1edbi \u0111\u00e2y tr\u1ea3 v\u1ec1 k\u1ebft qu\u1ea3 r\u1ea5t ch\u1eadm so v\u1edbi khi b\u1ea1n truy xu\u1ea5t d\u1eef li\u1ec7u gi\u00e1 t\u1eeb \u0111\u1ed3 th\u1ecb n\u1ebfn tr\u00ean web. Tr\u1ea3i nghi\u1ec7m c\u1ee7a t\u00f4i khi xu\u1ea5t to\u00e0n b\u1ed9 d\u1eef li\u1ec7u c\u1ee7a m\u00e3 c\u1ed5 phi\u1ebfu REE t\u1eeb n\u0103m 2000 m\u1ea5t h\u01a1n 30s trong khi d\u1eef li\u1ec7u t\u01b0\u01a1ng \u0111\u01b0\u01a1ng \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 b\u1eb1ng Public API c\u1ee7a SSI c\u00f3 \u0111\u01b0\u1ee3c trong 2s.
get_daily_ohlc(client, config, symbol='REE', fromDate='01/01/2000', toDate='15/12/2023', ascending=True, page=1, pageSize=6000)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
ascending
: True ho\u1eb7c False \u0111\u1ec3 ch\u1ecdn s\u1eafp x\u1ebfp k\u1ebft qu\u1ea3 theo chi\u1ec1u thu\u1eadn/ngh\u1ecbch.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_daily_ohlc(client, config, symbol='REE', fromDate='01/01/2000', toDate='15/12/2023', ascending=True, page=1, pageSize=6000)\n\n Symbol Market TradingDate Open High Low Close Volume Value\n0 REE HOSE 28/07/2000 1044 1044 1044 1044 1000 0\n1 REE HOSE 31/07/2000 1063 1063 1063 1063 300 0\n2 REE HOSE 02/08/2000 1083 1083 1083 1083 100 0\n3 REE HOSE 04/08/2000 1102 1102 1102 1102 200 0\n4 REE HOSE 07/08/2000 1122 1122 1122 1122 2800 0\n... ... ... ... ... ... ... ... ... ...\n5675 REE HOSE 11/12/2023 59200 59800 58700 58700 237000 13996810000\n5676 REE HOSE 12/12/2023 58700 59100 58300 59000 287000 16830020000\n5677 REE HOSE 13/12/2023 59200 59200 57500 57700 587800 34240060000.0002\n5678 REE HOSE 14/12/2023 58100 58400 57100 57100 278100 16003970000\n5679 REE HOSE 15/12/2023 57200 58000 56500 56700 513300 29183299999.9998\n\n[5680 rows x 9 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#du-lieu-tick-ohlcv-cua-ma-chung-khoan-trong-ngay-giao-dich-intraday","title":"D\u1eef li\u1ec7u tick OHLCV c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n trong ng\u00e0y giao d\u1ecbch (Intraday)","text":"get_intraday_ohlc(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, ascending=True)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_intraday_ohlc(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, ascending=True, resolution=1)\n\n Symbol Value TradingDate Time Open High Low Close Volume\n0 SSI 28650 25/07/2023 09:15:52 28700 28800 28650 28650 153400\n1 SSI 28600 25/07/2023 09:16:57 28650 28650 28600 28600 15500\n2 SSI 28600 25/07/2023 09:17:59 28650 28650 28600 28600 50600\n3 SSI 28550 25/07/2023 09:18:56 28600 28600 28550 28550 27900\n4 SSI 28600 25/07/2023 09:19:58 28600 28600 28550 28600 35500\n.. ... ... ... ... ... ... ... ... ...\n995 SSI 29550 31/07/2023 10:44:55 29550 29550 29500 29550 132400\n996 SSI 29500 31/07/2023 10:45:53 29500 29550 29500 29500 369300\n997 SSI 29400 31/07/2023 10:46:49 29500 29500 29400 29400 124900\n998 SSI 29400 31/07/2023 10:47:49 29400 29450 29400 29400 69900\n999 SSI 29400 31/07/2023 10:48:57 29400 29450 29400 29400 20600\n\n[1000 rows x 9 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#thong-tin-giao-dich-theo-ngay-cua-ma-chung-khoan","title":"Th\u00f4ng tin giao d\u1ecbch theo ng\u00e0y c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n","text":"```shell\n>>> get_daily_stock_price(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, market='')\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.market
: S\u00e0n giao d\u1ecbch, \u0111\u1ec3 tr\u1ed1ng n\u1ebfu mu\u1ed1n l\u1ea5y t\u1ea5t c\u1ea3 k\u1ebft qu\u1ea3 t\u1eeb c\u00e1c s\u00e0n.>>> get_daily_stock_price(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, market='')\n\n TradingDate PriceChange PerPriceChange CeilingPrice ... TotalTradedVol TotalTradedValue Symbol Time\n0 31/07/2023 -100 -0.30 31800 ... 15219300 450985285000.0070 SSI None\n1 28/07/2023 300 1 31500 ... 13130200 389080050000.0010 SSI None\n2 27/07/2023 450 1.60 31000 ... 16465600 482248000000 SSI None\n3 26/07/2023 200 0.70 30800 ... 12780300 367721865000.0020 SSI None\n4 25/07/2023 100 0.30 30700 ... 14449000 415978000000 SSI None\n\n[5 rows x 31 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#ket-qua-giao-dich-cua-ma-chi-so-theo-ngay","title":"K\u1ebft qu\u1ea3 giao d\u1ecbch c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1 theo ng\u00e0y","text":"Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.index
: m\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.orderBy
: ch\u1ecdn c\u1ed9t d\u00f9ng l\u00e0m ti\u00eau ch\u00ed s\u1eafp x\u1ebfp th\u1ee9 t\u1ef1 k\u1ebft qu\u1ea3 hi\u1ec3n th\u1ecb.order
: th\u1ee9 t\u1ef1 s\u1eafp x\u1ebfp k\u1ebft qu\u1ea3. desc
cho s\u1eafp x\u1ebfp theo chi\u1ec1u ngh\u1ecbch, asc
cho s\u1eafp x\u1ebfp theo chi\u1ec1u thu\u1eadn.>>> get_daily_index(client, config, index='VN30', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, orderBy='Tradingdate', order='desc', request_id='')\n\n IndexId IndexValue TradingDate Change RatioChange ... TotalDealVol TotalDealVal TotalVol TotalVal TradingSession\n0 VN30 1230.81 31/07/2023 18.36 1.5143 ... 31046442 727903000000 325942142 9306421000000\n C\n1 VN30 1212.45 28/07/2023 12.77 1.0645 ... 17227339 570484000000 268863339 7303088000000\n C\n2 VN30 1199.68 27/07/2023 -1.75 -0.1457 ... 36187850 992090000000 299632550 7938811000000\n C\n3 VN30 1201.43 26/07/2023 3.42 0.2855 ... 19422282 599445000000 266954582 6817668000000\n C\n4 VN30 1198.01 25/07/2023 4.87 0.4082 ... 32883479 911331000000 286220979 7918426000000\n C\n\n[5 rows x 19 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#streaming-du-lieu","title":"Streaming d\u1eef li\u1ec7u","text":"start_market_data_stream(config, channel='X-QUOTE:HCM')\n
Trong \u0111\u00f3:
config
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.channel
: K\u00eanh streaming, \u0111\u01b0\u1ee3c t\u1ea1o ra b\u1eb1ng c\u00e1ch k\u1ebft h\u1ee3p m\u00e3 lo\u1ea1i d\u1eef li\u1ec7u v\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n/ch\u1ec9 s\u1ed1 t\u01b0\u01a1ng \u1ee9ng. F:SSI
ho\u1eb7c F:SSI-PAN
ho\u1eb7cF:ALL
Tr\u1ea3 v\u1ec1 th\u00f4ng tin phi\u00ean giao d\u1ecbch v\u00e0 tr\u1ea1ng th\u00e1i giao d\u1ecbch c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL
\u0111\u1ec3 l\u1ea5y th\u00f4ng tin room c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u bid/ask X
X-QUOTE:SSI
ho\u1eb7c X-QUOTE:ALL
D\u1eef li\u1ec7u bid/ask c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n. Trong \u0111\u00f3, ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. D\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh X
X-TRADE:SSI
ho\u1eb7c X-TRADE:ALL
ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. D\u1eef li\u1ec7u t\u1ed5ng h\u1ee3p c\u1ee7a th\u00f4ng tin bid/ask v\u00e0 th\u00f4ng tin kh\u1edbp l\u1ec7nh X
X:SSI-VIC
ho\u1eb7c X:ALL
ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\" D\u1eef li\u1ec7u Room n\u01b0\u1edbc ngo\u00e0i R
R:SSI
ho\u1eb7c R:SSI-VIC
ho\u1eb7c R:ALL
C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL \u0111\u1ec3 l\u1ea5y th\u00f4ng tin room c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u ch\u1ec9 s\u1ed1 MI
MI:VN30
ho\u1eb7c MI:VN30-HNXindex
ho\u1eb7c MI:ALL
Cung c\u1ea5p th\u00f4ng tin ch\u1ec9 s\u1ed1 c\u1eadp nh\u1eadt c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c s\u00e0n HOSE, HNX, UPCOM. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". ALL
\u0111\u1ec3 l\u1ea5y to\u00e0n b\u1ed9 th\u00f4ng tin c\u00e1c m\u00e3. D\u1eef li\u1ec7u OHLCV B
B:SSI
; B:SSI-VN30
ho\u1eb7c B:ALL
Tr\u1ea3 v\u1ec1 th\u00f4ng tin open, high, low, close, volume c\u1ee7a c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n/ch\u1ec9 s\u1ed1 theo tick. C\u00e1c m\u00e3 CK/ch\u1ec9 s\u1ed1 \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL \u0111\u1ec3 l\u1ea5y th\u00f4ng tin OHLCV realtime c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> start_market_data_stream(config, channel='X-QUOTE:HCM')\n\n 0\nTradingDate 15/12/2023\nTime 14:45:04\nExchange HOSE\nSymbol HCM\nRType X-QUOTE\nAskPrice1 31500.0\nAskPrice2 31550.0\nAskPrice3 31600.0\nAskVol1 479700.0\nAskVol2 39500.0\nAskVol3 44400.0\nBidPrice1 31350.0\nBidPrice2 31250.0\nBidPrice3 31200.0\nBidVol1 1000.0\nBidVol2 2200.0\nBidVol3 10700.0\nTradingSession PT\n
"},{"location":"integrate/streamlit/","title":"Streamlit","text":"Streamlit x vnstock\"
vnstock
l\u00e0 ngu\u1ed3n d\u1eef li\u1ec7u ho\u00e0n h\u1ea3o \u0111\u1ec3 x\u00e2y d\u1ef1ng trung t\u00e2m ph\u00e2n t\u00edch tr\u1ef1c quan v\u1edbi n\u1ec1n t\u1ea3ng Streamlit s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python.
Vnstock Web App ch\u00ednh l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb ch\u00ednh vnstock \u0111\u1ec3 t\u1ea1o ra \u1ee9ng d\u1ee5ng v\u1edbi giao di\u1ec7n \u0111\u1ed3 h\u1ecda tr\u1ef1c quan v\u00e0 th\u00e2n thi\u1ec7n. \u1ee8ng d\u1ee5ng n\u00e0y ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y, kh\u00f4ng c\u1ea7n thi\u1ebft l\u1eadp b\u1ea5t c\u1ee9 c\u01a1 s\u1edf d\u1eef li\u1ec7u n\u00e0o, d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o c\u1ee7a Web App ch\u00ednh l\u00e0 c\u00e1c APIs do vnstock cung c\u1ea5p. Trong th\u1ef1c t\u1ebf, b\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn ch\u1ea1y Streamlit tr\u00ean m\u00f4i tr\u01b0\u1eddng m\u00e1y t\u00ednh c\u00e1 nh\u00e2n c\u1ee5c b\u1ed9 ho\u1eb7c tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y c\u1ee7a d\u1ecbch v\u1ee5 Streamlit Share hay Huggingface Spaces. L\u1ef1a ch\u1ecdn l\u00e0 \u1edf b\u1ea1n.
\u0110\u1ec3 c\u00f3 th\u1ec3 l\u00e0m ch\u1ee7 Streamlit nhanh ch\u00f3ng v\u1edbi l\u1ed9 tr\u00ecnh \u0111\u00e0o t\u1ea1o th\u1ef1c t\u1ebf, \u1ee9ng d\u1ee5ng cho ch\u00ednh th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 s\u1eed d\u1ee5ng vnstock. B\u1ea1n c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam v\u1edbi Th\u1ecbnh v\u1ec1 kh\u00f3a h\u1ecdc ng\u1eafn h\u1ea1n s\u1eafp tri\u1ec3n khai.
"},{"location":"integrate/ta_lib/","title":"TA-Lib","text":"Gi\u1edbi thi\u1ec7u TA-lib
TA-lib \u0111\u01b0\u1ee3c c\u00e1c l\u1eadp tr\u00ecnh vi\u00ean s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt cho d\u1eef li\u1ec7u t\u00e0i ch\u00ednh, g\u00f3i ph\u1ea7n m\u1ec1m nguy\u00ean b\u1ea3n \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef C/C++.
TA-lib python d\u1ef1a tr\u00ean Cython thay v\u00ec SWIG kh\u00f3 c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng nh\u01b0 g\u00f3i th\u01b0 vi\u1ec7n TA-lib nguy\u00ean b\u1ea3n cho ph\u00e9p c\u1ed9ng \u0111\u1ed3ng s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef Python c\u00f3 th\u1ec3 t\u1eadn d\u1ee5ng to\u00e0n b\u1ed9 s\u1ee9c m\u1ea1nh c\u1ee7a TA-lib trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh.
D\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb h\u00e0m stock_historical_data
do vnstock cung c\u1ea5p c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ho\u00e0n h\u1ea3o v\u1edbi d\u1ef1 \u00e1n t\u00edch h\u1ee3p b\u1ed9 c\u00f4ng c\u1ee5 TA-lib. B\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 c\u00e0i \u0111\u1eb7t TA-lib v\u00e0 s\u1eed d\u1ee5ng c\u00f9ng vnstock (n\u1ebfu ch\u01b0a th\u1eed).
M\u1edf Notebook demo \u0111\u1ec3 s\u1eed d\u1ee5ng code m\u1eabu.
M\u1edf Notebook
"},{"location":"integrate/ta_lib/#moi-truong-local","title":"M\u00f4i tr\u01b0\u1eddng local","text":"B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t chi ti\u1ebft t\u1ea1i \u0111\u00e2y
"},{"location":"integrate/ta_lib/#cai-at-ta-lib-cho-windows","title":"C\u00e0i \u0111\u1eb7t TA-Lib cho Windows","text":"C\u00e1ch \u0111\u01a1n gi\u1ea3n v\u00e0 \u0111\u1ea3m b\u1ea3o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng TA-Lib tr\u00ean m\u00e1y t\u00ednh Windows \u0111\u00f3 l\u00e0 d\u00f9ng file wheel \u0111\u00e3 \u0111\u01b0\u1ee3c build s\u1eb5n t\u1eeb li\u00ean k\u1ebft c\u1ee7a \u0111\u1ea1i h\u1ecdc UCI (University of California, Irvine). C\u00e1ch th\u1ef1c hi\u1ec7n nh\u01b0 sau:
Ctrl
+ F
v\u00e0 t\u00ecm ki\u1ebfm TA-Lib.TA_Lib-0.4.24-cp310-cp310-win_amd64.whl
. Downloads
ch\u1ee9a file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea3i v\u1ec1 trong Terminal/Command Prompt \u0111\u1ec3 c\u00e0i \u0111\u1eb7t. B\u1ea1n c\u00f3 th\u1ec3 m\u1edf Windows Explorer, duy\u1ec7t \u0111\u1ebfn th\u01b0 m\u1ee5c Downloads
v\u00e0 nh\u1eadp cmd.exe
v\u00e0o thanh \u0111\u1ecba ch\u1ec9 c\u1ee7a Windows Explorer \u0111\u1ec3 m\u1edf Command Prompt ho\u1eb7c ch\u1ea1y Command Prompt t\u1eeb Start menu. Nh\u1eadp l\u1ec7nh cd Downloads
\u0111\u1ec3 m\u1edf th\u01b0 m\u1ee5c n\u00e0y trong giao di\u1ec7n d\u00f2ng l\u1ec7nh.Ch\u1ea1y d\u00f2ng l\u1ec7nh pip install TA_Lib-0.4.24-cp310-cp310-win_amd64.whl
\u0111\u1ec3 c\u00e0i \u0111\u1eb7t file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea3i v\u1ec1. Ch\u1edd trong gi\u00e2y l\u00e1t, TA-Lib s\u1ebd \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t.
Gi\u1edbi thi\u1ec7u
vnstock cung c\u1ea5p t\u1edbi b\u1ea1n c\u00e1c h\u00e0m k\u1ebft n\u1ed1i t\u1edbi Telegram API v\u00e0 Slack API cho ph\u00e9p g\u1eedi tin nh\u1eafn, h\u00ecnh \u1ea3nh qua Slack channel v\u00e0 Telegram group. \u0110\u00e2y l\u00e0 t\u00ednh n\u0103ng m\u1edf ra c\u00e1c \u1ee9ng d\u1ee5ng g\u1eedi tin t\u1ee9c, c\u1ea3nh b\u00e1o giao d\u1ecbch v\u00e0 c\u00e1c th\u00f4ng tin quan tr\u1ecdng t\u1edbi b\u1ea1n m\u00e0 kh\u00f4ng c\u1ea7n \u0111i qua b\u1ea5t k\u1ef3 d\u1ecbch v\u1ee5 trung gian n\u00e0o.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng n\u00e0y b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng code m\u1eabu trong file demo notebook chung c\u1ee7a vnstock. C\u00fa ph\u00e1p c\u1ee7a h\u00e0m t\u01b0\u01a1ng \u0111\u1ed1i \u0111\u01a1n gi\u1ea3n.
"},{"location":"integrate/telegram-slack-gui-tin-nhan-thong-bao-qua-chat-tu-python/#telegram","title":"Telegram","text":"Tham kh\u1ea3o b\u00e0i vi\u1ebft tr\u00ean Th\u1ecbnh V\u0169 Blog t\u1ea1i \u0111\u00e2y v\u00e0 \u0111\u00e2y n\u1eefa \u0111\u1ec3 hi\u1ec3u h\u01a1n v\u1ec1 c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp Telegram Bot tr\u01b0\u1edbc khi b\u1ea1n c\u00f3 th\u1ec3 c\u1ea5u h\u00ecnh c\u00e1c h\u00e0m g\u1eedi tin nh\u1eafn d\u01b0\u1edbi \u0111\u00e2y. Th\u1ecbnh c\u0169ng s\u1ebd c\u1eadp nh\u1eadt l\u1ea1i h\u01b0\u1edbng d\u1eabn m\u1edbi nh\u1ea5t trong th\u1eddi gian t\u1edbi.
from vnstock.integration import * # N\u1ebfu \u0111\u00e3 n\u1ea1p t\u1ea5t c\u1ea3 h\u00e0m th\u00ec b\u1ecf qua.\n\ntoken_key = 'TOKEN_KEY_SLACK_C\u1ee6A_B\u1ea0N'\nslack_channel = 'T\u00caN_CHANNEL'\nmessage = 'Tin nh\u1eafn c\u1ee7a b\u1ea1n'\nfile_path = '\u0110\u01af\u1edcNG_D\u1eaaN_\u0110\u1ebeN_FILE_H\u00ccNH_TR\u00caN_M\u00c1Y_T\u00cdNH'\n
B\u00e2y gi\u1edd th\u00ec b\u1ea1n \u0111\u00e3 s\u1eb5n s\u00e0ng \u0111\u1ec3 l\u1ef1a ch\u1ecdn 1 trong 2 h\u00ecnh th\u1ee9c g\u1eedi tin nh\u1eafn
slack_send_file(token_key, slack_channel, text_comment, file_path)\n
pythonslack_send_message(token_key, slack_channel, message)\n
Trong \u0111\u00f3:
token_key
: B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng bot token b\u1eaft \u0111\u1ea7u v\u1edbi xoxb-..
ho\u1eb7c user token b\u1eaft \u0111\u1ea7u v\u1edbi xoxp-..
slack_channel
: l\u00e0 t\u00ean channel, b\u1eaft \u0111\u1ea7u v\u1edbi #
v\u00ed d\u1ee5 #market_trend
text_comment
: caption cho file h\u00ecnh \u1ea3nh g\u1eedi k\u00e8mfile_path
: \u0111\u01b0\u1eddng d\u1eabn t\u1edbi file h\u00ecnh \u1ea3nh tr\u00ean m\u00e1y t\u00ednhmessage
: l\u00e0 n\u1ed9i dung tin nh\u1eafnT\u01b0\u01a1ng t\u1ef1 v\u1edbi c\u00e1c h\u00e0m s\u1eed d\u1ee5ng cho Telegram. B\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp c\u1ea5u h\u00ecnh nh\u1eafn tin t\u1edbi 1 channel Slack b\u1ea5t k\u1ef3 b\u1eb1ng c\u00e1c h\u00e0m d\u01b0\u1edbi \u0111\u00e2y.
from vnstock.integration import * # N\u1ebfu \u0111\u00e3 n\u1ea1p t\u1ea5t c\u1ea3 h\u00e0m th\u00ec b\u1ecf qua.\n\ntoken_key = 'TOKEN_KEY_C\u1ee6A_B\u1ea0N'\nchat_id = 'ID_NH\u00d3M_CHAT'\nmessage = 'Tin nh\u1eafn c\u1ee7a b\u1ea1n'\nfile_path = '\u0110\u01af\u1edcNG_D\u1eaaN_\u0110\u1ebeN_FILE_H\u00ccNH_TR\u00caN_M\u00c1Y_T\u00cdNH'\n
G\u1eedi tin nh\u1eafn k\u00e8m h\u00ecnh: telegram_send_photo(token_key, chat_id, message, file_path)
G\u1eedi tin nh\u1eafn v\u0103n b\u1ea3n: telegram_send_message(token_key, chat_id, message)
Vnstock v\u00e0 streamlit
Vnstock Web App ho\u1ea1t \u0111\u1ed9ng tr\u00ean n\u1ec1n t\u1ea3ng streamlit trong Python. Streamlit c\u0169ng l\u00e0 t\u00ean c\u1ee7a g\u00f3i th\u01b0 vi\u1ec7n m\u00e3 ngu\u1ed3n m\u1edf n\u00e0y. B\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng web app c\u1ee7a m\u00ecnh v\u00e0 host tr\u00ean d\u1ecbch v\u1ee5 Streamlit Share ho\u1eb7c s\u1eed d\u1ee5ng Hugging Face Spaces ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed.
Vnstock Web App l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c APIs do vnstock cung c\u1ea5p \u0111\u1ec3 x\u00e2y d\u1ef1ng \u1ee9ng d\u1ee5ng ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n c\u1ee7a ri\u00eang b\u1ea1n.
B\u1ea1n c\u00f3 th\u1ec3 t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 c\u00e1ch t\u1ea1o ra m\u1ed9t web app v\u1edbi Streamlit v\u00e0 s\u1eed d\u1ee5ng Vnstock thu\u1eadn ti\u1ec7n b\u1edfi Vnstock cung c\u1ea5p s\u1ed1 l\u01b0\u1ee3ng h\u00e0m cho th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam qua APIs \u0111a d\u1ea1ng nh\u1ea5t hi\u1ec7n nay \u0111\u1ec3 gi\u00fap b\u1ea1n ph\u00e2n t\u00edch to\u00e0n di\u1ec7n trong t\u1ea5t c\u1ea3 c\u00e1c th\u01b0 vi\u1ec7n Python. \u0110\u00e2y c\u0169ng l\u00e0 c\u00e1ch d\u1ec5 nh\u1ea5t \u0111\u1ec3 t\u1ea1o ra m\u1ed9t \u1ee9ng d\u1ee5ng \u0111\u1ed3 h\u1ecda v\u1edbi Python \u1edf th\u1eddi \u0111i\u1ec3m hi\u1ec7n t\u1ea1i.
M\u1edf Web App
"},{"location":"start/huong-dan-cai-dat-vnstock-python/","title":"C\u00e0i \u0111\u1eb7t vnstock","text":""},{"location":"start/huong-dan-cai-dat-vnstock-python/#xac-inh-phien-ban-phu-hop","title":"X\u00e1c \u0111\u1ecbnh phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p","text":"Phi\u00ean b\u1ea3n
vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n th\u00e0nh hai nh\u00e1nh ri\u00eang bi\u1ec7t. Trong h\u1ea7u h\u1ebft tr\u01b0\u1eddng h\u1ee3p b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh c\u00e0i \u0111\u1eb7t nhanh t\u1eeb PyPI. N\u1ebfu b\u1ea1n c\u00f3 nhu c\u1ea7u c\u00e0i \u0111\u1eb7t vnstock t\u1eeb m\u00e3 ngu\u1ed3n, b\u1ea1n c\u1ea7n ch\u1ecdn phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p v\u00e0 copy c\u00e2u l\u1ec7nh t\u01b0\u01a1ng \u1ee9ng \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\u00e0i \u0111\u1eb7t \u1edf b\u01b0\u1edbc ti\u1ebfp theo:
pip install --upgrade vnstock\n
C\u00e0i \u0111\u1eb7t tr\u1ef1c ti\u1ebfp t\u1eeb m\u00e3 ngu\u1ed3n c\u00f3 tr\u00ean Github:
beta
(nh\u1eadn c\u1eadp nh\u1eadt m\u1edbi nh\u1ea5t) \u0111\u01b0\u1ee3c chia s\u1ebb t\u1ea1i nh\u00e1nh beta
c\u1ee7a Github repo. pip install git+https://github.com/thinh-vu/vnstock.git@beta\n
stable
(\u0111\u00e3 ph\u00e1t tri\u1ec3n \u1ed5n \u0111\u1ecbnh) \u0111\u01b0\u1ee3c chia s\u1ebb qua pypi.org v\u00e0 nh\u00e1nh main
t\u1ea1i Github repo. pip install git+https://github.com/thinh-vu/vnstock.git@main\n
Khi s\u1eed d\u1ee5ng file Demo Notebook \u0111\u1ec3 b\u1eaft \u0111\u1ea7u, c\u00e1c c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t c\u1ea7n thi\u1ebft \u0111\u00e3 \u0111\u01b0\u1ee3c cung c\u1ea5p s\u1eb5n \u0111\u1ec3 b\u1ea1n th\u1ef1c thi (run).
pip \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 c\u00e0i \u0111\u1eb7t vnstock
. pip c\u00f3 s\u1eb5n trong h\u1ea7u h\u1ebft c\u00e1c b\u1ea3n ph\u00e2n ph\u1ed1i Python \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t. Phi\u00ean b\u1ea3n python c\u1ea7n thi\u1ebft cho vnstock t\u1ed1i thi\u1ec3u l\u00e0 3.7. B\u1ea1n c\u00f3 th\u1ec3 paste c\u00e2u l\u1ec7nh \u0111\u00e3 copy \u1edf B\u01b0\u1edbc 1 v\u00e0 ch\u1ea1y n\u00f3 trong m\u00f4i tr\u01b0\u1eddng Python b\u1ea1n \u0111ang s\u1eed d\u1ee5ng.
Insiders Program
\u0110\u1ed1i v\u1edbi c\u00e1c th\u00e0nh vi\u00ean tham gia t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua Insiders Program, c\u00e1c b\u1ea1n c\u00f3 th\u00eam quy\u1ec1n truy c\u1eadp v\u00e0o c\u00e1c kho m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0 (private repo). M\u1ed7i g\u00f3i c\u00e0i \u0111\u1eb7t b\u1ed5 sung n\u00e0y s\u1ebd c\u00f3 h\u01b0\u1edbng d\u1eabn k\u00e8m theo trong file README c\u1ee7a repo \u0111\u00f3 tr\u00ean Github.
"},{"location":"start/huong-dan-cai-dat-vnstock-python/#cai-at-cac-goi-thu-vien-bat-buoc-go-loi","title":"C\u00e0i \u0111\u1eb7t c\u00e1c g\u00f3i th\u01b0 vi\u1ec7n b\u1eaft bu\u1ed9c (g\u1ee1 l\u1ed7i)","text":"L\u01b0u \u00fd
Trong tr\u01b0\u1eddng h\u1ee3p b\u1ea1n kh\u00f4ng s\u1eed d\u1ee5ng Google Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 ch\u1ea1y vnstock, b\u1ea1n s\u1ebd c\u1ea7n ph\u1ea3i \u0111\u1ea3m b\u1ea3o m\u00f4i tr\u01b0\u1eddng Python c\u1ee7a m\u00ecnh c\u00f3 \u0111\u1ea7y \u0111\u1ee7 c\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m b\u1eaft bu\u1ed9c k\u00e8m theo (dependencies/requirements) \u0111\u1ec3 c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c vnstock
.
N\u1ebfu c\u00e0i Python v\u1edbi Anaconda, b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf qua b\u01b0\u1edbc n\u00e0y.
N\u1ebfu c\u00e0i b\u1ea3n python thu\u1ea7n t\u1eeb python.org ho\u1eb7c Python t\u1eeb Windows Store, b\u1ea1n s\u1ebd c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam t\u1ed1i thi\u1ec3u pandas
v\u00e0 requests
v\u1edbi c\u00f4ng c\u1ee5 pip
.
\u0110\u1ec3 qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t di\u1ec5n ra \u0111\u01a1n gi\u1ea3n v\u00e0 su\u00f4n s\u1ebb, b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo c\u00e1c b\u01b0\u1edbc sau:
T\u1ea3i file requirement.txt v\u1ec1 m\u00e1y
M\u1edf Command Prompt / Terminal, tr\u1ecf t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a file requirements.txt
, th\u00f4ng th\u01b0\u1eddng l\u00e0 Downloads
b\u1eb1ng l\u1ec7nh:
cd \u0110\u1ecaA_CH\u1ec8_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N
pip install -r requirements.txt
Nh\u01b0 v\u1eady l\u00e0 qu\u00e1 tr\u00ecnh chu\u1ea9n b\u1ecb \u0111\u1ec3 s\u1eed d\u1ee5ng vnstock
\u0111\u00e3 ho\u00e0n th\u00e0nh. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
vnstock l\u00e0 th\u01b0 vi\u1ec7n Python \u0111\u01b0\u1ee3c thi\u1ebft ph\u1ee5c v\u1ee5 nhu c\u1ea7u ph\u00e2n t\u00edch d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam, n\u1ec1n m\u00f3ng \u0111\u1ea7u ti\u00ean c\u1ee7a th\u01b0 vi\u1ec7n b\u1eaft \u0111\u1ea7u t\u1eeb vi\u1ec7c h\u1ed7 tr\u1ee3 t\u1ea3i d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n nhanh ch\u00f3ng, v\u00e0 mi\u1ec5n ph\u00ed. G\u00f3i th\u01b0 vi\u1ec7n \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf d\u1ef1a tr\u00ean nguy\u00ean t\u1eafc v\u1ec1 s\u1ef1 \u0111\u01a1n gi\u1ea3n v\u00e0 ti\u1ec7n l\u1ee3i, h\u1ea7u h\u1ebft c\u00e1c h\u00e0m \u0111\u1ec1u c\u00f3 th\u1ec3 ch\u1ea1y ngay tr\u00ean Google Colab khi c\u00e0i \u0111\u1eb7t vnstock m\u00e0 kh\u00f4ng y\u00eau c\u1ea7u th\u00eam g\u00f3i ph\u1ee5 thu\u1ed9c.
\u0110\u1ec3 b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng vnstock, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t \u0111\u01a1n gi\u1ea3n sau tr\u00ean Google Colab ho\u1eb7c Command Prompt/Terminal:
pip install --upgrade vnstock\n
Ho\u1eb7c ch\u1ec9 c\u1ea7n m\u1edf file Demo Notebook v\u1edbi Google Colab, ch\u1ea1y l\u1ea7n l\u01b0\u1ee3t c\u00e1c c\u00e2u l\u1ec7nh \u0111\u1ec3 tr\u1ea3i nghi\u1ec7m c\u00e1c t\u00ednh n\u0103ng c\u1ee7a vnstock.
M\u1edf Notebook
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#moi-lam-quen-voi-python","title":"M\u1edbi l\u00e0m quen v\u1edbi Python?","text":"N\u1ebfu b\u1ea1n m\u1edbi b\u1eaft \u0111\u1ea7u t\u00ecm hi\u1ec3u Python v\u00e0 c\u00f2n cho\u00e1ng ng\u1ee3p v\u1edbi qu\u00e1 nhi\u1ec1u th\u1ee9 m\u1edbi m\u1ebb th\u00ec d\u1ef1 \u00e1n LEarn Anything t\u1eeb c\u00f9ng t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169 s\u1ebd l\u00e0 c\u1ea9m nang kh\u00f4ng th\u1ec3 thi\u1ebfu cho b\u1ea1n. Th\u00f4ng qua c\u00e1c b\u00e0i vi\u1ebft v\u00e0 video h\u01b0\u1edbng d\u1eabn v\u1ec1 Python d\u1ec5 hi\u1ec3u, b\u1ea1n s\u1ebd c\u00f3 m\u1ed9t c\u00e1i nh\u00ecn t\u1ed5ng qu\u00e1t v\u00e0 c\u0169ng r\u1ea5t d\u1ec5 hi\u1ec3u \u0111\u1ec3 b\u01b0\u1edbc ch\u00e2n v\u00e0o h\u00e0nh tr\u00ecnh kh\u00e1m ph\u00e1 m\u1ed9t th\u1ebf gi\u1edbi \u0111\u1ea7y m\u00ea ho\u1eb7c c\u1ee7a python trong m\u1ecdi l\u0129nh v\u1ef1c c\u1ee7a cu\u1ed9c s\u1ed1ng, kh\u00f4ng ch\u1ec9 ri\u00eang th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n.
Python v\u1ee1 l\u00f2ng
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#nguon-cap-du-lieu","title":"Ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u","text":"Th\u01b0 vi\u1ec7n vnstock cung c\u1ea5p kh\u1ea3 n\u0103ng k\u1ebft n\u1ed1i t\u1edbi c\u00e1c API c\u00f4ng khai c\u1ee7a c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u \u0111\u00e1ng tin c\u1eady \u0111\u1ec3 ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng Pandas DataFrame trong m\u00f4i tr\u01b0\u1eddng Python. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u sang c\u00e1c \u0111\u1ecbnh d\u1ea1ng ph\u1ed5 th\u00f4ng nh\u01b0 csv, Excel, Google Sheets, Database \u0111\u1ec3 ti\u1ebfn h\u00e0nh ph\u00e2n t\u00edch n\u1ebfu mu\u1ed1n. Vi\u1ec7c truy xu\u1ea5t d\u1eef li\u1ec7u n\u00e0y l\u00e0 T\u1ef0 DO v\u00e0 ho\u00e0n to\u00e0n MI\u1ec4N PH\u00cd.
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#anh-dau-yeu-thich","title":"\u0110\u00e1nh d\u1ea5u y\u00eau th\u00edch","text":"D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c g\u1ee3i \u00fd \u0111\u1ec3 b\u1ea1n tra c\u1ee9u trang t\u00e0i li\u1ec7u vnstock t\u1ed1i \u01b0u:
T\u00ecm ki\u1ebfm: B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng thanh t\u00ecm ki\u1ebfm tr\u00ean trang t\u00e0i li\u1ec7u \u0111\u1ec3 t\u00ecm ki\u1ebfm t\u00e0i li\u1ec7u v\u00e0 c\u00e1c n\u1ed9i dung m\u00ecnh quan t\u00e2m
Chuy\u1ec3n \u0111\u1ed5i giao di\u1ec7n s\u00e1ng/t\u1ed1i: \u0110\u1ec3 c\u00f3 tr\u1ea3i nghi\u1ec7m \u0111\u1ecdc trong \u0111i\u1ec1u ki\u1ec7n \u00e1nh s\u00e1ng t\u1ed1t nh\u1ea5t, b\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n \u0111\u1ed5i ch\u1ebf \u0111\u1ed9 s\u00e1ng/t\u1ed1i b\u1eb1ng c\u00e1ch nh\u1ea5p v\u00e0o bi\u1ec3u t\u01b0\u1ee3ng tr\u00ean \u0111\u1ea7u trang.
S\u1eed d\u1ee5ng b\u1ea3ng m\u1ee5c l\u1ee5c: Thanh \u0111i\u1ec1u h\u01b0\u1edbng b\u00ean tr\u00e1i cung c\u1ea5p c\u00e1c \u0111\u1ec1 m\u1ee5c \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 nh\u1ea5p v\u00e0o v\u00e0 di chuy\u1ec3n \u0111\u1ebfn n\u1ed9i dung m\u00ecnh c\u1ea7n d\u1ec5 d\u00e0ng.
Copy Code: \u1ede m\u1ed7i \u00f4 ch\u1ee9a d\u00f2ng l\u1ec7nh lu\u00f4n c\u00f3 bi\u1ec3u t\u01b0\u1ee3ng copy cho ph\u00e9p b\u1ea1n click v\u00e0o v\u00e0 sao ch\u00e9p \u0111o\u1ea1n m\u00e3 d\u1ec5 d\u00e0ng.
T\u00ednh n\u0103ng thu\u1ed9c Insiders Program: B\u1ea1n s\u1ebd b\u1eaft g\u1eb7p bi\u1ec3u t\u01b0\u1ee3ng \ud83d\udd10 \u0111\u1ed1i v\u1edbi h\u01b0\u1edbng d\u1eabn d\u00e0nh cho c\u00e1c t\u00ednh n\u0103ng n\u00e2ng cao ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program. Tham kh\u1ea3o th\u00eam chi ti\u1ebft t\u1ea1i \u0111\u00e2y
T\u1ea5t c\u1ea3 c\u00e1c h\u00e0m c\u1ee7a vnstock \u0111\u1ec1u \u0111\u01b0\u1ee3c cung c\u1ea5p docstring \u0111\u1ea7y \u0111\u1ee7, do \u0111\u00f3 b\u1ea1n c\u00f3 th\u1ec3 xem ph\u1ea7n g\u1ee3i \u00fd khi vi\u1ebft c\u00e2u l\u1ec7nh tr\u00ean c\u00e1c IDE nh\u01b0 Google Colab, Visual Studio Code, hay Jupyter Notebook.
Sau khi n\u1ea1p th\u01b0 vi\u1ec7n vnstock v\u00e0o m\u00f4i tr\u01b0\u1eddng l\u00e0m vi\u1ec7c th\u00f4ng qua c\u00e2u l\u1ec7nh import
, b\u1ea1n c\u00f3 th\u1ec3 in ph\u1ea7n h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng h\u00e0m vnstock b\u1ea5t k\u1ef3 th\u00f4ng qua thu\u1ed9c t\u00ednh __doc__
c\u1ee7a h\u00e0m \u0111\u00f3 nh\u01b0 sau (d\u1ea5u __
\u0111\u01b0\u1ee3c t\u1ea1o b\u1edfi 2 d\u1ea5u _
t\u1ee9c shift -
):
>>> print(listing_companies.__doc__)\n\nThis function returns the list of all available stock symbols from a csv file or a live api request.\n Parameters: \n live (bool): If True, return the list of all available stock symbols from a live api request. If False, return the list of all available stock symbols from the Github csv file (monthly update). Default is False.\n Returns: df (DataFrame): A pandas dataframe containing the stock symbols and other information.\n
T\u1ea5t nhi\u00ean, b\u1ea1n lu\u00f4n c\u00f3 th\u1ec3 m\u1edf ph\u1ea7n m\u00e3 ngu\u1ed3n c\u1ee7a vnstock tr\u00ean Github \u0111\u1ec3 xem chi ti\u1ebft.
Docstring trong Google ColabDocstring trong m\u00e3 ngu\u1ed3nG\u1ee3i \u00fd c\u00fa ph\u00e1p h\u00e0m \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb khi vi\u1ebft b\u1ea5t k\u1ef3 h\u00e0m n\u00e0o thu\u1ed9c vnstock, trong v\u00ed d\u1ee5 n\u00e0y hi\u1ec3n th\u1ecb trong giao di\u1ec7n Google Colab.
M\u1edf m\u00e3 ngu\u1ed3n Github t\u1ea1i th\u01b0 m\u1ee5c vnstock, t\u00ecm h\u00e0m b\u1ea1n c\u1ea7n tra c\u1ee9u docstring.
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/","title":"T\u00e0i nguy\u00ean quan tr\u1ecdng","text":"Tr\u01b0\u1edbc khi b\u1eaft \u0111\u1ea7u, b\u1ea1n c\u00f3 th\u1ec3 xem Video gi\u1edbi thi\u1ec7u ch\u00ednh th\u1ee9c cho vnstock m\u00ecnh m\u1edbi chia s\u1ebb tr\u00ean Youtube t\u1ea1i \u0111\u00e2y:
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#vnstock-website","title":"vnstock Website","text":"vnstock \u0111\u00e3 ho\u00e0n thi\u1ec7n b\u01b0\u1edbc \u0111\u1ea7u vi\u1ec7c x\u00e2y d\u1ef1ng m\u1ed9t website chuy\u00ean bi\u1ec7t \u0111\u1ec3 c\u1eadp nh\u1eadt th\u00f4ng tin v\u1ec1 d\u1ef1 \u00e1n, t\u00e0i li\u1ec7u s\u1eed d\u1ee5ng, blog, kh\u00f3a h\u1ecdc, v\u00e0 c\u00e1c t\u00e0i nguy\u00ean h\u1eefu \u00edch kh\u00e1c. C\u00e1c n\u1ed9i dung c\u1ee7a website \u0111ang t\u1eebng b\u01b0\u1edbc \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt v\u00e0 ho\u00e0n thi\u1ec7n.
B\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp vnstock.site \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft.
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#vnstock-web-app","title":"vnstock Web app","text":"vnstock Web app \u0111\u00e3 \u0111\u01b0\u1ee3c gi\u1edbi thi\u1ec7u l\u1ea7n \u0111\u1ea7u v\u00e0o 4/9/2023 nh\u1eb1m gi\u00fap ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng c\u00f3 th\u1ec3 ti\u1ebfp c\u1eadn v\u1edbi vnstock theo c\u00e1ch \u0111\u01a1n gi\u1ea3n v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t d\u00f9 cho b\u1ea1n kh\u00f4ng c\u00f3 b\u1ea5t c\u1ee9 k\u1ef9 n\u0103ng hay hi\u1ec3u bi\u1ebft v\u1ec1 l\u1eadp tr\u00ecnh python \u0111\u1ec3 s\u1eed d\u1ee5ng.
vnstock web app \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng b\u1eb1ng streamlit framework, s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef Python ho\u00e0n to\u00e0n. \u0110\u00e2y c\u0169ng l\u00e0 m\u1ed9t \u0111\u1ecbnh h\u01b0\u1edbng r\u1ea5t tri\u1ec3n v\u1ecdng trong vi\u1ec7c x\u00e2y d\u1ef1ng c\u00e1c \u1ee9ng d\u1ee5ng web trong vi\u1ec7c ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n v\u1edbi giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng th\u00e2n thi\u1ec7n v\u00e0 d\u1ec5 s\u1eed d\u1ee5ng, b\u1ea3o tr\u00ec.
M\u1edf Web App
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#notebook-minh-hoa","title":"Notebook minh ho\u1ea1","text":"B\u1ea1n c\u00f3 th\u1ec3 m\u1edf file demo b\u1eb1ng Jupyter Notebook v\u00e0 d\u00f9ng th\u1eed t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m c\u1ee7a vnstock t\u1eeb giao di\u1ec7n Google Colab. N\u1ebfu mu\u1ed1n s\u1eed d\u1ee5ng Notebook trong Visual Studio Code ho\u1eb7c IDE kh\u00e1c, b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm menu File > Download v\u00e0 ch\u1ecdn Download.ipynb \u0111\u1ec3 l\u01b0u file v\u1ec1 m\u00e1y.
M\u1edf Notebook
"},{"location":"blog/archive/2023/","title":"2023","text":""},{"location":"blog/category/huong-dan/","title":"H\u01b0\u1edbng d\u1eabn","text":""}]} +======= +{"config":{"lang":["en"],"separator":"[\\s\\u200b\\-_,:!=\\[\\]()\"`/]+|\\.(?!\\d)|&[lg]t;|(?!\\b)(?=[A-Z][a-z])","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Gi\u1edbi thi\u1ec7u vnstock","text":""},{"location":"#gioi-thieu-chung","title":"Gi\u1edbi thi\u1ec7u chung","text":"vnstock l\u00e0 th\u01b0 vi\u1ec7n Python \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 t\u1ea3i d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng v\u00e0 mi\u1ec5n ph\u00ed. vnstock s\u1eed d\u1ee5ng c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u \u0111\u00e1ng tin c\u1eady, bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n t\u1eeb c\u00f4ng ty ch\u1ee9ng kho\u00e1n v\u00e0 c\u00f4ng ty ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng t\u1ea1i Vi\u1ec7t Nam. G\u00f3i th\u01b0 vi\u1ec7n \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf d\u1ef1a tr\u00ean nguy\u00ean t\u1eafc v\u1ec1 s\u1ef1 \u0111\u01a1n gi\u1ea3n v\u00e0 m\u00e3 ngu\u1ed3n m\u1edf, h\u1ea7u h\u1ebft c\u00e1c h\u00e0m \u0111\u01b0\u1ee3c vi\u1ebft d\u1ef1a tr\u00ean th\u01b0 vi\u1ec7n request v\u00e0 pandas c\u00f3 s\u1eb5n tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab do \u0111\u00f3 ng\u01b0\u1eddi d\u00f9ng kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam c\u00e1c g\u00f3i th\u01b0 vi\u1ec7n k\u00e8m theo.
C\u1eadp nh\u1eadt b\u1ea3n 0.2.8.8
C\u1eadp nh\u1eadt thay \u0111\u1ed5i t\u1eeb ng\u00e0y 16/12/2023 \u1edf phi\u00ean b\u1ea3n beta
sang main
v\u00e0 ph\u00e1t h\u00e0nh ch\u00ednh th\u1ee9c phi\u00ean b\u1ea3n 0.2.8.8.
financial_report
s\u1eeda l\u1ed7i tri\u1ec7t \u0111\u1ec3 l\u1ed7i s\u1eed d\u1ee5ng 'Excel file format cannot be determined, you must specify an engine manually' do d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 kh\u00f4ng ph\u1ea3i \u0111\u1ecbnh d\u1ea1ng Excel.OrganCode
\u0111\u1ec3 tra c\u1ee9u th\u00f4ng tin c\u00f4ng ty trong \u0111\u00f3 c\u00f3 b\u00e1o c\u00e1o t\u00e0i ch\u00ednh. C\u00f3 kho\u1ea3ng > 600 m\u00e3 c\u1ed5 phi\u1ebfu c\u00f3 m\u00e3 symbol kh\u00e1c OrganCode do \u0111\u00f3 c\u00f3 nhi\u1ec1u m\u00e3 khi tra c\u1ee9u BCTC v\u1edbi m\u00e3 symbol s\u1ebd g\u00e2y ra r\u1ed7i trong khi v\u1edbi c\u00e1c m\u00e3 kh\u00e1c th\u00ec kh\u00f4ng. V\u00ed d\u1ee5 YTC
c\u00f3 OrganCode l\u00e0 YTECO
d\u00f9ng \u0111\u1ec3 tra c\u1ee9u BCTC.openpyxl
l\u00e0 g\u00f3i ph\u1ee5 thu\u1ed9c \u0111\u1ec3 \u0111\u1ecdc d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 t\u1eeb API d\u01b0\u1edbi d\u1ea1ng file Excel. L\u1ed7i n\u00e0y x\u1ea3y ra khi c\u00e0i b\u1ea3n Python thu\u1ea7n. Kh\u00f4ng g\u1eb7p l\u1ed7i v\u1edbi Google Colab ho\u1eb7c Anaconda.C\u1eadp nh\u1eadt khung ch\u01b0\u01a1ng tr\u00ecnh kh\u00f3a h\u1ecdc Python 5 khai gi\u1ea3ng 21/1/2024
B\u1ed5 sung t\u00ednh n\u0103ng hi\u1ec7n banner th\u00f4ng b\u00e1o quan tr\u1ecdng tr\u00ean trang t\u00e0i li\u1ec7u.
vnstock-data-pro
C\u1eadp nh\u1eadt t\u00e0i li\u1ec7u d\u1ef1 \u00e1n
B\u1ed5 sung h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng t\u00edch h\u1ee3p SSI Fast Connect API trong g\u00f3i vnstock-pro-data
t\u1ea1i \u0111\u00e2y
B\u1ed5 sung th\u00f4ng tin chi ti\u1ebft ch\u01b0\u01a1ng tr\u00ecnh Vnstock Insider Program t\u1ea1i \u0111\u00e2y
B\u1ed5 sung requirements.txt
cho tr\u00ecnh t\u1ea1o trang t\u0129nh MKDocs gi\u00fap c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c \u0111\u1ec3 thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u v\u00e0 xem tr\u01b0\u1edbc d\u1ec5 d\u00e0ng.
Ch\u00ednh th\u1ee9c ph\u00e1t h\u00e0nh c\u00e1c thay \u0111\u1ed5i t\u1eeb nh\u00e1nh Beta trong phi\u00ean b\u1ea3n 2.8.7. Chi ti\u1ebft c\u1eadp nh\u1eadt qua blog: t\u1ea1i \u0111\u00e2y
Ra m\u1eaft Vnstock Insiders Program cung c\u1ea5p quy\u1ec1n truy c\u1eadp t\u1edbi c\u00e1c kho ch\u1ee9a m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0 (private repo)
Ra m\u1eaft vnstock-pro-data
trong ch\u01b0\u01a1ng tr\u00ecnh Insiders, cung c\u1ea5p kh\u1ea3 n\u0103ng truy c\u1eadp d\u1eef li\u1ec7u ch\u1ea5t l\u01b0\u1ee3ng cao v\u1edbi \u0111\u1ed9 tr\u1ec5 th\u1ea5p.
T\u1ea3i d\u1eef li\u1ec7u gi\u00e1 OHLCV nhanh ch\u00f3ng, ch\u00ednh x\u00e1c kh\u00f4ng c\u1ea7n x\u00e1c th\u1ef1c qua Public API c\u1ee7a SSI.
T\u1ea3i v\u00e0 streaming d\u1eef li\u1ec7u qua SSI Fast Connect API ch\u00ednh th\u1ee9c (c\u1ea7n \u0111\u0103ng k\u00fd v\u00e0 x\u00e1c th\u1ef1c ng\u01b0\u1eddi d\u00f9ng)
Ch\u00ednh th\u1ee9c ph\u00e1t h\u00e0nh t\u00ednh n\u0103ng truy c\u1eadp d\u1eef li\u1ec7u qu\u1ef9 m\u1edf. H\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y
H\u1ed7 tr\u1ee3 xu\u1ea5t d\u1eef li\u1ec7u time series cho OpenBB Terminal. H\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y
C\u1eadp nh\u1eadt t\u00e0i li\u1ec7u d\u1ef1 \u00e1n
andrey_jef
\u0111\u00f3ng g\u00f3p. T\u00e0i li\u1ec7u m\u00f4 t\u1ea3 v\u00e0 demo notebook \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt t\u01b0\u01a1ng \u1ee9ng.plotly
th\u00e0nh th\u01b0 vi\u1ec7n t\u00f9y ch\u1ecdn, ch\u1ec9 ph\u1ea3i import v\u00e0o d\u1ef1 \u00e1n n\u1ebfu ng\u01b0\u1eddi d\u00f9ng c\u00f3 nhu c\u1ea7u s\u1eed d\u1ee5ng t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb. Vi\u1ec7c n\u00e0y gi\u00fap vnstock ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng kh\u00e1c Google Colab kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam plotly
theo m\u1eb7c \u0111\u1ecbnh. M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean b\u1ea3n beta tr\u00ean Github, thay \u0111\u1ed5i s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ea9y l\u00ean PyPI trong tu\u1ea7n t\u1edbi.andrey_jef
\u0111\u00f3ng g\u00f3p. T\u00e0i li\u1ec7u m\u00f4 t\u1ea3 v\u00e0 demo notebook \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt t\u01b0\u01a1ng \u1ee9ng.plotly
th\u00e0nh th\u01b0 vi\u1ec7n t\u00f9y ch\u1ecdn, ch\u1ec9 ph\u1ea3i import v\u00e0o d\u1ef1 \u00e1n n\u1ebfu ng\u01b0\u1eddi d\u00f9ng c\u00f3 nhu c\u1ea7u s\u1eed d\u1ee5ng t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb. Vi\u1ec7c n\u00e0y gi\u00fap vnstock ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng kh\u00e1c Google Colab kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam plotly
theo m\u1eb7c \u0111\u1ecbnh. M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean b\u1ea3n beta tr\u00ean Github, thay \u0111\u1ed5i s\u1ebd \u0111\u01b0\u1ee3c \u0111\u1ea9y l\u00ean PyPI trong tu\u1ea7n t\u1edbi.Ph\u00e1t h\u00e0nh phi\u00ean b\u1ea3n 0.2.8.5
stock_intraday_data
investor_segment
, m\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb True
cho ph\u00e9p tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh theo ph\u00e2n nh\u00f3m nh\u00e0 \u0111\u1ea7u t\u01b0 (nh\u01b0 c\u00e1c phi\u00ean b\u1ea3n tr\u01b0\u1edbc), khi \u0111\u1eb7t l\u00e0 False
cho ph\u00e9p tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u th\u00f4, kh\u00f4ng g\u1ed9p th\u00f4ng tin l\u1ec7nh theo ph\u00e2n nh\u00f3m.amibroker_ohlc_export
cho ph\u00e9p xu\u1ea5t d\u1eef li\u1ec7u sang \u0111\u1ecbnh d\u1ea1ng CSV \u0111\u1ec3 n\u1ea1p d\u1eef li\u1ec7u cho Amibroker. Chi ti\u1ebft t\u1ea1i \u0111\u00e2yPh\u00e1t h\u00e0nh phi\u00ean b\u1ea3n 0.2.8.4
T\u00f9y bi\u1ebfn h\u00e0m stock_historical_data
gi\u00fap d\u1ec5 d\u00e0ng s\u1eed d\u1ee5ng v\u1edbi c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt kh\u00e1c trong Python.
Th\u00eam tham s\u1ed1 decor
, nh\u1eadn gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
(kh\u00f4ng thay \u0111\u1ed5i d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 v\u1edbi c\u00e1ch s\u1eed d\u1ee5ng hi\u1ec7n t\u1ea1i c\u1ee7a ng\u01b0\u1eddi d\u00f9ng). Khi \u0111\u1eb7t decor=True
, \u00e1p d\u1ee5ng thay t\u00ean c\u00e1c c\u1ed9t trong DataFrame tr\u1ea3 v\u1ec1 d\u01b0\u1edbi d\u1ea1ng Title Case t\u1ee9c Open, High, Low, Close, Time, Ticker
thay v\u00ec open, high, low, close, time, ticker
nh\u01b0 hi\u1ec7n t\u1ea1i \u0111\u1ed3ng th\u1eddi \u0111\u1eb7t c\u1ed9t Time l\u00e0 index. Vi\u1ec7c n\u00e0y gi\u1ea3m b\u1edbt cho ng\u01b0\u1eddi d\u00f9ng ph\u1ea3i vi\u1ebft th\u00eam c\u00e2u l\u1ec7nh khi s\u1eed d\u1ee5ng d\u1eef li\u1ec7u vnstock k\u1ebft h\u1ee3p c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt ph\u1ed5 bi\u1ebfn v\u1ed1n d\u00f9ng th\u01b0 vi\u1ec7n Yahoo Finance l\u00e0m ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u.
B\u1ed5 sung tham s\u1ed1 source
cho ph\u00e9p ch\u1ecdn ngu\u1ed3n t\u1ea3i d\u1eef li\u1ec7u l\u00e0 TCBS
hay DNSE
. Ngu\u1ed3n d\u1eef li\u1ec7u TCBS
cho l\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed theo ng\u00e0y (resolution = 1D
) trong th\u1eddi gian d\u00e0i, kh\u00f4ng h\u1ed7 tr\u1ee3 khung th\u1eddi gian nh\u1ecf h\u01a1n. Trong khi \u0111\u00f3 ngu\u1ed3n d\u1eef li\u1ec7u DNSE
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u v\u1edbi nhi\u1ec1u khung th\u1eddi gian kh\u00e1c nhau, gi\u1edbi h\u1ea1n 90 ng\u00e0y g\u1ea7n nh\u1ea5t \u0111\u1ed1i v\u1edbi d\u1eef li\u1ec7u ph\u00fat, 10 n\u0103m g\u1ea7n nh\u1ea5t \u0111\u1ed1i v\u1edbi d\u1eef li\u1ec7u ng\u00e0y.
C\u1eadp nh\u1eadt tcbs_headers s\u1eed d\u1ee5ng cho c\u00e1c request \u0111\u1ebfn API c\u1ee7a TCBS
pip install -U vnstock
\u0111\u1ec3 c\u1eadp nh\u1eadt phi\u00ean b\u1ea3n.listing_companies
nay \u0111\u01b0\u1ee3c cung c\u1ea5p th\u00eam kh\u1ea3 n\u0103ng l\u1ea5y danh s\u00e1ch c\u00f4ng ty ni\u00eam y\u1ebft t\u1eeb SSI/FiinTrade. Vi\u1ec7c n\u00e0y gi\u00fap ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 tham chi\u1ebfu m\u00e3 c\u00f4ng ty t\u1eeb m\u00e3 c\u1ed5 phi\u1ebfu \u0111\u1ec3 l\u1ea5y th\u00f4ng tin trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p \u0111\u1eb7c bi\u1ec7t FiinTrade s\u1eed d\u1ee5ng m\u00e3 n\u00e0y thay cho m\u00e3 c\u1ed5 phi\u1ebfu. V\u00ed d\u1ee5, thay v\u00ec d\u00f9ng m\u00e3 c\u1ed5 phi\u1ebfu BCM
g\u00e2y ra l\u1ed7i cho h\u00e0m, b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u00e3 c\u00f4ng ty t\u01b0\u01a1ng \u1ee9ng l\u00e0 BIDC
indices_listing
cho ph\u00e9p li\u1ec7t k\u00ea t\u1ea5t c\u1ea3 m\u00e3 ch\u1ec9 s\u1ed1 hi\u1ec7n c\u00f3 tr\u00ean s\u00e0n.financial_ratio_compare
cho ph\u00e9p so s\u00e1nh ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh c\u1ee7a m\u1ed9t danh s\u00e1ch c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu.financial_report
, fr_trade_heatmap
, market_top_mover
do SSI hi\u1ec7n t\u1ea1i \u0111\u00e3 g\u1ee1 b\u1ecf m\u1ecdi h\u1ea1n ch\u1ebf v\u1ec1 k\u1ef9 thu\u1eadt \u00e1p d\u1ee5ng cho bot th\u1ef1c hi\u1ec7n web scraping.\u1ee8ng d\u1ee5ng & T\u00edch h\u1ee3p
Chuy\u1ec3n \u0111\u1ed5i n\u1ec1n t\u1ea3ng t\u00e0i li\u1ec7u t\u1eeb Pretty-Docs sang MkDocs Matterial th\u00e2n thi\u1ec7n v\u00e0 nhi\u1ec1u t\u00ednh n\u0103ng h\u1eefu \u00edch h\u01a1n.
C\u1eadp nh\u1eadt m\u00f4 t\u1ea3 c\u00e1c h\u00e0m \u0111\u1ec3 ti\u1ec7n theo d\u00f5i bao g\u1ed3m:
Xoay DataFrame k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 \u0111\u1ec3 c\u00f3 th\u1ec3 hi\u1ec3n th\u1ecb \u0111\u1ea7y \u0111\u1ee7 t\u00ean c\u00e1c c\u1ed9t d\u1eef li\u1ec7u
Phi\u00ean b\u1ea3n: 0.2.2: \u0110\u01b0a t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb ch\u00ednh th\u1ee9c v\u00e0o phi\u00ean b\u1ea3n \u1ed5n \u0111\u1ecbnh, c\u1eadp nh\u1eadt h\u00e0m truy xu\u1ea5t gi\u00e1 l\u1ecbch s\u1eed
C\u1eadp nh\u1eadt h\u00e0m stock_historical_data
\u0111\u1ec3 tr\u1ea3 v\u1ec1 th\u00f4ng tin ch\u00ednh x\u00e1c
Lo\u1ea1i b\u1ecf b\u01b0\u1edbc t\u00ednh to\u00e1n nh\u00e2n ch\u1ec9 s\u1ed1 v\u00e0 m\u00e3 ph\u00e1i sinh v\u1edbi 1000 khi tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u. C\u00e1ch t\u00ednh n\u00e0y l\u00e0m sai l\u1ec7ch gi\u00e1 tr\u1ecb c\u1ee7a ch\u1ec9 s\u1ed1 v\u00e0 m\u00e3 ph\u00e1i sinh v\u00ec b\u1ea3n ch\u1ea5t gi\u00e1 tr\u1ecb OHLC n\u00e0y kh\u00e1c v\u1edbi gi\u00e1 c\u1ed5 phi\u1ebfu.
B\u1ed5 sung th\u00eam tham s\u1ed1 beautify, \u0111\u1eb7t gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 True \u0111\u1ec3 gi\u1eef nguy\u00ean c\u00e1ch nh\u00e2n 1000 cho gi\u00e1 c\u1ed5 phi\u1ebfu. Ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 chuy\u1ec3n v\u1ec1 False \u0111\u1ec3 gi\u1eef nguy\u00ean gi\u00e1 tr\u1ecb OHLC d\u1ea1ng th\u1eadp ph\u00e2n r\u00fat g\u1ecdn.
Ch\u00ednh th\u1ee9c \u0111\u01b0a c\u00e1c h\u00e0m v\u1ebd \u0111\u1ed3 th\u1ecb v\u00e0o phi\u00ean b\u1ea3n ch\u00ednh th\u1ee9c c\u1ee7a vnstock sau qu\u00e1 tr\u00ecnh th\u1eed nghi\u1ec7m
H\u00e0m candlestick_chart cho ph\u00e9p v\u1ebd \u0111\u1ed3 th\u1ecb n\u1ebfn c\u00f9ng c\u00e1c \u0111\u01b0\u1eddng trung b\u00ecnh \u0111\u1ed9ng, h\u1ed7 tr\u1ee3, kh\u00e1ng c\u1ef1 c\u01a1 b\u1ea3n.
H\u00e0m bollinger_bands_chart cho ph\u00e9p v\u1ebd \u0111\u1ed3 th\u1ecb n\u1ebfn (ho\u1eb7c \u0111\u01b0\u1eddng) k\u00e8m c\u00e1c d\u1ea3i Bollinger Bands. H\u00e0m n\u00e0y c\u1ea7n s\u1eed d\u1ee5ng k\u00e8m h\u00e0m bollinger_bands \u0111\u1ec3 chuy\u1ec3n \u0111\u1ed5i d\u1eef li\u1ec7u OHLC ti\u00eau chu\u1ea9n sang d\u1eef li\u1ec7u Bollinger Bands.
Thay \u0111\u1ed5i c\u1ea5u tr\u00fac th\u01b0 m\u1ee5c v\u00e0 t\u00e0i li\u1ec7u vnstock repo tr\u00ean Github
vnstock docs Phi\u00ean b\u1ea3n 1.1 s\u1eed d\u1ee5ng Pretty-Docs theme
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng v\u00e0 ra m\u1eaft phi\u00ean b\u1ea3n th\u1eed nghi\u1ec7m 1.0 cho trang t\u00e0i li\u1ec7u vnstock docs s\u1eed d\u1ee5ng pretty-docs theme.
"},{"location":"changes_log/#22-08-2023","title":"22-08-2023","text":"Ph\u00e2n lo\u1ea1i c\u00e1c t\u00ednh n\u0103ng c\u1ee7a vnstock trong file Demo Jupyter Notebook theo 5 nh\u00f3m ch\u00ednh:
Th\u1ecb tr\u01b0\u1eddng (Market Watch)
Trung t\u00e2m giao d\u1ecbch (Trading Center)
\u0110\u00e3 s\u1eeda l\u1ea1i file demo notebook \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00e1c h\u00e0m m\u1edbi.
Kh\u00f4i ph\u1ee5c gi\u00e1 \u0111\u01a1n v\u1ecb c\u1ee7a stock_historical_data t\u1eeb 1000 VND th\u00e0nh VND b\u1eb1ng c\u00e1ch nh\u00e2n v\u1edbi 1000.
H\u00e0m price_board \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt.
B\u1ed5 sung h\u00e0m m\u1edbi trong m\u00f4 \u0111un utils.py \u0111\u1ec3 tr\u00edch xu\u1ea5t gi\u00e1 tr\u1ecb ng\u00e0y th\u00e1ng theo \u0111\u1ecbnh d\u1ea1ng YYYY-mm-dd.
Ch\u00ednh th\u1ee9c h\u1ed7 tr\u1ee3 h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng b\u1eb1ng ti\u1ebfng Vi\u1ec7t cho t\u1ec7p th\u01b0 vi\u1ec7n th\u00f4ng qua file README.md, gi\u00fap th\u00fac \u0111\u1ea9y kh\u1ea3 n\u0103ng ti\u1ebfp c\u1eadn v\u1edbi vnstock cho ng\u01b0\u1eddi d\u00f9ng Vi\u1ec7t Nam.
"},{"location":"changes_log/#20-05-2023","title":"20-05-2023","text":"Gi\u1edbi thi\u1ec7u
Python l\u00e0 ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh \u0111a d\u1ee5ng, m\u00e3 ngu\u1ed3n m\u1edf. Trong l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh, Python \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u (data analysis), x\u00e2y d\u1ef1ng chi\u1ebfn l\u01b0\u1ee3c giao d\u1ecbch, thi\u1ebft k\u1ebf bot giao d\u1ecbch t\u1ef1 \u0111\u1ed9ng gi\u00fap lo\u1ea1i b\u1ecf y\u1ebfu t\u1ed1 c\u1ea3m x\u00fac c\u1ee7a con ng\u01b0\u1eddi trong vi\u1ec7c ra quy\u1ebft \u0111\u1ecbnh \u0111\u1ea7u t\u01b0 chuy\u00ean nghi\u1ec7p. Python c\u0169ng l\u00e0 ng\u00f4n ng\u1eef ch\u00ednh s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i cho c\u00e1c d\u1ef1 \u00e1n khoa h\u1ecdc d\u1eef li\u1ec7u (data science) nh\u01b0 m\u00f4 h\u00ecnh m\u00e1y h\u1ecdc (ML), tr\u00ed tu\u1ec7 nh\u00e2n t\u1ea1o (AI).
"},{"location":"course/#khoa-hoc-ang-trien-khai","title":"Kh\u00f3a h\u1ecdc \u0111ang tri\u1ec3n khai","text":"Thinh Vu @ LEarn Anything m\u1edf Kh\u00f3a h\u1ecdc Ph\u00e2n t\u00edch d\u1eef li\u1ec7u & t\u1ea1o bot giao d\u1ecbch ch\u1ee9ng kho\u00e1n v\u1edbi Python \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf ri\u00eang cho trader/nh\u00e0 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n.
B\u1eaft \u0111\u1ea7u t\u1eeb Kh\u00f3a 5 (K5), ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e0o t\u1ea1o Python \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng theo ki\u1ec3u \"tutorial\" gi\u00fap b\u00ecnh d\u00e2n h\u00f3a Python trong l\u0129nh v\u1ef1c x\u1eed l\u00fd d\u1eef li\u1ec7u v\u00e0 \u1ee9ng d\u1ee5ng v\u00e0o thu\u1eadt to\u00e1n giao d\u1ecbch ch\u1ee9ng kho\u00e1n.
"},{"location":"course/#tai-sao-khoa-hoc-ang-quan-tam","title":"T\u1ea1i sao kh\u00f3a h\u1ecdc \u0111\u00e1ng quan t\u00e2m?","text":"Gi\u1edbi thi\u1ec7u
B\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc K6 v\u00e0 \u0111\u1ed3ng th\u1eddi xem video ghi h\u00ecnh kh\u00f3a h\u1ecdc hi\u1ec7n t\u1ea1i (K5) c\u0169ng nh\u01b0 tham gia bu\u1ed5i h\u1ecdc tr\u1ef1c ti\u1ebfp ngay khi \u0111\u0103ng k\u00fd m\u00e0 kh\u00f4ng ph\u00e1t sinh th\u00eam chi ph\u00ed.
Trao \u0111\u1ed5i v\u1edbi Th\u1ecbnh
"},{"location":"course/#ai-nen-tham-gia-khoa-hoc","title":"Ai n\u00ean tham gia kh\u00f3a h\u1ecdc?","text":""},{"location":"course/#nghe-nghiep","title":"Ngh\u1ec1 nghi\u1ec7p","text":"Ghi ch\u00fa
N\u1ed9i dung kh\u00f3a h\u1ecdc \u0111\u01b0\u1ee3c chia th\u00e0nh 6 ph\u1ea7n ch\u00ednh (module) v\u1edbi n\u1ed9i dung chi ti\u1ebft t\u1eebng module \u0111\u01b0\u1ee3c m\u00f4 t\u1ea3 d\u01b0\u1edbi \u0111\u00e2y. N\u1ed9i dung l\u00fd thuy\u1ebft c\u1ee7a ch\u01b0\u01a1ng tr\u00ecnh s\u1ebd \u0111\u01b0\u1ee3c k\u1ebft h\u1ee3p v\u1edbi c\u00e1c b\u00e0i h\u1ecdc th\u1ef1c h\u00e0nh v\u00e0 h\u01b0\u1edbng d\u1eabn th\u1ef1c t\u1ebf b\u00e1m s\u00e1t c\u00e1c b\u01b0\u1edbc tri\u1ec3n khai ph\u00e2n t\u00edch & giao d\u1ecbch th\u1ef1c t\u1ebf.
1: T\u1ed5ng qu\u00e1t2: Thu th\u1eadp d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n3: B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu4: Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c5: T\u1ed1i \u01b0u thu\u1eadt to\u00e1n6: \u0110\u00f3ng g\u00f3i ch\u01b0\u01a1ng tr\u00ecnh "},{"location":"course/#cau-hoi-thuong-gap-faqs","title":"C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p (FAQs)","text":"V\u00ec sao ch\u1ecdn Python cho ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n?Python \u0111em l\u1ea1i nhi\u1ec1u l\u1ee3i \u00edch trong th\u1ef1c t\u1ebf s\u1eed d\u1ee5ng, \u0111\u1ed1i v\u1edbi l\u0129nh v\u1ef1c ch\u1ee9ng kho\u00e1n/\u0111\u1ea7u t\u01b0 t\u00e0i ch\u00ednh th\u00ec Python c\u00f3 nh\u1eefng \u01b0u \u0111i\u1ec3m sau:
Macbook
, Windows
, Linux
hay b\u1ea5t c\u1ee9 thi\u1ebft b\u1ecb n\u00e0o hi\u1ec7n nay. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y Python tr\u00ean Cloud qua Google Colab, Kaglle ho\u1eb7c ch\u1ea1y tr\u00ean m\u00e1y t\u00ednh c\u1ee7a m\u00ecnh t\u00f9y \u00fd. K\u1ec3 c\u1ea3 d\u00f9ng m\u00e1y t\u00ednh b\u1ea3ng/\u0111i\u1ec7n tho\u1ea1i c\u0169ng c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n th\u00f4ng qua Cloud. Tr\u1ea3i nghi\u1ec7m tr\u00ean t\u1ea5t c\u1ea3 thi\u1ebft b\u1ecb \u0111\u1ec1u \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng. \u0110i\u1ec1u n\u00e0y c\u00e1c \u1ee9ng d\u1ee5ng truy\u1ec1n th\u1ed1ng nh\u01b0 Amibroker, Excel kh\u00f4ng l\u00e0m \u0111\u01b0\u1ee3c ho\u1eb7c t\u00ednh n\u0103ng b\u1ecb gi\u1edbi h\u1ea1n \u1edf m\u1ed9t s\u1ed1 thi\u1ebft b\u1ecb c\u1ee5 th\u1ec3. Amibroker ch\u1ec9 ch\u1ea1y tr\u00ean Windows. Excel c\u00f3 t\u00ednh n\u0103ng kh\u00e1c nhau t\u00f9y v\u00e0o h\u1ec7 \u0111i\u1ec1u h\u00e0nh, kh\u00f4ng h\u1ed7 tr\u1ee3 Linux.Kh\u00f3a h\u1ecdc ch\u1ecdn m\u00f4i tr\u01b0\u1eddng s\u1eed d\u1ee5ng Python ti\u00eau chu\u1ea9n l\u00e0 Google Colab tr\u00ean Cloud cho gi\u1ea3ng d\u1ea1y v\u00e0 th\u1ef1c h\u00e0nh. To\u00e0n b\u1ed9 gi\u00e1o tr\u00ecnh \u0111\u01b0\u1ee3c bi\u00ean so\u1ea1n v\u1edbi \u0111\u1ecbnh d\u1ea1ng file Colab Notebook gi\u00fap b\u1ea1n ch\u1ea1y l\u1ec7nh \u0111\u1ec3 th\u1ea5y k\u1ebft qu\u1ea3 ngay l\u1eadp t\u1ee9c. Anh/ch\u1ecb c\u00f3 th\u1ec3 xem h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng Google Colab to\u00e0n t\u1eadp \u0111\u01b0\u1ee3c Th\u1ecbnh chia s\u1ebb t\u1ea1i \u0111\u00e2y. Gi\u00e1o tr\u00ecnh kh\u00f3a h\u1ecdc tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab
Google Colab l\u00e0 g\u00ec? L\u00e0m sao \u0111\u1ec3 s\u1eed d\u1ee5ng?Google Colab l\u00e0 d\u1ecbch v\u1ee5 \u0111\u00e1m m\u00e2y c\u1ee7a Google ph\u1ee5c v\u1ee5 cho Khoa h\u1ecdc d\u1eef li\u1ec7u. Google Colab \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong c\u1ed9ng \u0111\u1ed3ng v\u1ec1 tr\u00ed th\u00f4ng minh nh\u00e2n t\u1ea1o (AI), m\u00e1y h\u1ecdc (machine learning). G\u1ea7n \u0111\u00e2y nh\u1ea5t v\u1edbi s\u1ef1 ra \u0111\u1eddi c\u1ee7a c\u00e1c m\u00f4 h\u00ecnh AI t\u1ea1o \u1ea3nh, b\u1ea1n c\u0169ng s\u1ebd nghe \u0111\u1ebfn vi\u1ec7c s\u1eed d\u1ee5ng Colab \u0111\u1ec3 ch\u1ea1y m\u00f4 h\u00ecnh Stable Diffusion v\u1edbi c\u00e1c b\u1ea1n l\u00e0m c\u00f4ng vi\u1ec7c thi\u1ebft k\u1ebf (designer). Google Colab cho ph\u00e9p b\u1ea1n s\u1eed d\u1ee5ng t\u00e0i nguy\u00ean ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed v\u1edbi b\u1ed9 nh\u1edb RAM cao v\u00e0 dung l\u01b0\u1ee3ng l\u01b0u tr\u1eef t\u1ea1m th\u1eddi \u0111\u1ee7 l\u1edbn \u0111\u1ec3 v\u1eadn h\u00e0nh c\u00e1c d\u1ef1 \u00e1n v\u1ec1 AI.
Trong khu\u00f4n kh\u1ed5 l\u1edbp h\u1ecdc Python, ch\u00fang ta s\u1eed d\u1ee5ng Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng Python th\u1ef1c h\u00e0nh b\u1edfi t\u00ednh ti\u1ec7n l\u1ee3i v\u00e0 t\u00ednh n\u0103ng \u0111a d\u1ea1ng. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng Colab AI \u0111\u1ec3 h\u1ed7 tr\u1ee3 l\u1eadp tr\u00ecnh nhanh ch\u00f3ng v\u00e0 ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed (c\u00f3 gi\u1edbi h\u1ea1n).
S\u1eed d\u1ee5ng v\u00e0 chia s\u1ebb file v\u1edbi Google Colab r\u1ea5t \u0111\u01a1n gi\u1ea3n, t\u01b0\u01a1ng t\u1ef1 c\u00e1ch b\u1ea1n s\u1eed d\u1ee5ng \u1ee9ng d\u1ee5ng b\u1ea3ng t\u00ednh (Sheets) hay t\u00e0i li\u1ec7u (Docs) c\u1ee7a Google. Ngo\u00e0i ra Colab cho ph\u00e9p b\u1ea1n k\u1ebft n\u1ed1i v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi d\u1eef li\u1ec7u l\u01b0u tr\u1eef trong Google Drive c\u0169ng nh\u01b0 d\u1ecbch v\u1ee5 Google Cloud c\u1ee7a b\u1ea1n d\u1ec5 d\u00e0ng.
T\u00f4i mu\u1ed1n \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc. C\u1ea7n th\u1ef1c hi\u1ec7n nh\u01b0 th\u1ebf n\u00e0o?\u0110\u1ec3 \u0111\u0103ng k\u00fd tham gia kh\u00f3a h\u1ecdc, anh/ch\u1ecb vui l\u00f2ng trao \u0111\u1ed5i tr\u1ef1c ti\u1ebfp v\u1edbi Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c gi\u1ea3i \u0111\u00e1p chi ti\u1ebft v\u1ec1 th\u00f4ng tin h\u1ecdc ph\u00ed, ch\u01b0\u01a1ng tr\u00ecnh h\u1ecdc, l\u1ed9 tr\u00ecnh v\u00e0 b\u1ea5t k\u1ef3 c\u00e2u h\u1ecfi n\u00e0o.
Sau khi th\u1ed1ng nh\u1ea5t v\u1ec1 m\u1ee9c h\u1ecdc ph\u00ed, m\u1ee5c ti\u00eau v\u00e0 k\u1ebf ho\u1ea1ch h\u1ecdc t\u1eadp, anh/ch\u1ecb s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c bi\u1ec3u m\u1eabu \u0111\u0103ng k\u00fd qua Google. Anh ch\u1ecb s\u1ebd gi\u00fap Th\u1ecbnh chia s\u1ebb m\u1ed9t s\u1ed1 th\u00f4ng tin c\u01a1 b\u1ea3n \u0111\u1ec3 ti\u1ec7n giao ti\u1ebfp, li\u00ean l\u1ea1c v\u00e0 m\u1ee5c ti\u00eau h\u1ecdc t\u1eadp \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 trong qu\u00e1 tr\u00ecnh h\u1ecdc t\u1eadp m\u1ed9t c\u00e1ch s\u00e2u s\u00e1t nh\u1ea5t.
Th\u00f4ng tin email anh/ch\u1ecb chia s\u1ebb \u0111\u01b0\u1ee3c d\u00f9ng \u0111\u1ec3 t\u1ea1o t\u00e0i kho\u1ea3n qua trang web h\u1ecdc t\u1eadp Learn Anything cho ph\u00e9p anh/ch\u1ecb truy c\u1eadp t\u00e0i nguy\u00ean h\u1ecdc t\u1eadp tr\u1ef1c tuy\u1ebfn bao g\u1ed3m: video, gi\u00e1o tr\u00ecnh, b\u00e0i t\u1eadp v\u00e0 \u0111\u00e1p \u00e1n c\u00f9ng c\u00e1c t\u00e0i nguy\u00ean h\u1ecdc t\u1eadp kh\u00e1c.
Chat qua Messenger
M\u00f4i tr\u01b0\u1eddng h\u1ecdc t\u1eadp \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf nh\u01b0 th\u1ebf n\u00e0o?Kh\u00f4ng gian h\u1ecdc t\u1eadp \u0111\u01b0\u1ee3c chia th\u00e0nh c\u00e1c nh\u00f3m ch\u00ednh sau \u0111\u00e2y:
Nh\u00f3m Telegram cho t\u1eebng kh\u00f3a h\u1ecdc: S\u1eed d\u1ee5ng l\u00e0m k\u00eanh trao \u0111\u1ed5i ch\u00ednh th\u1ee9c cho c\u00e1c t\u01b0\u01a1ng t\u00e1c l\u1edbp h\u1ecdc, h\u1ecfi \u0111\u00e1p, th\u00f4ng b\u00e1o, vv. C\u00e1c t\u00ednh n\u0103ng nh\u1eafn tin c\u1ea3nh b\u00e1o trong khu\u00f4n kh\u1ed5 l\u1edbp h\u1ecdc c\u0169ng s\u1ebd \u0111\u01b0\u1ee3c h\u01b0\u1edbng d\u1eabn \u0111\u1ec3 \u00e1p d\u1ee5ng v\u1edbi Telegram b\u1edfi t\u00ednh m\u1edf v\u00e0 ti\u1ec7n l\u1ee3i c\u1ee7a n\u00f3.
Microsoft Teams l\u00e0 c\u00f4ng c\u1ee5 h\u1ed9i th\u1ea3o tr\u1ef1c tuy\u1ebfn s\u1eed d\u1ee5ng \u0111\u1ec3 tham gia l\u1edbp h\u1ecdc tr\u1ef1c tuy\u1ebfn m\u1ed7i ch\u1ee7 nh\u1eadt h\u00e0ng tu\u1ea7n. C\u00f4ng c\u1ee5 n\u00e0y t\u01b0\u01a1ng t\u1ef1 nh\u01b0 Zoom hay Google Meets m\u00e0 anh/ch\u1ecb \u0111\u00e3 bi\u1ebft. \u0110\u1ec3 tham gia h\u1ecdc, anh/ch\u1ecb c\u00f3 th\u1ec3 m\u1edf link ngay trong tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam ph\u1ea7n m\u1ec1m tr\u00ean m\u00e1y t\u00ednh.
Google Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng/c\u00f4ng c\u1ee5 th\u1ef1c h\u00e0nh Python ti\u00eau chu\u1ea9n c\u1ee7a l\u1edbp h\u1ecdc. T\u1ea5t c\u1ea3 t\u00e0i li\u1ec7u gi\u00e1o tr\u00ecnh Python chi ti\u1ebft d\u01b0\u1edbi d\u1ea1ng s\u00e1ch gi\u00e1o khoa \u0111\u01b0\u1ee3c bi\u00ean so\u1ea1n b\u1eb1ng \u0111\u1ecbnh d\u1ea1ng Colab Notebook gi\u00fap b\u1ea1n h\u1ecdc v\u00e0 th\u1ef1c h\u00e0nh \u0111\u01a1n gi\u1ea3n, d\u1ec5 hi\u1ec3u.
Kh\u00f3a h\u1ecdc tr\u1ef1c tuy\u1ebfn LEarn Anything: l\u00e0 n\u01a1i \u0111\u1ec3 anh/ch\u1ecb truy c\u1eadp c\u00e1c t\u00e0i nguy\u00ean kh\u00f3a h\u1ecdc nh\u01b0 slide b\u00e0i gi\u1ea3ng, gi\u00e1o tr\u00ecnh, video, code m\u1eabu, vv v\u00e0 xem l\u1ea1i video c\u00e1c bu\u1ed5i h\u1ecdc \u0111\u00e3 qua. \u0110\u1ed1i v\u1edbi anh/ch\u1ecb kh\u00f4ng c\u00f3 \u0111i\u1ec1u ki\u1ec7n tham gia h\u1ecdc ngay t\u1eeb \u0111\u1ea7u th\u00ec \u0111\u00e2y l\u00e0 n\u01a1i m\u00ecnh xem l\u1ea1i c\u00e1c video bu\u1ed5i h\u1ecdc \u0111\u00e3 qua v\u00e0 ch\u1ee7 \u0111\u1ed9ng th\u1eddi gian h\u1ecdc khi c\u00f3 th\u1ec3.
K\u00eanh Youtube LEarn Anything: l\u00e0 n\u01a1i Th\u1ecbnh chia s\u1ebb c\u00e1c h\u01b0\u1edbng d\u1eabn, minh h\u1ecda tr\u1ef1c ti\u1ebfp qua video gi\u00fap anh/ch\u1ecb n\u1eafm b\u1eaft c\u00e1c kh\u00e1i ni\u1ec7m v\u00e0 th\u1ef1c h\u00e0nh m\u1ed9t c\u00e1ch ch\u00ednh x\u00e1c, d\u1ec5 hi\u1ec3u. H\u00e3y b\u1ea5m n\u00fat theo d\u00f5i \u0111\u1ec3 c\u1eadp nh\u1eadt c\u00e1c n\u1ed9i dung m\u1edbi nh\u1ea5t.
Github thinh-vu v\u00e0 vnstock-hq Th\u1ecbnh chia s\u1ebb c\u00e1c d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf, ch\u01b0\u01a1ng tr\u00ecnh Python v\u00e0 gi\u00fap h\u1ecdc vi\u00ean l\u00e0m quen v\u1edbi c\u00f4ng c\u1ee5 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n n\u00e0y khi l\u1eadp tr\u00ecnh.
M\u1eb7c \u0111\u1ecbnh t\u00e0i kho\u1ea3n h\u1ecdc t\u1eadp c\u1ee7a anh/ch\u1ecb c\u00f3 gi\u00e1 tr\u1ecb trong 1 n\u0103m khi \u0111\u01b0\u1ee3c t\u1ea1o. \u0110i\u1ec1u n\u00e0y c\u0169ng khuy\u1ebfn kh\u00edch anh/ch\u1ecb th\u1ef1c s\u1ef1 ch\u00fa t\u00e2m v\u00e0o khai th\u00e1c nh\u1eefng n\u1ed9i dung m\u00ecnh \u0111\u00e3 tr\u1ea3 ph\u00ed \u0111\u1ec3 s\u1edf h\u1eefu. Ki\u1ebfn th\u1ef1c th\u1ef1c s\u1ef1 h\u1eefu d\u1ee5ng khi \u0111i v\u00e0o th\u1ef1c t\u1ebf ch\u1ee9 kh\u00f4ng ph\u1ea3i l\u01b0u trong kho. Do \u0111\u00f3 d\u00f9 c\u00f3 th\u1eddi gian truy c\u1eadp v\u00f4 h\u1ea1n n\u00f3 c\u0169ng tr\u1edf n\u00ean v\u00f4 gi\u00e1 tr\u1ecb.
T\u00f9y ch\u00ednh s\u00e1ch c\u1ee7a kh\u00f3a h\u1ecdc theo t\u1eebng th\u1eddi k\u1ef3 m\u00e0 vi\u1ec7c n\u00e0y c\u00f3 th\u1ec3 thay \u0111\u1ed5i, tuy nhi\u00ean anh/ch\u1ecb c\u00f3 th\u1ec3 nh\u1eafn Th\u1ecbnh \u0111\u1ec3 y\u00eau c\u1ea7u xem l\u1ea1i n\u1ed9i dung n\u1ebfu c\u1ea7n thi\u1ebft m\u00e0 kh\u00f4ng ph\u00e1t sinh th\u00eam ph\u00ed.
L\u1edbp h\u1ecdc tr\u1ef1c tuy\u1ebfn th\u00ec vi\u1ec7c th\u1ef1c h\u00e0nh di\u1ec5n ra nh\u01b0 th\u1ebf n\u00e0o?Anh/ch\u1ecb \u0111\u01b0\u1ee3c c\u1ecd x\u00e1t v\u1edbi ki\u1ebfn th\u1ee9c th\u1ef1c t\u1ebf v\u00e0 l\u00fd thuy\u1ebft qua m\u1ed7i b\u00e0i gi\u1ea3ng m\u1ed7i bu\u1ed5i h\u1ecdc. B\u00e0i t\u1eadp th\u1ef1c h\u00e0nh \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang kh\u00f3a h\u1ecdc tr\u1ef1c tuy\u1ebfn theo s\u00e1t n\u1ed9i dung m\u1ed7i bu\u1ed5i h\u1ecdc.
Anh/ch\u1ecb c\u1ea7n d\u00e0nh th\u1eddi gian tr\u1ed1ng trong tu\u1ea7n gi\u1eefa 2 bu\u1ed5i h\u1ecdc \u0111\u1ec3 thao t\u00e1c th\u1ef1c h\u00e0nh v\u00e0 gi\u1ea3i quy\u1ebft c\u00e1c b\u00e0i t\u1eadp \u0111\u1ecbnh h\u01b0\u1edbng trong n\u1ed9i dung th\u1ef1c h\u00e0nh. Vi\u1ec7c t\u1ef1 l\u00e0m b\u00e0i t\u1eadp gi\u00fap anh ch\u1ecb v\u1ee1 ra nhi\u1ec1u \u0111i\u1ec1u so v\u1edbi ch\u1ec9 \u0111\u1ecdc l\u00fd thuy\u1ebft v\u00e0 th\u1ef1c s\u1ef1 bi\u1ebfn ki\u1ebfn th\u1ee9c tr\u1edf th\u00e0nh m\u1ed9t ph\u1ea7n c\u1ee7a m\u00ecnh.
Anh/ch\u1ecb s\u1ebd g\u1eedi l\u1ea1i ph\u1ea7n b\u00e0i t\u1eadp \u0111\u00e3 ho\u00e0n th\u00e0nh cho email c\u1ee7a Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c nh\u1eadn x\u00e9t v\u00e0 s\u1eeda b\u00e0i (n\u1ebfu c\u1ea7n thi\u1ebft). \u0110\u00e1p \u00e1n m\u1eabu c\u0169ng \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang kh\u00f3a h\u1ecdc \u0111\u1ec3 c\u1ea3 l\u1edbp c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 \u0111\u1ed1i chi\u1ebfu v\u1edbi c\u00e1ch l\u00e0m c\u1ee7a m\u00ecnh. Vi\u1ec7c xem b\u00e0i t\u1eadp th\u1ef1c h\u00e0nh c\u1ee7a anh/ch\u1ecb v\u00e0 nh\u1eadn x\u00e9t gi\u00fap Th\u1ecbnh n\u1eafm \u0111\u01b0\u1ee3c t\u00ecnh h\u00ecnh h\u1ecdc t\u1eadp v\u00e0 m\u1ee9c \u0111\u1ed9 hi\u1ec3u b\u00e0i c\u1ee7a anh/ch\u1ecb \u0111\u1ec3 h\u1ed7 tr\u1ee3. \u0110\u00e2y c\u0169ng l\u00e0 c\u00e1ch \"c\u1ea7m tay ch\u1ec9 vi\u1ec7c\" tuy kh\u00f4ng ng\u1ed3i c\u00f9ng nhau nh\u01b0ng t\u01b0 duy chung 1 h\u01b0\u1edbng r\u1ea5t hi\u1ec7u qu\u1ea3.
T\u00f4i mu\u1ed1n s\u1edf h\u1eefu ki\u1ebfn th\u1ee9c nhanh h\u01a1n, c\u00f3 c\u00e1ch n\u00e0o thay v\u00ec ph\u1ea3i tr\u1ea3i qua 2 th\u00e1ng r\u01b0\u1ee1i?Th\u1ecbnh r\u1ea5t vui khi nh\u1eadn \u0111\u01b0\u1ee3c th\u1eafc m\u1eafc n\u00e0y c\u1ee7a anh/ch\u1ecb. . L\u1ed9 tr\u00ecnh h\u1ecdc hi\u1ec7n t\u1ea1i tr\u1ea3i qua 10 bu\u1ed5i h\u1ecdc \u0111\u01b0\u1ee3c chia th\u00e0nh 10 tu\u1ea7n b\u1edfi l\u01b0\u1ee3ng ki\u1ebfn th\u1ee9c t\u01b0\u01a1ng \u0111\u1ed1i bao qu\u00e1t v\u00e0 \u0111\u1ee7 s\u00e2u \u0111\u1ec3 anh/ch\u1ecb s\u1edf h\u1eefu \u0111\u1ee7 ki\u1ebfn th\u1ee9c/k\u1ef9 n\u0103ng khi ho\u00e0n th\u00e0nh do \u0111\u00f3 1 bu\u1ed5i/tu\u1ea7n l\u00e0 ph\u00f9 h\u1ee3p theo kinh nghi\u1ec7m t\u1ed5 ch\u1ee9c l\u1edbp h\u1ecdc \u0111\u1ebfn hi\u1ec7n t\u1ea1i.
Anh ch\u1ecb c\u00f3 th\u1ec3 \u0111\u1ea9y nhanh t\u1ed1c \u0111\u1ed9 h\u1ecdc b\u1eb1ng c\u00e1ch y\u00eau c\u1ea7u Th\u1ecbnh m\u1edf truy c\u1eadp \u0111\u1ec3 xem video ghi h\u00ecnh c\u1ee7a c\u00e1c kh\u00f3a tr\u01b0\u1edbc n\u1ebfu c\u00f3 th\u1eddi gian v\u00e0 c\u00f3 b\u1eaft k\u1ecbp ki\u1ebfn th\u1ee9c t\u1ed1t.
\"Good things take time\" - Nh\u1eefng \u0111i\u1ec1u t\u1ed1t \u0111\u1eb9p th\u01b0\u1eddng c\u1ea7n nhi\u1ec1u th\u1eddi gian
Anh l\u1edbn tu\u1ed5i r\u1ed3i c\u00f3 tham gia h\u1ecdc \u0111\u01b0\u1ee3c kh\u00f4ng?Ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u1edbi Python kh\u00f4ng y\u00eau c\u1ea7u m\u1ee9c \u0111\u1ed9 chuy\u00ean nghi\u1ec7p cao nh\u01b0 l\u1eadp tr\u00ecnh \u1ee9ng d\u1ee5ng. Tuy nhi\u00ean \u0111\u1ec3 tr\u1edf n\u00ean th\u00e0nh th\u1ea1o v\u1eabn y\u00eau c\u1ea7u c\u00f3 nh\u1eefng ki\u1ebfn th\u1ee9c n\u1ec1n t\u1ed1t \u0111\u1eb7c bi\u1ec7t l\u00e0 l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh/ch\u1ee9ng kho\u00e1n trong kh\u00f3a h\u1ecdc n\u00e0y.
C\u00e1c ki\u1ebfn th\u1ee9c v\u1ec1 d\u1eef li\u1ec7u, l\u1eadp tr\u00ecnh \u0111\u1ec1u c\u00f3 th\u1ec3 h\u1ecdc v\u00e0 r\u00e8n luy\u1ec7n \u0111\u01b0\u1ee3c t\u00f9y t\u1ed1c \u0111\u1ed9 hi\u1ec3u c\u1ee7a m\u1ed7i ng\u01b0\u1eddi m\u00e0 y\u00eau c\u1ea7u th\u1eddi gian nghi\u00ean c\u1ee9u d\u00e0i hay ng\u1eafn.
N\u1ebfu anh quan t\u00e2m t\u1edbi kh\u00f3a h\u1ecdc v\u00e0 c\u00f2n e ng\u1ea1i v\u1ec1 \u0111\u1ed9 tu\u1ed5i v\u00e0 s\u1ee3 m\u00ecnh kh\u00f3 b\u1eaft k\u1ecbp th\u00ec h\u00e3y trao \u0111\u1ed5i tr\u1ef1c ti\u1ebfp v\u1edbi Th\u1ecbnh \u0111\u1ec3 \u0111\u01b0\u1ee3c t\u01b0 v\u1ea5n v\u00e0 hi\u1ec3u r\u00f5 m\u1ee9c \u0111\u1ed9 ph\u00f9 h\u1ee3p c\u1ee7a m\u00ecnh tr\u01b0\u1edbc khi \u0111\u0103ng k\u00fd kh\u00f3a h\u1ecdc.
Ch\u1ec9 c\u1ea7n anh/ch\u1ecb c\u00f3 tinh th\u1ea7n h\u1ecdc t\u1eadp b\u1ec1n b\u1ec9 v\u00e0 c\u1ed1 g\u1eafng, Th\u1ecbnh lu\u00f4n s\u1eb5n s\u00e0ng h\u1ed7 tr\u1ee3 v\u00e0 gi\u1ea3i th\u00edch \u0111\u1ec3 anh/ch\u1ecb b\u1eaft k\u1ecbp c\u00e1c ki\u1ebfn th\u1ee9c trong ph\u1ea1m vi l\u1edbp h\u1ecdc v\u00e0 \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf.
Th\u1ef1c t\u1ebf kh\u00f3a h\u1ecdc n\u00e0y \u0111\u00e3 ti\u1ebfp nh\u1eadn c\u00e1c anh l\u1edbn tu\u1ed5i, ng\u01b0\u1eddi l\u1edbn nh\u1ea5t sinh n\u0103m 1963 v\u00e0 nhi\u1ec1u U50 kh\u00e1c. C\u00e1c anh c\u00f3 kinh nghi\u1ec7m l\u00e0m vi\u1ec7c l\u00e2u n\u0103m, ti\u1ebfp c\u1eadn c\u00f4ng ngh\u1ec7 t\u1ed1t v\u00e0 cam k\u1ebft h\u1ecdc t\u1eadp m\u1ea1nh m\u1ebd n\u00ean ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 b\u1eaft k\u1ecbp ki\u1ebfn th\u1ee9c trong l\u1edbp h\u1ecdc.
Kh\u00f3a h\u1ecdc c\u00f3 c\u1ea5p ch\u1ee9ng ch\u1ec9 khi ho\u00e0n th\u00e0nh kh\u00f4ng?Kh\u00f3a h\u1ecdc ch\u00fa tr\u1ecdng v\u00e0o vi\u1ec7c ti\u1ebfp c\u1eadn v\u00e0 l\u00e0m quen v\u1edbi l\u1eadp tr\u00ecnh v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u b\u1eb1ng Python mang t\u00ednh \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf cao gi\u00fap \u0111\u1ea3m b\u1ea3o h\u1ecdc vi\u00ean c\u00f3 th\u1ec3 s\u1edf h\u1eefu k\u1ef9 n\u0103ng c\u1ea7n thi\u1ebft khi ho\u00e0n th\u00e0nh kh\u00f3a h\u1ecdc.
Kh\u00f3a h\u1ecdc ch\u1ec9 ghi nh\u1eadn s\u1ef1 tham gia v\u00e0 ho\u00e0n th\u00e0nh kh\u00f3a h\u1ecdc mang t\u00ednh kh\u00edch l\u1ec7 h\u01a1n l\u00e0 \u00fd ngh\u0129a v\u1ec1 h\u1ecdc thu\u1eadt hay ph\u00e1p l\u00fd c\u1ee7a t\u1ed5 ch\u1ee9c \u0111\u00e0o t\u1ea1o. N\u1ebfu b\u1ea1n th\u1ef1c s\u1ef1 c\u00f3 nhu c\u1ea7u \u0111\u01b0\u1ee3c c\u1ea5p ch\u1ee9ng ch\u1ec9 \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng cho qu\u00e1 tr\u00ecnh \u0111i l\u00e0m th\u00ec n\u00ean c\u00e2n nh\u1eafc y\u1ebfu t\u1ed1 n\u00e0y khi tham gia kh\u00f3a h\u1ecdc. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 tham gia kh\u00f3a h\u1ecdc \u0111\u1ec3 t\u0103ng t\u00ednh tr\u1ea3i nghi\u1ec7m th\u1ef1c t\u1ebf v\u00e0 b\u1ed3i d\u01b0\u1ee1ng ki\u1ebfn th\u1ee9c sau \u0111\u00f3 \u00f4n luy\u1ec7n thi ch\u1ee9ng ch\u1ec9 v\u1edbi ti\u00eau chu\u1ea9n ng\u00e0nh \u0111\u01b0\u1ee3c ch\u1ea5p nh\u1eadn r\u1ed9ng r\u00e3i th\u00f4ng qua Microsoft Learn, Coursera, Free Code Camp, vv.
"},{"location":"course/#chia-se-cua-hoc-vien","title":"Chia s\u1ebb c\u1ee7a h\u1ecdc vi\u00ean","text":"D\u0169ng Nguy\u1ec5nThanh L\u00eaTr\u01b0\u1eddng H\u00e0Trang Nguy\u1ec5nChi VuBonnie \u0110inh
D\u0169ng Nguy\u1ec5n @ Nh\u00e0 qu\u1ea3n l\u00fd qu\u1ef9 | H\u00e0 N\u1ed9i
Ch\u1ec9 s\u1ee3 ko h\u1ecdc th\u00f4i, ch\u1ee9 c\u1ee9 \u0111i l\u00e0 s\u1ebd \u0111\u1ebfn. C\u00f3 em d\u1eabn \u0111\u01b0\u1eddng r\u1ed3i ch\u1ee9 a t\u1ef1 m\u00f2 m\u1eabm ch\u1eafc nhanh c\u0169ng ph\u1ea3i n\u1eeda n\u0103m. H\u1ecdc ph\u00ed cao ch\u00fat nh\u01b0ng anh th\u1ea5y em r\u1ea5t chuy\u00ean nghi\u1ec7p, l\u01b0\u1ee3ng ki\u1ebfn th\u1ee9c cung c\u1ea5p nhi\u1ec1u. C\u0169ng \u0111\u00e1ng gi\u00e1
Thanh L\u00ea @ Nh\u00e0 \u0111\u1ea7u t\u01b0 chuy\u00ean nghi\u1ec7p | H\u00e0 N\u1ed9i
Anh th\u1ea5y em h\u1ecdc kinh t\u1ebf, marketing ra r\u1ed3i l\u00e0m c\u00e1i n\u00e0y th\u00ec th\u1eadt \u0111am m\u00ea v\u00e0 th\u1ef1c t\u1ebf m\u1edbi c\u00f3 \u0111\u01b0\u1ee3c nh\u01b0 n\u00e0y, c\u00f3 g\u00ec em truy\u1ec1n \u0111am m\u00ea cho b\u1ea1n nh\u00e0 anh v\u1edbi nh\u00e9.
Anh Thanh sinh n\u0103m 1978 v\u00e0 con g\u00e1i 19 tu\u1ed5i \u0111ang h\u1ecdc n\u0103m nh\u1ea5t t\u1ea1i \u0110H Kinh T\u1ebf Qu\u1ed1c D\u00e2n, H\u00e0 N\u1ed9i c\u00f9ng tham gia kh\u00f3a h\u1ecdc. C\u00e2u chuy\u1ec7n v\u1ec1 anh \u0111\u01b0\u1ee3c chia s\u1ebb t\u00e0i b\u00e0i vi\u1ebft tr\u00ean trang c\u00e1 nh\u00e2n c\u1ee7a Th\u1ecbnh.
Tr\u01b0\u1eddng H\u00e0 @ Ng\u00e2n h\u00e0ng BIDV, H\u00e0 N\u1ed9i
Tr\u01b0\u1edbc m\u00ecnh c\u00f3 h\u1ecdc ch\u1ee9ng ch\u1ec9 qu\u1ea3n l\u00fd r\u1ee7i ro FRM, c\u00f3 kha kh\u00e1 \u00fd t\u01b0\u1edfng v\u1ec1 \u0111\u1ea7u t\u01b0 v\u00e0 trading nh\u01b0ng b\u1ecb v\u01b0\u1edbng m\u1ea5t ph\u1ea7n tri\u1ec3n khai gi\u1edd h\u1ecdc th\u00ec m\u1edbi t\u1ef1 tin \u0111\u1ec3 l\u00e0m \u0111\u01b0\u1ee3c.
Trang Nguy\u1ec5n - Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n, x\u00e2y d\u1ef1ng bot ph\u00e1i sinh, \u0110\u1ed3ng Nai
Th\u1ecbnh chia s\u1ebb r\u1ea5t nhi\u1ec7t t\u00ecnh chi ti\u1ebft v\u1ec1 c\u00e1ch requests webscaping. H\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 pandas. Nhi\u1ec7t t\u00ecnh h\u1ed7 tr\u1ee3 1 k\u00e8m 1. M\u00ecnh th\u00edch nh\u1ea5t c\u00e1ch request c\u00e0o d\u1eef li\u1ec7u tr\u00ean web v\u1ec1 python m\u00e0 Th\u1ecbnh chia s\u1ebb.
Chi V\u0169 - Marketing Solution @ Tiktok, HCM
C\u1ea3m \u01a1n Th\u1ecbnh nhi\u1ec1u, c\u00e1c ki\u1ebfn th\u1ee9c trong kho\u00e1 kh\u00e1 nhi\u1ec1u nh\u01b0ng \u0111\u01b0\u1ee3c s\u1eafp x\u1ebfp c\u00f4 \u0111\u1ecdng, t\u1edb h\u1ecdc xong th\u1ea5y t\u1ef1 tin khi nh\u00ecn d\u1eef li\u1ec7u h\u01a1n h\u1eb3n kaka.
Th\u00fay \u0110inh - Data Analayst @ Imerys, France
Con \u0111\u01b0\u1eddng chuy\u1ec3n ng\u00e0nh d\u00e0i gh\u00ea, m\u00e0 b\u01b0\u1edbc ch\u00e2n \u0111\u1ea7u ti\u00ean l\u00e0 v\u00e0o l\u1edbp Python c\u1ee7a Th\u1ecbnh :))
\u0110\u00e2y l\u00e0 chia s\u1ebb c\u1ee7a Th\u00fay v\u00e0 c\u0169ng l\u00e0 tin r\u1ea5t vui t\u1eeb b\u1ea1n v\u00ec \u0111\u00e3 ch\u1ecdn \u0111\u01b0\u1ee3c c\u00f4ng vi\u1ec7c m\u00ecnh y\u00eau th\u00edch t\u1ea1i Ph\u00e1p.
"},{"location":"disclaimer/","title":"Mi\u1ec5n tr\u1eeb tr\u00e1ch nhi\u1ec7m","text":""},{"location":"disclaimer/#oi-voi-nguoi-dung","title":"\u0110\u1ed1i v\u1edbi ng\u01b0\u1eddi d\u00f9ng","text":"Quan \u0111i\u1ec3m ph\u00e1t tri\u1ec3n s\u1ea3n ph\u1ea9m
vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n nh\u1eb1m m\u1ee5c \u0111\u00edch cung c\u1ea5p c\u00e1c c\u00f4ng c\u1ee5 nghi\u00ean c\u1ee9u \u0111\u01a1n gi\u1ea3n v\u00e0 mi\u1ec5n ph\u00ed, nh\u1eb1m gi\u00fap ng\u01b0\u1eddi nghi\u00ean c\u1ee9u ti\u1ebfp c\u1eadn v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c cung c\u1ea5p ph\u1ee5 thu\u1ed9c v\u00e0o ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u, do \u0111\u00f3, khi s\u1eed d\u1ee5ng, b\u1ea1n c\u1ea7n th\u1eadn tr\u1ecdng v\u00e0 c\u00e2n nh\u1eafc.
\ud83d\udcb0 Trong b\u1ea5t k\u1ef3 tr\u01b0\u1eddng h\u1ee3p n\u00e0o, ng\u01b0\u1eddi s\u1eed d\u1ee5ng ho\u00e0n to\u00e0n ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u1ec1 quy\u1ebft \u0111\u1ecbnh s\u1eed d\u1ee5ng d\u1eef li\u1ec7u tr\u00edch xu\u1ea5t t\u1eeb vnstock v\u00e0 ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u1edbi b\u1ea5t k\u1ef3 t\u1ed5n th\u1ea5t n\u00e0o c\u00f3 th\u1ec3 ph\u00e1t sinh. B\u1ea1n n\u00ean t\u1ef1 m\u00ecnh \u0111\u1ea3m b\u1ea3o t\u00ednh ch\u00ednh x\u00e1c v\u00e0 \u0111\u00e1ng tin c\u1eady c\u1ee7a d\u1eef li\u1ec7u tr\u01b0\u1edbc khi s\u1eed d\u1ee5ng ch\u00fang. M\u00e3 ngu\u1ed3n m\u1edf c\u1ee7a d\u1ef1 \u00e1n cho ph\u00e9p b\u1ea1n x\u00e1c th\u1ef1c th\u00f4ng tin v\u00e0 qu\u00e1 tr\u00ecnh bi\u1ebfn \u0111\u1ed5i \u0111\u1ec3 tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u cu\u1ed1i c\u00f9ng.
Vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n v\u00e0 quy\u1ebft \u0111\u1ecbnh \u0111\u1ea7u t\u01b0 l\u00e0 ho\u1ea1t \u0111\u1ed9ng c\u00f3 r\u1ee7i ro v\u00e0 c\u00f3 th\u1ec3 g\u00e2y m\u1ea5t m\u00e1t t\u00e0i s\u1ea3n. B\u1ea1n n\u00ean t\u00ecm ki\u1ebfm l\u1eddi khuy\u00ean t\u1eeb c\u00e1c chuy\u00ean gia t\u00e0i ch\u00ednh v\u00e0 tu\u00e2n th\u1ee7 c\u00e1c quy \u0111\u1ecbnh ph\u00e1p lu\u1eadt v\u1ec1 ch\u1ee9ng kho\u00e1n t\u1ea1i Vi\u1ec7t Nam v\u00e0 qu\u1ed1c t\u1ebf khi tham gia v\u00e0o ho\u1ea1t \u0111\u1ed9ng giao d\u1ecbch ch\u1ee9ng kho\u00e1n.
Xin l\u01b0u \u00fd r\u1eb1ng vnstock kh\u00f4ng ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 tr\u00e1ch nhi\u1ec7m ph\u00e1p l\u00fd n\u00e0o \u0111\u1ed1i v\u1edbi b\u1ea5t k\u1ef3 t\u1ed5n th\u1ea5t ho\u1eb7c thi\u1ec7t h\u1ea1i n\u00e0o ph\u00e1t sinh t\u1eeb vi\u1ec7c s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y.
Vi\u1ec7c truy xu\u1ea5t d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t th\u00f4ng qua c\u00e1c v\u00f2ng l\u1eb7p ho\u1eb7c ch\u01b0\u01a1ng tr\u00ecnh g\u1eedi y\u00eau c\u1ea7u (request) h\u00e0ng lo\u1ea1t trong th\u1eddi gian ng\u1eafn \u0111\u1ebfn c\u01a1 s\u1edf d\u1eef li\u1ec7u c\u00f9a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u kh\u00f4ng \u0111\u01b0\u1ee3c khuy\u1ebfn kh\u00edch. Ng\u01b0\u1eddi d\u00f9ng c\u1ea7n \u00fd th\u1ee9c \u0111\u01b0\u1ee3c h\u00e0nh \u0111\u1ed9ng c\u1ee7a m\u00ecnh \u0111\u1ec3 tr\u00e1nh g\u00e2y t\u1ed5n th\u1ea5t \u0111\u1ebfn h\u1ec7 th\u1ed1ng c\u1ee7a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u v\u00e0 li\u00ean quan \u0111\u1ebfn c\u00e1c r\u1ee7i ro ph\u00e1p l\u00fd li\u00ean quan, b\u1edfi ranh gi\u1edbi c\u1ee7a vi\u1ec7c truy c\u1eadp d\u1eef li\u1ec7u v\u00e0 t\u1ea1o ra m\u1ed9t cu\u1ed9c t\u1ea5n c\u00f4ng t\u1eeb ch\u1ed1i truy c\u1eadp t\u1edbi m\u00e1y ch\u1ee7 c\u1ee7a ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u l\u00e0 t\u01b0\u01a1ng \u0111\u1ed1i mong manh.
"},{"location":"disclaimer/#oi-voi-cong-ty-chung-khoan-nguon-cap-du-lieu","title":"\u0110\u1ed1i v\u1edbi c\u00f4ng ty ch\u1ee9ng kho\u00e1n, ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u","text":"Quan \u0111i\u1ec3m thi\u1ebft k\u1ebf
\ud83d\udc31\u200d\ud83d\udc64 vnstock \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf ho\u00e0n to\u00e0n cho m\u1ee5c \u0111\u00edch ph\u00e2n t\u00edch v\u00e0 th\u1ef1c h\u00e0nh nghi\u00ean c\u1ee9u \u0111\u1ea7u t\u01b0. M\u1ecdi h\u00ecnh th\u1ee9c s\u1eed d\u1ee5ng kh\u00f4ng \u0111\u00fang m\u1ee5c \u0111\u00edch ho\u1eb7c vi\u1ec7c s\u1eed d\u1ee5ng tr\u00e1i ph\u00e9p th\u01b0 vi\u1ec7n v\u1edbi m\u1ee5c \u0111\u00edch x\u1ea5u nh\u01b0 t\u1ea5n c\u00f4ng public API hay g\u00e2y h\u1ea1i cho h\u1ec7 th\u1ed1ng th\u00f4ng qua t\u1eeb ch\u1ed1i truy c\u1eadp ho\u1eb7c c\u00e1c h\u00e0nh \u0111\u1ed9ng t\u01b0\u01a1ng t\u1ef1, ho\u00e0n to\u00e0n n\u1eb1m ngo\u00e0i ph\u1ea1m vi s\u1eed d\u1ee5ng d\u1ef1 \u0111\u1ecbnh v\u00e0 kh\u00f4ng thu\u1ed9c tr\u00e1ch nhi\u1ec7m c\u1ee7a nh\u00f3m ph\u00e1t tri\u1ec3n.
Nh\u1eadn th\u1ee9c \u0111\u01b0\u1ee3c nh\u1eefng r\u1ee7i ro h\u1ec7 th\u1ed1ng ti\u1ec1m t\u00e0ng, vnstock ch\u1ec9 ch\u00ednh th\u1ee9c cung c\u1ea5p c\u00e1c h\u00e0m truy xu\u1ea5t d\u1eef li\u1ec7u ri\u00eang l\u1ebb, vi\u1ec7c s\u1eed d\u1ee5ng k\u1ebft h\u1ee3p c\u00e1c h\u00e0m \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t g\u00e2y t\u1ed5n th\u1ea5t \u0111\u1ebfn h\u1ec7 th\u1ed1ng c\u1ee7a c\u00f4ng ty ch\u1ee9ng kho\u00e1n/ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u n\u1eb1m ngo\u00e0i ph\u1ea1m vi ch\u00fang t\u00f4i c\u00f3 th\u1ec3 ki\u1ec3m so\u00e1t.
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/","title":"Tr\u00edch d\u1eabn & gi\u1ea5y ph\u00e9p","text":""},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#trich-dan","title":"Tr\u00edch d\u1eabn","text":"Khi b\u1ea1n s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m vnstock trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh, h\u00e3y tu\u00e2n th\u1ee7 c\u00e1c h\u01b0\u1edbng d\u1eabn v\u1ec1 Tr\u00edch d\u1eabn (Cite) d\u01b0\u1edbi \u0111\u00e2y:
N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng d\u1eef li\u1ec7u ho\u1eb7c m\u00e3 ngu\u1ed3n c\u1ee7a Vnstock trong d\u1ef1 \u00e1n/b\u00e0i vi\u1ebft/video c\u1ee7a m\u00ecnh, xin vui l\u00f2ng cung c\u1ea5p tr\u00edch d\u1eabn (cite) t\u1edbi d\u1ef1 \u00e1n Vnstock. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 v\u00ed d\u1ee5 tr\u00edch d\u1eabn m\u1eabu:
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c l\u1ea5y t\u1eeb Vnstock - g\u00f3i ph\u1ea7n m\u1ec1m Python ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam. (thinh-vu @ Github, Copyright (c) 2022).\n
Tr\u00edch d\u1eabn cho m\u00e3 ngu\u1ed3n:
M\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c l\u1ea5y t\u1eeb Vnstock - g\u00f3i ph\u1ea7n m\u1ec1m Python ph\u00e2n t\u00edch th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam. (thinh-vu @ Github, Copyright (c) 2022).\n
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#giay-phep","title":"Gi\u1ea5y ph\u00e9p","text":"Vnstock \u0111\u01b0\u1ee3c c\u1ea5p ph\u00e9p theo Gi\u1ea5y ph\u00e9p MIT. N\u1ed9i dung c\u1ee7a gi\u1ea5y ph\u00e9p nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y, v\u00e0 th\u1ec3 hi\u1ec7n trong file LICENSE.
Khi s\u1eed d\u1ee5ng Vnstock trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh, b\u1ea1n ph\u1ea3i tu\u00e2n th\u1ee7 v\u00e0 gi\u1eef nguy\u00ean gi\u1ea5y ph\u00e9p MIT c\u1ee7a Vnstock. \u0110\u1ed3ng th\u1eddi, h\u00e3y ch\u1eafc ch\u1eafn r\u1eb1ng b\u1ea1n \u0111\u00e3 bao g\u1ed3m t\u00ean t\u00e1c gi\u1ea3 v\u00e0 gi\u1ea5y ph\u00e9p trong d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n.
L\u01b0u \u00fd: Vnstock l\u00e0 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf, do \u0111\u00f3 vi\u1ec7c tu\u00e2n th\u1ee7 gi\u1ea5y ph\u00e9p v\u00e0 tr\u00edch d\u1eabn \u0111\u00f3ng vai tr\u00f2 quan tr\u1ecdng trong vi\u1ec7c h\u1ed7 tr\u1ee3 v\u00e0 duy tr\u00ec c\u1ed9ng \u0111\u1ed3ng ngu\u1ed3n m\u1edf.
C\u1ea3m \u01a1n b\u1ea1n \u0111\u00e3 s\u1eed d\u1ee5ng Vnstock v\u00e0 tu\u00e2n th\u1ee7 c\u00e1c h\u01b0\u1edbng d\u1eabn Tr\u00edch d\u1eabn v\u00e0 Gi\u1ea5y ph\u00e9p n\u00e0y. N\u1ebfu b\u1ea1n c\u00f3 b\u1ea5t k\u1ef3 c\u00e2u h\u1ecfi ho\u1eb7c g\u00f3p \u00fd n\u00e0o, xin vui l\u00f2ng li\u00ean h\u1ec7 v\u1edbi t\u00f4i qua m\u1ee5c Th\u1ea3o lu\u1eadn c\u1ee7a repo Github n\u00e0y ho\u1eb7c nh\u1eafn tin tr\u1ef1c ti\u1ebfp.
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#tieng-viet","title":"Ti\u1ebfng Vi\u1ec7t","text":"B\u1ea3n quy\u1ec1n (c) 2022 Thinh Vu | thinh-vu @ Github | MIT\n\n\u0110\u01b0\u1ee3c c\u1ea5p ph\u00e9p theo quy\u1ec1n t\u1ef1 do, mi\u1ec5n ph\u00ed, cho b\u1ea5t k\u1ef3 c\u00e1 nh\u00e2n n\u00e0o nh\u1eadn \u0111\u01b0\u1ee3c m\u1ed9t b\u1ea3n sao c\u1ee7a ph\u1ea7n m\u1ec1m n\u00e0y v\u00e0 c\u00e1c t\u1ec7p t\u00e0i li\u1ec7u li\u00ean quan (g\u1ecdi chung l\u00e0 \"Ph\u1ea7n m\u1ec1m\"), \u0111\u1ec3 s\u1eed d\u1ee5ng Ph\u1ea7n m\u1ec1m m\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 h\u1ea1n ch\u1ebf n\u00e0o, bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n quy\u1ec1n s\u1eed d\u1ee5ng, sao ch\u00e9p, s\u1eeda \u0111\u1ed5i, h\u1ee3p nh\u1ea5t, xu\u1ea5t b\u1ea3n, ph\u00e2n ph\u1ed1i, c\u1ea5p ph\u00e9p l\u1ea1i v\u00e0/ho\u1eb7c b\u00e1n c\u00e1c b\u1ea3n sao c\u1ee7a Ph\u1ea7n m\u1ec1m, v\u00e0 cho ph\u00e9p nh\u1eefng ng\u01b0\u1eddi nh\u1eadn Ph\u1ea7n m\u1ec1m \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o Ph\u1ea7n m\u1ec1m n\u00e0y, tu\u00e2n th\u1ee7 c\u00e1c \u0111i\u1ec1u ki\u1ec7n sau \u0111\u00e2y:\n\nTh\u00f4ng b\u00e1o b\u1ea3n quy\u1ec1n tr\u00ean v\u00e0 th\u00f4ng b\u00e1o gi\u1ea5y ph\u00e9p n\u00e0y ph\u1ea3i \u0111\u01b0\u1ee3c bao g\u1ed3m trong t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n sao ho\u1eb7c ph\u1ea7n quan tr\u1ecdng c\u1ee7a Ph\u1ea7n m\u1ec1m.\n\nPH\u1ea6N M\u1ec0M \u0110\u01af\u1ee2C CUNG C\u1ea4P \"NGUY\u00caN B\u1ea2N\", KH\u00d4NG C\u00d3 B\u1ea4T K\u1ef2 H\u00ccNH TH\u1ee8C B\u1ea2O \u0110\u1ea2M N\u00c0O, BAO G\u1ed2M NH\u01afNG KH\u00d4NG GI\u1edaI H\u1ea0N \u0110\u1ebeN S\u1ef0 B\u1ea2O \u0110\u1ea2M V\u1ec0 CH\u1ea4T L\u01af\u1ee2NG KINH DOANH, PH\u00d9 H\u1ee2P V\u1edaI M\u1ee4C \u0110\u00cdCH C\u1ee4 TH\u1ec2 V\u00c0 VI PH\u1ea0M QUY\u1ec0N S\u1ede H\u1eeeU. TRONG M\u1eccI TR\u01af\u1edcNG H\u1ee2P, T\u00c1C GI\u1ea2 HO\u1eb6C CH\u1ee6 S\u1ede H\u1eeeU B\u1ea2N QUY\u1ec0N KH\u00d4NG CH\u1ecaU TR\u00c1CH NHI\u1ec6M \u0110\u1ed0I V\u1edaI B\u1ea4T K\u1ef2 Y\u00caU C\u1ea6U B\u1ed2I TH\u01af\u1edcNG, THI\u1ec6T H\u1ea0I HO\u1eb6C TR\u00c1CH NHI\u1ec6M PH\u00c1P L\u00dd N\u00c0O PH\u00c1T SINH T\u1eea HO\u1eb6C LI\u00caN QUAN \u0110\u1ebeN S\u1eec D\u1ee4NG HO\u1eb6C HI\u1ec6N H\u1eeeU C\u1ee6A PH\u1ea6N M\u1ec0M.\n
Xin c\u1ea3m \u01a1n v\u00e0 ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
"},{"location":"trich-dan-va-giay-phep-su-dung-vnstock/#english","title":"English","text":"Copyright (c) 2022 Thinh Vu | thinh-vu @ Github\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n
"},{"location":"assets/templates/Button/","title":"Button","text":"Download
"},{"location":"assets/templates/Photo%20layout/","title":"Photo layout","text":"\u1ea2nh + m\u00f4 t\u1ea3 + CTA: C\u0103n l\u1ec1 tr\u00e1i, r\u1ed9ng 600px
V\u0103n b\u1ea3n m\u00f4 t\u1ea3
CTA c\u1ee7a b\u1ea1n
Image caption"},{"location":"assets/templates/Social%20link/","title":"Social link","text":"
Website: http://learn-anything.vn Youtube: https://www.youtube.com/@learn_anything_az?sub_confirmation=1 Fanpage: https://www.facebook.com/learn.anything.az
"},{"location":"assets/templates/Youtube%20Video%20embed/","title":"Youtube Video embed","text":""},{"location":"assets/templates/announcement/","title":"Announcement","text":"Ch\u00e8n \u0111o\u1ea1n code sau v\u00e0o cu\u1ed1i trang docs\\docs\\material\\overrides\\main.html
-sau d\u00f2ng 10 \u0111\u1ec3 hi\u1ec3n th\u1ecb banner th\u00f4ng b\u00e1o.
{% block announce %}
{% endblock %}
"},{"location":"assets/templates/new-post/","title":"New post","text":"date: {{date}} title: {{title}} alias: {{title}} description: description goes here tags: - example categories: - example authors: [thinh-vu] draft: false links: - setup/setting-up-a-blog.md readtime: 10
"},{"location":"assets/templates/substack%20subscribe/","title":"Substack subscribe","text":"\u0110\u1ec3 theo d\u00f5i nh\u1eefng n\u1ed9i dung \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt m\u1edbi nh\u1ea5t c\u1ee7a LEarn Anything, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ec3 l\u1ea1i email \u0111\u1ec3 nh\u1eadn th\u00f4ng b\u00e1o qua Substack nh\u00e9.
"},{"location":"blog/","title":"Ki\u1ebfn th\u1ee9c","text":""},{"location":"blog/category/how-to/","title":"H\u01b0\u1edbng d\u1eabn","text":"\u0110\u00e2y l\u00e0 d\u00f2ng ch\u1eef th\u1ee9 hai
"},{"location":"blog/category/knowledge/","title":"Ki\u1ebfn th\u1ee9c","text":"\u0110\u00e2y l\u00e0 d\u00f2ng ch\u1eef \u0111\u1ea7u ti\u00ean
"},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/","title":"Thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u Vnstock s\u1eed d\u1ee5ng Mkdocs Matterial","text":"V\u00ec sao c\u00f3 b\u00e0i vi\u1ebft n\u00e0y?
Ghi ch\u00fa v\u1ec1 c\u00e1c thi\u1ebft l\u1eadp trang t\u00e0i li\u1ec7u v\u1edbi Mkdocs Matterial gi\u00fap c\u00e1c b\u1ea1n \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n v\u00e0 t\u00e0i li\u1ec7u cho d\u1ef1 \u00e1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng c\u1ea5u h\u00ecnh m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh c\u1ee7a m\u00ecnh v\u00e0 xem tr\u01b0\u1edbc n\u1ed9i dung s\u1ebd chia s\u1ebb tr\u00ean trang t\u00e0i li\u1ec7u vnstock. Ho\u1eb7c \u0111\u01a1n gi\u1ea3n l\u00e0 b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng MKDocs t\u01b0\u01a1ng t\u1ef1 vnstocho m\u1ee5c \u0111\u00edch c\u00e1 nh\u00e2n c\u1ee7a m\u00ecnh.
","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cai-at-moi-truong","title":"C\u00e0i \u0111\u1eb7t m\u00f4i tr\u01b0\u1eddng","text":"","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cai-at-python","title":"C\u00e0i \u0111\u1eb7t Python","text":"MKDocs ch\u1ea1y b\u1eb1ng ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python. H\u00e3y \u0111\u1ea3m b\u1ea3o r\u1eb1ng thi\u1ebft b\u1ecb b\u1ea1n \u0111ang d\u00f9ng \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t Python.
Th\u01b0 m\u1ee5c MKDocs c\u1ee7a vnstock \u0111\u01b0\u1ee3c \u0111\u1eb7t t\u1ea1i th\u01b0 m\u1ee5c vnstock/docs
c\u1ee7a d\u1ef1 \u00e1n.
\u0110\u1ec3 c\u00e0i \u0111\u1eb7t c\u00e1c g\u00f3i ph\u1ee5 thu\u1ed9c c\u1ea7n thi\u1ebft \u0111\u1ec3 ch\u1ea1y th\u1eed v\u00e0 xem tr\u01b0\u1edbc trang t\u00e0i li\u1ec7u, b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc sau:
/vnstock/docs
. B\u1ea1n c\u1ea7n copy/paste \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c t\u01b0\u01a1ng \u1ee9ng tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n.pip install -r requirements.txt
C\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t s\u1ebd \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n trong kho\u1ea3ng 30s. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u n\u00e2ng c\u1ea5p pip
tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh tr\u00ean n\u1ebfu pip \u0111\u00e3 ra m\u1eaft phi\u00ean b\u1ea3n m\u1edbi.
Gi\u1edbi thi\u1ec7u
T\u00ednh n\u0103ng xem tr\u01b0\u1edbc (live preview) cho ph\u00e9p b\u1ea1n xem c\u00e1c thay \u0111\u1ed5i th\u1ec3 hi\u1ec7n tr\u1ef1c ti\u1ebfp qua tr\u00ecnh duy\u1ec7t web t\u1eeb m\u00f4i tr\u01b0\u1eddng localhost m\u1ed7i khi b\u1ea1n th\u1ef1c hi\u1ec7n thay \u0111\u1ed5i v\u1edbi c\u1ea5u h\u00ecnh v\u00e0 n\u1ed9i dung trang t\u00e0i li\u1ec7u. Vi\u1ec7c n\u00e0y cho ph\u00e9p b\u1ea1n ph\u00e1t hi\u1ec7n ra l\u1ed7i v\u00e0 t\u00f9y ch\u1ec9nh m\u1ed9t c\u00e1ch nhanh ch\u00f3ng thay v\u00ec ph\u1ea3i chia s\u1ebb c\u00f4ng khai c\u00e1c thay \u0111\u1ed5i \u0111\u1ec3 xem.
vnstock/docs
, ch\u1ea1y l\u1ec7nh sau mkdocs serve
http://127.0.0.1:8000/
\u0111\u1ec3 xem trang t\u00e0i li\u1ec7u.Giao di\u1ec7n l\u00e0m vi\u1ec7c v\u1edbi MKDocs t\u1eeb Github Codespace","tags":["blog"]},{"location":"blog/2023/12/17/huong-dan-thiet-lap-mkdocs-matterial/#cau-truc-trang-tai-lieu","title":"C\u1ea5u tr\u00fac trang t\u00e0i li\u1ec7u","text":"
Gi\u1edbi thi\u1ec7u
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u1ea5u tr\u00fac c\u00e2y th\u01b0 m\u1ee5c c\u1ee7a trang t\u00e0i li\u1ec7u Vnstock t\u01b0\u01a1ng \u1ee9ng v\u1edbi c\u00e1c m\u1ee5c tr\u00ean thanh \u0111i\u1ec1u h\u01b0\u1edbng v\u00e0 m\u00f4 t\u1ea3 n\u1ed9i dung chi ti\u1ebft \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 hi\u1ec3u \u0111\u01b0\u1ee3c \u0111\u1ec3 b\u1eaft \u0111\u1ea7u d\u1ec5 d\u00e0ng.
docs/\n\u251c\u2500start/\n\u2502 \u251c\u2500tai-nguyen-quan-trong-vnstock-website.md\n\u2502 \u251c\u2500huong-dan-su-dung-nhanh-vnstock.md\n\u2502 \u2514\u2500huong-dan-cai-dat-vnstock-python.md\n\u251c\u2500functions/\n\u2502 \u251c\u2500fundamental.md\n\u2502 \u251c\u2500market.md\n\u2502 \u251c\u2500ratio.md\n\u2502 \u251c\u2500listing.md\n\u2502 \u251c\u2500chart.md\n\u2502 \u251c\u2500rating.md\n\u2502 \u251c\u2500financial.md\n\u2502 \u251c\u2500export.md\n\u2502 \u251c\u2500screener.md\n\u2502 \u251c\u2500funds.md\n\u2502 \u251c\u2500comparison.md\n\u2502 \u251c\u2500technical.md\n\u2502 \u2514\u2500evaluation.md\n\u251c\u2500integrate/\n\u2502 \u251c\u2500huggingface.md\n\u2502 \u251c\u2500messaging.md\n\u2502 \u251c\u2500dnse_api.md\n\u2502 \u251c\u2500backtesting.md\n\u2502 \u251c\u2500ta_lib.md\n\u2502 \u251c\u2500web_app.md\n\u2502 \u251c\u2500google_sheets.md\n\u2502 \u251c\u2500pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban.md\n\u2502 \u251c\u2500amibroker.md\n\u2502 \u2514\u2500ssi_fast_connect_api.md\n\u251c\u2500insiders-program/\n\u2502 \u2514\u2500gioi-thieu-chuong-trinh-vnstock-insiders-program.md\n\u251c\u2500community/\n\u2502 \u251c\u2500contribute.md\n\u2502 \u251c\u2500tai-tro-du-an-vnstock.md\n\u2502 \u251c\u2500support.md\n\u2502 \u251c\u2500vnstock-contributors-thanh-vien-tich-cuc.md\n\u2502 \u251c\u2500feedback.md\n\u2502 \u251c\u2500join.md\n\u2502 \u2514\u2500lan-toa-trai-nghiem-voi-vnstock.md\n\u2514\u2500faq/\n\u2502 \u251c\u2500feature.md\n\u2502 \u251c\u2500ung-ho-du-an-vnstock.md\n\u2502 \u251c\u2500community.md\n\u2502 \u2514\u2500vnstock-ho-tro-nguoi-dung.md\n\u251c\u2500changes_log.md\n\u251c\u2500course.md\n\u251c\u2500trich-dan-va-giay-phep-su-dung-vnstock.md\n\u2514\u2500disclaimer.md\n\u251c\u2500assets/\n\u2502 \u2514\u2500images/\n\u251c\u2500material/\n\u2502 \u2514\u2500overrides/\n\u251c\u2500stylesheets/\n\u2502 \u2514\u2500extra.css\n\u251c\u2500requirements.txt\n
","tags":["blog"]},{"location":"community/contribute/","title":"\u0110\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n","text":"L\u1eddi n\u00f3i \u0111\u1ea7u
C\u00e1m \u01a1n b\u1ea1n \u0111\u00e3 quan t\u00e2m \u0111\u1ebfn vi\u1ec7c \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho d\u1ef1 \u00e1n Vnstock. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn nhi\u1ec1u h\u00ecnh th\u1ee9c \u0111\u00f3ng g\u00f3p kh\u00e1c nhau, trong \u0111\u00f3 bao g\u1ed3m nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n c\u00e1c vi\u1ec7c nh\u01b0 x\u00e2y d\u1ef1ng v\u00e0 c\u1ea3i ti\u1ebfn m\u00e3 ngu\u1ed3n ho\u1eb7c d\u1ecbch t\u00e0i li\u1ec7u c\u1ee7a d\u1ef1 \u00e1n.
"},{"location":"community/contribute/#triet-ly-thiet-ke","title":"Tri\u1ebft l\u00fd thi\u1ebft k\u1ebf","text":"H\u1ea7u h\u1ebft m\u00e3 ngu\u1ed3n Vnstock cho \u0111\u1ebfn th\u1eddi \u0111i\u1ec3m 11/2023 \u0111\u1ec1u do m\u1ed9t m\u00ecnh t\u00e1c gi\u1ea3 ph\u00e1t tri\u1ec3n v\u00e0 th\u1ef1c s\u1ef1 \u0111\u00e2y l\u00e0 m\u1ed9t n\u1ed7 l\u1ef1c r\u1ea5t l\u1edbn v\u1edbi kh\u1ed1i l\u01b0\u1ee3ng c\u00f4ng vi\u1ec7c kh\u1ed5ng l\u1ed3. Nh\u1eb1m t\u1ed1i \u01b0u h\u00f3a ngu\u1ed3n l\u1ef1c v\u00e0 t\u1eadp trung v\u00e0o nh\u1eefng \u0111i\u1ec1u c\u00f3 gi\u00e1 tr\u1ecb, nh\u1eefng \u01b0u ti\u00ean v\u00e0 tri\u1ebft l\u00fd thi\u1ebft k\u1ebf Vnstock \u0111\u01b0\u1ee3c t\u00f4i s\u1eed d\u1ee5ng nh\u01b0 sau:
B\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p t\u00ednh n\u0103ng m\u00ecnh c\u1ea3m th\u1ea5y c\u1ea7n thi\u1ebft ho\u1eb7c ph\u00f9 h\u1ee3p v\u1edbi nh\u1eefng g\u00ec vnstock hi\u1ec7n c\u00f3. Vnstock kh\u00f4ng ch\u1ec9 d\u1eebng l\u1ea1i \u1edf m\u1ed9t g\u00f3i ph\u1ea7n m\u1ec1m truy xu\u1ea5t d\u1eef li\u1ec7u hay ch\u1ec9 gi\u1edbi h\u1ea1n v\u1edbi ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u00e0 m\u1ee5c ti\u00eau l\u1edbn nh\u1ea5t l\u00e0 ph\u1ee5c v\u1ee5 ng\u01b0\u1eddi Vi\u1ec7t, v\u00e0 do ng\u01b0\u1eddi Vi\u1ec7t ph\u00e1t tri\u1ec3n.
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c nh\u00f3m th\u00f4ng tin/t\u00ednh n\u0103ng b\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o \u0111\u1ec3 ph\u00e1t tri\u1ec3n.
"},{"location":"community/contribute/#truy-xuat-du-lieu","title":"Truy xu\u1ea5t d\u1eef li\u1ec7u","text":"T\u00f4i tin l\u00e0 t\u1edbi \u0111\u00e2y, b\u1ea1n \u0111\u00e3 c\u00f3 \u0111\u1ee7 th\u00f4ng tin \u0111\u1ec3 b\u1eaft \u0111\u1ea7u h\u00e0nh tr\u00ecnh code d\u1ea1o c\u00f9ng Vnstock. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 nh\u1eefng h\u01b0\u1edbng d\u1eabn gi\u00fap b\u1ea1n b\u1eaft \u0111\u1ea7u d\u1ec5 d\u00e0ng h\u01a1n.
beta
\u0111\u1ec3 y\u00eau c\u1ea7u duy\u1ec7t v\u00e0 c\u1eadp nh\u1eadt m\u00e3 ngu\u1ed3n khi c\u00f4ng vi\u1ec7c ho\u00e0n th\u00e0nh. Nh\u1eefng thay \u0111\u1ed5i do b\u1ea1n \u0111\u00f3ng g\u00f3p s\u1ebd \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean nh\u00e1nh beta
\u0111\u1ec3 th\u1eed nghi\u1ec7m, sau \u0111\u00f3 ph\u00e1t h\u00e0nh ch\u00ednh th\u1ee9c trong phi\u00ean b\u1ea3n ti\u1ebfp theo c\u1ee7a vnstock tr\u00ean Pypi.org c\u00f9ng nh\u1eefng c\u1eadp nh\u1eadt c\u1ee7a t\u00e1c gi\u1ea3.C\u00e1c trao \u0111\u1ed5i v\u1edbi t\u00e1c gi\u1ea3 trong vi\u1ec7c l\u1eadp tr\u00ecnh v\u00e0 \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho d\u1ef1 \u00e1n Vnstock, b\u1ea1n vui l\u00f2ng s\u1eed d\u1ee5ng m\u1ed9t trong c\u00e1c t\u00f9y ch\u1ecdn sau.
T\u00f4i h\u01b0\u1edbng \u0111\u1ebfn m\u1ed9t m\u00f4i tr\u01b0\u1eddng trao \u0111\u1ed5i th\u00e2n thi\u1ec7n, t\u00edch c\u1ef1c v\u00e0 th\u00fac \u0111\u1ea9y h\u1ee3p t\u00e1c khi m\u1eddi c\u00e1c b\u1ea1n tham gia x\u00e2y d\u1ef1ng vnstock. \u0110\u1ec3 m\u1ecdi th\u1ee9 r\u00f5 r\u00e0ng v\u00e0 minh b\u1ea1ch, t\u00f4i chia s\u1ebb t\u1edbi c\u00e1c b\u1ea1n nh\u1eefng nguy\u00ean t\u1eafc gi\u00fap ch\u00fang ta h\u1ee3p t\u00e1c d\u1ec5 d\u00e0ng h\u01a1n trong khu\u00f4n kh\u1ed5 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf nh\u01b0 sau:
Ch\u00fang t\u00f4i c\u1ea3m \u01a1n s\u1ef1 \u0111\u00f3ng g\u00f3p c\u1ee7a b\u1ea1n cho Vnstock. Nh\u00f3m ph\u00e1t tri\u1ec3n s\u1eb5n l\u00f2ng h\u1ed7 tr\u1ee3 v\u00e0 xem x\u00e9t m\u1ecdi \u0111\u00f3ng g\u00f3p \u0111\u1ec3 n\u00e2ng cao ch\u1ea5t l\u01b0\u1ee3ng v\u00e0 t\u00ednh n\u0103ng c\u1ee7a d\u1ef1 \u00e1n. H\u00e3y c\u00f9ng nhau t\u1ea1o n\u00ean m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd h\u1ed7 tr\u1ee3 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam! \ud83d\ude80
"},{"location":"community/feedback/","title":"\u0110\u00f3ng g\u00f3p \u00fd ki\u1ebfn v\u00e0 ph\u1ea3n h\u1ed3i","text":""},{"location":"community/feedback/#bao-loi","title":"B\u00e1o l\u1ed7i","text":"B\u1ea1n c\u00f3 th\u1ec3 gi\u00fap t\u00e1c gi\u1ea3 ki\u1ec3m tra m\u1ee5c Issues tr\u00ean Github v\u00e0 m\u1ee5c B\u00e1o l\u1ed7i tr\u00ean Discord xem v\u1ea5n \u0111\u1ec1 c\u1ee7a b\u1ea1n \u0111\u00e3 \u0111\u01b0\u1ee3c \u0111\u1ec1 c\u1eadp tr\u01b0\u1edbc \u0111\u00f3 ch\u01b0a tr\u01b0\u1edbc khi g\u1eedi b\u00e1o l\u1ed7i.
N\u1ebfu ch\u01b0a, h\u00e3y t\u1ea1o m\u1ed9t issue m\u1edbi \u0111\u1ec3 b\u00e1o c\u00e1o l\u1ed7i ho\u1eb7c y\u00eau c\u1ea7u t\u00ednh n\u0103ng. Vui l\u00f2ng cung c\u1ea5p m\u1ed9t m\u00f4 t\u1ea3 chi ti\u1ebft v\u1ec1 v\u1ea5n \u0111\u1ec1 c\u1ee7a b\u1ea1n, bao g\u1ed3m c\u00e1c b\u01b0\u1edbc \u0111\u1ec3 t\u00e1i t\u1ea1o v\u1ea5n \u0111\u1ec1 (n\u1ebfu c\u00f3 th\u1ec3) v\u00e0 \u1ea3nh ch\u1ee5p m\u00e0nh h\u00ecnh l\u1ed7i. C\u00e1c b\u00e1o l\u1ed7i m\u01a1 h\u1ed3 s\u1ebd kh\u00f4ng \u0111\u01b0\u1ee3c xem x\u00e9t.
N\u1ebfu b\u1ea1n kh\u00f4ng quen v\u1edbi Github, b\u1ea1n c\u1ee9 tho\u1ea3i m\u00e1i chia s\u1ebb l\u1ed7i qua c\u00e1c k\u00eanh m\u00e0 b\u1ea1n th\u1ea5y thu\u1eadn ti\u1ec7n nh\u1ea5t v\u00e0 gi\u00fap t\u00f4i c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam \u0111\u1ec3 hi\u1ec3u r\u00f5 v\u1ea5n \u0111\u1ec1 b\u1ea1n g\u1eb7p ph\u1ea3i.
"},{"location":"community/feedback/#gop-y","title":"G\u00f3p \u00fd","text":"vnstock l\u00e0 m\u1ed9t d\u1ef1 \u00e1n t\u00f4i t\u00e2m huy\u1ebft, \u0111\u1ea7u t\u01b0 nhi\u1ec1u th\u1eddi gian \u0111\u1ec3 ph\u00e1t tri\u1ec3n gi\u00fap b\u1ea3n th\u00e2n v\u00e0 c\u1ed9ng \u0111\u1ed3ng ti\u1ebfp c\u1eadn ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n mi\u1ec5n ph\u00ed v\u00e0 \u0111\u00e1ng tin c\u1eady.
\u0110\u1ec3 \u0111\u1ea3m b\u1ea3o r\u1eb1ng vnstock ph\u00e1t tri\u1ec3n theo h\u01b0\u1edbng \u0111\u00e1p \u1ee9ng nhu c\u1ea7u c\u1ee7a b\u1ea1n, t\u00f4i r\u1ea5t mong nh\u1eadn \u0111\u01b0\u1ee3c ph\u1ea3n h\u1ed3i t\u1eeb b\u1ea1n. B\u1ea1n l\u00e0 ng\u01b0\u1eddi d\u00f9ng quan tr\u1ecdng c\u1ee7a vnstock v\u00e0 \u00fd ki\u1ebfn c\u1ee7a b\u1ea1n s\u1ebd gi\u00fap ch\u00fang t\u00f4i x\u00e2y d\u1ef1ng m\u1ed9t k\u1ebf ho\u1ea1ch ph\u00e1t tri\u1ec3n vnstock m\u1ed9t c\u00e1ch to\u00e0n di\u1ec7n. B\u1ea1n h\u00e3y d\u00e0nh ra 5 ph\u00fat \u0111\u1ec3 ho\u00e0n th\u00e0nh b\u1ea3n kh\u1ea3o s\u00e1t n\u00e0y. C\u1ea3m \u01a1n b\u1ea1n r\u1ea5t nhi\u1ec1u!
\u0110ang t\u1ea3i\u2026"},{"location":"community/join/","title":"C\u1ed9ng \u0111\u1ed3ng vnstock","text":"Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi d\u1ef1 \u00e1n Vnstock! Ch\u00fang t\u00f4i tr\u00e2n tr\u1ecdng m\u1ecdi \u0111\u00f3ng g\u00f3p t\u1eeb c\u1ed9ng \u0111\u1ed3ng \u0111\u1ec3 ph\u00e1t tri\u1ec3n g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y th\u00e0nh m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd h\u1ed7 tr\u1ee3 \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n t\u1ea1i th\u1ecb tr\u01b0\u1eddng Vi\u1ec7t Nam.
B\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn tham gia c\u00e1c c\u1ed9ng \u0111\u1ed3ng Vnstock hi\u1ec7n c\u00f3:
"},{"location":"community/lan-toa-trai-nghiem-voi-vnstock/","title":"Gi\u1edbi thi\u1ec7u vnstock t\u1edbi c\u1ed9ng \u0111\u1ed3ng c\u1ee7a b\u1ea1n","text":"\ud83d\udd90 N\u1ebfu vnstock gi\u00fap \u00edch cho b\u1ea1n, h\u00e3y g\u00f3p s\u1ee9c t\u00e0i tr\u1ee3 cho s\u1ef1 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n theo kh\u1ea3 n\u0103ng c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn h\u00ecnh th\u1ee9c ph\u00f9 h\u1ee3p v\u1edbi m\u00ecnh nh\u1ea5t trong c\u00e1c h\u00ecnh th\u1ee9c d\u01b0\u1edbi \u0111\u00e2y. M\u1ecdi kho\u1ea3n \u0111\u00f3ng g\u00f3p \u0111\u1ec1u \u0111\u00e1ng tr\u00e2n qu\u00fd v\u00e0 l\u00e0 ngu\u1ed3n t\u00e0i ch\u00ednh gi\u00fap duy tr\u00ec vnstock lu\u00f4n \u0111\u01b0\u1ee3c n\u00e2ng c\u1ea5p, m\u00e3 ngu\u1ed3n m\u1edf, v\u00e0 d\u1ec5 ti\u1ebfp c\u1eadn cho c\u1ed9ng \u0111\u1ed3ng.
"},{"location":"community/support/#tai-tro-du-an-qua-github","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Github","text":"L\u1ef1a ch\u1ecdn Sponsor (t\u00e0i tr\u1ee3) cho d\u1ef1 \u00e1n qua Github l\u00e0 m\u1ed9t c\u00e1ch minh b\u1ea1ch v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t cho b\u1ea5t k\u1ef3 ai s\u1edf h\u1eefu th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa, Master, vv \u0110\u1ed3ng th\u1eddi b\u1ea1n c\u00f3 c\u00e1c t\u00f9y ch\u1ecdn t\u00e0i tr\u1ee3 linh ho\u1ea1t theo th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n. C\u00f9ng v\u1edbi \u0111\u00f3, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c x\u1ebfp v\u00e0o c\u00e1c tier (h\u1ea1ng) ng\u01b0\u1eddi d\u00f9ng kh\u00e1c nhau \u0111\u1ec3 s\u1edf h\u1eefu nh\u1eefng quy\u1ec1n l\u1ee3i \u0111i k\u00e8m, v\u00ed d\u1ee5 truy c\u1eadp nh\u1eefng b\u1ea3n n\u00e2ng c\u1ea5p v\u00e0 t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n cho nh\u00e0 t\u00e0i tr\u1ee3 (\u0111ang tri\u1ec3n khai). T\u1ea5t c\u1ea3 kho\u1ea3n t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho m\u1ee5c \u0111\u00edch ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n v\u00e0 duy tr\u00ec h\u1ea1 t\u1ea7ng c\u00f4ng ngh\u1ec7 cho nh\u00f3m ph\u00e1t tri\u1ec3n.
L\u01b0u \u00fd: \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n qua Github Sponsor, b\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp Github v\u00e0 s\u1eed d\u1ee5ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf.
B1. Ch\u1ecdn m\u1ee5c SponsorB2. Ch\u1ecdn lo\u1ea1i h\u00ecnh v\u00e0 m\u1ee9c t\u00e0i tr\u1ee3 B3. Nh\u1eadp th\u00f4ng tin thanh to\u00e1nB\u1ea1n c\u00f3 th\u1ec3 t\u00ecm th\u1ea5y m\u1ee5c Sponsor t\u1ea1i Github repo c\u1ee7a Vnstock, t\u1ea1i Github profile Th\u1ecbnh V\u0169 ho\u1eb7c ph\u1ea7n th\u00f4ng tin Sponsor \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o web \u1edf tr\u00ean \ud83d\udc46.
"},{"location":"community/support/#gui-tang-mot-ly-cafe","title":"G\u1eedi t\u1eb7ng m\u1ed9t ly cafe","text":"T\u1eb7ng m\u1ed9t ly cafe
B\u1ea1n c\u00f3 th\u1ec3 g\u1eedi t\u1eb7ng t\u00e1c gi\u1ea3 m\u1ed9t ly cafe \u0111\u1ec3 c\u1ea3m \u01a1n v\u00e0 \u0111\u1ed9ng vi\u00ean n\u1ebfu th\u1ea5y Vnstock gi\u00fap \u00edch nhi\u1ec1u cho b\u1ea1n. B\u1ea1n ch\u1ecdn m\u1ed9t trong 4 c\u00e1ch sau t\u00f9y theo h\u00ecnh th\u1ee9c n\u00e0o thu\u1eadn ti\u1ec7n cho b\u1ea1n nh\u1ea5t. C\u00e1m \u01a1n b\u1ea1n th\u1eadt nhi\u1ec1u!
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Ng\u00e2n h\u00e0ng nh\u1eadn: Vietcombank
chi nh\u00e1nh Thanh \u0110a
T\u00e0i kho\u1ea3n: nh\u1eadp t\u00ean VNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"community/support/#su-dung-dich-vu","title":"S\u1eed d\u1ee5ng d\u1ecbch v\u1ee5","text":"
D\u1ecbch v\u1ee5
N\u1ebfu b\u1ea1n n\u00e0o quan t\u00e2m v\u00e0 c\u00f3 nhu c\u1ea7u v\u1ec1 code
theo y\u00eau c\u1ea7u ho\u1eb7c h\u1ecdc python, vui l\u00f2ng inbox v\u1edbi Th\u1ecbnh \u0111\u1ec3 trao \u0111\u1ed5i th\u00eam. Ho\u1ea1t \u0111\u1ed9ng n\u00e0y c\u0169ng gi\u00fap t\u00e1c gi\u1ea3 hi\u1ec3u th\u00eam v\u1ec1 nh\u1eefng \u1ee9ng d\u1ee5ng th\u1ef1c t\u1ebf v\u00e0 ph\u00e1t tri\u1ec3n vnstock trong t\u01b0\u01a1ng lai.
Kh\u00f3a h\u1ecdc
N\u1ebfu b\u1ea1n y\u00eau th\u00edch vnstock, mu\u1ed1n \u1ee7ng h\u1ed9 t\u00e1c gi\u1ea3 \u0111\u1ed3ng th\u1eddi quan t\u00e2m v\u1ec1 h\u1ecdc l\u1eadp tr\u00ecnh Python cho vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u n\u00f3i chung v\u00e0 ch\u1ee9ng kho\u00e1n n\u00f3i ri\u00eang, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd c\u00e1c kh\u00f3a h\u1ecdc ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u1eeb t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Hi\u1ec7n t\u1ea1i, AI c\u0169ng c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 b\u1ea1n th\u1ef1c hi\u1ec7n h\u1ea7u h\u1ebft c\u00f4ng vi\u1ec7c l\u1eadp tr\u00ecnh mi\u1ec5n l\u00e0 b\u1ea1n c\u00f3 ki\u1ebfn th\u1ee9c c\u0103n b\u1ea3n v\u00e0 bi\u1ebft c\u00e1ch s\u1eed d\u1ee5ng ch\u00fang. Tham gia kh\u00f3a h\u1ecdc gi\u00fap b\u1ea1n c\u00f3 n\u1ec1n t\u1ea3ng ki\u1ebfn th\u1ee9c t\u1ed1t \u0111\u1ec3 t\u1eadn d\u1ee5ng s\u1ee9c m\u1ea1nh c\u1ee7a AI.
Kh\u00f3a h\u1ecdc Ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u1edbi Python #4 \u0111\u01b0\u1ee3c tri\u1ec3n khai v\u00e0o 29/10/2023, b\u1ea1n n\u00e0o quan t\u00e2m h\u00e3y inbox cho t\u00f4i \u0111\u1ec3 trao \u0111\u1ed5i th\u00eam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 tham kh\u1ea3o b\u00e0i vi\u1ebft gi\u1edbi thi\u1ec7u kh\u00f3a h\u1ecdc tr\u00ean blog v\u1ec1 ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u00f4i \u0111\u00e3 t\u1eebng t\u1ed5 ch\u1ee9c t\u1ea1i \u0111\u00e2y
"},{"location":"community/tai-tro-du-an-vnstock/","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n Vnstock","text":"\ud83d\udd90 N\u1ebfu vnstock gi\u00fap \u00edch cho b\u1ea1n, h\u00e3y g\u00f3p s\u1ee9c t\u00e0i tr\u1ee3 cho s\u1ef1 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n theo kh\u1ea3 n\u0103ng c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn h\u00ecnh th\u1ee9c ph\u00f9 h\u1ee3p v\u1edbi m\u00ecnh nh\u1ea5t trong c\u00e1c h\u00ecnh th\u1ee9c d\u01b0\u1edbi \u0111\u00e2y. M\u1ecdi kho\u1ea3n \u0111\u00f3ng g\u00f3p \u0111\u1ec1u \u0111\u00e1ng tr\u00e2n qu\u00fd v\u00e0 l\u00e0 ngu\u1ed3n t\u00e0i ch\u00ednh gi\u00fap duy tr\u00ec vnstock lu\u00f4n \u0111\u01b0\u1ee3c n\u00e2ng c\u1ea5p, m\u00e3 ngu\u1ed3n m\u1edf, v\u00e0 d\u1ec5 ti\u1ebfp c\u1eadn cho c\u1ed9ng \u0111\u1ed3ng.
"},{"location":"community/tai-tro-du-an-vnstock/#tai-tro-du-an-qua-github","title":"T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Github","text":"L\u1ef1a ch\u1ecdn Sponsor (t\u00e0i tr\u1ee3) cho d\u1ef1 \u00e1n qua Github l\u00e0 m\u1ed9t c\u00e1ch minh b\u1ea1ch v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t cho b\u1ea5t k\u1ef3 ai s\u1edf h\u1eefu th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa, Master, vv \u0110\u1ed3ng th\u1eddi b\u1ea1n c\u00f3 c\u00e1c t\u00f9y ch\u1ecdn t\u00e0i tr\u1ee3 linh ho\u1ea1t theo th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n. C\u00f9ng v\u1edbi \u0111\u00f3, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c x\u1ebfp v\u00e0o c\u00e1c tier (h\u1ea1ng) ng\u01b0\u1eddi d\u00f9ng kh\u00e1c nhau \u0111\u1ec3 s\u1edf h\u1eefu nh\u1eefng quy\u1ec1n l\u1ee3i \u0111i k\u00e8m, v\u00ed d\u1ee5 truy c\u1eadp nh\u1eefng b\u1ea3n n\u00e2ng c\u1ea5p v\u00e0 t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n cho nh\u00e0 t\u00e0i tr\u1ee3 (\u0111ang tri\u1ec3n khai). T\u1ea5t c\u1ea3 kho\u1ea3n t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho m\u1ee5c \u0111\u00edch ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n v\u00e0 duy tr\u00ec h\u1ea1 t\u1ea7ng c\u00f4ng ngh\u1ec7 cho nh\u00f3m ph\u00e1t tri\u1ec3n.
L\u01b0u \u00fd: \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00e0i tr\u1ee3 cho d\u1ef1 \u00e1n qua Github Sponsor, b\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp Github v\u00e0 s\u1eed d\u1ee5ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf.
B1. Ch\u1ecdn m\u1ee5c SponsorB2. Ch\u1ecdn lo\u1ea1i h\u00ecnh v\u00e0 m\u1ee9c t\u00e0i tr\u1ee3 B3. Nh\u1eadp th\u00f4ng tin thanh to\u00e1nB\u1ea1n c\u00f3 th\u1ec3 t\u00ecm th\u1ea5y m\u1ee5c Sponsor t\u1ea1i Github repo c\u1ee7a Vnstock, t\u1ea1i Github profile Th\u1ecbnh V\u0169 ho\u1eb7c ph\u1ea7n th\u00f4ng tin Sponsor \u0111\u01b0\u1ee3c nh\u00fang v\u00e0o web \u1edf tr\u00ean \ud83d\udc46.
"},{"location":"community/tai-tro-du-an-vnstock/#gui-tang-mot-ly-cafe","title":"G\u1eedi t\u1eb7ng m\u1ed9t ly cafe","text":"T\u1eb7ng m\u1ed9t ly cafe
B\u1ea1n c\u00f3 th\u1ec3 g\u1eedi t\u1eb7ng t\u00e1c gi\u1ea3 m\u1ed9t ly cafe \u0111\u1ec3 c\u1ea3m \u01a1n v\u00e0 \u0111\u1ed9ng vi\u00ean n\u1ebfu th\u1ea5y Vnstock gi\u00fap \u00edch nhi\u1ec1u cho b\u1ea1n. B\u1ea1n ch\u1ecdn m\u1ed9t trong 4 c\u00e1ch sau t\u00f9y theo h\u00ecnh th\u1ee9c n\u00e0o thu\u1eadn ti\u1ec7n cho b\u1ea1n nh\u1ea5t. C\u00e1m \u01a1n b\u1ea1n th\u1eadt nhi\u1ec1u!
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Vietcombank
chi nh\u00e1nh Thanh \u0110aVNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"community/tai-tro-du-an-vnstock/#ao-tao-python","title":"\u0110\u00e0o t\u1ea1o Python","text":"
Kh\u00f3a h\u1ecdc
N\u1ebfu b\u1ea1n y\u00eau th\u00edch vnstock, mu\u1ed1n \u1ee7ng h\u1ed9 t\u00e1c gi\u1ea3 \u0111\u1ed3ng th\u1eddi quan t\u00e2m v\u1ec1 h\u1ecdc l\u1eadp tr\u00ecnh Python cho vi\u1ec7c ph\u00e2n t\u00edch d\u1eef li\u1ec7u n\u00f3i chung v\u00e0 ch\u1ee9ng kho\u00e1n n\u00f3i ri\u00eang, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng k\u00fd c\u00e1c kh\u00f3a h\u1ecdc ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u1eeb t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Hi\u1ec7n t\u1ea1i, AI c\u0169ng c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 b\u1ea1n th\u1ef1c hi\u1ec7n h\u1ea7u h\u1ebft c\u00f4ng vi\u1ec7c l\u1eadp tr\u00ecnh mi\u1ec5n l\u00e0 b\u1ea1n c\u00f3 ki\u1ebfn th\u1ee9c c\u0103n b\u1ea3n v\u00e0 bi\u1ebft c\u00e1ch s\u1eed d\u1ee5ng ch\u00fang. Tham gia kh\u00f3a h\u1ecdc gi\u00fap b\u1ea1n c\u00f3 n\u1ec1n t\u1ea3ng ki\u1ebfn th\u1ee9c t\u1ed1t \u0111\u1ec3 t\u1eadn d\u1ee5ng s\u1ee9c m\u1ea1nh c\u1ee7a AI.
B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o kh\u00f3a h\u1ecdc \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi Th\u1ecbnh t\u1ea1i m\u1ee5c Kh\u00f3a h\u1ecdc t\u1ea1i trang web n\u00e0y.
"},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/","title":"Vinh danh th\u00e0nh vi\u00ean ti\u00eau bi\u1ec3u","text":"Gi\u1edbi thi\u1ec7u
vnstock mu\u1ed1n b\u00e0y t\u1ecf l\u00f2ng bi\u1ebft \u01a1n ch\u00e2n th\u00e0nh \u0111\u1ed1i v\u1edbi c\u00e1c th\u00e0nh vi\u00ean t\u00edch c\u1ef1c \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n n\u00e0y qua nhi\u1ec1u c\u00e1ch kh\u00e1c nhau b\u00ean c\u1ea1nh t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169. Nh\u1edd v\u00e0o s\u1ef1 n\u1ed7 l\u1ef1c c\u1ee7a c\u00e1c b\u1ea1n, c\u1ed9ng \u0111\u1ed3ng vnstock c\u00f3 c\u01a1 h\u1ed9i ti\u1ebfp c\u1eadn m\u1ed9t s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n m\u1edf ch\u1ea5t l\u01b0\u1ee3ng. Ngo\u00e0i ra, tuy kh\u00f4ng li\u1ec7t k\u00ea c\u1ee5 th\u1ec3 nh\u01b0ng c\u00e1c th\u00e0nh vi\u00ean tham gia g\u1eedi t\u1eb7ng cafe \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n \u0111\u00e3 g\u00f3p ph\u1ea7n kh\u00edch l\u1ec7 r\u1ea5t l\u1edbn \u0111\u1ec3 Vnstock ti\u1ebfn xa \u0111\u1ebfn hi\u1ec7n t\u1ea1i. Xin c\u00e1m \u01a1n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea1n!
"},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/#thanh-vien-tich-cuc","title":"Th\u00e0nh vi\u00ean t\u00edch c\u1ef1c","text":"# Avatar Th\u00e0nh vi\u00ean \u0110\u00f3ng g\u00f3p n\u1ed5i b\u1eadt 1 andrey-jef - G\u1ee3i \u00fd s\u1eed d\u1ee5ng mkdocs matterial cho trang t\u00e0i li\u1ec7u Vnstock hi\u1ec7n t\u1ea1i - \u0110\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n cho modul Qu\u1ef9 m\u1edf - \u0110\u1ec1 xu\u1ea5t v\u00e0 vi\u1ebft m\u00e3 ngu\u1ed3n cho pytest s\u1eed d\u1ee5ng \u0111\u1ec3 ki\u1ec3m th\u1eed d\u1ef1 \u00e1n - H\u1ed7 tr\u1ee3 g\u1ee1 l\u1ed7i - \u0110\u00f3ng g\u00f3p v\u00e0 s\u1eeda t\u00e0i li\u1ec7u..."},{"location":"community/vnstock-contributors-thanh-vien-tich-cuc/#thanh-vien-khac","title":"Th\u00e0nh vi\u00ean kh\u00e1c","text":"D\u01b0\u1edbi \u0111\u00e2y l\u00e0 danh s\u00e1ch c\u00e1c th\u00e0nh vi\u00ean \u0111\u00e3 h\u1ed7 tr\u1ee3 s\u1eeda l\u1ed7i v\u00e0 \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n.
# Avatar Th\u00e0nh vi\u00ean \u0110\u00f3ng g\u00f3p n\u1ed5i b\u1eadt 1 hungdq11 G\u00f3p \u00fd & s\u1eeda l\u1ed7i 2 nvh95 G\u00f3p \u00fd & s\u1eeda l\u1ed7i"},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/","title":"Vnstock road map lo trinh phat trien vnstock","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#lo-trinh-phat-trien-vnstock-nam-2024","title":"L\u1ed9 tr\u00ecnh ph\u00e1t tri\u1ec3n vnstock n\u0103m 2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q1-2024","title":"Q1-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q2-2024","title":"Q2-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q3-2024","title":"Q3-2024","text":""},{"location":"community/vnstock-road-map-lo-trinh-phat-trien-vnstock/#q4-2024","title":"Q4-2024","text":""},{"location":"faq/community/","title":"C\u1ed9ng \u0111\u1ed3ng","text":""},{"location":"faq/community/#he-sinh-thai-vnstock-bao-gom-nhung-gi","title":"H\u1ec7 sinh th\u00e1i vnstock bao g\u1ed3m nh\u1eefng g\u00ec?","text":"Hi\u1ec7n t\u1ea1i Vnstock cung c\u1ea5p c\u00e1c s\u1ea3n ph\u1ea9m/k\u00eanh th\u00f4ng tin sau: - G\u00f3i ph\u1ea7n m\u1ec1m python: vnstock python & vnstock web app
Website:
C\u1ed9ng \u0111\u1ed3ng v\u00e0 k\u00eanh th\u00f4ng tin:
N\u1ebfu b\u1ea1n ch\u01b0a s\u1eb5n s\u00e0ng \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n 100K \u0111\u1ec3 tham gia nh\u00f3m c\u0169ng kh\u00f4ng sao. B\u1ea1n v\u1eabn c\u00f3 th\u1ec3 tham gia nh\u00f3m Discord \u0111\u1ec3 nh\u1eadn h\u1ed7 tr\u1ee3 chung t\u1eeb c\u1ed9ng \u0111\u1ed3ng. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
"},{"location":"faq/community/#lam-the-nao-e-tham-gia-cong-ong-vnstock-tra-phi","title":"L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 tham gia c\u1ed9ng \u0111\u1ed3ng vnstock tr\u1ea3 ph\u00ed?","text":"H\u01b0\u1edbng d\u1eabn
\u0110\u1ec3 c\u00f3 th\u1ec3 tham gia c\u1ed9ng \u0111\u1ed3ng tr\u1ea3 ph\u00ed c\u1ee7a vnstock \u0111\u01b0\u1ee3c t\u1ed5 ch\u1ee9c tr\u00ean n\u1ec1n t\u1ea3ng Facebook, b\u1ea1n vui l\u00f2ng \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n t\u1ed1i thi\u1ec3u 100K theo h\u00ecnh th\u1ee9c chuy\u1ec3n ti\u1ec1n Momo ho\u1eb7c chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng nh\u01b0 th\u00f4ng tin b\u00ean d\u01b0\u1edbi. Sau \u0111\u00f3 b\u1ea1n g\u1eedi y\u00eau c\u1ea7u tham gia nh\u00f3m v\u00e0 tr\u1ea3 l\u1eddi 3 c\u00e2u h\u1ecfi \u0111\u01a1n gi\u1ea3n \u0111\u1ec3 \u0111\u01b0\u1ee3c duy\u1ec7t tham gia nh\u00f3m. Ngay khi nh\u1eadn \u0111\u01b0\u1ee3c chuy\u1ec3n kho\u1ea3n, admin s\u1ebd duy\u1ec7t y\u00eau c\u1ea7u c\u1ee7a b\u1ea1n ngay l\u1eadp t\u1ee9c.
C\u00e1m \u01a1n b\u1ea1n \u0111\u00e3 tin t\u01b0\u1edfng, \u0111\u1ed3ng h\u00e0nh v\u00e0 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n.
"},{"location":"faq/community/#ai-la-nguoi-dung-cua-vnstock","title":"Ai l\u00e0 ng\u01b0\u1eddi d\u00f9ng c\u1ee7a vnstock?","text":"Qua giao l\u01b0u v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi ng\u01b0\u1eddi d\u00f9ng, c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng ng\u01b0\u1eddi d\u00f9ng ch\u00ednh hi\u1ec7n ghi nh\u1eadn \u0111\u01b0\u1ee3c bao g\u1ed3m:
Chuy\u00ean gia d\u1eef li\u1ec7u/l\u1eadp tr\u00ecnh vi\u00ean: \u0111\u00e2y l\u00e0 nh\u1eefng ng\u01b0\u1eddi c\u00f3 chuy\u00ean m\u00f4n c\u00f4ng ngh\u1ec7 v\u00e0 d\u1eef li\u1ec7u, l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng tr\u1ef1c ti\u1ebfp s\u1eed d\u1ee5ng th\u00e0nh th\u1ea1o python cho d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh ho\u1eb7c x\u00e2y d\u1ef1ng s\u1ea3n ph\u1ea9m d\u1ef1a tr\u00ean b\u1ed9 API m\u00e0 vnstock cung c\u1ea5p.
Nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n: Xu h\u01b0\u1edbng giao d\u1ecbch thu\u1eadt to\u00e1n \u0111ang ph\u00e1t tri\u1ec3n n\u00f3ng trong th\u1eddi gian g\u1ea7n \u0111\u00e2y, c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n t\u00ecm ki\u1ebfm gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 l\u00e0m l\u1ee3i th\u1ebf giao d\u1ecbch c\u1ee7a m\u00ecnh v\u00e0 t\u1ef1 x\u00e2y d\u1ef1ng h\u1ec7 th\u1ed1ng ph\u00e2n t\u00edch ho\u1eb7c bot giao d\u1ecbch \u0111\u1ec3 hi\u1ec7n th\u1ef1c h\u00f3a chi\u1ebfn l\u01b0\u1ee3c \u0111\u1ea7u t\u01b0.
Sinh vi\u00ean: Sinh vi\u00ean c\u00e1c tr\u01b0\u1eddng \u0111\u1ea1i h\u1ecdc kh\u1ed1i ng\u00e0nh kinh t\u1ebf to\u00e0n qu\u1ed1c l\u00e0 m\u1ed9t b\u1ed9 ph\u1eadn ng\u01b0\u1eddi d\u00f9ng quan tr\u1ecdng c\u1ee7a vnstock. \u0110\u00e2y c\u0169ng l\u00e0 ngu\u1ed3n l\u1ef1c \u0111\u1ed5i m\u1edbi, s\u00e1ng t\u1ea1o trong vi\u1ec7c \u00e1p d\u1ee5ng c\u00f4ng ngh\u1ec7 r\u1ed9ng r\u00e3i v\u00e0o vi\u1ec7c ph\u00e1t tri\u1ec3n th\u1ecb tr\u01b0\u1eddng t\u00e0i ch\u00ednh Vi\u1ec7t Nam.
Nh\u00e0 nghi\u00ean c\u1ee9u: L\u0129nh v\u1ef1c nghi\u00ean c\u1ee9u t\u01b0\u01a1ng \u0111\u1ed1i \u0111a d\u1ea1ng, qua trao \u0111\u1ed5i c\u00e1 nh\u00e2n th\u00ec vnstock \u0111\u01b0\u1ee3c c\u00e1c b\u1ea1n l\u00e0m c\u00f4ng t\u00e1c nghi\u00ean c\u1ee9u y\u00eau th\u00edch b\u1edfi cho ph\u00e9p truy c\u1eadp d\u1eef li\u1ec7u h\u00e0ng lo\u1ea1t, c\u1eadp nh\u1eadt d\u1ec5 d\u00e0ng v\u00e0 ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed (ph\u00f9 h\u1ee3p v\u1edbi ng\u00e2n s\u00e1ch gi\u1edbi h\u1ea1n).
D\u00f9 b\u1ea1n l\u00e0 ai, l\u00e0m l\u0129nh v\u1ef1c g\u00ec, vnstock mu\u1ed1n \u0111\u1ed3ng h\u00e0nh v\u1edbi b\u1ea1n c\u00f9ng ph\u00e1t tri\u1ec3n. N\u1ebfu c\u00f3 nh\u1eefng y\u00eau c\u1ea7u \u0111\u1eb7c bi\u1ec7t c\u1ea7n \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 ho\u1eb7c g\u00f3p \u00fd ph\u00e1t tri\u1ec3n s\u1ea3n ph\u1ea9m, b\u1ea1n c\u00f3 th\u1ec3 li\u00ean h\u1ec7 v\u1edbi ch\u00fang t\u00f4i qua email: support@vnstock.site ho\u1eb7c c\u00e1c k\u00eanh trao \u0111\u1ed5i c\u1ed9ng \u0111\u1ed3ng. \u00dd ki\u1ebfn c\u1ee7a b\u1ea1n lu\u00f4n \u0111\u01b0\u1ee3c \u0111\u00f3n nh\u1eadn v\u00e0 \u0111\u00e1nh gi\u00e1 cao.
"},{"location":"faq/feature/","title":"S\u1ea3n ph\u1ea9m","text":""},{"location":"faq/feature/#co-so-cua-phuong-phap-thu-thap-du-lieu-do-vnstock-cung-cap-la-gi","title":"C\u01a1 s\u1edf c\u1ee7a ph\u01b0\u01a1ng ph\u00e1p thu th\u1eadp d\u1eef li\u1ec7u do vnstock cung c\u1ea5p l\u00e0 g\u00ec?","text":"Vnstock cung c\u1ea5p gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 s\u1eed d\u1ee5ng Python \u0111\u1ec3 thu th\u1eadp d\u1eef li\u1ec7u t\u1eeb c\u00e1c ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam th\u00f4ng qua c\u00e1c APIs c\u00f4ng khai. N\u00f3i m\u1ed9t c\u00e1ch d\u1ec5 hi\u1ec3u, c\u00e1c APIs n\u00e0y \u0111\u01b0\u1ee3c kh\u00e1m ph\u00e1 th\u00f4ng qua th\u1ee7 thu\u1eadt Web Scraping hay c\u00f2n g\u1ecdi l\u00e0 Reverse Engineering t\u1ee9c d\u00f2 c\u00e1c APIs \u0111\u01b0\u1ee3c website ch\u1ee9ng kho\u00e1n s\u1eed d\u1ee5ng \u0111\u1ec3 g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u gi\u1eefa h\u1ec7 th\u1ed1ng c\u01a1 s\u1edf d\u1eef li\u1ec7u (back-end) v\u1edbi giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng cu\u1ed1i (front-end).
C\u00e1c API n\u00e0y kh\u00f4ng \u0111\u01b0\u1ee3c chia s\u1ebb c\u00f4ng khai k\u00e8m t\u00e0i li\u1ec7u h\u01b0\u1edbng d\u1eabn cho ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng, tuy nhi\u00ean th\u00f4ng qua bi\u1ec7n ph\u00e1p so s\u00e1nh d\u1eef li\u1ec7u c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng g\u00e1n nh\u00e3n v\u00e0 t\u00e1i t\u1ea1o d\u1eef li\u1ec7u thu \u0111\u01b0\u1ee3c t\u1eeb API v\u1edbi \u0111\u1ed9 ch\u00ednh x\u00e1c g\u1ea7n nh\u01b0 tuy\u1ec7t \u0111\u1ed1i so v\u1edbi d\u1eef li\u1ec7u hi\u1ec3n th\u1ecb tr\u00ean website.
Vi\u1ec7c truy c\u1eadp c\u00e1c APIs d\u1eef li\u1ec7u n\u00e0y l\u00e0 h\u1ee3p ph\u00e1p v\u00ec ph\u01b0\u01a1ng ph\u00e1p truy c\u1eadp t\u01b0\u01a1ng \u0111\u01b0\u01a1ng v\u1edbi vi\u1ec7c g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u c\u1ee7a ng\u01b0\u1eddi d\u00f9ng th\u00f4ng qua tr\u00ecnh duy\u1ec7t web, tuy nhi\u00ean s\u1ed1 l\u01b0\u1ee3t g\u1eedi/nh\u1eadn d\u1eef li\u1ec7u c\u00f3 th\u1ec3 ph\u00e1t sinh \u0111\u1ed9t bi\u1ebfn do ng\u01b0\u1eddi d\u00f9ng g\u1ecdi API li\u00ean t\u1ee5c th\u00f4ng qua l\u1eadp tr\u00ecnh do v\u00f4 t\u00ecnh hay c\u1ed1 \u00fd.
Do \u0111\u00f3, vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c APIs n\u00e0y c\u1ea7n \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n v\u1edbi tinh th\u1ea7n tr\u00e1ch nhi\u1ec7m v\u00e0 t\u00f4n tr\u1ecdng ngu\u1ed3n d\u1eef li\u1ec7u nh\u1eb1m tr\u00e1nh g\u1eedi y\u00eau c\u1ea7u g\u00e2y qu\u00e1 t\u1ea3i h\u1ec7 th\u1ed1ng c\u1ee7a ngu\u1ed3n d\u1eef li\u1ec7u (c\u00f4ng ty ch\u1ee9ng kho\u00e1n). Ch\u00fang t\u00f4i khuy\u00ean ng\u01b0\u1eddi d\u00f9ng h\u1ea1n ch\u1ebf s\u1eed d\u1ee5ng API h\u00e0ng lo\u1ea1t trong khung gi\u1edd giao d\u1ecbch \u0111\u1ec3 tr\u00e1nh l\u00e0m \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn ho\u1ea1t \u0111\u1ed9ng th\u01b0\u1eddng xuy\u00ean c\u1ee7a c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 kh\u00e1c v\u00e0 b\u1ea3n th\u00e2n ngu\u1ed3n d\u1eef li\u1ec7u. Trong th\u1eddi gian t\u1edbi, Vnstock s\u1ebd nghi\u00ean c\u1ee9u c\u00e1c gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 m\u1edbi nh\u1eb1m t\u1ea1o v\u00e0 l\u01b0u tr\u1eef c\u01a1 s\u1edf d\u1eef li\u1ec7u ri\u00eang \u0111\u1ec3 h\u1ea1n ch\u1ebf \u0111\u1ebfn m\u1ee9c th\u1ea5p nh\u1ea5t \u1ea3nh h\u01b0\u1edfng ti\u00eau c\u1ef1c \u0111\u1ebfn ngu\u1ed3n d\u1eef li\u1ec7u g\u1ed1c.
V\u1ec1 ph\u00eda c\u00f4ng ty ch\u1ee9ng kho\u00e1n, c\u00e1c anh ch\u1ecb c\u00f3 th\u1ec3 h\u1ee3p t\u00e1c ch\u00ednh th\u1ee9c v\u1edbi Vnstock \u0111\u1ec3 cung c\u1ea5p d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n th\u00f4ng qua c\u00e1c APIs ri\u00eang bi\u1ec7t cho ng\u01b0\u1eddi d\u00f9ng n\u00e2ng cao. Nh\u01b0 v\u1eady, h\u1ec7 th\u1ed1ng giao d\u1ecbch cho ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng s\u1ebd kh\u00f4ng b\u1ecb \u1ea3nh h\u01b0\u1edfng do thao t\u00e1c Web Scraping g\u00e2y ra. Ho\u1ea1t \u0111\u1ed9ng n\u00e0y gi\u00fap anh ch\u1ecb x\u00e2y d\u1ef1ng s\u1ef1 g\u1eafn k\u1ebft kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n v\u1edbi c\u00f4ng ty m\u00ecnh, \u0111\u1ed3ng th\u1eddi th\u00fac \u0111\u1ea9y kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n gia t\u0103ng giao d\u1ecbch qua n\u1ec1n t\u1ea3ng m\u00e0 c\u00f4ng ty cung c\u1ea5p b\u1edfi d\u1eef li\u1ec7u l\u00e0 minh b\u1ea1ch v\u00e0 d\u1ec5 d\u00e0ng truy c\u1eadp. Giao d\u1ecbch thu\u1eadt to\u00e1n l\u00e0 xu th\u1ebf t\u1ea5t y\u1ebfu c\u1ee7a t\u01b0\u01a1ng lai, vi\u1ec7c ng\u01b0\u1eddi d\u00f9ng t\u00ecm ki\u1ebfm gi\u1ea3i ph\u00e1p x\u1eed l\u00fd d\u1eef li\u1ec7u hi\u1ec7u qu\u1ea3 v\u00e0 t\u1ed1c \u0111\u1ed9 h\u01a1n khi d\u00f9ng vnstock v\u00e0 python l\u00e0 m\u1ed9t nhu c\u1ea7u thi\u1ebft y\u1ebfu n\u00ean \u0111\u01b0\u1ee3c \u0111\u00e1p \u1ee9ng. Vnstock r\u1ea5t s\u1eb5n l\u00f2ng gi\u1edbi thi\u1ec7u th\u01b0\u01a1ng hi\u1ec7u c\u1ee7a qu\u00fd c\u00f4ng ty t\u1edbi c\u1ed9ng \u0111\u1ed3ng ng\u01b0\u1eddi d\u00f9ng v\u00e0 h\u1ee3p t\u00e1c v\u1edbi qu\u00fd c\u00f4ng ty trong vi\u1ec7c x\u00e2y d\u1ef1ng h\u1ec7 sinh th\u00e1i c\u00f4ng ngh\u1ec7 cho kh\u00e1ch h\u00e0ng c\u00e1 nh\u00e2n.
\u0110\u1ec3 li\u00ean h\u1ec7 h\u1ee3p t\u00e1c, anh/ch\u1ecb vui l\u00f2ng trao \u0111\u1ed5i qua email: support@vnstock.site
"},{"location":"faq/feature/#tai-sao-vnstock-chon-phat-trien-ma-nguon-mo","title":"T\u1ea1i sao vnstock ch\u1ecdn ph\u00e1t tri\u1ec3n M\u00e3 Ngu\u1ed3n M\u1edf?","text":"Kh\u00e1c v\u1edbi c\u00e1c s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n \u0111\u00f3ng (closed-source), c\u00e1c s\u1ea3n ph\u1ea9m m\u00e3 ngu\u1ed3n m\u1edf (open-source) th\u00fac \u0111\u1ea9y t\u00ednh minh b\u1ea1ch v\u00e0 cho ph\u00e9p ph\u00e1t tri\u1ec3n ph\u1ea7n m\u1ec1m \u0111\u1ea1t ch\u1ea5t l\u01b0\u1ee3ng cao. B\u1edfi t\u00ednh m\u1edf, vnstock mu\u1ed1n ch\u00e0o \u0111\u00f3n nh\u1eefng \u00fd t\u01b0\u1edfng t\u1ed1t nh\u1ea5t, c\u00e1c nh\u00e0 ph\u00e1t tri\u1ec3n xu\u1ea5t s\u1eafc nh\u1ea5t tham gia, v\u00e0 t\u1ea1o n\u00ean m\u1ed9t c\u1ed9ng \u0111\u1ed3ng \u0111o\u00e0n k\u1ebft.
M\u1ed9t c\u00e1ch ng\u1eafn g\u1ecdn, vnstock ch\u1ecdn ph\u00e1t tri\u1ec3n m\u00e3 ngu\u1ed3n m\u1edf nh\u1eb1m th\u00fac \u0111\u1ea9y s\u1ef1 \u0111\u1ed5i m\u1edbi v\u00e0 \u0111\u1ed9t ph\u00e1 trong ph\u00e1t tri\u1ec3n c\u00f4ng ngh\u1ec7 trong l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh t\u1ea1i Vi\u1ec7t Nam. \u0110\u1ed3ng th\u1eddi, vnstock cho ph\u00e9p b\u1ea1n t\u00f9y ch\u1ec9nh m\u00e3 ngu\u1ed3n vnstock \u0111\u1ec3 ph\u00f9 h\u1ee3p v\u1edbi nhu c\u1ea7u \u0111a d\u1ea1ng c\u1ee7a m\u00ecnh.
"},{"location":"faq/feature/#tai-sao-vnstock-uoc-cung-cap-mien-phi","title":"T\u1ea1i sao vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p mi\u1ec5n ph\u00ed?","text":"T\u1ea7m nh\u00ecn
Ch\u00fang t\u00f4i tin r\u1eb1ng ho\u1ea1t \u0111\u1ed9ng nghi\u00ean c\u1ee9u \u0111\u1ea7u t\u01b0 n\u00ean \u0111\u01b0\u1ee3c ph\u1ed5 bi\u1ebfn v\u1edbi t\u1ea5t c\u1ea3 m\u1ecdi ng\u01b0\u1eddi Vi\u1ec7t Nam \u0111\u1ec3 t\u1ea1o ra m\u1ed9t c\u1ed9ng \u0111\u1ed3ng th\u1ecbnh v\u01b0\u1ee3ng, m\u1ed9t \u0111\u1ea5t n\u01b0\u1edbc ph\u00e1t tri\u1ec3n v\u1edbi n\u1ec1n d\u00e2n tr\u00ed t\u00e0i ch\u00ednh \u1edf t\u1ea7m b\u1eadc cao.
vnstock s\u01b0u t\u1ea7m c\u00e1c API c\u00f4ng khai v\u00e0 cung c\u1ea5p t\u1edbi b\u1ea1n b\u1ed9 d\u1eef li\u1ec7u ho\u00e0n ch\u1ec9nh v\u00e0 mi\u1ec5n ph\u00ed, gi\u00fap c\u00e1c c\u00e1 nh\u00e2n/t\u1ed5 ch\u1ee9c d\u1ec5 d\u00e0ng truy c\u1eadp v\u00e0o c\u00e1c d\u1eef li\u1ec7u t\u00e0i ch\u00ednh hi\u1ec7n c\u00f3 m\u00e0 kh\u00f4ng ph\u1ea3i tr\u1ea3 b\u1ea5t k\u1ef3 chi ph\u00ed n\u00e0o.
Tuy nhi\u00ean, ngu\u1ed3n d\u1eef li\u1ec7u mi\u1ec5n ph\u00ed c\u0169ng th\u1ec3 hi\u1ec7n m\u1ed9t s\u1ed1 h\u1ea1n ch\u1ebf \u0111\u1ebfn v\u1edbi \u0111\u1ed9 tin c\u1eady v\u00e0 ch\u00ednh x\u00e1c xu\u1ea5t ph\u00e1t t\u1eeb ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u (c\u00f4ng ty ch\u1ee9ng kho\u00e1n). Vnstock cung c\u1ea5p cho b\u1ea1n d\u1eef li\u1ec7u m\u00e0 c\u00e1c ngu\u1ed3n d\u1eef li\u1ec7u n\u00e0y hi\u1ec3n th\u1ecb tr\u00ean website c\u1ee7a h\u1ecd. T\u00f9y t\u1eebng th\u1eddi \u0111i\u1ec3m, ngu\u1ed3n d\u1eef li\u1ec7u ph\u00f9 h\u1ee3p \u0111\u01b0\u1ee3c l\u1ef1a ch\u1ecdn \u0111\u1ec3 cung c\u1ea5p cho b\u1ea1n.
\u0110\u1ec3 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n, ch\u00fang t\u00f4i s\u1ebd cung c\u1ea5p th\u00eam c\u00e1c t\u00f9y ch\u1ecdn tr\u1ea3 ph\u00ed h\u1ee3p l\u00fd trong th\u1eddi gian t\u1edbi gi\u00fap ng\u01b0\u1eddi d\u00f9ng \u0111\u01b0\u1ee3c l\u1ef1a ch\u1ecdn ngu\u1ed3n d\u1eef li\u1ec7u ch\u1ea5t l\u01b0\u1ee3ng, t\u1ed1c \u0111\u1ed9 v\u1edbi \u0111\u1ed9 tin c\u1eady cao ph\u1ee5c v\u1ee5 cho nhu c\u1ea7u \u0111\u1ea7u t\u01b0/nghi\u00ean c\u1ee9u c\u1ee7a m\u00ecnh.
"},{"location":"faq/feature/#han-che-cua-du-lieu-vnstock","title":"H\u1ea1n ch\u1ebf c\u1ee7a d\u1eef li\u1ec7u vnstock?","text":"vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n d\u1ef1a tr\u00ean c\u00e1c Public APIs c\u1ee7a c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n cung c\u1ea5p cho kh\u00e1ch h\u00e0ng. Ph\u01b0\u01a1ng ph\u00e1p t\u00ednh to\u00e1n c\u1ee7a c\u00e1c d\u1eef li\u1ec7u n\u00e0y ph\u1ee5 thu\u1ed9c v\u00e0o \u0111\u1ed1i t\u00e1c cung c\u1ea5p d\u1eef li\u1ec7u v\u00e0 kh\u00f4ng \u0111\u01b0\u1ee3c chia s\u1ebb c\u00f4ng khai. Do \u0111\u00f3, khi th\u1ef1c hi\u1ec7n so s\u00e1nh d\u1eef li\u1ec7u gi\u1eefa c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u kh\u00e1c nhau b\u1ea1n c\u00f3 th\u1ec3 ph\u00e1t hi\u1ec7n ra c\u00f3 s\u1ef1 sai kh\u00e1c.
Hi\u1ec7n nay tr\u00ean th\u1ecb tr\u01b0\u1eddng, c\u00f3 m\u1ed9t s\u1ed1 ngu\u1ed3n cung c\u1ea5p d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i b\u1edfi c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n bao g\u1ed3m:
G\u1ee3i \u00fd
N\u1ebfu b\u1ea1n ph\u00e1t hi\u1ec7n ra b\u1ea5t k\u1ef3 th\u00f4ng tin n\u00e0o b\u1ea5t th\u01b0\u1eddng ho\u1eb7c kh\u00f4ng \u0111\u00e1ng tin c\u1eady, vui l\u00f2ng b\u00e1o cho t\u00e1c gi\u1ea3 v\u00e0 c\u1ed9ng \u0111\u1ed3ng th\u00f4ng qua Discord server ho\u1eb7c nh\u1eafn tin tr\u1ef1c ti\u1ebfp cho t\u00e1c gi\u1ea3.
"},{"location":"faq/ung-ho-du-an-vnstock/","title":"\u1ee6ng h\u1ed9 d\u1ef1 \u00e1n","text":""},{"location":"faq/ung-ho-du-an-vnstock/#toi-co-phai-tra-phi-khi-su-dung-vnstock","title":"T\u00f4i c\u00f3 ph\u1ea3i tr\u1ea3 ph\u00ed khi s\u1eed d\u1ee5ng vnstock?","text":"Th\u00f4ng tin
Vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p d\u01b0\u1edbi d\u1ea1ng ph\u1ea7n m\u1ec1m m\u00e3 ngu\u1ed3n m\u1edf, mi\u1ec5n ph\u00ed. B\u1ea1n \u0111\u01b0\u1ee3c t\u1ef1 do s\u1eed d\u1ee5ng, ph\u00e2n ph\u1ed1i v\u00e0 s\u1eeda \u0111\u1ed5i ph\u1ea7n m\u1ec1m theo c\u00e1c \u0111i\u1ec1u kho\u1ea3n c\u1ee7a gi\u1ea5y ph\u00e9p MIT v\u00e0 c\u00e1c nguy\u00ean t\u1eafc c\u1ee7a d\u1ef1 \u00e1n. B\u1ea1n c\u00f3 th\u1ec3 t\u00f9y t\u00e2m \u0111\u00f3ng g\u00f3p kinh ph\u00ed ph\u00e1t tri\u1ec3n v\u00e0 duy tr\u00ec d\u1ef1 \u00e1n t\u1edbi t\u00e1c gi\u1ea3.
B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn c\u00e1ch \u0111\u01a1n gi\u1ea3n l\u00e0 g\u1eedi t\u1eb7ng m\u1ed9t ly cafe nh\u01b0 vi\u1ec7c ai \u0111\u00f3 \u0111\u00e3 gi\u00fap b\u1ea1n m\u1ed9t vi\u1ec7c t\u1ed1t v\u00e0 b\u1ea1n mu\u1ed1n tri \u00e2n. \u0110\u1ec3 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n b\u1ec1n v\u1eefng, trong t\u01b0\u01a1ng lai vnstock s\u1ebd gi\u1edbi thi\u1ec7u th\u00eam c\u00e1c s\u1ea3n ph\u1ea9m/t\u00ednh n\u0103ng n\u00e2ng cao c\u00f3 tr\u1ea3 ph\u00ed b\u1edfi kh\u00f4ng ai c\u00f3 th\u1ec3 t\u1ed3n t\u1ea1i ch\u1ec9 \u0111\u1ec3 cung c\u1ea5p m\u1ecdi th\u1ee9 mi\u1ec5n ph\u00ed v\u00e0 ch\u00fang t\u00f4i c\u0169ng c\u00f3 c\u00f4ng vi\u1ec7c, gia \u0111\u00ecnh c\u1ea7n ch\u0103m lo nh\u01b0 b\u1ea1n v\u1eady. Tuy nhi\u00ean, vnstock phi\u00ean b\u1ea3n m\u00e3 ngu\u1ed3n m\u1edf lu\u00f4n mi\u1ec5n ph\u00ed.
"},{"location":"faq/ung-ho-du-an-vnstock/#toi-co-the-ong-gop-quy-vnstock-nhu-the-nao","title":"T\u00f4i c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p qu\u1ef9 Vnstock nh\u01b0 th\u1ebf n\u00e0o?","text":"\u0110\u1ec3 \u0111\u00f3ng g\u00f3p cho d\u1ef1 \u00e1n, b\u1ea1n l\u1ef1a ch\u1ecdn 1 trong 4 c\u00e1ch sau \u0111\u00e2y:
Chuy\u1ec3n ti\u1ec1n t\u1eeb v\u00ed \u0111i\u1ec7n t\u1eed Momo: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47
Chuy\u1ec3n kho\u1ea3n ng\u00e2n h\u00e0ng: Scan m\u00e3 QR nh\u1eadn ti\u1ec1n Momo b\u00ean d\u01b0\u1edbi \u0111\u1ec3 chuy\u1ec3n ti\u1ec1n \ud83d\udc47. M\u00e3 n\u00e0y ch\u1ea5p nh\u1eadn chuy\u1ec3n ti\u1ec1n t\u1eeb t\u1ea5t c\u1ea3 ng\u00e2n h\u00e0ng t\u1ea1i Vi\u1ec7t Nam. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 ch\u1ecdn g\u1eedi t\u1edbi s\u1ed1 t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng n\u1ebfu s\u1eed d\u1ee5ng Internet Banking qua tr\u00ecnh duy\u1ec7t web m\u00e0 kh\u00f4ng ti\u1ec7n d\u00f9ng t\u00ednh n\u0103ng QR. Th\u00f4ng tin ng\u01b0\u1eddi nh\u1eadn nh\u01b0 sau:
Ng\u00e2n h\u00e0ng nh\u1eadn: Vietcombank
chi nh\u00e1nh Thanh \u0110a
T\u00e0i kho\u1ea3n: nh\u1eadp t\u00ean VNSTOCK
ho\u1eb7c s\u1ed1 t\u00e0i kho\u1ea3n 0531002498288
Chuy\u1ec3n ti\u1ec1n qua Paypal b\u1eb1ng link nh\u1eadn ti\u1ec1n t\u1ea1i \u0111\u00e2y
T\u00e0i tr\u1ee3 th\u00f4ng qua Github Sponsor b\u1eb1ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master Card [t\u1ea1i \u0111\u00e2y
QR chuy\u1ec3n ti\u1ec1n Momo v\u00e0 m\u1ecdi ng\u00e2n h\u00e0ng"},{"location":"faq/ung-ho-du-an-vnstock/#quy-vnstock-uoc-su-dung-nhu-the-nao","title":"Qu\u1ef9 Vnstock \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng nh\u01b0 th\u1ebf n\u00e0o?","text":"
T\u00e1c gi\u1ea3 s\u1eed d\u1ee5ng qu\u1ef9 Vnstock \u0111\u1ec3 duy tr\u00ec v\u00e0 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n. C\u1ee5 th\u1ec3, qu\u1ef9 Vnstock \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3:
Tr\u1ea3 chi ph\u00ed duy tr\u00ec m\u00e1y ch\u1ee7 v\u00e0 t\u00ean mi\u1ec1n c\u1ee7a d\u1ef1 \u00e1n.
Tr\u1ea3 chi ph\u00ed n\u00e2ng c\u1ea5p v\u00e0 v\u1eadn h\u00e0nh c\u00e1c d\u1ecbch v\u1ee5 h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng cho d\u1ef1 \u00e1n.
S\u1eed d\u1ee5ng l\u00e0m chi ph\u00ed cho c\u00e1c ho\u1ea1t \u0111\u1ed9ng qu\u1ea3ng b\u00e1 v\u00e0 marketing c\u1ee7a d\u1ef1 \u00e1n.
S\u1eed d\u1ee5ng l\u00e0m chi ph\u00ed cho c\u00e1c ho\u1ea1t \u0111\u1ed9ng \u0111\u00e0o t\u1ea1o v\u00e0 h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng.
Hi\u1ec7n t\u1ea1i Vnstock docs \u0111\u00e3 \u0111\u01b0\u1ee3c ho\u00e0n thi\u1ec7n v\u00e0 cung c\u1ea5p m\u1ed9t m\u1ea3nh gh\u00e9p quan tr\u1ecdng gi\u00fap ng\u01b0\u1eddi d\u00f9ng ti\u1ebfp c\u1eadn t\u00e0i li\u1ec7u v\u00e0 c\u00e1c h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng vnstock tr\u1ef1c quan v\u00e0 t\u1ed1i \u01b0u.
L\u01b0u \u00fd
Tr\u01b0\u1edbc khi t\u00ecm \u0111\u1ebfn t\u00e1c gi\u1ea3 \u0111\u1ec3 nh\u1eafn tin tr\u1ef1c ti\u1ebfp, b\u1ea1n vui l\u00f2ng t\u1ef1 nghi\u00ean c\u1ee9u \u0111\u1ec3 ti\u1ebft ki\u1ec7m th\u1eddi gian cho c\u1ea3 hai b\u00ean. T\u00f4i c\u0169ng c\u00f3 nh\u1eefng c\u00f4ng vi\u1ec7c v\u00e0 \u01b0u ti\u00ean ri\u00eang c\u1ee7a m\u00ecnh v\u00e0 kh\u00f4ng ph\u1ea3i l\u00fac n\u00e0o c\u0169ng s\u1eb5n s\u00e0ng h\u1ed7 tr\u1ee3 b\u1ea1n 24/4 cho nh\u1eefng c\u00e2u h\u1ecfi r\u1ea5t c\u0103n b\u1ea3n \u0111\u00e3 c\u00f3 trong t\u00e0i li\u1ec7u v\u00e0 vi\u1ec7c b\u1ea1n \u0111\u1eb7t c\u00e2u h\u1ecfi ch\u1ec9 v\u00ec m\u00ecnh \"l\u01b0\u1eddi\" t\u00ecm ki\u1ebfm. \u0110i\u1ec1u n\u00e0y l\u00e0 kh\u00f4ng th\u1ec3 ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c.
N\u1ebfu b\u1ea1n th\u1ef1c s\u1ef1 c\u1ea7n h\u1ed7 tr\u1ee3, \u0111\u00e2y l\u00e0 nh\u1eefng c\u00e1ch b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo th\u1ee9 t\u1ef1 \u01b0u ti\u00ean:
H\u1ecfi trong nh\u00f3m Facebook th\u00e0nh vi\u00ean (\u1ee6ng h\u1ed9 Vnstock 100k \u0111\u1ec3 tham gia):
H\u1ecfi trong nh\u00f3m c\u1ed9ng \u0111\u1ed3ng Discord (mi\u1ec5n ph\u00ed):
G\u1eedi email y\u00eau c\u1ea7u h\u1ed7 tr\u1ee3: support@vnstock.site
Nh\u1eafn tin tr\u1ef1c ti\u1ebfp cho t\u00e1c gi\u1ea3:
L\u01b0u \u00fd
vnstock s\u1eed d\u1ee5ng th\u01b0 vi\u1ec7n plotly l\u00e0m th\u01b0 vi\u1ec7n bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u tr\u1ef1c quan. \u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c t\u00ednh n\u0103ng v\u1ebd \u0111\u1ed3 th\u1ecb, b\u1ea1n c\u1ea7n \u0111\u1ea3m b\u1ea3o plotly \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng.
Plotly l\u00e0 th\u01b0 vi\u1ec7n bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u m\u1ea1nh m\u1ebd trong Python, cung c\u1ea5p \u0111a d\u1ea1ng c\u00e1c lo\u1ea1i bi\u1ec3u \u0111\u1ed3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 v\u00e0 t\u1ea5t c\u1ea3 \u0111\u1ed3 th\u1ecb \u0111\u1ec1u h\u1ed7 tr\u1ee3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c quan (interactive). H\u00e0m candlestick_chart
d\u01b0\u1edbi \u0111\u00e2y \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean n\u1ec1n Plotly graph object
, h\u1ed7 tr\u1ee3 \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng c\u1ee7a Plotly.
T\u00ednh n\u0103ng v\u1ebd bi\u1ec3u \u0111\u1ed3 kh\u00f4ng ph\u1ea3i ai c\u0169ng c\u1ea7n thi\u1ebft d\u00f9ng, do \u0111\u00f3 \u0111\u1ec3 t\u1ed1i \u01b0u th\u1eddi gian c\u00e0i \u0111\u1eb7t th\u01b0 vi\u1ec7n vnstock v\u00e0 c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c, plotly
\u0111\u01b0\u1ee3c t\u00e1ch kh\u1ecfi ti\u1ebfn tr\u00ecnh c\u00e0i \u0111\u1eb7t t\u1ef1 \u0111\u1ed9ng. B\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t plotly th\u1ee7 c\u00f4ng nh\u01b0 sau:
pip install plotly\n
"},{"location":"functions/chart/#o-thi-nen","title":"\u0110\u1ed3 th\u1ecb n\u1ebfn","text":"C\u00fa ph\u00e1p c\u00e2u l\u1ec7nh v\u1ebd bi\u1ec3u \u0111\u1ed3 \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau:
from vnstock import * #import all functions, including functions that provide OHLC data for charting\nfrom vnstock.chart import * # import chart functions\ndf = stock_historical_data(\"VIC\", \"2022-01-01\", \"2023-10-10\", \"1D\", \"stock\")\nfig = candlestick_chart(df, ma_periods=[50,200], show_volume=False, reference_period=300, figure_size=(15, 8), \n title='VIC - Candlestick Chart with MA and Volume', x_label='Date', y_label='Price', \n colors=('lightgray', 'gray'), reference_colors=('black', 'blue'))\nfig.show()\n
B\u1ea1n c\u00f3 th\u1ec3 t\u00f9y ch\u1ecdn b\u1ecf qua b\u01b0\u1edbc g\u00e1n \u0111\u1ed3 th\u1ecb v\u1edbi bi\u1ebfn fig n\u1ebfu ch\u1ec9 mu\u1ed1n xem \u0111\u1ed3 th\u1ecb tr\u1ef1c ti\u1ebfp tr\u00ean Jupyter Notebook m\u00e0 kh\u00f4ng thao t\u00e1c ti\u1ebfp theo nh\u01b0 l\u01b0u file. \u0110\u1ec3 v\u1ebd bi\u1ec3u \u0111\u1ed3 cho m\u00e3 ch\u1ec9 s\u1ed1 (index) ho\u1eb7c m\u00e3 ph\u00e1i sinh (derivative), b\u1ea1n c\u1ea7n thay \u0111\u1ed5i tham s\u1ed1 type
th\u00e0nh index
ho\u1eb7c derivative
.
from vnstock import * #import all functions\n\ndf = stock_historical_data(symbol='VNINDEX', start_date='2022-01-01', end_date='2023-10-10', resolution='1D', type='index')\nfig = candlestick_chart(df, \n title='VNINDEX Candlestick Chart with MA and Volume', x_label='Date', y_label='Price', ma_periods=[50,200], \n show_volume=True, figure_size=(15, 8), reference_period=300, \n colors=('lightgray', 'gray'), reference_colors=('black', 'blue'))\nfig.show()\n
B\u1ea1n c\u00f3 th\u1ec3 \u0111i\u1ec1u ch\u1ec9nh l\u1ea1i c\u00e1c th\u00f4ng s\u1ed1 c\u1ee7a h\u00e0m cho ph\u00f9 h\u1ee3p, lo\u1ea1i b\u1ecf c\u00e1c th\u00f4ng s\u1ed1 kh\u00f4ng c\u1ea7n thi\u1ebft khi g\u1ecdi h\u00e0m s\u1ebd cho ph\u00e9p h\u00e0m s\u1eed d\u1ee5ng gi\u00e1 tr\u1ecb c\u00e0i \u0111\u1eb7t m\u1eb7c \u0111\u1ecbnh, ho\u1eb7c b\u1ea1n \u0111i\u1ec1u ch\u1ec9nh b\u1eb1ng c\u00e1ch cung c\u1ea5p tham s\u1ed1 m\u1edbi v\u00e0o. Ngo\u00e0i ra b\u1ea1n c\u00f3 th\u1ec3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c ti\u1ebfp v\u1edbi \u0111\u1ed3 th\u1ecb, v\u00ed d\u1ee5 click v\u00e0o th\u00f4ng tin ch\u00fa th\u00edch t\u01b0\u01a1ng t\u1ee9ng t\u1eebng lo\u1ea1i d\u1eef li\u1ec7u \u0111\u1ec3 b\u1eadt/t\u1eaft ch\u00fang m\u00e0 kh\u00f4ng c\u1ea7n can thi\u1ec7p v\u00e0o d\u00f2ng l\u1ec7nh.
C\u00e1c tham s\u1ed1 c\u1ee7a h\u00e0m bao g\u1ed3m:
df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLCma_periods
: C\u00e1c d\u1ea3i MA c\u1ea7n t\u00ednh to\u00e1n, nh\u1eadp v\u00e0o d\u01b0\u1edbi d\u1ea1ng m\u1ed9t danh s\u00e1ch. V\u00ed d\u1ee5 [10, 50, 200] s\u1ebd cho ph\u00e9p t\u00ednh MA10, MA50, MA200. B\u1ea1n c\u00f3 th\u1ec3 nh\u1eadp bao nhi\u00eau d\u1ea3i MA t\u00f9y th\u00edch.show_volume
: True \u0111\u1ec3 hi\u1ec3n th\u1ecb th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch, False \u0111\u1ec3 \u1ea9n.reference_period
: S\u1ed1 ng\u00e0y \u0111\u1ec3 t\u00ednh to\u00e1n \u0111\u01b0\u1eddng tham chi\u1ebfu \u0111\u1ec9nh/\u0111\u00e1y c\u1ee7a gi\u00e1 V\u00ed d\u1ee5 90.figure_size
: K\u00edch th\u01b0\u1edbc \u0111\u1ed3 th\u1ecb, nh\u1eadp d\u01b0\u1edbi d\u1ea1ng tupple v\u00ed d\u1ee5 (15, 8) th\u1ec3 hi\u1ec7n 1500 x 800px.title
: T\u00ean c\u1ee7a \u0111\u1ed3 th\u1ecb.x_label
: Nh\u00e3n tr\u1ee5c x (ho\u00e0nh)y_label
: Nh\u00e3n tr\u1ee5c y (tung)colors
: M\u00e3 m\u00e0u th\u1ec3 hi\u1ec7n cho kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trong nh\u1eefng ng\u00e0y gi\u00e1 c\u1ed5 phi\u1ebfu t\u0103ng/gi\u1ea3m, \u0111\u01b0\u1ee3c nh\u1eadp d\u01b0\u1edbi d\u1ea1ng tupple. V\u00ed d\u1ee5 ('#00F4B0', '#FF3747').reference_color
: C\u1eb7p m\u00e3 m\u00e0u cho \u0111\u01b0\u1eddng gi\u00e1 th\u1ea5p nh\u1ea5t (lowest low), v\u00e0 cao nh\u1ea5t (highest high) \u0111\u01b0\u1ee3c nh\u1eadp v\u00e0o d\u01b0\u1edbi d\u1ea1ng tupple. V\u00ed d\u1ee5 ('black', 'blue')C\u00fa ph\u00e1p c\u00e2u l\u1ec7nh v\u1ebd bi\u1ec3u \u0111\u1ed3 \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau:
from vnstock import * #import all functions\ndf = stock_historical_data(symbol='VNINDEX', start_date='2022-01-01', end_date='2023-10-10', resolution='1D', type='index')\nbollinger_df = bollinger_bands(df, window=20, num_std_dev=2)\nfig = bollinger_bands_chart(bollinger_df, use_candlestick=True, show_volume=True, \n fig_size=(15, 8), chart_title='Bollinger Bands Chart', xaxis_title='Date', yaxis_title='Price', \n bollinger_band_colors=('gray', 'orange', 'gray'), volume_colors=('#00F4B0', '#FF3747'))\nfig.show()\n
K\u1ebft qu\u1ea3 nh\u01b0 sau:
Trong \u0111\u00f3, DataFrame df
c\u00f3 th\u1ec3 kh\u00f4ng ph\u1ea3i t\u00ednh to\u00e1n l\u1ea1i n\u1ebfu \u0111\u00e3 khai b\u00e1o tr\u01b0\u1edbc \u0111\u00f3 trong d\u1ef1 \u00e1n.
H\u00e0m bollinger_bands cho ph\u00e9p t\u00f9y ch\u1ec9nh c\u00e1c tham s\u1ed1 t\u00ednh to\u00e1n gi\u00e1 tr\u1ecb \u0111\u1ec3 s\u1eed d\u1ee5ng trong bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u, c\u00e1c tham s\u1ed1 bao g\u1ed3m: - df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLC, s\u1eed d\u1ee5ng h\u00e0m stock_historical_data. - window
: Khung th\u1eddi gian \u0111\u1ec3 t\u00ednh to\u00e1n gi\u00e1 tr\u1ecb trung b\u00ecnh \u0111\u1ed9ng \u0111\u01a1n gi\u1ea3n (SMA), m\u1eb7c \u0111\u1ecbnh l\u00e0 20 ng\u00e0y. - num_std_dev
: S\u1ed1 k\u1ef3 t\u00ednh \u0111\u1ed9 l\u1ec7ch chu\u1ea9n. M\u1eb7c \u0111\u1ecbnh l\u00e0 2.
H\u00e0m v\u1ebd \u0111\u1ed3 th\u1ecb Bollinger Bands bao g\u1ed3m c\u00e1c tham s\u1ed1:
df
: DataFrame ch\u1ee9a d\u1eef li\u1ec7u Bollinger Bands: time, open, high, low, close, volume, ticker, upper_band, middle_band, lower_band. D\u1eef li\u1ec7u n\u00e0y c\u00f3 \u0111\u01b0\u1ee3c sau khi x\u1eed l\u00fd d\u1eef li\u1ec7u gi\u00e1 \u0111\u1ecbnh d\u1ea1ng OHLC (h\u00e0m stock_historical_data) v\u1edbi h\u00e0m bollinger_bands
.use_candlestick
: Ch\u1ecdn s\u1eed d\u1ee5ng \u0111\u1ed3 th\u1ecb n\u1ebfn (gi\u00e1 tr\u1ecb True) hay ch\u1ec9 bi\u1ec3u di\u1ec5n gi\u00e1 \u0111\u00f3ng c\u1eeda d\u1ea1ng \u0111\u1ed3 th\u1ecb \u0111\u01b0\u1eddng (gi\u00e1 tr\u1ecb False). M\u1eb7c \u0111\u1ecbnh d\u00f9ng \u0111\u1ed3 th\u1ecb n\u1ebfn.show_volume
: Ch\u1ecdn hi\u1ec3n th\u1ecb th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch (True) ho\u1eb7c \u1ea9n \u0111i (False). M\u1eb7c \u0111\u1ecbnh hi\u1ec3n th\u1ecb.fig_size
: Tupple ch\u1ee9a gi\u00e1 tr\u1ecb k\u00edch th\u01b0\u1edbc \u0111\u1ed3 th\u1ecb (width, height). V\u00ed d\u1ee5 (15, 8) th\u1ec3 hi\u1ec7n 1500 x 800px.chart_title
: T\u00ean c\u1ee7a \u0111\u1ed3 th\u1ecb. N\u1ebfu kh\u00f4ng ch\u1ec9 r\u00f5, s\u1ebd d\u00f9ng t\u00ean m\u1eb7c \u0111\u1ecbnhxaxis_title
: T\u00ean c\u1ee7a tr\u1ee5c x (ho\u00e0nh)yaxis_title
: T\u00ean c\u1ee7a tr\u1ee5c y (tung)bollinger_band_colors
: Tupple ch\u1ee9a b\u1ed9 m\u00e3 m\u00e0u cho d\u1ea3i Bollinger Bands (upper, middle, lower).volume_colors
: Tuple ch\u1ee9a m\u00e3 m\u00e0u cho th\u00f4ng tin kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trong nh\u1eefng ng\u00e0y gi\u00e1 t\u0103ng, gi\u1ea3m. V\u00ed d\u1ee5 ('green', 'red').\u0110\u1ec3 l\u01b0u \u0111\u1ed3 th\u1ecb v\u1edbi c\u00e2u l\u1ec7nh, b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t g\u00f3i ph\u1ee5 thu\u1ed9c kaleido
sau \u0111\u00f3 th\u1ef1c hi\u1ec7n l\u01b0u file nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y. Sau khi c\u00e0i \u0111\u1eb7t th\u00ec c\u1ea7n ph\u1ea3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i runtime c\u1ee7a Jupyter Notebook. Tr\u00ean Google Colab ch\u1ecdn Menu Runtime
-> Restart runtime
. Sau \u0111\u00f3 b\u1ea1n c\u1ea7n ch\u1ea1y l\u1ea1i c\u00e1c l\u1ec7nh \u0111\u1ec3 v\u1ebd \u0111\u1ed3 th\u1ecb r\u1ed3i m\u1edbi c\u00f3 th\u1ec3 l\u01b0u. Vi\u1ec7c n\u00e0y kh\u00e1 b\u1ea5t ti\u1ec7n, do \u0111\u00f3 n\u1ebfu kh\u00f4ng c\u00f3 nhu c\u1ea7u l\u01b0u file b\u1eb1ng c\u00e2u l\u1ec7nh, b\u1ea1n c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n t\u1eeb giao di\u1ec7n \u0111\u1ed3 h\u1ecda c\u1ee7a \u0111\u1ed3 th\u1ecb, ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng c\u00e1i m\u00e1y \u1ea3nh (thanh c\u00f4ng c\u1ee5 ph\u00eda tr\u00ean b\u00ean ph\u1ea3i), click v\u00e0o v\u00e0 ch\u1ecdn th\u01b0 m\u1ee5c \u0111\u1ec3 l\u01b0u file.
!pip install -U kaleido\n
Vi\u1ec7c c\u00e0i \u0111\u1eb7t ch\u1ec9 c\u1ea7n th\u1ef1c hi\u1ec7n m\u1ed9t l\u1ea7n, cu\u1ed1i c\u00f9ng d\u00f9ng c\u00e2u l\u1ec7nh sau \u0111\u1ec3 l\u01b0u file \u1ea3nh. Thay \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn th\u01b0 m\u1ee5c v\u00e0 t\u00ean file theo \u00fd b\u1ea1n \u0111\u1ec3 l\u01b0u file \u1ea3nh v\u00e0o th\u01b0 m\u1ee5c mong mu\u1ed1n. fig.write_image(\"TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/VNINDEX_candlestick.png\")\n
"},{"location":"functions/chart/#go-loi-thu-vien-phu-thuoc","title":"G\u1ee1 l\u1ed7i th\u01b0 vi\u1ec7n ph\u1ee5 thu\u1ed9c","text":"B\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y l\u1ec7nh c\u00e0i \u0111\u1eb7t to\u00e0n b\u1ed9 th\u01b0 vi\u1ec7n ph\u1ee5 thu\u1ed9c t\u1eeb file requirements.txt
. T\u1ea3i file requirements.txt v\u1ec1 m\u00e1y c\u1ee7a b\u1ea1n. H\u00e3y \u0111\u1ea3m b\u1ea3o b\u1ea1n \u0111\u00e3 cd
\u0111\u1ebfn \u0111\u00fang th\u01b0 m\u1ee5c ch\u1ee9a file requirements.txt tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh.
cd TH\u01af_M\u1ee4C_CH\u1ee8A_FILE\n
pip install -r requirements.txt\n
"},{"location":"functions/chart/#xay-dung-dashboard-voi-streamlit","title":"X\u00e2y d\u1ef1ng dashboard v\u1edbi Streamlit","text":"\u0110\u1ec3 t\u1ed1i \u01b0u s\u1ee9c m\u1ea1nh c\u1ee7a vnstock v\u00e0 x\u00e2y d\u1ef1ng nh\u1eefng s\u1ea3n ph\u1ea9m th\u1ef1c s\u1ef1 trong ph\u00e2n t\u00edch \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n th\u00ec Streamlit l\u00e0 l\u1ef1a ch\u1ecdn h\u00e0ng \u0111\u1ea7u. Streamlit l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n m\u00e3 ngu\u1ed3n m\u1edf, cho ph\u00e9p b\u1ea1n x\u00e2y d\u1ef1ng c\u00e1c \u1ee9ng d\u1ee5ng web tr\u1ef1c quan v\u1edbi Python m\u1ed9t c\u00e1ch nhanh ch\u00f3ng v\u00e0 d\u1ec5 d\u00e0ng. Vnstock Web App ch\u00ednh l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb ch\u00ednh vnstock \u0111\u1ec3 t\u1ea1o ra \u1ee9ng d\u1ee5ng v\u1edbi giao di\u1ec7n \u0111\u1ed3 h\u1ecda tr\u1ef1c quan v\u00e0 th\u00e2n thi\u1ec7n. Web App n\u00e0y ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y, kh\u00f4ng c\u1ea7n thi\u1ebft l\u1eadp b\u1ea5t c\u1ee9 c\u01a1 s\u1edf d\u1eef li\u1ec7u n\u00e0o, d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o c\u1ee7a Web App ch\u00ednh l\u00e0 c\u00e1c APIs do vnstock cung c\u1ea5p.
\u0110\u1ec3 c\u00f3 th\u1ec3 l\u00e0m ch\u1ee7 Streamlit nhanh ch\u00f3ng v\u1edbi l\u1ed9 tr\u00ecnh \u0111\u00e0o t\u1ea1o th\u1ef1c t\u1ebf, \u1ee9ng d\u1ee5ng cho ch\u00ednh th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 s\u1eed d\u1ee5ng vnstock. B\u1ea1n c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam v\u1edbi Th\u1ecbnh v\u1ec1 kh\u00f3a h\u1ecdc ng\u1eafn h\u1ea1n s\u1eafp tri\u1ec3n khai.
"},{"location":"functions/comparison/","title":"So s\u00e1nh c\u1ed5 phi\u1ebfu ti\u1ec1m n\u0103ng","text":"G\u1ee3i \u00fd
B\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i xu\u1ed1ng b\u1ea3ng gi\u00e1 c\u1ee7a m\u1ed9t danh s\u00e1ch c\u00e1c c\u1ed5 phi\u1ebfu \u0111\u01b0\u1ee3c ch\u1ecdn \u0111\u1ec3 ph\u00e2n t\u00edch, thi\u1ebft l\u1eadp thu\u1eadt to\u00e1n d\u1ec5 d\u00e0ng h\u01a1n (khi xu\u1ea5t ra Google Sheets/Excel) so v\u1edbi vi\u1ec7c xem tr\u1ef1c ti\u1ebfp tr\u00ean b\u1ea3ng gi\u00e1 c\u1ee7a c\u00e1c c\u00f4ng ty ch\u1ee9ng kho\u00e1n.
"},{"location":"functions/comparison/#bang-gia","title":"B\u1ea3ng gi\u00e1","text":"Minh h\u1ecda B\u1ea3ng gi\u00e1 TCBS
"},{"location":"functions/comparison/#khop-lenh-buoc-gia-khoi-luong","title":"Kh\u1edbp l\u1ec7nh, B\u01b0\u1edbc gi\u00e1 & kh\u1ed1i l\u01b0\u1ee3ng","text":"price_depth('TCB,SSI,VND')\n
S\u1eed d\u1ee5ng h\u00e0m n\u00e0y cho ph\u00e9p th\u1ed1ng k\u00ea c\u00e1c b\u01b0\u1edbc gi\u00e1 v\u00e0 kh\u1ed1i l\u01b0\u1ee3ng tr\u00ean b\u1ea3ng gi\u00e1 c\u1ee7a m\u1ed9t ho\u1eb7c m\u1ed9t danh s\u00e1ch c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng k\u1ebft h\u1ee3p h\u00e0m n\u00e0y v\u1edbi h\u00e0m price_board \u0111\u1ec3 k\u1ebft h\u1ee3p c\u00e1c th\u00f4ng tin \u0111a d\u1ea1ng v\u1ec1 gi\u00e1, kh\u1ed1i l\u01b0\u1ee3ng, ch\u1ec9 s\u1ed1, th\u00f4ng tin giao d\u1ecbch \u0111\u1ec3 ch\u1ecdn l\u1ecdc v\u00e0 theo d\u00f5i c\u1ed5 phi\u1ebfu theo m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng c\u1ee7a m\u00ecnh. >>> price_depth('TCB,SSI,VND').T\n 0 1 2\nM\u00e3 CP TCB SSI VND\nGi\u00e1 tham chi\u1ebfu 30650 30100 19150\nGi\u00e1 Tr\u1ea7n 32750 32200 20450\nGi\u00e1 S\u00e0n 28550 28000 17850\nGi\u00e1 mua 3 31100 29850 18900\nKL mua 3 1630 3240 8310\nGi\u00e1 mua 2 31050 29800 18850\nKL mua 2 1320 10690 13480\nGi\u00e1 mua 1 31000 29750 18800\nKL mua 1 2260 3220 12160\nGi\u00e1 kh\u1edbp l\u1ec7nh 31100 29900 18900\nKL Kh\u1edbp l\u1ec7nh 90 140 100\nGi\u00e1 b\u00e1n 1 31200 29900 18950\nKL b\u00e1n 1 2140 2980 6720\nGi\u00e1 b\u00e1n 2 31250 29950 19000\nKL b\u00e1n 2 5410 4340 16200\nGi\u00e1 b\u00e1n 3 31300 30000 19050\nKL b\u00e1n 3 810 17840 11000\nT\u1ed5ng Kh\u1ed1i L\u01b0\u1ee3ng 164810 1783250 1812410\n\u0110TNN Mua 0 45896 20285\n\u0110TNN B\u00e1n 0 77526 38110\n\u0110TNN Room 0 837230225 936537977\n
"},{"location":"functions/comparison/#thong-tin-giao-dich","title":"Th\u00f4ng tin giao d\u1ecbch","text":"price_board('TCB,SSI,VND')\n
H\u00e0m n\u00e0y cho ph\u00e9p t\u1ea3i v\u1ec1 th\u00f4ng tin gi\u00e1, kh\u1ed1i l\u01b0\u1ee3ng v\u00e0 c\u00e1c ch\u1ec9 s\u1ed1 quan tr\u1ecdng cho m\u1ed9t ho\u1eb7c m\u1ed9t danh s\u00e1ch m\u00e3 c\u1ed5 phi\u1ebfu. S\u1eed d\u1ee5ng k\u1ebft h\u1ee3p v\u1edbi h\u00e0m price_depth cho hi\u1ec7u qu\u1ea3 t\u1ed1t nh\u1ea5t. >>> price_board('TCB,SSI,VND').T\n 0 1 2\nM\u00e3 CP TCB SSI VND\nGi\u00e1 31100.0 29900.0 18850.0\nKLBD/TB5D 0.95 1.33 1.28\nT.\u0111\u1ed9 GD 0.82 0.68 0.83\nKLGD r\u00f2ng(CM) 0 -219100 198000\n%KLGD r\u00f2ng (CM) 0.0 -19.6 14.2\nRSI 35.168889 38.43115 35.726964\nMACD Hist -0.13 -0.34 -0.23\nMACD Signal Neutral Sell Sell\nT\u00edn hi\u1ec7u KT Neutral Neutral Neutral\nT\u00edn hi\u1ec7u TB \u0111\u1ed9ng Strong Buy Strong Buy Strong Buy\nMA20 32265.0 31957.5 20772.5\nMA50 33446.0 32258.0 21899.0\nMA100 33034.5 29527.0 20479.0\nPhi\u00ean +/- -6 -1 -1\n% thay \u0111\u1ed5i gi\u00e1 3D -3.5 -4.3 -4.3\n% thay \u0111\u1ed5i gi\u00e1 1M -10.1 -15.7 -22.0\n% thay \u0111\u1ed5i gi\u00e1 3M -5.1 5.4 4.1\n% thay \u0111\u1ed5i gi\u00e1 1Y 21.1 75.8 31.2\nRS 3D 50.0 34.0 22.0\nRS 1M 38.0 23.0 11.0\nRS 3M 45.0 76.0 73.0\nRS 1Y 69.0 95.0 77.0\nRS TB 50.0 57.0 46.0\n\u0110\u1ec9nh 1M 34350 36450 25250\n\u0110\u1ec9nh 3M 35750 36450 25250\n\u0110\u1ec9nh 1Y 35750 36450 25250\n\u0110\u00e1y 1M 30650 30100 19150\n\u0110\u00e1y 3M 30650 28000 18100\n\u0110\u00e1y 1Y 20700 13373 9720\n%\u0110\u1ec9nh 1Y -14.3 -17.4 -24.2\n%\u0110\u00e1y 1Y 48.1 125.1 97.0\nP/E 6.1 22.4 41.0\nP/B 0.9 2.0 1.5\nROE 0.15834 0.090235 0.038377\nTCRating 4.2 3.8 3.8\nKh\u1ed1i l\u01b0\u1ee3ng D\u01b0 b\u00e1n 84500 251400 292000\nKh\u1ed1i l\u01b0\u1ee3ng D\u01b0 mua 51000 168800 503100\nTCBS \u0111\u1ecbnh gi\u00e1 48627 17496 12096\nKh\u1edbp nhi\u1ec1u nh\u1ea5t 30650 29500 18800\n\u0110.g\u00f3p VNINDEX 0.4 -0.08 -0.09\n%Gi\u00e1 - %VNI (1M) 0.1 -5.5 -11.8\n%Gi\u00e1 - %VNI (1Y) 18.9 73.5 28.9\nVNINDEX P/E 13.9448 13.9448 13.9448\nVNINDEX P/B 1.58262 1.58262 1.58262\nvnid3d -3.0 -3.0 -3.0\nvnid1m -10.2 -10.2 -10.2\nvnid3m -7.3 -7.3 -7.3\nvnid1y 2.3 2.3 2.3\n
"},{"location":"functions/comparison/#so-sanh-co-phieu-cung-nganh","title":"So s\u00e1nh c\u1ed5 phi\u1ebfu c\u00f9ng ng\u00e0nh","text":"industry_analysis(\"VNM\", lang='vi')\n
- Tr\u1ea3 v\u1ec1 th\u00f4ng tin c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu c\u00f9ng ng\u00e0nh v\u1edbi m\u00e3 c\u1ed5 phi\u1ebfu n\u1eb1m trong c\u00f9ng nh\u00f3m ng\u00e0nh v\u1edbi m\u00e3 VNM. - Tham s\u1ed1 lang='vi m\u1eb7c \u0111\u1ecbnh tr\u1ea3 v\u1ec1 t\u00ean c\u00e1c ch\u1ec9 s\u1ed1 b\u1eb1ng ti\u1ebfng Vi\u1ec7t, \u0111\u1ed5i th\u00e0nh en \u0111\u1ec3 gi\u1eef nguy\u00ean ch\u1ec9 s\u1ed1 v\u1edbi t\u00ean ti\u1ebfng Anh. dividend (C\u1ed5 t\u1ee9c), ROE, ROA, ebitOnInterest (Thanh to\u00e1n l\u00e3i vay), currentPayment (Thanh to\u00e1n hi\u1ec7n h\u00e0nh), quickPayment (Thanh to\u00e1n nhanh), grossProfitMargin (Bi\u00ean LNG), postTaxMargin (Bi\u00ean LNST), badDebtPercentage (T\u1ec9 l\u1ec7 n\u1ee3 x\u1ea5u), debtOnEquity (N\u1ee3/V\u1ed1n CSH), debtOnEbitda (N\u1ee3/EBITDA), income5year (LNST 5 n\u0103m), sale5year (Doanh thu 5 n\u0103m), income1quarter (LNST qu\u00fd g\u1ea7n nh\u1ea5t), sale1quarter (Doanh thu qu\u00fd g\u1ea7n nh\u1ea5t), nextIncome (LNST n\u0103m t\u1edbi), nextSale (Doanh thu qu\u00fd t\u1edbi)
L\u01b0u \u00fd: T\u00ean c\u00e1c column c\u00f3 th\u1ec3 ch\u01b0a \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ed5i \u0111\u1ea7y \u0111\u1ee7 th\u00e0nh ti\u1ebfng Vi\u1ec7t. N\u1ebfu g\u1eb7p ch\u1ec9 s\u1ed1 n\u00e0o ch\u01b0a \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ed5i t\u00ean th\u00e0nh ti\u1ebfng Vi\u1ec7t, b\u1ea1n vui l\u00f2ng comment cho t\u00e1c gi\u1ea3 nh\u00e9.
K\u1ebft qu\u1ea3:
>>> industry_analysis('VNM', lang='vi')\nM\u00e3 CP VNM MSN MCH QNS KDC IDP SBT MML PAN MCM VSF VOC OCH VSN CLX LSS KTC HSL HKB\nV\u1ed1n h\u00f3a (t\u1ef7) None 107634 51307 17543 16102 13204 11478 10108 4303 4232 3979 2890 1680 1618 1274 932 383 219 46\nGi\u00e1 None 75600 71603 49149 62600 224000 15500 30900 20600 38473 7958 23727 8400 19994 14713 12500 10500 6180 900\nS\u1ed1 phi\u00ean t\u0103ng/gi\u1ea3m li\u00ean ti\u1ebfp None 3 2 4 0 -3 3 1 -1 1 -2 0 0 0 1 3 0 -1 0\nP/E NaN 49.2 9.1 12.3 -215.9 16.7 16.6 -18.7 13.2 11.7 -384.1 2.4 15.2 11.9 7.1 23.5 37.3 14.6 -0.8\nPEG NaN -0.6 -8.0 0.9 1.9 -1.6 -1.4 0.1 -1.9 5.9 4.0 0.0 -0.1 -1.6 1.1 2.2 -0.8 0.8 0.5\nP/B NaN 4.1 2.2 2.3 2.5 6.5 1.2 1.9 1.0 1.8 1.7 1.1 1.3 1.2 0.8 0.6 1.0 0.5 0.2\nEV/EBITDA NaN 20.0 8.2 10.4 36.1 13.1 13.7 -267.0 7.2 11.4 25.9 -8.9 6.3 8.3 10.5 6.5 20.0 12.8 -3.1\nC\u1ed5 t\u1ee9c NaN 0.009 0.0 0.0 0.086 0.033 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0\nROE NaN 0.081 0.277 0.195 -0.011 0.442 0.076 -0.098 0.075 0.159 -0.005 0.591 0.086 0.107 0.118 0.025 0.025 0.036 -0.263\nROA NaN 0.016 0.175 0.128 -0.006 0.22 0.025 -0.042 0.021 0.14 -0.001 0.484 0.049 0.067 0.082 0.014 0.007 0.031 -0.15\nThanh to\u00e1n l\u00e3i vay NaN 0.5 9.1 8.5 -0.2 19.4 0.9 -0.8 1.3 NaN 0.3 -2.0 -3.2 67.7 22.1 2.2 0.9 6.9 -4.4\nThanh to\u00e1n hi\u1ec7n h\u00e0nh NaN 0.8 2.7 1.8 1.6 1.5 1.2 1.4 1.3 8.6 1.0 4.2 1.9 2.5 3.1 1.3 0.9 9.7 0.3\nThanh to\u00e1n nhanh NaN 0.6 2.5 1.4 1.2 1.3 0.9 1.1 0.9 7.7 0.4 3.4 1.7 1.7 2.9 0.3 0.5 8.6 0.3\nBi\u00ean LNG NaN 0.272 0.432 0.28 0.188 0.385 0.115 0.117 0.171 0.323 0.067 NaN 0.286 0.247 0.264 0.121 0.035 0.039 0.728\nBi\u00ean LNST NaN 0.011 0.228 0.149 NaN 0.138 0.026 NaN 0.016 0.138 NaN 6.467 NaN 0.039 0.372 0.017 0.004 0.024 NaN\nN\u1ee3/V\u1ed1n CSH NaN 2.0 0.3 0.4 0.6 0.4 1.3 1.0 0.7 0.0 1.5 0.1 0.1 0.0 0.0 0.4 2.3 0.0 0.5\nN\u1ee3/EBITDA NaN 7.6 1.1 1.5 8.1 0.7 7.2 -88.3 3.4 0.1 12.3 -1.1 0.7 1.1 0.4 2.6 15.5 0.8 -2.0\nLNST 5 n\u0103m NaN 0.028 0.207 0.046 -0.04 NaN 0.12 NaN 0.001 0.098 NaN NaN NaN 0.012 0.065 -0.1 -0.157 -0.081 NaN\nDoanh thu 5 n\u0103m NaN 0.152 0.153 0.016 0.123 NaN 0.22 -0.239 0.274 0.049 -0.053 -0.181 -0.018 -0.002 0.088 -0.008 0.067 0.16 -0.474\nLNST qu\u00fd g\u1ea7n nh\u1ea5t NaN -0.519 -0.255 -0.258 NaN 0.316 0.443 NaN -0.694 0.397 NaN NaN NaN -0.131 0.092 NaN 36.983 -0.44 NaN\nDoanh thu qu\u00fd g\u1ea7n nh\u1ea5t NaN -0.094 -0.252 0.093 -0.302 -0.057 -0.181 0.031 -0.352 -0.067 -0.31 -0.675 -0.197 -0.134 -0.123 0.102 -0.122 -0.142 0.009\nLNST n\u0103m t\u1edbi NaN 0.285 0.26 0.173 -0.202 0.074 0.047 -0.719 -0.041 0.04 -0.939 0.116 6.025 -0.034 0.09 -0.155 0.813 0.022 NaN\nDoanh thu n\u0103m t\u1edbi NaN 0.2 0.3 0.162 0.283 0.1 0.1 -0.7 0.05 0.05 0.03 0.15 -0.5 0.1 0.3 -0.08 -0.06 0.02 NaN\nRSI NaN 50.7 43.1 71.8 24.0 28.5 59.2 33.7 68.2 53.5 46.6 44.1 51.1 32.3 55.5 55.3 33.3 54.8 61.1\n
"},{"location":"functions/comparison/#so-sanh-cac-co-phieu-tuy-y","title":"So s\u00e1nh c\u00e1c c\u1ed5 phi\u1ebfu t\u00f9y \u00fd","text":"Ghi nh\u1eadn l\u1ed7i
20/10/2023: Hi\u1ec7n t\u1ea1i h\u00e0m ghi nh\u1eadn l\u1ed7i kh\u00f4ng tr\u1ea3 v\u1ec1 k\u1ebft qu\u1ea3 nh\u01b0 mong mu\u1ed1n t\u1eeb ch\u00ednh ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u l\u00e0 TCBS.
stock_ls_analysis(\"TCB, BID, CEO, GMD\", lang='vi')\n
K\u1ebft qu\u1ea3:
>>> stock_ls_analysis(\"TCB, BID, CEO, GMD\", lang='vi')\nM\u00e3 CP BID CEO GMD TCB\nV\u1ed1n h\u00f3a (t\u1ef7) 203353 9367 19853 107803\nGi\u00e1 40200 18200 64900 30650\nS\u1ed1 phi\u00ean t\u0103ng/gi\u1ea3m li\u00ean ti\u1ebfp 1 0 2 -6\nP/E 10.0 32.8 8.7 6.1\nPEG 0.2 2.3 0.1 -0.5\nP/B 1.8 2.8 2.3 0.9\nC\u1ed5 t\u1ee9c 0.0 0.0 0.045 0.0\nROE 0.203 0.09 0.294 0.158\nROA 0.01 0.04 0.18 0.026\nN\u1ee3/V\u1ed1n CSH 17.6 0.2 0.2 5.0\nLNST 5 n\u0103m 0.218 0.094 0.144 0.256\nDoanh thu 5 n\u0103m 0.123 0.068 -0.004 0.2\nLNST qu\u00fd g\u1ea7n nh\u1ea5t -0.008 0.412 7.163 -0.009\nDoanh thu qu\u00fd g\u1ea7n nh\u1ea5t -0.001 -0.073 0.011 0.003\nLNST n\u0103m t\u1edbi -0.023 -0.012 1.288 -0.084\nDoanh thu n\u0103m t\u1edbi 0.124 -0.1 0.0 0.084\nRSI 29.2 34.9 54.9 29.0\nRS 44.0 48.0 85.0 50.0\n
"},{"location":"functions/evaluation/","title":"Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m stock_evaluation
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edch
period
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: 1
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, 2
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
time_window
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: D
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, W
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
Minh h\u1ecda cho h\u00e0m n\u00e0y nh\u01b0 sau:
Ch\u1ec9 s\u1ed1 \u0111\u1ecbnh gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m stock_evaluation
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1: - symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edch
period
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: 1
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, 2
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
time_window
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: D
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo ng\u00e0y, W
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo tu\u1ea7n
Minh h\u1ecda cho h\u00e0m n\u00e0y nh\u01b0 sau:
stock_evaluation (symbol='TCB', period=1, time_window='D')\n
>>> stock_evaluation (symbol='TCB', period=1, time_window='D')\n ticker fromDate toDate PE PB industryPE vnindexPE industryPB vnindexPB\n0 TCB 2022-09-05 2022-09-05 6.4 1.2 9.8 14.0 1.7 2.0\n1 TCB 2022-09-06 2022-09-06 6.4 1.2 9.9 14.0 1.7 2.0\n2 TCB 2022-09-07 2022-09-07 6.2 1.2 9.6 13.7 1.7 2.0\n3 TCB 2022-09-08 2022-09-08 6.2 1.2 9.4 13.5 1.6 1.9\n4 TCB 2022-09-09 2022-09-09 6.2 1.2 9.5 13.7 1.6 2.0\n.. ... ... ... ... ... ... ... ... ...\n245 TCB 2023-08-25 2023-08-25 6.7 1.0 9.3 14.8 1.5 1.7\n246 TCB 2023-08-28 2023-08-28 6.7 1.0 9.3 15.0 1.6 1.7\n247 TCB 2023-08-29 2023-08-29 6.7 1.0 9.4 15.1 1.6 1.7\n248 TCB 2023-08-30 2023-08-30 6.7 1.0 9.5 15.2 1.6 1.7\n249 TCB 2023-08-31 2023-08-31 6.8 1.0 9.6 15.4 1.6 1.7\n\n[250 rows x 9 columns]\n
"},{"location":"functions/export/","title":"Xu\u1ea5t d\u1eef li\u1ec7u","text":"Xu\u1ea5t file csv
Xu\u1ea5t d\u1eef li\u1ec7u ra d\u1ea1ng b\u1ea3ng t\u00ednh \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 m\u1eb7c \u0111\u1ecbnh b\u1edfi vnstock v\u00ec b\u1ea3n th\u00e2n d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 khi b\u1ea1n g\u1ecdi h\u00e0m vnstock b\u1ea5t k\u1ef3 l\u00e0 c\u00e1c Pandas DataFrame trong Python c\u00f3 h\u1ed7 tr\u1ee3 kh\u1ea3 n\u0103ng n\u00e0y. vnstock ho\u1ea1t \u0111\u1ed9ng t\u1ed1t nh\u1ea5t khi t\u00edch h\u1ee3p v\u1edbi h\u1ec7 sinh th\u00e1i Python, tuy nhi\u00ean n\u1ebfu b\u1ea1n ch\u01b0a s\u1eb5n s\u00e0ng s\u1eed d\u1ee5ng Python th\u00ec v\u1eabn c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb vnstock cho c\u00e1c ph\u1ea7n m\u1ec1m quen thu\u1ed9c nh\u01b0 CSV, Excel hay Google Sheets ho\u1eb7c th\u1eadm ch\u00ed l\u00e0 l\u01b0u v\u00e0o c\u01a1 s\u1edf d\u1eef li\u1ec7u. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1ch th\u1ef1c hi\u1ec7n.
"},{"location":"functions/export/#xuat-file-csv","title":"Xu\u1ea5t file CSV","text":"Khi g\u1ecdi m\u1ed9t h\u00e0m vnstock, b\u1ea1n c\u00f3 th\u1ec3 g\u00e1n k\u1ebft qu\u1ea3 c\u1ee7a h\u00e0m v\u1edbi m\u1ed9t bi\u1ebfn b\u1ea5t k\u1ef3 v\u00e0 xu\u1ea5t ra file csv. V\u00ed d\u1ee5 v\u1edbi h\u00e0m l\u1ea5y gi\u00e1 l\u1ecbch s\u1eed:
from vnstock import * # b\u1ecf qua d\u00f2ng n\u00e0y n\u1ebfu \u0111\u00e3 th\u1ef1c hi\u1ec7n import\ndf = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True)\ndf.to_csv(r'\u0110\u01af\u1edcNG_D\u1eaaN_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/GMD.csv', index=False)\n
Trong \u0111\u00f3:
df
b\u1eb1ng t\u00ean \u0111\u1ed1i t\u01b0\u1ee3ng DataFrame b\u1ea5t k\u1ef3 tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m c\u1ee7a vnstock./
, v\u00ed d\u1ee5 /content/drive/MyDrive/Colab Notebooks/GMD.csv
.\\
, v\u00ed d\u1ee5 C:\\Users\\user\\Downloads\\GMD.csv
. L\u01b0u \u00fd \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c cho m\u00e1y t\u00ednh Windows, c\u1ea7n s\u1eed d\u1ee5ng ch\u1eef r
ph\u00eda tr\u01b0\u1edbc nh\u01b0 trong code m\u1eabu.from vnstock import * # b\u1ecf qua d\u00f2ng n\u00e0y n\u1ebfu \u0111\u00e3 th\u1ef1c hi\u1ec7n import\ndf = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True)\ndf.to_excel(r'\u0110\u01af\u1edcNG_D\u1eaaN_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N/GMD.xlsx', index=False)\n
Trong \u0111\u00f3:
df
b\u1eb1ng t\u00ean \u0111\u1ed1i t\u01b0\u1ee3ng DataFrame b\u1ea5t k\u1ef3 tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m c\u1ee7a vnstock.xls
cho b\u1ea3n Office 2007 tr\u1edf xu\u1ed1ng thay v\u00ec b\u1ea3n Office m\u1edbi th\u00ec \u0111\u1ed5i \u0111u\u00f4i file t\u1eeb xlsx
th\u00e0nh .xls
trong code m\u1eabu.Xu\u1ea5t file Google Sheets
\u0110\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u qua Google Sheets, c\u00e1ch \u0111\u01a1n gi\u1ea3n nh\u1ea5t l\u00e0 ch\u1ea1y notebook tr\u00ean m\u00f4i tr\u01b0\u1eddng Google Colab, nh\u01b0 v\u1eady qu\u00e1 tr\u00ecnh x\u00e1c th\u1ef1c d\u1ecbch v\u1ee5 di\u1ec5n ra \u0111\u01a1n gi\u1ea3n h\u01a1n r\u1ea5t nhi\u1ec1u so v\u1edbi b\u1ea1n ch\u1ea1y t\u1eeb m\u00e1y c\u1ee5c b\u1ed9. \u0110\u1ecdc b\u00e0i h\u01b0\u1edbng d\u1eabn \u0110\u1ecdc v\u00e0 xu\u1ea5t d\u1eef li\u1ec7u qua Google Sheets \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft n\u1ebfu b\u1ea1n c\u1ea7n xu\u1ea5t file t\u1eeb m\u00e1y \u1ea3o, m\u00e1y c\u1ee5c b\u1ed9.
from vnstock import *\ndf = listing_companies() # G\u00e1n b\u1ea5t h\u00e0m b\u1ea5t k\u1ef3 cho m\u1ed9t bi\u1ebfn, v\u00ed d\u1ee5 df\nsheet_file = 'listing_companies' # \u0110\u1eb7t t\u00ean cho file Google Sheets (n\u1ebfu t\u1ea1o m\u1edbi, d\u00f9ng file c\u00f3 s\u1eb5n th\u00ec kh\u00f4ng c\u1ea7n)\n
from google.colab import auth\nauth.authenticate_user()\n\nimport gspread\nfrom google.auth import default\nfrom gspread_dataframe import set_with_dataframe\n\ncreds, _ = default()\ngc = gspread.authorize(creds)from google.colab import auth\nauth.authenticate_user()\n\nimport gspread\nfrom google.auth import default\nfrom gspread_dataframe import set_with_dataframe\n\ncreds, _ = default()\ngc = gspread.authorize(creds)\n
sh = gc.create(sheet_file)\nworksheet = gc.open(sheet_file).sheet1 # M\u1edf sheet m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u, ch\u1ecdn 1 trong 3 t\u00f9y ch\u1ecdn v\u1edbi bi\u1ebfn worksheet, d\u00f9ng d\u00f2ng n\u00e0o b\u1ecf comment d\u00f2ng \u0111\u00f3, v\u00e0 comment d\u00f2ng kh\u00f4ng c\u1ea7n d\u00f9ng\n# worksheet = sh.add_worksheet(title=\"listing_companies\", rows=\"1000\", cols=\"20\") # T\u1ea1o sheet m\u1edbi \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u\n# worksheet = gc.open_by_url('https://docs.google.com/spreadsheets/d/1vT6o6U1dHYMdHASZNKPvmzDRhgKTvQXsZ_46CvBOpuI').sheet1 # M\u1edf file sheet c\u00f3 s\u1eb5n b\u1eb1ng URL\nset_with_dataframe(worksheet, df)\n
"},{"location":"functions/export/#xuat-vao-dai-o-co-san","title":"Xu\u1ea5t v\u00e0o d\u1ea3i \u00f4 c\u00f3 s\u1eb5n","text":"worksheet = gc.open(sheet_file).sheet1 # M\u1edf sheet m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u, ch\u1ecdn 1 trong 3 t\u00f9y ch\u1ecdn v\u1edbi bi\u1ebfn worksheet, d\u00f9ng d\u00f2ng n\u00e0o b\u1ecf comment d\u00f2ng \u0111\u00f3, v\u00e0 comment d\u00f2ng kh\u00f4ng c\u1ea7n d\u00f9ng\n\ncell_list = worksheet.range('A1:C2') # Ch\u1ecdn v\u00f9ng d\u1eef li\u1ec7u tr\u00ean Google Sheets b\u1ea1n mu\u1ed1n ch\u00e8n d\u1eef li\u1ec7u t\u1eeb DataFrame\n# Update the data in the worksheet\n\nfor cell, value in zip(cell_list, df.values.flatten()):\n cell.value = value\n\nworksheet.update_cells(cell_list)\n
"},{"location":"functions/export/#xuat-du-lieu-cho-amibroker","title":"Xu\u1ea5t d\u1eef li\u1ec7u cho Amibroker","text":"T\u1ea3i d\u1eef li\u1ec7u cho Amibroker
\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb vnstock cho \u1ee9ng d\u1ee5ng Amibroker, b\u1ea1n c\u00f3 th\u1ec3 xem chi ti\u1ebft h\u01b0\u1edbng d\u1eabn t\u1ea1i m\u1ee5c T\u00edch h\u1ee3p Amibroker
"},{"location":"functions/financial/","title":"B\u00e1o c\u00e1o t\u00e0i ch\u00ednh","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
C\u1eadp nh\u1eadt
26/10/2023, Hi\u1ec7n t\u1ea1i SSI \u0111\u00e3 g\u1ee1 b\u1ecf m\u1ecdi bi\u1ec7n ph\u00e1p ng\u0103n ch\u1eb7n truy c\u1eadp d\u1eef li\u1ec7u qua Web Scraping \u0111\u00e3 tri\u1ec3n khai trong kho\u1ea3ng 6 th\u00e1ng tr\u01b0\u1edbc. \u0110\u00e2y l\u00e0 tin vui cho c\u1ed9ng \u0111\u1ed3ng vnstock v\u00ec c\u00e1c b\u1ea1n c\u00f3 th\u00eam l\u1ef1a ch\u1ecdn ch\u1ea5t l\u01b0\u1ee3ng ti\u1ebfp c\u1eadn ngu\u1ed3n d\u1eef li\u1ec7u t\u1eeb SSI \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi FiinTrade.
\u0110\u1ec3 truy c\u1eadp b\u00e1o c\u00e1o t\u00e0i ch\u00ednh s\u1eed d\u1ee5ng ngu\u1ed3n SSI, c\u00f3 \u0111\u1ed9 chi ti\u1ebft h\u01a1n so v\u1edbi b\u1ea3n r\u00fat g\u1ecdn c\u1ee7a TCBS, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m financial_report
v\u1edbi c\u00e1c tham s\u1ed1 nh\u01b0 sau:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_type
nh\u1eadn 1 trong 3 gi\u00e1 tr\u1ecb: IncomeStatement
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh, BalanceSheet
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, CashFlow
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7frequency
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: Quarterly
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o theo qu\u00fd, Yearly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo n\u0103mperiods=15
: \ud83c\udd95 t\u1eeb v0.2.8.9. Cho ph\u00e9p ch\u1ecdn s\u1ed1 k\u1ef3 t\u1ea3i b\u00e1o c\u00e1olatest_year
: \ud83c\udd95 t\u1eeb v0.2.8.9. Cho ph\u00e9p ch\u1ecdn m\u1ed1c th\u1eddi gian tra c\u1ee9u nh\u1ea5t \u0111\u1ecbnh \u0111\u1ec3 truy xu\u1ea5t ng\u01b0\u1ee3c d\u1eef li\u1ec7u v\u1ec1 qu\u00e1 kh\u1ee9. V\u00ed d\u1ee5 15 k\u1ef3 k\u1ec3 t\u1eeb n\u0103m 202 (ho\u1eb7c n\u0103m b\u1ea5t k\u1ef3). Gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 None
cho ph\u00e9p ch\u1ecdn n\u0103m hi\u1ec7n t\u1ea1i l\u00e0 m\u1ed1c t\u00ednh to\u00e1n.L\u01b0u \u00fd: D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 \u0111\u01a1n v\u1ecb T\u1ef7 VND
"},{"location":"functions/financial/#bao-cao-kinh-doanh","title":"B\u00e1o c\u00e1o kinh doanh","text":"financial_report (symbol='SSI', report_type='IncomeStatement', frequency='Quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nha sau:
>>> income_df = financial_report (symbol='SSI', report_type='IncomeStatement', frequency='Quarterly', periods=15, latest_year=None)\nincome_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 Doanh thu ho\u1ea1t \u0111\u1ed9ng 1.327443e+12 9.195507e+11 1.174729e+12 1.505580e+12\n1 L\u00e3i t\u1eeb c\u00e1c t\u00e0i s\u1ea3n t\u00e0i ch\u00ednh ghi nh\u1eadn th\u00f4ng qu... 7.340652e+11 3.273310e+11 5.215590e+11 6.001373e+11\n2 L\u00e3i b\u00e1n c\u00e1c t\u00e0i s\u1ea3n t\u00e0i ch\u00ednh 2.194943e+11 1.175892e+11 2.630871e+11 3.947613e+11\n3 Ch\u00each l\u1ec7ch t\u0103ng \u0111\u00e1nh gi\u00e1 l\u1ea1i c\u00e1c t\u00e0i s\u1ea3n t\u00e0i c... 4.326673e+11 9.963909e+10 1.132451e+11 8.292811e+10\n4 C\u1ed5 t\u1ee9c, ti\u1ec1n l\u00e3i ph\u00e1t sinh t\u1eeb t\u00e0i s\u1ea3n t\u00e0i ch\u00edn... 8.190361e+10 1.101027e+11 1.452268e+11 1.224479e+11\n.. ... ... ... ... ...\n78 Thu nh\u1eadp to\u00e0n di\u1ec7n ph\u00e2n b\u1ed5 cho ch\u1ee7 s\u1edf h\u1eefu 5.372627e+11 2.924053e+11 3.925444e+11 4.246680e+11\n79 Thu nh\u1eadp to\u00e0n di\u1ec7n ph\u00e2n b\u1ed5 cho c\u1ed5 \u0111\u00f4ng kh\u00f4ng k... 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n80 Thu nh\u1eadp thu\u1ea7n tr\u00ean c\u1ed5 phi\u1ebfu ph\u1ed5 th\u00f4ng 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n81 L\u00e3i c\u01a1 b\u1ea3n tr\u00ean c\u1ed5 phi\u1ebfu 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n82 Thu nh\u1eadp pha lo\u00e3ng tr\u00ean c\u1ed5 phi\u1ebfu 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n\n[83 rows x 5 columns]\n
"},{"location":"functions/financial/#bang-can-oi-ke-toan","title":"B\u1ea3ng c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n","text":"financial_report (symbol='SSI', report_type='BalanceSheet', frequency='quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> balance_df = financial_report (symbol='SSI', report_type='BalanceSheet', frequency='quarterly', periods=15, latest_year=None)\n>>> balance_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 T\u1ed4NG C\u1ed8NG T\u00c0I S\u1ea2N 2.592647e+13 2.693295e+13 3.576953e+13 3.762330e+13\n1 T\u00c0I S\u1ea2N NG\u1eaeN H\u1ea0N 2.004129e+13 2.105024e+13 2.904003e+13 3.286192e+13\n2 T\u00e0i s\u1ea3n t\u00e0i ch\u00ednh ng\u1eafn h\u1ea1n 2.000235e+13 2.100282e+13 2.888881e+13 3.280760e+13\n3 Ti\u1ec1n v\u00e0 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n 2.024338e+11 2.123246e+11 3.632519e+11 2.792879e+11\n4 Ti\u1ec1n 1.913260e+11 2.123246e+11 2.319712e+11 2.251205e+11\n.. ... ... ... ... ...\n155 V\u1ed1n ng\u00e2n s\u00e1ch nh\u00e0 n\u01b0\u1edbc 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n156 Ngu\u1ed3n kinh ph\u00ed \u0111\u00e3 h\u00ecnh th\u00e0nh TSC\u0110 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n157 L\u1ee2I \u00cdCH C\u1ee6A C\u1ed4 \u0110\u00d4NG THI\u1ec2U S\u1ed0 (tr\u01b0\u1edbc 2015) 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n158 T\u1ed4NG C\u1ed8NG NGU\u1ed2N V\u1ed0N 2.592647e+13 2.693295e+13 3.576953e+13 3.762330e+13\n159 L\u1ee2I NHU\u1eacN \u0110\u00c3 PH\u00c2N PH\u1ed0I CHO NH\u00c0 \u0110\u1ea6U T\u01af 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00\n\n[160 rows x 5 columns]\n
"},{"location":"functions/financial/#bao-cao-luu-chuyen-tien-te","title":"B\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7","text":"financial_report (symbol='SSI', report_type='CashFlow', frequency='Quarterly', periods=15, latest_year=None)\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> cashflow_df = financial_report (symbol='SSI', report_type='CashFlow', frequency='Quarterly', periods=15, latest_year=None)\n>>> cashflow_df.iloc[:, :5]\n CH\u1ec8 TI\u00caU Q2 2020 Q3 2020 Q4 2020 Q1 2021\n0 L\u01b0u chuy\u1ec3n thu\u1ea7n t\u1eeb ho\u1ea1t \u0111\u1ed9ng kinh doanh ch\u1ee9ng... -1.405338e+12 -3.067307e+12 -7.146167e+12 -7.818107e+11\n1 L\u1ee3i nhu\u1eadn t\u1eeb ho\u1ea1t \u0111\u1ed9ng kinh doanh tr\u01b0\u1edbc thay \u0111... 2.548685e+10 8.183428e+10 1.992083e+11 2.596829e+11\n2 L\u1ee3i nhu\u1eadn tr\u01b0\u1edbc thu\u1ebf 6.515280e+11 4.208731e+11 4.771873e+11 5.300678e+11\n3 \u0110i\u1ec1u ch\u1ec9nh cho c\u00e1c kho\u1ea3n -2.123427e+11 -1.965194e+11 -2.268494e+11 -2.521012e+11\n4 Kh\u1ea5u hao t\u00e0i s\u1ea3n c\u1ed1 \u0111\u1ecbnh 1.315363e+10 1.378121e+10 1.333019e+10 1.445720e+10\n.. ... ... ... ... ...\n93 Ti\u1ec1n v\u00e0 c\u00e1c kho\u1ea3n t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n \u0111\u1ea7u k\u1ef3 2.824377e+11 2.024338e+11 2.123246e+11 3.632519e+11\n94 Ti\u1ec1n m\u1eb7t, ti\u1ec1n g\u1eedi ng\u00e2n h\u00e0ng \u0111\u1ea7u k\u1ef3 2.485882e+11 1.911860e+11 2.123605e+11 2.323398e+11\n95 C\u00e1c kho\u1ea3n t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n 3.120858e+10 1.110788e+10 0.000000e+00 1.312807e+11\n96 \u1ea2nh h\u01b0\u1edfng c\u1ee7a thay \u0111\u1ed5i t\u1ef7 gi\u00e1 h\u1ed1i \u0111o\u00e1n quy \u0111\u1ed5i... 2.640888e+09 1.399426e+08 -3.589952e+07 -3.685565e+08\n97 Ti\u1ec1n v\u00e0 c\u00e1c kho\u1ea3ng t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n cu\u1ed1i k\u1ef3 2.024338e+11 2.123246e+11 3.632519e+11 2.792879e+11\n\n[98 rows x 5 columns]\n
"},{"location":"functions/financial/#du-lieu-tu-tcbs","title":"D\u1eef li\u1ec7u t\u1eeb TCBS","text":"Ba lo\u1ea1i b\u00e1o c\u00e1o n\u00e0y \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb ngu\u1ed3n TCBS th\u00f4ng qua h\u00e0m financial_flow
. H\u00e0m n\u00e0y nh\u1eadn 3 tham s\u1ed1:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_type
nh\u1eadn 1 trong 3 gi\u00e1 tr\u1ecb: incomestatement
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh, balancesheet
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, cashflow
tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7report_range
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: yearly
cho ph\u00e9p tr\u1ea3 v\u1ec1 b\u00e1o c\u00e1o theo n\u0103m, quarterly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo qu\u00fdC\u1ee5 th\u1ec3 t\u1eebng b\u00e1o c\u00e1o \u0111\u01b0\u1ee3c minh h\u1ecda chi ti\u1ebft th\u00e0nh t\u1eebng ph\u1ea7n nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y.
"},{"location":"functions/financial/#bao-cao-kinh-doanh_1","title":"B\u00e1o c\u00e1o kinh doanh","text":"B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 kinh doanh c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c truy xu\u1ea5t b\u1eb1ng c\u00e2u l\u1ec7nh:
income_df = financial_flow(symbol=\"TCB\", report_type='incomestatement', report_range='quarterly')\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y.
>>> financial_flow(symbol=\"TCB\", report_type='incomestatement', report_range='quarterly').T\n\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2 ... 2012-Q4 2012-Q3 2012-Q2 2012-Q1 2010-Q2\nticker TCB TCB TCB TCB TCB ... TCB TCB TCB TCB TCB\nrevenue 6295 6527 6819 7565 7794 ... 951 1414 1432 1318 814\nyearRevenueGrowth -0.192 -0.195 -0.059 0.122 0.183 ... NaN NaN NaN NaN NaN\nquarterRevenueGrowth -0.036 -0.043 -0.099 -0.029 -0.039 ... -0.327 -0.013 0.086 NaN NaN\ncostOfGoodSold None None None None None ... None None None None None\ngrossProfit None None None None None ... None None None None None\noperationExpense -2869 -3142 -3990 -3014 -3196 ... -1263 -615 -574 -826 -446\noperationProfit 9325 9300 9427 10338 10934 ... 1175 1373 1347 1851 972\nyearOperationProfitGrowth -0.147 -0.071 -0.072 0.178 0.188 ... NaN NaN NaN NaN NaN\nquarterOperationProfitGrowth 0.003 -0.014 -0.088 -0.055 0.093 ... -0.144 0.019 -0.272 NaN NaN\ninterestExpense None None None None None ... None None None None None\npreTaxProfit 5649 5623 4746 6715 7321 ... -1216 603 602 1028 384\npostTaxProfit 4503 4537 3572 5368 5882 ... -1216 603 602 1028 384\nshareHolderIncome 4455 4497 3544 5298 5804 ... -1216 603 602 1028 384\nyearShareHolderIncomeGrowth -0.232 -0.183 -0.228 0.221 0.232 ... NaN NaN NaN NaN NaN\nquarterShareHolderIncomeGrowth -0.009 0.269 -0.331 -0.087 0.054 ... NaN 0.002 -0.414 NaN NaN\ninvestProfit 72 -228 -422 209 411 ... -81 -201 -119 120 26\nserviceProfit 2019 1944 2535 2123 1987 ... 39 151 228 147 104\notherProfit 939 1057 495 441 743 ... 266 9 -194 266 28\nprovisionExpense -807 -535 -691 -609 -417 ... -1128 -155 -170 3 -142\noperationIncome 6456 6158 5437 7324 7739 ... -88 758 773 1025 526\nebitda None None None None None ... None None None None None\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn income_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: income_df.T
Trong \u0111\u00f3 t\u00ean c\u00e1c c\u1ed9t \u0111\u01b0\u1ee3c chu\u1ea9n h\u00f3a b\u1eb1ng ti\u1ebfng Anh. \u0110\u1ec3 \u0111\u1ed5i t\u00ean sang ti\u1ebfng Vi\u1ec7t, c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c rename
ti\u00eau chu\u1ea9n c\u1ee7a Pandas trong Python. T\u00f4i \u0111\u00e3 chia s\u1ebb m\u1ed9t video c\u1ee5 th\u1ec3 c\u00e1ch s\u1eed d\u1ee5ng Bard \u0111\u1ec3 tr\u00edch xu\u1ea5t th\u00f4ng tin v\u00e0 gh\u00e9p n\u1ed1i b\u1ea3n d\u1ecbch ti\u1ebfng Vi\u1ec7t c\u1ee7a c\u00e1c ch\u1ec9 s\u1ed1. C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 theo d\u00f5i \u0111\u1ec3 t\u1ef1 th\u1ef1c hi\u1ec7n n\u1ebfu c\u1ea7n. C\u00e1ch l\u00e0m n\u00e0y \u00e1p d\u1ee5ng v\u1edbi t\u1ea5t c\u1ea3 c\u00e1c b\u00e1o c\u00e1o t\u00e0i ch\u00ednh \u0111\u01b0\u1ee3c cung c\u1ea5p \u1edf \u0111\u00e2y.
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u1ea3ng c\u00e2n \u0111\u1ed1i k\u1ebf to\u00e1n, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
balance_df = financial_flow(symbol=\"TCB\", report_type='balancesheet', report_range='quarterly')\n
K\u1ebft qu\u1ea3:
>>> financial_flow(symbol=\"TCB\", report_type='balancesheet', report_range='quarterly').T\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2\nticker TCB TCB TCB TCB TCB\nshortAsset None None None None None\ncash 3113 2852 4216 3026 3204\nshortInvest None None None None None\nshortReceivable None None None None None\ninventory None None None None None\nlongAsset None None None None None\nfixedAsset 8742 8275 8411 7282 7220\nasset 732470 723518 699033 671354 623739\ndebt 610005 605552 585608 561454 519263\nshortDebt None None None None None\nlongDebt None None None None None\nequity 122465 117965 113425 109899 104475\ncapital 35172 35172 35172 35172 35109\ncentralBankDeposit 7860 15834 11476 4709 4814\notherBankDeposit 63215 56675 69925 65183 57270\notherBankLoan 8079 10265 13050 7215 14962\nstockInvest 112613 99162 104626 104673 98072\ncustomerLoan 466546 465425 420524 410546 391824\nbadLoan 5012.0 3946.0 3818.0 2665.0 2359.0\nprovision -5793 -5280 -4771 -4397 -4049\nnetCustomerLoan 460753 460145 415752 406148 387775\notherAsset 67879 70304 70517 71795 49269\notherBankCredit 49594 47940 61294 68284 57307\noweOtherBank 104031 103254 106269 110868 83894\noweCentralBank 136 122 8 6 2\nvaluablePaper 54958 46729 34007 42858 37122\npayableInterest 8118 8303 6144 4750 3375\nreceivableInterest 8875 8365 8029 8681 8072\ndeposit 381947 387298 358404 318919 321634\notherDebt 54958 46729 34007 42858 37122\nfund 43387 11607 11609 9151 9152\nunDistributedIncome 41654 68979 64483 64059 58761\nminorShareHolderProfit 1218 1170 1129 1032 963\npayable 610005 605552 585608 561454 519263\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn balance_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: balance_df.T
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
\u0110\u1ec3 t\u1ea3i d\u1eef li\u1ec7u b\u00e1o c\u00e1o l\u01b0u chuy\u1ec3n ti\u1ec1n t\u1ec7, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh:
cashflow_df = financial_flow(symbol=\"TCB\", report_type='cashflow', report_range='quarterly')\n
K\u1ebft qu\u1ea3:
>>> financial_flow(symbol=\"TCB\", report_type='cashflow', report_range='quarterly').T\nindex 2023-Q2 2023-Q1 2022-Q4 2022-Q3 2022-Q2\nticker TCB TCB TCB TCB TCB\ninvestCost -395 -73 -720 -212 -65\nfromInvest -3042 260 -679 -205 -62\nfromFinancial 0 1 -700 63 0\nfromSale -2480 -21875 19130 15950 -4020\nfreeCashFlow 0 0 0 0 0\n
\u0110\u1ec3 hi\u1ec3n th\u1ecb b\u00e1o c\u00e1o nh\u01b0 c\u00e1ch tr\u00ecnh b\u00e0y tr\u00ean website TCBS, b\u1ea1n c\u1ea7n xoay (transpose) DataFrame tr\u1ea3 v\u1ec1. Gi\u1ea3 s\u1eed b\u1ea1n l\u01b0u k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u00e0o bi\u1ebfn cashflow_df
nh\u01b0 tr\u00ean, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng th\u1ee9c transpose
\u0111\u1ec3 xoay DataFrame nh\u01b0 sau: cashflow_df.T
L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
company_overview('TCB')\n
Nh\u1ea5p \u0111\u1ec3 xem v\u1ecb tr\u00ed hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n TCBS >>> company_overview('TCB').T\n 0\nticker TCB\nexchange HOSE\nindustry Ng\u00e2n h\u00e0ng\ncompanyType NH\nnoShareholders 1901\nforeignPercent 0.225\noutstandingShare 3517.2\nissueShare 3517.2\nestablishedYear 1993\nnoEmployees 9757\nstockRating 4.2\ndeltaInWeek -0.002\ndeltaInMonth 0.001\ndeltaInYear 0.189\nshortName Techcombank\nindustryEn Banks\nindustryID 289\nindustryIDv2 8355\nwebsite http://www.techcombank.com.vn\n
"},{"location":"functions/fundamental/#ho-so-cong-ty","title":"H\u1ed3 s\u01a1 c\u00f4ng ty","text":"company_profile ('TCB')\n
\u0110\u00e2y l\u00e0 ph\u1ea7n m\u00f4 t\u1ea3 v\u1ec1 c\u00f4ng ty b\u1eb1ng v\u0103n b\u1ea3n, bao g\u1ed3m m\u1ee5c T\u1ed5ng quan v\u00e0 Th\u00f4ng tin kh\u00e1c trong m\u1ee5c H\u1ed3 s\u01a1 doanh nghi\u1ec7p tr\u00ean TCBS.
Nh\u1ea5p \u0111\u1ec3 xem v\u1ecb tr\u00ed hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n TCBS>>> company_profile ('TCB').T\n 0\nid None\ncompanyName Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n K\u1ef9 th\u01b0\u01a1ng Vi\u1ec7t Nam\nticker TCB\ncompanyProfile Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n K\u1ef9 th\u01b0\u01a1ng Vi\u1ec7t Na...\nhistoryDev Ng\u00e0y 27/09/1993: Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7...\ncompanyPromise None\nbusinessRisk Th\u00f4ng t\u01b0 36/2014/TT-NHNN c\u0169ng g\u00e2y ra m\u1ed9t s\u1ed1 ...\nkeyDevelopments Huy \u0111\u1ed9ng v\u1ed1n; T\u00edn d\u1ee5ng; Li\u00ean k\u1ebft v\u00e0 \u0111\u1ea7u t\u01b0 t...\nbusinessStrategies M\u1edf r\u1ed9ng t\u1eadp kh\u00e1ch h\u00e0ng c\u1ea3 v\u1ec1 quy m\u00f4 v\u00e0 t\u1ed1c \u0111\u1ed9...\n
"},{"location":"functions/fundamental/#danh-sach-co-ong","title":"Danh s\u00e1ch c\u1ed5 \u0111\u00f4ng","text":"company_large_shareholders ('TCB')\n
>>> company_large_shareholders ('TCB')\n ticker shareHolder shareOwnPercent\n 0 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Masan 0.1491\n 1 TCB Nguy\u1ec5n Th\u1ecb Thanh Th\u1ee7y 0.0495\n 2 TCB Nguy\u1ec5n Th\u1ecb Thanh T\u00e2m 0.0495\n 3 TCB H\u1ed3 Anh Minh 0.0392\n 4 TCB Nguy\u1ec5n Ph\u01b0\u01a1ng Hoa 0.0216\n 5 TCB Nguy\u1ec5n H\u01b0\u01a1ng Li\u00ean 0.0198\n 6 TCB H\u1ed2 H\u00d9NG ANH 0.0112\n 7 TCB Nguy\u1ec5n Thi\u1ec1u Quang 0.0086\n 8 TCB H\u1ed3 Th\u1ee7y Anh 0.0064\n 9 TCB Kh\u00e1c 0.0292\n
"},{"location":"functions/fundamental/#cac-chi-so-tai-chinh-co-ban","title":"C\u00e1c ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh c\u01a1 b\u1ea3n","text":"company_fundamental_ratio (symbol='TCB', mode='simplify', missing_pct=0.8)\n
Trong \u0111\u00f3:
Tham s\u1ed1 mode
nh\u1eadn 2 gi\u00e1 tr\u1ecb:
simplify
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 c\u00e1c gi\u00e1 tr\u1ecb s\u1ed1 c\u00f3 \u00fd ngh\u0129a. M\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb simplify
.
''
tr\u1ea3 v\u1ec1 to\u00e0n b\u1ed9 c\u00e1c c\u1ed9t c\u00f3 trong DataFrame
Tham s\u1ed1 missing_pct
: nh\u1eadn gi\u00e1 tr\u1ecb t\u1eeb 0 \u0111\u1ebfn 1, quy \u0111\u1ecbnh t\u1ec9 l\u1ec7 % s\u1ebd cho ph\u00e9p h\u00e0m lo\u1ea1i b\u1ecf d\u1eef li\u1ec7u b\u1ecb thi\u1ebfu. V\u00ed d\u1ee5 0.8 th\u1ec3 hi\u1ec7n r\u1eb1ng h\u00e0m n\u00e0y s\u1ebd lo\u1ea1i b\u1ecf c\u1ed9t t\u01b0\u01a1ng \u1ee9ng khi 80% s\u1ed1 d\u00f2ng trong c\u1ed9t l\u00e0 d\u1eef li\u1ec7u r\u1ed7ng.
>>> company_fundamental_ratio (symbol='TCB', mode='simplify', missing_pct=0.8).T\n 0\nticker TCB\ncostOfFinancing.industryAvgValue 0.056\ninterestMargin.industryAvgValue 0.034\nnonInterestOnToi.industryAvgValue 0.215\ncostToIncome.industryAvgValue 0.437\npreProvisionOnToi.industryAvgValue 0.449\npostTaxOnToi.industryAvgValue 0.322\ndepositOnEarnAsset.industryAvgValue 0.725\ncancelDebt.industryAvgValue 0.007\nbadDebtPercentage.industryAvgValue 0.024\nprovisionOnBadDebt.industryAvgValue 0.609\nloanOnDeposit.industryAvgValue 0.96\nequityOnTotalAsset.industryAvgValue 0.086\nbadDebtOnAsset.industryAvgValue 0.015\n
"},{"location":"functions/fundamental/#muc-bien-ong-gia-co-phieu","title":"M\u1ee9c bi\u1ebfn \u0111\u1ed9ng gi\u00e1 c\u1ed5 phi\u1ebfu","text":"ticker_price_volatility (symbol='TCB')\n
>>> ticker_price_volatility (symbol='TCB').T\n 0\nticker TCB\nticker_highestPrice 35750.0\nticker_lowestPrice 20700.0\nticker_highestPricePercent -0.143\nticker_lowestPricePercent 0.481\n
"},{"location":"functions/fundamental/#thong-tin-giao-dich-noi-bo","title":"Th\u00f4ng tin giao d\u1ecbch n\u1ed9i b\u1ed9","text":"company_insider_deals (symbol='TCB', page_size=20, page=0)\n
>>> company_insider_deals (symbol='TCB', page_size=20, page=0)\nticker dealAnnounceDate dealMethod dealAction dealQuantity dealPrice dealRatio\n0 TCB 2023-08-31 C\u1ed5 \u0111\u00f4ng l\u1edbn B\u00e1n -300000.0 34500.0 0.000\n1 TCB 2023-08-22 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp Mua 0.0 33100.0 0.042\n2 TCB 2023-07-20 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -933169.0 31900.0 0.082\n3 TCB 2023-04-18 C\u1ed5 \u0111\u00f4ng l\u1edbn B\u00e1n -30000.0 29150.0 0.184\n4 TCB 2022-12-28 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -21496.0 26150.0 0.319\n5 TCB 2022-11-28 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 200000.0 24600.0 0.402\n13 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 350000.0 38650.0 -0.107\n12 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 111404.0 38650.0 -0.107\n11 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 100021.0 38650.0 -0.107\n10 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 97770.0 38650.0 -0.107\n9 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 80945.0 38650.0 -0.107\n8 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 55764.0 38650.0 -0.107\n7 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 42118.0 38650.0 -0.107\n6 TCB 2022-09-06 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 Mua 5318.0 38650.0 -0.107\n14 TCB 2022-08-08 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -100000.0 39200.0 -0.120\n15 TCB 2022-05-10 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -868500.0 38700.0 -0.109\n16 TCB 2022-04-05 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp B\u00e1n -150000.0 49050.0 -0.297\n17 TCB 2022-03-23 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -200000.0 49600.0 -0.304\n18 TCB 2021-10-26 C\u1ed5 \u0111\u00f4ng n\u1ed9i b\u1ed9 B\u00e1n -35704.0 51000.0 -0.324\n19 TCB 2021-10-14 C\u1ed5 \u0111\u00f4ng s\u00e1ng l\u1eadp Mua 300000.0 52500.0 -0.343\n
"},{"location":"functions/fundamental/#danh-sach-cong-ty-con-cong-ty-lien-ket","title":"Danh s\u00e1ch c\u00f4ng ty con, c\u00f4ng ty li\u00ean k\u1ebft","text":"company_subsidiaries_listing (symbol='TCB', page_size=100, page=0)\n
>>> company_subsidiaries_listing (symbol='TCB', page_size=100, page=0)\nticker subCompanyName subOwnPercent\n0 TCB C\u00f4ng ty TNHH MTV Qu\u1ea3n L\u00fd N\u1ee3 V\u00e0 Khai Th\u00e1c T\u00e0i S... 1.000\n1 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n Ch\u1ee9ng kho\u00e1n K\u1ef9 Th\u01b0\u01a1ng 0.942\n2 TCB C\u00f4ng ty C\u1ed5 ph\u1ea7n Qu\u1ea3n L\u00fd Qu\u1ef9 K\u1ef9 Th\u01b0\u01a1ng 0.900\n3 TCB T\u1ed5ng C\u00f4ng ty C\u1ed5 ph\u1ea7n Xu\u1ea5t nh\u1eadp kh\u1ea9u v\u00e0 X\u00e2y d\u1ef1n... 0.004\n4 TCB T\u1ed5ng C\u00f4ng ty H\u00e0ng kh\u00f4ng Vi\u1ec7t Nam - CTCP 0.000\n5 TCB C\u00f4ng ty T\u00e0i Ch\u00ednh TNHH MTV Lotte Vi\u1ec7t Nam 0.000\n
"},{"location":"functions/fundamental/#ban-lanh-ao-cong-ty","title":"Ban l\u00e3nh \u0111\u1ea1o c\u00f4ng ty","text":"company_officers (symbol='TCB', page_size=20, page=0)\n
>>> company_officers (symbol='TCB', page_size=10, page=0)\nticker officerName officerPosition officerOwnPercent\n0 TCB Nguy\u1ec5n Th\u1ecb Thanh Th\u1ee7y None 0.0495\n1 TCB Nguy\u1ec5n Th\u1ecb Thanh T\u00e2m None 0.0495\n2 TCB H\u1ed3 Anh Minh None 0.0392\n3 TCB Nguy\u1ec5n Ph\u01b0\u01a1ng Hoa None 0.0216\n4 TCB Nguy\u1ec5n H\u01b0\u01a1ng Li\u00ean None 0.0198\n5 TCB H\u1ed2 H\u00d9NG ANH None 0.0112\n6 TCB Nguy\u1ec5n Thi\u1ec1u Quang Ph\u00f3 Ch\u1ee7 t\u1ecbch H\u1ed9i \u0111\u1ed3ng Qu\u1ea3n tr\u1ecb 0.0086\n7 TCB H\u1ed3 Th\u1ee7y Anh None 0.0064\n8 TCB Nguy\u1ec5n C\u1ea3nh S\u01a1n T\u00f9ng None 0.0060\n9 TCB Nguy\u1ec5n C\u1ea3nh S\u01a1n Ph\u00f3 Ch\u1ee7 t\u1ecbch H\u1ed9i \u0111\u1ed3ng Qu\u1ea3n tr\u1ecb 0.0051\n
"},{"location":"functions/fundamental/#thong-tin-su-kien-quyen","title":"Th\u00f4ng tin s\u1ef1 ki\u1ec7n quy\u1ec1n","text":"company_events (symbol='TPB', page_size=10, page=0)\n
>>> company_events (symbol='TPB', page_size=10, page=0)\n id ticker price priceChange priceChangeRatio ... exerDate regFinalDate exRigthDate eventDesc eventNote\n0 2563370 TPB 18100 -350 -0.019 ... 2023-07-07 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n1 2563135 TPB 18535 -215 -0.011 ... 2023-06-09 00:00:00 2023-06-12 00:00:00 2023-06-09 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n2 2561933 TPB 15668 -64 -0.004 ... 2023-04-26 00:00:00 2023-03-29 00:00:00 2023-03-28 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n3 2561033 TPB 15441 -97 -0.006 ... 2023-04-03 00:00:00 2023-03-21 00:00:00 2023-03-20 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n4 2560718 TPB 14567 0 0.000 ... 1753-01-01 00:00:00 2023-01-17 00:00:00 2023-01-16 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n5 2517318 TPB 25832 453 0.018 ... 2022-04-26 00:00:00 2022-03-28 00:00:00 2022-03-25 00:00:00 <p>Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n Ti\u00ean Phong (TP... None\n6 2406108 TPB 27192 0 0.000 ... 2022-01-13 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n7 2395935 TPB 24936 719 0.030 ... 2021-12-20 00:00:00 2021-12-21 00:00:00 2021-12-20 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n8 2235221 TPB 31480 371 0.012 ... 2022-09-15 00:00:00 1753-01-01 00:00:00 1753-01-01 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n9 2215176 TPB 30665 519 0.017 ... 1753-01-01 00:00:00 2021-10-11 00:00:00 2021-10-08 00:00:00 <DIV style=\"FONT-FAMILY: Arial; FONT-SIZE: 10p...\n\n[10 rows x 15 columns]\n
"},{"location":"functions/fundamental/#tin-tuc-cong-ty","title":"Tin t\u1ee9c c\u00f4ng ty","text":"company_news (symbol='TCB', page_size=10, page=0)\n
>>> company_news (symbol='TCB', page_size=10, page=0)\nticker price priceChange priceChangeRatio priceChangeRatio1W priceChangeRatio1M id title source publishDate\n0 TCB 34500 500 0.015 0.021 0.006 10915190 TCB: B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 giao d\u1ecbch c\u1ed5 phi\u1ebfu c\u1ee7a n... HOSE 2023-08-31 11:12:00\n1 TCB 33650 -150 -0.004 0.035 0.004 10909083 TCB: CBTT v\u1ec1 vi\u1ec7c gi\u1ea3i t\u1ecfa c\u1ed5 phi\u1ebfu h\u1ea1n ch\u1ebf c... HOSE 2023-08-25 16:35:00\n2 TCB 33100 350 0.011 -0.028 0.020 10905062 TCB: Con g\u00e1i Ch\u1ee7 t\u1ecbch \u0111\u0103ng k\u00fd mua tr\u00ean 82 tri\u1ec7... HOSE 2023-08-22 11:19:00\n3 TCB 32750 250 0.008 -0.031 0.014 10904072 B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 ph\u00e2n ph\u1ed1i ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111... HOSE 2023-08-21 16:21:00\n4 TCB 34700 -600 -0.017 0.036 0.088 10900206 Th\u00f4ng b\u00e1o ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n v\u00e0 B\u1ea3n c\u00e1o b\u1ea1c... HOSE 2023-08-17 14:48:00\n5 TCB 34700 -600 -0.017 0.036 0.088 10899331 Gi\u1ea5y ch\u1ee9ng nh\u1eadn ch\u00e0o b\u00e1n ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111\u1ea3... HOSE 2023-08-17 08:55:00\n6 TCB 33800 150 0.004 -0.016 0.058 10895913 Th\u00f4ng b\u00e1o h\u1ee7y \u0111\u1ee3t ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o... HOSE 2023-08-14 17:36:00\n7 TCB 33500 -500 -0.015 0.000 0.047 10892819 TCB: CBTT Chuy\u1ec3n quy\u1ec1n s\u1edf h\u1eefu c\u1ed5 phi\u1ebfu t\u1eeb C\u00f4n... HOSE 2023-08-10 17:55:00\n8 TCB 34000 0 0.000 0.003 0.063 10891020 Th\u00f4ng b\u00e1o ph\u00e1t h\u00e0nh ch\u1ee9ng quy\u1ec1n v\u00e0 B\u1ea3n c\u00e1o b\u1ea1c... HOSE 2023-08-09 16:55:00\n9 TCB 34000 0 0.000 0.003 0.063 10890346 B\u00e1o c\u00e1o k\u1ebft qu\u1ea3 ph\u00e2n ph\u1ed1i ch\u1ee9ng quy\u1ec1n c\u00f3 b\u1ea3o \u0111... HOSE 2023-08-09 10:26:00\n
"},{"location":"functions/funds/","title":"Th\u00f4ng tin qu\u1ef9 m\u1edf","text":"Gi\u1edbi thi\u1ec7u
Th\u00f4ng tin c\u00e1c qu\u1ef9 m\u1edf \u0111\u01b0\u1ee3c cung c\u1ea5p th\u00f4ng qua vnstock \u0111\u01b0\u1ee3c truy xu\u1ea5t t\u1eeb Public API c\u1ee7a fmarket.vn. Hi\u1ec7n t\u1ea1i, vnstock cung c\u1ea5p c\u00e1ch th\u1ee9c truy xu\u1ea5t c\u00e1c nh\u00f3m th\u00f4ng tin qu\u1ef9 m\u1edf quan tr\u1ecdng \u0111\u01b0\u1ee3c m\u00f4 t\u1ea3 chi ti\u1ebft d\u01b0\u1edbi d\u00e2y.
vnstock xin g\u1eedi l\u1eddi c\u00e1m \u01a1n ch\u00e2n th\u00e0nh t\u1edbi b\u1ea1n andrey_jef \u0111\u00e3 \u0111\u1ec1 xu\u1ea5t v\u00e0 \u0111\u00f3ng g\u00f3p m\u00e3 ngu\u1ed3n kh\u1edfi x\u01b0\u1edbng cho nh\u00f3m t\u00ednh n\u0103ng n\u00e0y qua Github.
T\u00ednh n\u0103ng tra c\u1ee9u th\u00f4ng tin qu\u1ef9 m\u1edf hi\u1ec7n \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt qua nh\u00e1nh beta c\u1ee7a vnstock tr\u00ean Github. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t b\u1ea3n beta theo h\u01b0\u1edbng d\u1eabn t\u1ea1i \u0111\u00e2y:
C\u00e0i \u0111\u1eb7t b\u1ea3n beta
"},{"location":"functions/funds/#liet-ke-danh-sach-quy","title":"Li\u1ec7t k\u00ea danh s\u00e1ch qu\u1ef9","text":""},{"location":"functions/funds/#cau-lenh","title":"C\u00e2u l\u1ec7nh","text":"\u0110\u1ec3 truy xu\u1ea5t th\u00f4ng tin to\u00e0n b\u1ed9 c\u00e1c ch\u1ee9ng ch\u1ec9 qu\u1ef9 (CCQ) m\u1edf, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m d\u01b0\u1edbi \u0111\u00e2y:
funds_listing()\n
"},{"location":"functions/funds/#vi-du-thong-tin-tra-ve","title":"V\u00ed d\u1ee5 th\u00f4ng tin tr\u1ea3 v\u1ec1","text":">>> funds_listing(fund_type=\"\").head()\nTotal number of funds currently listed on Fmarket: 41\n fundId T\u00ean vi\u1ebft t\u1eaft T\u00ean CCQ ... Gi\u00e1 g\u1ea7n nh\u1ea5t code vsdFeeId\n0 23 VESAF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU TI\u1ebeP C\u1eacN TH\u1eca TR\u01af\u1edcNG VINACA... ... 25620.68 VESAF VESAFN002\n1 20 VEOF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU H\u01afNG TH\u1ecaNH VINACAPITAL ... 24748.62 VEOF VEOFN003\n2 11 SSISCA QU\u1ef8 \u0110\u1ea6U T\u01af L\u1ee2I TH\u1ebe C\u1ea0NH TRANH B\u1ec0N V\u1eeeNG SSI ... 29880.06 SSISCA SSISCAN001\n3 32 VCBF-BCF QU\u1ef8 \u0110\u1ea6U T\u01af C\u1ed4 PHI\u1ebeU H\u00c0NG \u0110\u1ea6U VCBF ... 27526.16 VCBFBCF VCBFBCFN001\n4 22 VIBF QU\u1ef8 \u0110\u1ea6U T\u01af C\u00c2N B\u1eb0NG TU\u1ec6 S\u00c1NG VINACAPITAL ... 14983.38 VIBF VIBFN003\n\n[5 rows x 11 columns]\n
"},{"location":"functions/funds/#tham-so-au-vao","title":"Tham s\u1ed1 \u0111\u1ea7u v\u00e0o","text":"Field Type Description Default Optional fund_type
str lo\u1ea1i qu\u1ef9, ch\u1ea5p nh\u1eadn c\u00e1c gi\u00e1 tr\u1ecb sau: STOCK
cho qu\u1ef9 c\u1ed5 phi\u1ebfu, BOND
cho qu\u1ef9 tr\u00e1i phi\u1ebfu, BALANCED
cho qu\u1ef9 c\u00e2n b\u1eb1ng, N\u1ebfu \u0111\u1ec3 tr\u1ed1ng, k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 l\u00e0 t\u1ea5t c\u1ea3 c\u00e1c qu\u1ef9 hi\u1ec7n c\u00f3 tr\u00ean Fmarket. None False"},{"location":"functions/funds/#thong-tin-tra-ve","title":"Th\u00f4ng tin tr\u1ea3 v\u1ec1","text":"Th\u00f4ng tin tr\u1ea3 v\u1ec1 l\u00e0 m\u1ed9t DataFrame c\u00f3 m\u00f4 h\u00ecnh d\u1eef li\u1ec7u (data model) nh\u01b0 sau:
Field Type Descriptionshort_name
str T\u00ean vi\u1ebft t\u1eaft c\u1ee7a CCQ name
str T\u00ean CCQ fund_type
str Lo\u1ea1i qu\u1ef9 fund_owner_name
str T\u1ed5 ch\u1ee9c ph\u00e1t h\u00e0nh management_fee
float Ph\u00ed qu\u1ea3n l\u00fd (%) inception_date
date Ng\u00e0y th\u00e0nh l\u1eadp qu\u1ef9 nav
float Gi\u00e1 g\u1ea7n nh\u1ea5t nav_change_previous
float L\u1ee3i nhu\u1eadn so v\u1edbi phi\u00ean tr\u01b0\u1edbc (%) nav_change_last_year
float L\u1ee3i nhu\u1eadn so v\u1edbi n\u0103m tr\u01b0\u1edbc (%) nav_change_inception
float L\u1ee3i nhu\u1eadn t\u1eeb khi th\u00e0nh l\u1eadp (%) nav_change_1m
float L\u1ee3i nhu\u1eadn 1 th\u00e1ng g\u1ea7n nh\u1ea5t (%) nav_change_3m
float L\u1ee3i nhu\u1eadn 3 th\u00e1ng (%) nav_change_6m
float L\u1ee3i nhu\u1eadn 6 th\u00e1ng (%) nav_change_12m
float L\u1ee3i nhu\u1eadn 12 th\u00e1ng (%) nav_change_24m
float L\u1ee3i nhu\u1eadn 24 th\u00e1ng (%) nav_change_36m
float L\u1ee3i nhu\u1eadn 36 th\u00e1ng (%) nav_change_36m_annualized
float L\u1ee3i nhu\u1eadn trung b\u00ecnh 36 th\u00e1ng (%/n\u0103m) nav_update_at
date Ng\u00e0y c\u1eadp nh\u1eadt NAV fund_id_fmarket
int ID c\u1ee7a CCQ trong csdl c\u1ee7a Fmarket fund_code
str T\u00ean m\u00e3 CCQ trong csdl c\u1ee7a Fmarket vsd_fee_id
str T\u00ean m\u00e3 CCQ trong csdl c\u1ee7a Trung t\u00e2m l\u01b0u k\u00fd (VSD)"},{"location":"functions/funds/#truy-xuat-thong-tin-quy","title":"Truy xu\u1ea5t th\u00f4ng tin qu\u1ef9","text":"B\u1ea1n c\u00f3 th\u1ec3 truy xu\u1ea5t c\u00e1c th\u00f4ng tin c\u01a1 b\u1ea3n c\u1ee7a m\u1ed9t qu\u1ef9 qua h\u00e0m fund_details
nh\u01b0 d\u01b0\u1edbi d\u00e2y.
symbol
str T\u00ean CCQ \"SSISCA\" False type
str lo\u1ea1i th\u00f4ng tin c\u1ea7n truy xu\u1ea5t, ch\u1ea5p nh\u1eadn c\u00e1c gi\u00e1 tr\u1ecb sau: top_holding_list
: danh m\u1ee5c \u0111\u1ea7u t\u01b0 l\u1edbn, industry_holding_list
: ph\u00e2n b\u1ed5 theo ng\u00e0nh, asset_holding_list
: ph\u00e2n b\u1ed5 theo lo\u1ea1i t\u00e0i s\u1ea3n, nav_report
: l\u1ecbch s\u1eed gi\u00e1 \u0111\u01a1n v\u1ecb qu\u1ef9. \"top_holding_list\" False"},{"location":"functions/funds/#thong-tin-tra-ve_1","title":"Th\u00f4ng tin tr\u1ea3 v\u1ec1","text":"T\u01b0\u01a1ng \u1ee9ng v\u1edbi t\u1eebng lo\u1ea1i th\u00f4ng tin c\u1ea7n truy xu\u1ea5t, d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 m\u1ed9t DataFrame c\u00f3 m\u00f4 h\u00ecnh d\u1eef li\u1ec7u (data model) nh\u01b0 sau:
top_holding_listindustry_holding_listasset_holding_listnav_report Field Type Descriptionstock_code
str M\u00e3 c\u1ed5 phi\u1ebfu / tr\u00e1i phi\u1ebfu m\u00e0 qu\u1ef9 \u0111ang n\u1eafm gi\u1eef industry
str Ng\u00e0nh net_asset_percent
float % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n type_asset
str Lo\u1ea1i t\u00e0i s\u1ea3n update_at
date C\u1eadp nh\u1eadt l\u00fac short_name
str T\u00ean CCQ Field Type Description industry
str Ng\u00e0nh net_asset_percent
float % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n short_name
str T\u00ean CCQ Field Type Description asset_percent
str % gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n asset_type
str Lo\u1ea1i t\u00e0i s\u1ea3n short_name
str T\u00ean CCQ Field Type Description date
str Ng\u00e0y nav_per_unit
str NAV / \u0111\u01a1n v\u1ecb qu\u1ef9 (\u0111\u01a1n v\u1ecb: VND) short_name
str T\u00ean CCQ"},{"location":"functions/funds/#vi-du-thong-tin-tra-ve_1","title":"V\u00ed d\u1ee5 th\u00f4ng tin tr\u1ea3 v\u1ec1","text":""},{"location":"functions/funds/#danh-muc-au-tu-lon-top-10-cac-ma-quy-nam-giu","title":"Danh m\u1ee5c \u0111\u1ea7u t\u01b0 l\u1edbn - top 10 c\u00e1c m\u00e3 qu\u1ef9 n\u1eafm gi\u1eef","text":"fund_details (symbol='SSISCA', type='top_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='SSISCA', type='top_holding_list')\nGetting data for SSISCA\n T\u00ean Ng\u00e0nh % Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n Lo\u1ea1i t\u00e0i s\u1ea3n C\u1eadp nh\u1eadt l\u1ea7n cu\u1ed1i fundId symbol\n0 FPT C\u00f4ng ngh\u1ec7 v\u00e0 th\u00f4ng tin 19.48 STOCK 2023-12-08 11 SSISCA\n1 MWG B\u00e1n l\u1ebb 8.73 STOCK 2023-12-08 11 SSISCA\n2 ACB Ng\u00e2n h\u00e0ng 4.80 STOCK 2023-12-08 11 SSISCA\n3 HPG V\u1eadt li\u1ec7u x\u00e2y d\u1ef1ng 4.53 STOCK 2023-12-08 11 SSISCA\n4 MBB Ng\u00e2n h\u00e0ng 4.29 STOCK 2023-12-08 11 SSISCA\n5 CTG Ng\u00e2n h\u00e0ng 3.88 STOCK 2023-12-08 11 SSISCA\n6 VRE B\u1ea5t \u0111\u1ed9ng s\u1ea3n 3.44 STOCK 2023-12-08 11 SSISCA\n7 DRC S\u1ea3n ph\u1ea9m cao su 3.43 STOCK 2023-12-08 11 SSISCA\n8 TV2 D\u1ecbch v\u1ee5 t\u01b0 v\u1ea5n, h\u1ed7 tr\u1ee3 3.42 STOCK 2023-12-08 11 SSISCA\n9 TCB Ng\u00e2n h\u00e0ng 3.31 STOCK 2023-12-08 11 SSISCA\n
"},{"location":"functions/funds/#ti-trong-cac-nganh-ma-quy-ang-au-tu","title":"T\u1ec9 tr\u1ecdng c\u00e1c ng\u00e0nh m\u00e0 qu\u1ef9 \u0111ang \u0111\u1ea7u t\u01b0","text":"fund_details (symbol='VESAF', type='industry_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='industry_holding_list')\nGetting data for VESAF\n Ng\u00e0nh % Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n symbol\n0 C\u00f4ng ngh\u1ec7 v\u00e0 th\u00f4ng tin 15.12 VESAF\n1 Ng\u00e2n h\u00e0ng 11.52 VESAF\n2 B\u1ea5t \u0111\u1ed9ng s\u1ea3n 10.77 VESAF\n3 S\u1ea3n xu\u1ea5t Ph\u1ee5 tr\u1ee3 10.03 VESAF\n4 V\u1eadn t\u1ea3i - Kho b\u00e3i 8.22 VESAF\n5 Khai kho\u00e1ng 5.44 VESAF\n6 Th\u1ef1c ph\u1ea9m - \u0110\u1ed3 u\u1ed1ng 5.28 VESAF\n7 Ch\u1ebf bi\u1ebfn th\u1ee7y s\u1ea3n 4.80 VESAF\n8 S\u1ea3n xu\u1ea5t Nh\u1ef1a - H\u00f3a ch\u1ea5t 3.48 VESAF\n9 X\u00e2y d\u1ef1ng 2.91 VESAF\n10 B\u00e1n l\u1ebb 2.77 VESAF\n11 Ch\u1ee9ng kho\u00e1n 2.54 VESAF\n12 Ti\u1ec7n \u00edch 2.31 VESAF\n13 B\u1ea3o hi\u1ec3m 1.41 VESAF\n
"},{"location":"functions/funds/#bao-cao-nav-quy","title":"B\u00e1o c\u00e1o NAV qu\u1ef9","text":"fund_details (symbol='VESAF', type='nav_report')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 DataFrame c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='nav_report')\nGetting data for VESAF\n Ng\u00e0y Gi\u00e1 tr\u1ecb t\u00e0i s\u1ea3n r\u00f2ng/CCQ (VND) fundId symbol\n0 2017-04-25 10000.00 23 VESAF\n1 2017-04-29 10058.00 23 VESAF\n2 2017-05-09 10093.00 23 VESAF\n3 2017-05-16 10165.00 23 VESAF\n4 2017-05-23 10254.00 23 VESAF\n.. ... ... ... ...\n816 2023-12-04 25300.86 23 VESAF\n817 2023-12-05 25707.10 23 VESAF\n818 2023-12-06 25713.20 23 VESAF\n819 2023-12-07 25825.37 23 VESAF\n820 2023-12-08 25620.68 23 VESAF\n\n[821 rows x 4 columns]\n
"},{"location":"functions/funds/#ti-trong-tai-san-nam-giu","title":"T\u1ec9 tr\u1ecdng t\u00e0i s\u1ea3n n\u1eafm gi\u1eef","text":"fund_details (symbol='VESAF', type='asset_holding_list')\n
D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 DataFrame nh\u01b0 sau:
>>> fund_details (symbol='VESAF', type='asset_holding_list')\nGetting data for VESAF\n T\u1ec9 tr\u1ecdng updateAt Lo\u1ea1i t\u00e0i s\u1ea3n symbol\n0 86.61 2023-12-08 C\u1ed5 phi\u1ebfu VESAF\n1 13.39 2023-12-08 Ti\u1ec1n v\u00e0 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng ti\u1ec1n VESAF\n
"},{"location":"functions/listing/","title":"Danh s\u00e1ch ni\u00eam y\u1ebft","text":""},{"location":"functions/listing/#cong-ty-niem-yet","title":"C\u00f4ng ty ni\u00eam y\u1ebft","text":"listing_companies(live=True)\n
Trong \u0111\u00f3:
live
nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb.live=False
: Cho ph\u00e9p \u0111\u1ecdc d\u1eef li\u1ec7u c\u1ee5c b\u1ed9 t\u1eeb t\u1ec7p csv listing_companies \u0111\u00ednh k\u00e8m tr\u00ean Github theo m\u1eb7c \u0111\u1ecbnh. File n\u00e0y \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt h\u00e0ng th\u00e1ng. Ch\u1ee9a th\u00f4ng tin r\u1ea5t chi ti\u1ebft. B\u1edfi danh s\u00e1ch c\u00e1c c\u00f4ng ty ni\u00eam y\u1ebft th\u01b0\u1eddng kh\u00f4ng thay \u0111\u1ed5i li\u00ean t\u1ee5c n\u00ean vi\u1ec7c n\u00e0y kh\u00f4ng g\u00e2y tr\u1edf ng\u1ea1i nhi\u1ec1u.
live=True
: Cho ph\u00e9p \u0111\u1ecdc d\u1eef li\u1ec7u danh s\u00e1ch c\u00f4ng ty ni\u00eam y\u1ebft \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt realtime t\u1eeb API mi\u1ec5n ph\u00ed do Wifeed cung c\u1ea5p. D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y ch\u1ec9 g\u1ed3m 4 th\u00f4ng tin c\u01a1 b\u1ea3n: m\u00e3 CK, t\u00ean c\u00f4ng ty, m\u00e3 ph\u00e2n lo\u1ea1i c\u00f4ng ty, s\u00e0n ni\u00eam y\u1ebft.
Tham s\u1ed1 source
nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 Wifeed
(m\u1eb7c \u0111\u1ecbnh) ho\u1eb7c SSI
. B\u1ecf qua tham s\u1ed1 n\u00e0y n\u1ebfu s\u1eed d\u1ee5ng live=True
. Vi\u1ec7c b\u1ed5 sung th\u00eam ngu\u00f2n d\u1eef li\u1ec7u SSI cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng d\u1ec5 d\u00e0ng t\u00ecm ra m\u00e3 c\u00f4ng ty \u0111\u1ec3 tham chi\u1ebfu m\u1ed9t s\u1ed1 h\u00e0m c\u1ee7a SSI khi s\u1eed d\u1ee5ng m\u00e3 c\u1ed5 phi\u1ebfu kh\u00f4ng cho k\u1ebft qu\u1ea3.
>>> listing_companies(True)\n ticker organName organTypeCode comGroupCode\n0 A32 CTCP 32 1 UPCOM\n1 AAA CTCP Nh\u1ef1a An Ph\u00e1t Xanh 1 HOSE\n2 AAM CTCP Th\u1ee7y s\u1ea3n MeKong 1 HOSE\n3 AAS CTCP Ch\u1ee9ng kho\u00e1n SmartInvest 4 UPCOM\n4 AAT CTCP T\u1eadp \u0110o\u00e0n Ti\u00ean S\u01a1n Thanh H\u00f3a 1 HOSE\n... ... ... ... ...\n1579 XPH CTCP X\u00e0 ph\u00f2ng H\u00e0 N\u1ed9i 1 UPCOM\n1580 YBC CTCP Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i 1 UPCOM\n1581 YBM CTCP Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i 1 HOSE\n1582 YEG CTCP T\u1eadp \u0111o\u00e0n Yeah1 1 HOSE\n1583 YTC CTCP Xu\u1ea5t nh\u1eadp kh\u1ea9u Y t\u1ebf Th\u00e0nh ph\u1ed1 H\u1ed3 Ch\u00ed Minh 1 UPCOM\n
>>> listing_companies(True, source='SSI')\n organCode ticker ... organName organShortName\n0 0104498100 VVS ... C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 Ph\u00e1t tri\u1ec3n M\u00e1y Vi\u1ec7t Nam \u0110\u1ea7u t\u01b0 Ph\u00e1t tri\u1ec3n M\u00e1y Vi\u1ec7t Nam\n1 0109204756 HIO ... C\u00f4ng ty C\u1ed5 Ph\u1ea7n Helio Energy Helio Energy\n2 0304941312 XDC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n X\u00e2y d\u1ef1ng C\u00f4ng tr\u00ecnh T\u00e2n C\u1ea3ng X\u00e2y d\u1ef1ng C\u00f4ng tr\u00ecnh T\u00e2n C\u1ea3ng\n3 0700519785 THM ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1ee9 H\u1ea3i H\u00e0 Nam T\u1ee9 H\u1ea3i H\u00e0 Nam\n4 10659 HSV ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n HSV Vi\u1ec7t Nam Gang Th\u00e9p H\u00e0 N\u1ed9i\n... ... ... ... ... ...\n1599 XUANMINHHP XMP ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Th\u1ee7y \u0111i\u1ec7n Xu\u00e2n Minh Th\u1ee7y \u0111i\u1ec7n Xu\u00e2n Minh\n1600 YBC YBC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i Xi m\u0103ng v\u00e0 Kho\u00e1ng s\u1ea3n Y\u00ean B\u00e1i\n1601 YBMC YBM ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i Kho\u00e1ng s\u1ea3n CN Y\u00ean B\u00e1i\n1602 YEGCORP YEG ... C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Yeah1 T\u1eadp \u0111o\u00e0n Yeah1\n1603 YTECO YTC ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Xu\u1ea5t nh\u1eadp kh\u1ea9u Y t\u1ebf Th\u00e0nh ph\u1ed1 ... XNK Y t\u1ebf TP.HCM\n\n[1604 rows x 8 columns]\n
>>> listing_companies()\n ticker comGroupCode organName organShortName ... VNIT VNMAT VNREAL VNUTI\n0 SSI HOSE C\u00f4ng ty C\u1ed5 ph\u1ea7n Ch\u1ee9ng kho\u00e1n SSI Ch\u1ee9ng kho\u00e1n SSI ... False False False False\n1 BCM HOSE T\u1ed5ng C\u00f4ng ty \u0110\u1ea7u t\u01b0 v\u00e0 Ph\u00e1t tri\u1ec3n C\u00f4ng nghi\u1ec7p ... Becamex IDC ... False False True False\n2 VHM HOSE C\u00f4ng ty C\u1ed5 ph\u1ea7n Vinhomes Vinhomes ... False False True False\n\n[3 rows x 35 columns]\n
"},{"location":"functions/listing/#cac-ma-chi-so","title":"C\u00e1c m\u00e3 ch\u1ec9 s\u1ed1","text":"indices_listing (lang='vi')\n
Trong \u0111\u00f3, tham s\u1ed1 lang
cho ph\u00e9p nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 vi
cho Ti\u1ebfng Vi\u1ec7t, en
cho Ti\u1ebfng Anh. K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 l\u00e0 t\u1ea5t c\u1ea3 c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1 hi\u1ec7n c\u00f3, d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi FiinTrade/SSI. Khi s\u1eed d\u1ee5ng, c\u00f3 nh\u1eefng tr\u01b0\u1eddng h\u1ee3p c\u1ea7n \u0111\u1ed5i t\u00ean c\u00e1c m\u00e3 HNXIndex th\u00e0nh HNX, UpcomIndex th\u00e0nh UPCOM n\u1ebfu c\u1ea7n thi\u1ebft.
>>> indices_listing (lang='vi')\n comGroupCode parentComGroupCode comGroupOrder\n0 VNINDEX VNINDEX 1\n1 HNXIndex HNXIndex 2\n2 VN30 VNINDEX 2\n3 VNCOND VNINDEX 2\n4 HNX30 HNXIndex 3\n5 UpcomIndex UpcomIndex 3\n6 VN100 VNINDEX 3\n7 VNCONS VNINDEX 3\n8 VNENE VNINDEX 4\n9 VNX50 VNINDEX 4\n10 VNFIN VNINDEX 5\n11 VNHEAL VNINDEX 6\n12 VNXALL VNINDEX 6\n13 VNIND VNINDEX 7\n14 VNIT VNINDEX 8\n15 VNMAT VNINDEX 9\n16 VNSML VNINDEX 9\n17 VNMID VNINDEX 10\n18 VNREAL VNINDEX 10\n19 VNALL VNINDEX 11\n20 VNUTI VNINDEX 11\n21 VNDIAMOND VNINDEX 12\n22 VNFINLEAD VNINDEX 13\n23 VNFINSELECT VNINDEX 14\n24 VNSI VNINDEX 17\n
"},{"location":"functions/market/","title":"Chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng","text":"SSI - Chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng
Th\u00f4ng tin chuy\u1ec3n \u0111\u1ed9ng th\u1ecb tr\u01b0\u1eddng c\u1ee7a vnstock \u0111\u01b0\u1ee3c cung c\u1ea5p t\u1eeb ngu\u1ed3n SSI. B\u1ea1n c\u00f3 th\u1ec3 truy xu\u1ea5t c\u00e1c th\u00f4ng tin \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb tr\u00ean giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng c\u1ee7a SSI v\u00e0o m\u00f4i tr\u01b0\u1eddng Python b\u1eb1ng c\u00e1c h\u00e0m d\u01b0\u1edbi \u0111\u00e2y. \u0110i\u1ec3m kh\u00e1c bi\u1ec7t c\u0103n b\u1ea3n gi\u1eefa vi\u1ec7c l\u1ea5y d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng b\u1eb1ng h\u00e0m vnstock so v\u1edbi t\u1ea3i file excel tr\u1ef1c ti\u1ebfp t\u1eeb SSI l\u00e0 d\u1eef li\u1ec7u c\u1ee7a vnstock c\u00f3 \u0111\u1ed9 chi ti\u1ebft cao h\u01a1n, \u0111\u1ed3ng th\u1eddi c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c l\u1ea5y tr\u1ef1c ti\u1ebfp v\u00e0o m\u00f4i tr\u01b0\u1eddng Python m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i l\u01b0u file excel v\u1ec1 m\u00e1y \u0111\u1ec3 ph\u00e2n t\u00edch.
"},{"location":"functions/market/#ban-o-nhiet-gia","title":"B\u1ea3n \u0111\u1ed3 nhi\u1ec7t gi\u00e1","text":"S\u1eed d\u1ee5ng h\u00e0m:
fr_trade_heatmap (symbol='HOSE', report_type='FrBuyVal')\n
Trong \u0111\u00f3: symbol
: M\u00e3 s\u00e0n ch\u1ee9ng kho\u00e1n ho\u1eb7c m\u00e3 Ch\u1ec9 s\u1ed1.
HOSE
, HNX
ho\u1eb7c UPCOM
VN30
, VN100
, ho\u1eb7c b\u1ea5t k\u1ef3 m\u00e3 ch\u1ec9 s\u1ed1 n\u00e0o c\u00f3 trong h\u00ecnh b\u00ean tr\u00ean, \u0111\u01b0\u1ee3c khoanh v\u00f9ng m\u00e0u xanh.report_type
: Lo\u1ea1i b\u1ea3n \u0111\u1ed3 nhi\u1ec7t gi\u00e1.
FrBuyVal
: Gi\u00e1 tr\u1ecb N\u0110TNN mua r\u00f2ngFrSellVal
: Gi\u00e1 tr\u1ecb N\u0110TNN b\u00e1n r\u00f2ngFrBuyVol
: Kh\u1ed1i l\u01b0\u1ee3ng N\u0110TNN mua r\u00f2ngFrSellVol
: Kh\u1ed1i l\u01b0\u1ee3ng N\u0110TNN b\u00e1n r\u00f2ngVolume
: Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbchValue
: Gi\u00e1 tr\u1ecb giao d\u1ecbchMarketCap
: V\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddngK\u1ebft qu\u1ea3:
>>> fr_trade_heatmap (symbol='VN30', report_type='FrBuyVal').T\n 0 ... 29\navgPrice 21583.35 ... 24757.58\nbest1Bid 21550.0 ... NaN\nbest1BidVol 205900.0 ... NaN\nbest1Offer 21600 ... 24600\nbest1OfferVol 39500 ... 690100\nbest2Bid 21500.0 ... NaN\nbest2BidVol 620300.0 ... NaN\nbest2Offer 21650 ... 24650\nbest2OfferVol 65700 ... 86200\nbest3Bid 21450.0 ... NaN\nbest3BidVol 483100.0 ... NaN\nbest3Offer 21700 ... 24700\nbest3OfferVol 29700 ... 20500\ncaStatus ...\nceiling 23400 ... 28300\ncorporateEvents [] ... []\ncoveredWarrantType ...\nexchange hose ... hose\nexercisePrice 0 ... 0\nexerciseRatio ...\nfloor 20400 ... 24600\nhighest 21750 ... 25900\nissuerName ...\nlastTradingDate ...\nlastVol 38999 ... 54716\nlowest 21450 ... 24600\nmatchedPrice 21550 ... 24600\nmaturityDate ...\nnmTotalTradedValue 84172900000 ... 135463580000\nopenPrice 21750 ... 25900\npriorClosePrice 21900 ... 26450\nrefPrice 21900 ... 26450\nsecurityName NGAN HANG TMCP A CHAU ... CTCP VINCOM RETAIL\nstockSymbol ACB ... VRE\nstockType s ... s\ntotalShare 38999 ... 54716\ntradingStatus ...\ntradingUnit 100 ... 100\nunderlyingSymbol ...\ncompanyNameEn Asia Commercial Joint Stock Bank ... Vincom Retail Joint Stock Company\ncompanyNameVi Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n \u00c1 Ch\u00e2u ... C\u00f4ng ty C\u1ed5 ph\u1ea7n Vincom Retail\noddSession LO ... LO\nsession LO ... LO\nbuyForeignQtty 120300 ... 748207\nremainForeignQtty 0 ... 382909157\nsellForeignQtty 120365 ... 695725\nmatchedVolume 30 ... 50\npriceChange -350 ... -1850\npriceChangePercent -1.6 ... -6.99\nlastMatchedPrice 21550 ... 24600\nlastMatchedVolume 30 ... 50\nlastPriceChange -350 ... -1850\nlastPriceChangePercent -1.6 ... -6.99\nnmTotalTradedQty 3899900 ... 5471600\n\n[54 rows x 30 columns]\n
"},{"location":"functions/market/#top-co-phieu","title":"Top c\u1ed5 phi\u1ebfu","text":"S\u1eed d\u1ee5ng h\u00e0m:
market_top_mover (report_name='Value', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
Trong \u0111\u00f3 report_name
l\u00e0 t\u00ean lo\u1ea1i b\u00e1o c\u00e1o c\u1ea7n truy xu\u1ea5t, nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb sau:
Breakout
: Top \u0111\u1ed9t ph\u00e1Value
: Top gi\u00e1 tr\u1ecbLosers
: Top gi\u1ea3m gi\u00e1Gainers
: Top t\u0103ng gi\u00e1Volume
: Top kh\u1ed1i l\u01b0\u1ee3ngForeignTrading
: Top N\u0110TNNNewHigh
: Top v\u01b0\u1ee3t \u0111\u1ec9nhNewLow
: Top th\u1ee7ng \u0111\u00e1yexchange
: Ch\u1ecdn s\u00e0n giao d\u1ecbch \u0111\u1ec3 truy xu\u1ea5t b\u00e1o c\u00e1o. All
cho t\u1ea5t c\u1ea3, ho\u1eb7c ri\u00eang l\u1ebb t\u1eebng s\u00e0n HOSE
, HNX
, UPCOM
filter
: L\u1ecdc lo\u1ea1i b\u00e1o c\u00e1o, \u00e1p d\u1ee5ng cho lo\u1ea1i b\u00e1o c\u00e1o Top N\u0110TNN, h\u00e0m s\u1ebd t\u1ef1 \u0111\u1ed9ng \u00e1p d\u1ee5ng v\u1edbi lo\u1ea1i b\u00e1o c\u00e1o ph\u00f9 h\u1ee3p.NetBuyVol
: Top kh\u1ed1i l\u01b0\u1ee3ng mua r\u00f2ngNetBuyVal
: Top gi\u00e1 tr\u1ecb mua r\u00f2ngNetSellVol
: Top kh\u1ed1i l\u01b0\u1ee3ng b\u00e1n r\u00f2ngNetSellVal
: Top gi\u00e1 tr\u1ecb b\u00e1n r\u00f2ngreport_range
: Ch\u1ecdn khung th\u1eddi gian b\u00e1o c\u00e1o OneWeek
cho 5 ng\u00e0y, TwoWeek
cho 10 ng\u00e0y, OneMonth
cho 1 th\u00e1ng, ThreeMonths
cho 3 th\u00e1ng, SixMonths
cho 6 th\u00e1ng, OneYear
cho 1 n\u0103mrate
: T\u1ec9 l\u1ec7 Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch so v\u1edbi Kh\u1ed1i l\u01b0\u1ee3ng giao d\u1ecbch trung b\u00ecnh trong s\u1ed1 phi\u00ean x\u00e1c \u0111\u1ecbnh (v\u00ed d\u1ee5 10 ng\u00e0y, 1 th\u00e1ng). Nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb OnePointTwo
cho 1.2, OnePointFive
cho 1.5, Two
cho 2, Five
cho 5, Ten
cho 10lang
: ch\u1ecdn ng\u00f4n ng\u1eef c\u1ee7a d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 l\u00e0 ti\u1ebfng Vi\u1ec7t vi
, ho\u1eb7c Anh en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c m\u1eabu l\u1ec7nh \u0111\u1ec3 t\u1ea3i t\u1eebng lo\u1ea1i b\u00e1o c\u00e1o n\u00eau tr\u00ean. Xem th\u00eam chi ti\u1ebft Demo Notebook \u0111\u1ec3 tham chi\u1ebfu k\u1ebft qu\u1ea3 t\u1eebng h\u00e0m c\u1ee5 th\u1ec3.
market_top_mover (report_name='Value', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Losers', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Gainers', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Volume', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='ForeignTrading', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='NewLow', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='NewHigh', exchange='All', filter= 'NetBuyVol', report_range='ThreeMonths', rate='OnePointFive', lang='vi')\n
market_top_mover (report_name='Breakout', exchange='All', filter= 'NetBuyVol', report_range='TwoWeeks', rate='OnePointFive', lang='vi')\n
"},{"location":"functions/market/#giao-dich-ntnn","title":"\ud83d\udd10 Giao d\u1ecbch N\u0110TNN","text":"Gi\u1edbi thi\u1ec7u
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u00edch xu\u1ea5t t\u1eeb CafeF, kh\u00f4ng gi\u1edbi h\u1ea1n th\u1eddi gian tra c\u1ee9u. N\u1ebfu b\u1ea1n xu\u1ea5t d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp t\u1eeb CafeF ch\u1ec9 c\u00f3 th\u1ec3 xu\u1ea5t t\u1eebng trang v\u1edbi gi\u1edbi h\u1ea1n 20 d\u00f2ng g\u1ea7n nh\u1ea5t. T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn tham gia Insiders Program t\u1ea1i \u0111\u00e2y
B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
foreign_trade_data(symbol='VIC', start_date='2003-01-01', end_date='2023-12-22', limit=5000, page=1, lang='vi')\n
Trong \u0111\u00f3:
symbol
: M\u00e3 ch\u1ee9ng kho\u00e1n ho\u1eb7c ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. Kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef hoa/th\u01b0\u1eddng.start_date
: Ng\u00e0y b\u1eaft \u0111\u1ea7u tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
end_date
: Ng\u00e0y k\u1ebft th\u00fac tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
limit
: S\u1ed1 l\u01b0\u1ee3ng b\u1ea3n ghi tr\u1ea3 v\u1ec1 trong m\u1ed9t l\u1ea7n truy v\u1ea5n, m\u1eb7c \u0111\u1ecbnh l\u00e0 500page
: Trang k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1, m\u1eb7c \u0111\u1ecbnh l\u00e0 1. B\u1ecf qua tham s\u1ed1 n\u00e0y v\u00e0 \u0111i\u1ec1u ch\u1ec9nh limit
\u0111\u1ec3 truy v\u1ea5n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n ghi.lang
: Ng\u00f4n ng\u1eef c\u1ee7a t\u00ean c\u1ed9t d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1, nh\u1eadn gi\u00e1 tr\u1ecb vi
ho\u1eb7c en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3 minh h\u1ecda:
>>> foreign_trade_data(symbol='VIC', start_date='2003-01-01', end_date='2023-12-22', limit=5000, page=1, lang='vi')\n\nTotal records: 4141. Returned records: 4141\n Ngay KLGDRong GTDGRong ThayDoi KLMua GtMua KLBan GtBan RoomConLai DangSoHuu MaCK\n0 22/12/2023 -396290 -1.700099e+10 43.15(-0.12 %) 231200 9.950400e+09 627490 2.695139e+10 0 0.0 VIC\n1 21/12/2023 -129968 -5.564799e+09 43.2(-0.12 %) 224100 9.642125e+09 354068 1.520692e+10 0 0.0 VIC\n2 20/12/2023 -59541 -2.503370e+09 43.25(0.12 %) 268088 1.158413e+10 327629 1.408750e+10 0 0.0 VIC\n3 19/12/2023 -199294 -8.485858e+09 43.2(0.00 %) 195100 8.357565e+09 394394 1.684342e+10 0 0.0 VIC\n4 18/12/2023 -145146 -6.305306e+09 43.2(-1.14 %) 263710 1.145286e+10 408856 1.775816e+10 0 0.0 VIC\n... ... ... ... ... ... ... ... ... ... ... ...\n4136 07/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4137 06/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4138 05/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4139 02/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n4140 01/03/2007 0 0.000000e+00 0(0.00 %) 0 0.000000e+00 0 0.000000e+00 0 0.0 VIC\n\n[4141 rows x 11 columns]\n
"},{"location":"functions/market/#giao-dich-tu-doanh","title":"\ud83d\udd10 Giao d\u1ecbch t\u1ef1 doanh","text":"T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn ng\u01b0\u1eddi d\u00f9ng tham gia t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua Insiders Program t\u1ea1i \u0111\u00e2y
Gi\u1edbi thi\u1ec7u
D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c tr\u00edch xu\u1ea5t t\u1eeb CafeF, gi\u1edbi h\u1ea1n th\u1eddi gian tra c\u1ee9u trong v\u00f2ng 1 n\u0103m. N\u1ebfu b\u1ea1n xu\u1ea5t d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp t\u1eeb CafeF ch\u1ec9 c\u00f3 th\u1ec3 xu\u1ea5t t\u1eebng trang v\u1edbi gi\u1edbi h\u1ea1n 20 d\u00f2ng g\u1ea7n nh\u1ea5t. T\u00ednh n\u0103ng ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
. Xem h\u01b0\u1edbng d\u1eabn tham gia Insiders Program t\u1ea1i \u0111\u00e2y
B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
proprietary_trade_data(symbol='VIC', start_date='2022-01-01', end_date='2023-12-22', limit=1000, page=1, lang='vi')\n
Trong \u0111\u00f3:
symbol
: M\u00e3 ch\u1ee9ng kho\u00e1n ho\u1eb7c ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. Kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef hoa/th\u01b0\u1eddng.start_date
: Ng\u00e0y b\u1eaft \u0111\u1ea7u tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
end_date
: Ng\u00e0y k\u1ebft th\u00fac tra c\u1ee9u, \u0111\u1ecbnh d\u1ea1ng YYYY-MM-DD
limit
: S\u1ed1 l\u01b0\u1ee3ng b\u1ea3n ghi tr\u1ea3 v\u1ec1 trong m\u1ed9t l\u1ea7n truy v\u1ea5n, m\u1eb7c \u0111\u1ecbnh l\u00e0 500page
: Trang k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1, m\u1eb7c \u0111\u1ecbnh l\u00e0 1. B\u1ecf qua tham s\u1ed1 n\u00e0y v\u00e0 \u0111i\u1ec1u ch\u1ec9nh limit
\u0111\u1ec3 truy v\u1ea5n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n ghi.lang
: Ng\u00f4n ng\u1eef c\u1ee7a t\u00ean c\u1ed9t d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1, nh\u1eadn gi\u00e1 tr\u1ecb vi
ho\u1eb7c en
D\u01b0\u1edbi \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3 minh h\u1ecda:
>>> proprietary_trade_data(symbol='VIC', start_date='2022-01-01', end_date='2023-12-22', limit=1000, page=1, lang='vi')\n\nTotal records: 287. Returned records: 287\n Ngay KLcpMua KlcpBan GtMua GtBan MaCK\n0 22/12/2023 112100 361000 4832690000 15497035000 VIC\n1 21/12/2023 257900 402100 11096970000 17287675000 VIC\n2 20/12/2023 56400 353200 2423970000 15201520000 VIC\n3 19/12/2023 226300 357100 9690645000 15290020000 VIC\n4 18/12/2023 160000 177800 6955905000 7715020000 VIC\n.. ... ... ... ... ... ...\n282 07/11/2022 183600 27200 9778640000 1424160000 VIC\n283 04/11/2022 153000 165700 8108240000 8866530000 VIC\n284 03/11/2022 71700 15300 3907960000 836750000 VIC\n285 02/11/2022 87700 180000 4817810000 9893270000 VIC\n286 01/11/2022 198900 81800 10938740000 4461310000 VIC\n\n[287 rows x 6 columns]\n
"},{"location":"functions/rating/","title":"\u0110\u00e1nh gi\u00e1 & x\u1ebfp h\u1ea1ng","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
general_rating(\"VNM\")\n
>>> general_rating(\"VNM\").T\n 0\nstockRating 3.7\nvaluation 1.4\nfinancialHealth 4.8\nbusinessModel 3.9\nbusinessOperation 2.8\nrsRating 2.2\ntaScore 1.0\nticker VNM\nhighestPrice 80815.2\nlowestPrice 63390.9\npriceChange3m 0.016\npriceChange1y -0.018\nbeta 0.36\nalpha 0.0013\n
"},{"location":"functions/rating/#mo-hinh-kinh-doanh","title":"M\u00f4 h\u00ecnh kinh doanh","text":"biz_model_rating(\"VNM\")\n
>>> biz_model_rating(\"VNM\").T\n 0\nticker VNM\nbusinessModel 3.9\nbusinessEfficiency 3\nassetQuality 4\ncashFlowQuality 4\nbom 4\nbusinessAdministration 4\nproductService 4\nbusinessAdvantage 4\ncompanyPosition 4\nindustry 4\noperationRisk 4\n
"},{"location":"functions/rating/#hieu-qua-hoat-ong","title":"Hi\u1ec7u qu\u1ea3 ho\u1ea1t \u0111\u1ed9ng","text":"biz_operation_rating(\"VNM\")\n
>>> biz_operation_rating(\"VNM\").T\n 0\nindustryEn Food Products\nloanGrowth None\ndepositGrowth None\nnetInterestIncomeGrowth None\nnetInterestMargin None\ncostToIncome None\nnetIncomeTOI None\nticker VNM\nbusinessOperation 2.8\navgROE 5\navgROA 5\nlast5yearsNetProfitGrowth 1\nlast5yearsRevenueGrowth 2\nlast5yearsOperatingProfitGrowth 1\nlast5yearsEBITDAGrowth 1\nlast5yearsFCFFGrowth 2\nlastYearGrossProfitMargin 4\nlastYearOperatingProfitMargin 3\nlastYearNetProfitMargin 3\nTOIGrowth None\n
"},{"location":"functions/rating/#suc-khoe-tai-chinh","title":"S\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh","text":"financial_health_rating(\"VNM\")\n
>>> financial_health_rating(\"VNM\").T\n 0\nindustryEn Food Products\nloanDeposit None\nbadLoanGrossLoan None\nbadLoanAsset None\nprovisionBadLoan None\nticker VNM\nfinancialHealth 4.8\nnetDebtEquity 4\ncurrentRatio 5\nquickRatio 5\ninterestCoverage 5\nnetDebtEBITDA 5\n
"},{"location":"functions/rating/#inh-gia","title":"\u0110\u1ecbnh gi\u00e1","text":"valuation_rating(\"VNM\")\n
>>> valuation_rating(\"VNM\").T\n 0\nindustryEn Food Products\nticker VNM\nvaluation 1.4\npe 1\npb 1\nps 1\nevebitda 1\ndividendRate 4\n
"},{"location":"functions/rating/#suc-khoe-tai-chinh-nganh","title":"S\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh ng\u00e0nh","text":"industry_financial_health(\"VNM\")\n
>>> industry_financial_health(\"VNM\").T\n 0\nindustryEn None\nloanDeposit None\nbadLoanGrossLoan None\nbadLoanAsset None\nprovisionBadLoan None\nticker VNM\nfinancialHealth 3.4\nnetDebtEquity 4\ncurrentRatio 3\nquickRatio 3\ninterestCoverage 3\nnetDebtEBITDA 3\n
"},{"location":"functions/ratio/","title":"B\u1ed9 ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh","text":""},{"location":"functions/ratio/#chi-so-co-ban","title":"Ch\u1ec9 s\u1ed1 c\u01a1 b\u1ea3n","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
B\u1ed9 ch\u1ec9 s\u1ed1 t\u00e0i ch\u00ednh do TCBS cung c\u1ea5p c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c tr\u00edch m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng \u0111\u1ec3 c\u00f3 to\u00e0n b\u1ed9 th\u00f4ng tin ph\u00e2n t\u00edch nh\u01b0 b\u1ea1n th\u1ea5y tr\u00ean giao di\u1ec7n website TCBS b\u1eb1ng c\u00e2u l\u1ec7nh:
financial_ratio(symbol=\"TCB\", report_range='yearly', is_all=False)\n
Trong \u0111\u00f3:
symbol
l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea1n mu\u1ed1n ph\u00e2n t\u00edchreport_range
nh\u1eadn 1 trong 2 gi\u00e1 tr\u1ecb: yearly
cho ph\u00e9p tr\u1ea3 v\u1ec1 ch\u1ec9 s\u1ed1 theo n\u0103m, quarterly
tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u theo qu\u00fdis_all
c\u00f3 gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 True
cho ph\u00e9p l\u1ea5y ch\u1ec9 s\u1ed1 qua t\u1ea5t c\u1ea3 c\u00e1c k\u1ef3 (n\u0103m ho\u1eb7c qu\u00fd), False
cho ph\u00e9p l\u1ea5y c\u00e1c k\u1ef3 g\u1ea7n nh\u1ea5t (5 n\u0103m ho\u1eb7c 10 qu\u00fd g\u1ea7n \u0111\u00e2y). \u0110\u00e2y l\u00e0 tham s\u1ed1 t\u00f9y ch\u1ecdn, n\u1ebfu b\u1ea1n kh\u00f4ng ch\u1ec9 r\u00f5, n\u00f3 s\u1ebd nh\u1eadn gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
t\u1ee9c r\u00fat g\u1ecdn b\u00e1o c\u00e1o \u0111\u1ec3 l\u1ea5y 5 n\u0103m ho\u1eb7c 10 qu\u00fd g\u1ea7n nh\u1ea5t.K\u1ebft qu\u1ea3:
>>> financial_ratio('TCB', 'yearly')\nyear 2022 2021 2020 2019 2018\nticker TCB TCB TCB TCB TCB\npriceToEarning 4.5 9.7 9.0 8.2 10.7\npriceToBook 0.8 1.9 1.5 1.3 1.8\nroe 0.197 0.217 0.181 0.178 0.215\nroa 0.032 0.036 0.03 0.029 0.029\nearningPerShare 5729 5132 3504 2869 2410\nbookValuePerShare 32248 26452 21214 17679 14749\ninterestMargin 0.053 0.057 0.049 0.043 0.041\nnonInterestOnToi 0.259 0.28 0.307 0.323 0.379\nbadDebtPercentage 0.007 0.007 0.005 0.013 0.018\nprovisionOnBadDebt 1.573 1.629 1.71 0.948 0.851\ncostOfFinancing 0.028 0.022 0.031 0.038 0.041\nequityOnTotalAsset 0.162 0.164 0.17 0.162 0.161\nequityOnLoan 0.27 0.268 0.269 0.269 0.324\ncostToIncome 0.328 0.301 0.319 0.347 0.318\nequityOnLiability 0.2 0.2 0.2 0.2 0.2\nepsChange 0.116 0.465 0.221 0.191 0.313\nassetOnEquity 6.2 6.1 5.9 6.2 6.2\npreProvisionOnToi 0.537 0.554 0.542 0.52 0.542\npostTaxOnToi 0.5 0.497 0.465 0.485 0.462\nloanOnEarnAsset 0.684 0.665 0.681 0.649 0.537\nloanOnAsset 0.602 0.611 0.631 0.602 0.498\nloanOnDeposit 1.173 1.104 1.0 0.998 0.794\ndepositOnEarnAsset 0.583 0.603 0.68 0.651 0.676\nbadDebtOnAsset 0.004 0.004 0.003 0.008 0.009\nliquidityOnLiability 0.347 0.382 0.372 0.411 0.531\npayableOnEquity 5.2 5.1 4.9 5.2 5.2\ncancelDebt 0.002 0.004 0.013 0.002 0.008\nbookValuePerShareChange 0.219 0.247 0.2 0.199 0.923\ncreditGrowth 0.211 0.252 0.202 0.443 -0.006\n
"},{"location":"functions/ratio/#so-sanh-chi-so-giua-cac-ma-co-phieu","title":"So s\u00e1nh ch\u1ec9 s\u1ed1 gi\u1eefa c\u00e1c m\u00e3 c\u1ed5 phi\u1ebfu","text":"financial_ratio_compare (symbol_ls=[\"CTG\", \"TCB\", \"ACB\"], industry_comparison=True, frequency='Yearly', start_year=2010)\n
Trong \u0111\u00f3:
symbol_ls
l\u00e0 danh s\u00e1ch c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n so s\u00e1nh d\u1ea1ng danh s\u00e1ch trong Python. M\u00e3 c\u1ed5 phi\u1ebfu \u0111\u1ea7u ti\u00ean l\u00e0 m\u00e3 d\u00f9ng \u0111\u1ec3 tham chi\u1ebfu khi so s\u00e1nh v\u1edbi c\u00e1c m\u00e3 kh\u00e1c v\u00e0 ng\u00e0nh.industry_comparison
: m\u1eb7c \u0111\u1ecbnh l\u00e0 True
, cho ph\u00e9p so s\u00e1nh v\u1edbi ch\u1ec9 s\u1ed1 c\u1ee7a to\u00e0n ng\u00e0nh.frequency
: nh\u1eadn gi\u00e1 tr\u1ecb Yearly
cho h\u00e0ng n\u0103m, Quarterly
cho h\u00e0ng qu\u00fdstart_year
: n\u0103m b\u1eaft \u0111\u1ea7u l\u1ea5y b\u00e1o c\u00e1o cho \u0111\u1ebfn hi\u1ec7n t\u1ea1i.K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 nh\u01b0 sau:
>>> financial_ratio_compare (symbol_ls=[\"CTG\", \"TCB\", \"ACB\"], industry_comparison=True, frequency='Yearly', start_year=2020)\n Ch\u1ec9 s\u1ed1 2020 2021 2022\n0 T\u1ec9 l\u1ec7 CASA NaN NaN NaN\n1 CTG 0.188273 0.194308 0.194949\n2 ACB 0.209698 0.248287 0.217765\n3 TCB 0.443210 0.469770 0.343410\n4 To\u00e0n ng\u00e0nh NaN NaN NaN\n.. ... ... ... ...\n138 Tr\u00edch l\u1eadp d\u1ef1 ph\u00f2ng/ Cho vay (%) NaN NaN NaN\n139 CTG -0.012455 -0.017131 -0.020090\n140 ACB -0.003244 -0.009908 -0.000183\n141 TCB -0.010273 -0.008529 -0.005043\n142 To\u00e0n ng\u00e0nh -0.015620 -0.018418 -0.015272\n
"},{"location":"functions/screener/","title":"B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu","text":"L\u01b0u \u00fd
\u0110\u1ec3 ti\u1ec7n theo d\u00f5i v\u00e0 tra c\u1ee9u, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p ch\u00fang t\u00f4i s\u1ebd xoay DataFrame tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m v\u1edbi v\u1edbi ph\u00e9p transpose
\u0111\u1ec3 th\u1ea5y \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin d\u1ec5 h\u01a1n. V\u1edbi c\u00e1c c\u00e2u l\u1ec7nh c\u00f3 ph\u1ea7n k\u1ebft th\u00fac v\u1edbi .T
t\u1ee9c l\u00e0 \u0111ang \u00e1p d\u1ee5ng ph\u00e9p transpose
n\u00e0y.
B\u1ed9 l\u1ecdc c\u1ed5 phi\u1ebfu l\u00e0 m\u1ed9t h\u00e0m cho ph\u00e9p b\u1ea1n truy v\u1ea5n v\u00e0 l\u1ecdc c\u00e1c c\u1ed5 phi\u1ebfu theo nhi\u1ec1u ti\u00eau ch\u00ed \u0111a d\u1ea1ng d\u1ef1a tr\u00ean d\u1eef li\u1ec7u ph\u00e2n t\u00edch c\u1ee7a TCBS. H\u00e0m n\u00e0y s\u1ebd tr\u1ea3 v\u1ec1 m\u1ed9t DataFrame ch\u1ee9a c\u00e1c th\u00f4ng tin to\u00e0n di\u1ec7n v\u1ec1 c\u00e1c c\u1ed5 phi\u1ebfu th\u1ecfa m\u00e3n \u0111i\u1ec1u ki\u1ec7n l\u1ecdc c\u1ee7a b\u1ea1n. B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng DataFrame n\u00e0y \u0111\u1ec3 ti\u1ebfp t\u1ee5c ph\u00e2n t\u00edch, bi\u1ec3u di\u1ec5n ho\u1eb7c xu\u1ea5t ra d\u1eef li\u1ec7u d\u1ea1ng b\u1ea3ng t\u00ednh. \u0110\u00e2y l\u00e0 c\u1eadp nh\u1eadt \u01b0u vi\u1ec7t gi\u00fap b\u1ea1n ti\u1ebft ki\u1ec7m th\u1eddi gian v\u00e0 c\u00f4ng s\u1ee9c \u0111\u00e1ng k\u1ec3 khi l\u00e0m vi\u1ec7c v\u1edbi d\u1eef li\u1ec7u c\u1ed5 phi\u1ebfu, \u0111\u1ed3ng th\u1eddi cho ph\u00e9p l\u1eadp tr\u00ecnh \u0111\u1ec3 l\u1ecdc l\u00e0 c\u1eadp nh\u1eadt danh s\u00e1ch c\u1ed5 phi\u1ebfu hi\u1ec7u qu\u1ea3 kh\u00f4ng c\u1ea7n s\u1eed d\u1ee5ng giao di\u1ec7n web t\u1eeb c\u00f4ng ty ch\u1ee9ng kho\u00e1n.
Tham s\u1ed1
key
l\u00e0 t\u00ean c\u1ee7a c\u00e1c b\u1ed9 l\u1ecdc, v\u00e0 c\u00e1c value
l\u00e0 m\u1ed9t gi\u00e1 tr\u1ecb \u0111\u01a1n ho\u1eb7c m\u1ed9t tupple g\u1ed3m hai gi\u00e1 tr\u1ecb (min v\u00e0 max) cho b\u1ed9 l\u1ecdc \u0111\u00f3. \u0110\u00e2y l\u00e0 v\u00ed d\u1ee5 cho tham s\u1ed1 params \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp \u0111\u00fang:vi
) ho\u1eb7c Anh (en
)params = {\n \"exchangeName\": \"HOSE,HNX,UPCOM\",\n \"marketCap\": (100, 1000),\n \"dividendYield\": (5, 10)\n }\n
\u00c1p d\u1ee5ng b\u1ed9 l\u1ecdc v\u1edbi h\u00e0m \u0111\u1ec3 l\u1ea5y k\u1ebft qu\u1ea3
df = stock_screening_insights (params, size=1700, drop_lang='vi')\n
"},{"location":"functions/screener/#ieu-kien-loc","title":"\u0110i\u1ec1u ki\u1ec7n l\u1ecdc","text":"B\u1ed9 l\u1ecdc g\u1ee3i \u00fd S\u1eed d\u1ee5ng c\u00e1c ti\u00eau ch\u00ed l\u1ecdc nh\u01b0 sau \u0111\u1ec3 thi\u1ebft l\u1eadp tham s\u1ed1 params.
exchangeName
: s\u00e0n giao d\u1ecbch c\u1ee7a c\u1ed5 phi\u1ebfu, v\u00ed d\u1ee5 \"HOSE\", \"HNX\", ho\u1eb7c \"UPCOM\". B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng d\u1ea5u ph\u1ea9y \u0111\u1ec3 ph\u00e2n t\u00e1ch nhi\u1ec1u s\u00e0n, v\u00ed d\u1ee5 \"HOSE,HNX,UPCOM\".hasFinancialReport
: C\u00f3 b\u00e1o c\u00e1o t\u00e0i ch\u00ednh g\u1ea7n nh\u1ea5t. 1
ngh\u0129a l\u00e0 c\u00f3, 0
ngh\u0129a l\u00e0 kh\u00f4ng.industryName
: L\u1ecdc c\u00e1c c\u1ed5 phi\u1ebfu theo ng\u00e0nh c\u1ee5 th\u1ec3. Gi\u00e1 tr\u1ecb d\u1ea1ng Retail
cho ng\u00e0nh B\u00e1n l\u1ebb. C\u00e1c gi\u00e1 tr\u1ecb kh\u00e1c c\u00f3 th\u1ec3 l\u00e0:Insurance
: B\u1ea3o hi\u1ec3mReal Estate
: B\u1ea5t \u0111\u1ed9ng s\u1ea3nTechnology
: C\u00f4ng ngh\u1ec7 th\u00f4ng tinOil & Gas
: D\u1ea7u kh\u00edFinancial Services
: D\u1ecbch v\u1ee5 t\u00e0i ch\u00ednhUtilities
: \u0110i\u1ec7n, n\u01b0\u1edbc, x\u0103ng d\u1ea7u v\u00e0 kh\u00ed \u0111\u1ed1tTravel & Leisure
: Du l\u1ecbch v\u00e0 gi\u1ea3i tr\u00edIndustrial Goods & Services
: H\u00e0ng v\u00e0 d\u1ecbch v\u1ee5 c\u00f4ng nghi\u1ec7pPersonal & Household Goods
: H\u00e0ng c\u00e1 nh\u00e2n v\u00e0 gia d\u1ee5ngChemicals
: H\u00f3a ch\u1ea5tBanks
: Ng\u00e2n h\u00e0ngAutomobiles & Parts
: \u00d4 t\u00f4 v\u00e0 ph\u1ee5 t\u00f9ngBasic Resources
: T\u00e0i nguy\u00ean c\u01a1 b\u1ea3nFood & Beverage
: Th\u1ef1c ph\u1ea9m v\u00e0 \u0111\u1ed3 u\u1ed1ngMedia
: Truy\u1ec1n th\u00f4ngTelecommunications
: Vi\u1ec5n th\u00f4ngConstruction & Materials
: X\u00e2y d\u1ef1ng v\u00e0 v\u1eadt li\u1ec7uHealth Care
: Y t\u1ebfmarketCap
: v\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddng c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng t\u1ef7 VND.priceNearRealtime
: gi\u00e1 hi\u1ec7n t\u1ea1i c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng VND.foreignVolumePercent
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m kh\u1ed1i l\u01b0\u1ee3ng n\u01b0\u1edbc ngo\u00e0i trong t\u1ed5ng kh\u1ed1i l\u01b0\u1ee3ng.alpha
: l\u1ee3i nhu\u1eadn v\u01b0\u1ee3t tr\u1ed9i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi l\u1ee3i nhu\u1eadn th\u1ecb tr\u01b0\u1eddng.beta
: \u0111\u1ed9 bi\u1ebfn \u0111\u1ed9ng c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng.freeTransferRate
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m c\u1ed5 phi\u1ebfu c\u00f3 th\u1ec3 chuy\u1ec3n nh\u01b0\u1ee3ng t\u1ef1 do.revenueGrowth1Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong n\u0103m qua.revenueGrowth5Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trung b\u00ecnh trong 5 n\u0103m qua.epsGrowth1Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu trong n\u0103m qua.epsGrowth5Year
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu trung b\u00ecnh trong 5 n\u0103m qua.lastQuarterRevenueGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong qu\u00fd g\u1ea7n nh\u1ea5t.secondQuarterRevenueGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng doanh thu trong qu\u00fd th\u1ee9 hai.lastQuarterProfitGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn trong qu\u00fd g\u1ea7n nh\u1ea5t.secondQuarterProfitGrowth
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng l\u1ee3i nhu\u1eadn trong qu\u00fd th\u1ee9 hai.grossMargin
: t\u1ef7 su\u1ea5t l\u1ee3i nhu\u1eadn g\u1ed9p c\u1ee7a c\u1ed5 phi\u1ebfu.netMargin
: t\u1ef7 su\u1ea5t l\u1ee3i nhu\u1eadn r\u00f2ng c\u1ee7a c\u1ed5 phi\u1ebfu.roe
: t\u1ef7 su\u1ea5t sinh l\u1eddi v\u1ec1 v\u1ed1n ch\u1ee7 s\u1edf h\u1eefu c\u1ee7a c\u1ed5 phi\u1ebfu.doe
: t\u1ef7 su\u1ea5t c\u1ed5 t\u1ee9c v\u1ec1 v\u1ed1n ch\u1ee7 s\u1edf h\u1eefu c\u1ee7a c\u1ed5 phi\u1ebfu.dividendYield
: t\u1ef7 su\u1ea5t c\u1ed5 t\u1ee9c c\u1ee7a c\u1ed5 phi\u1ebfu.eps
: l\u1ee3i nhu\u1eadn tr\u00ean m\u1ed7i c\u1ed5 phi\u1ebfu c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng VND.pe
: t\u1ef7 s\u1ed1 gi\u00e1/l\u1ee3i nhu\u1eadn c\u1ee7a c\u1ed5 phi\u1ebfu.pb
: t\u1ef7 s\u1ed1 gi\u00e1/gi\u00e1 tr\u1ecb s\u1ed5 s\u00e1ch c\u1ee7a c\u1ed5 phi\u1ebfu.evEbitda
: t\u1ef7 s\u1ed1 gi\u00e1 tr\u1ecb doanh nghi\u1ec7p/l\u1ee3i nhu\u1eadn tr\u01b0\u1edbc thu\u1ebf, l\u00e3i vay, kh\u1ea5u hao v\u00e0 amortization c\u1ee7a c\u1ed5 phi\u1ebfu.netCashPerMarketCap
: t\u1ef7 s\u1ed1 ti\u1ec1n m\u1eb7t r\u00f2ng/v\u1ed1n h\u00f3a th\u1ecb tr\u01b0\u1eddng c\u1ee7a c\u1ed5 phi\u1ebfu.netCashPerTotalAssets
: t\u1ef7 s\u1ed1 ti\u1ec1n m\u1eb7t r\u00f2ng/t\u1ed5ng t\u00e0i s\u1ea3n c\u1ee7a c\u1ed5 phi\u1ebfu.profitForTheLast4Quarters
: t\u1ed5ng l\u1ee3i nhu\u1eadn trong 4 qu\u00fd g\u1ea7n nh\u1ea5t c\u1ee7a c\u1ed5 phi\u1ebfu t\u00ednh b\u1eb1ng t\u1ef7 VND.suddenlyHighVolumeMatching
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 t\u0103ng \u0111\u1ed9t bi\u1ebfn kh\u1ed1i l\u01b0\u1ee3ng kh\u1edbp l\u1ec7nh cho c\u1ed5 phi\u1ebfu n\u00e0y. 0 ngh\u0129a l\u00e0 kh\u00f4ng, 1 ngh\u0129a l\u00e0 c\u00f3.totalTradingValue
: t\u1ed5ng gi\u00e1 tr\u1ecb giao d\u1ecbch c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND h\u00f4m nay.avgTradingValue5Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 5 ng\u00e0y.avgTradingValue10Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 10 ng\u00e0y.avgTradingValue20Day
: gi\u00e1 tr\u1ecb giao d\u1ecbch trung b\u00ecnh c\u1ee7a c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 20 ng\u00e0y.priceGrowth1Week
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng gi\u00e1 c\u1ee7a c\u1ed5 phi\u1ebfu trong tu\u1ea7n qua.priceGrowth1Month
: t\u1ed1c \u0111\u1ed9 t\u0103ng tr\u01b0\u1edfng gi\u00e1 c\u1ee7a c\u1ed5 phi\u1ebfu trong th\u00e1ng qua.percent1YearFromPeak
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 cao nh\u1ea5t trong 1 n\u0103m.percentAwayFromHistoricalPeak
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 cao nh\u1ea5t l\u1ecbch s\u1eed.percent1YearFromBottom
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 th\u1ea5p nh\u1ea5t trong 1 n\u0103m.percentOffHistoricalBottom
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m thay \u0111\u1ed5i c\u1ee7a c\u1ed5 phi\u1ebfu t\u1eeb gi\u00e1 th\u1ea5p nh\u1ea5t l\u1ecbch s\u1eed.priceVsSMA5
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 5 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSma10
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 10 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSMA20
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 20 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSma50
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 50 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.priceVsSMA100
: m\u1ed1i quan h\u1ec7 gi\u1eefa gi\u00e1 hi\u1ec7n t\u1ea1i v\u00e0 SMA 100 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 ABOVE
, BELOW
, CROSS_ABOVE
, ho\u1eb7c CROSS_BELOW
.forecastVolumeRatio
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng d\u1ef1 b\u00e1o v\u00e0 kh\u1ed1i l\u01b0\u1ee3ng th\u1ef1c t\u1ebf c\u1ee7a c\u1ed5 phi\u1ebfu h\u00f4m nay.volumeVsVSma5
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 5 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma10
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 10 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma20
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 20 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.volumeVsVSma50
: t\u1ef7 s\u1ed1 gi\u1eefa kh\u1ed1i l\u01b0\u1ee3ng hi\u1ec7n t\u1ea1i v\u00e0 SMA kh\u1ed1i l\u01b0\u1ee3ng 50 ng\u00e0y c\u1ee7a c\u1ed5 phi\u1ebfu.strongBuyPercentage
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m t\u00edn hi\u1ec7u mua m\u1ea1nh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt.activeBuyPercentage
: t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m t\u00edn hi\u1ec7u mua t\u00edch c\u1ef1c cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt.foreignTransaction
: lo\u1ea1i giao d\u1ecbch n\u01b0\u1edbc ngo\u00e0i cho c\u1ed5 phi\u1ebfu n\u00e0y h\u00f4m nay. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 buyMoreThanSell
, sellMoreThanBuy
, ho\u1eb7c noTransaction
.foreignBuySell20Session
: gi\u00e1 tr\u1ecb mua b\u00e1n r\u00f2ng n\u01b0\u1edbc ngo\u00e0i cho c\u1ed5 phi\u1ebfu n\u00e0y t\u00ednh b\u1eb1ng t\u1ef7 VND trong 20 phi\u00ean.numIncreaseContinuousDay
: s\u1ed1 ng\u00e0y li\u00ean ti\u1ebfp c\u1ed5 phi\u1ebfu n\u00e0y t\u0103ng gi\u00e1.numDecreaseContinuousDay
: s\u1ed1 ng\u00e0y li\u00ean ti\u1ebfp c\u1ed5 phi\u1ebfu n\u00e0y gi\u1ea3m gi\u00e1.rsi14
: ch\u1ec9 s\u1ed1 s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i (RSI) c\u1ee7a c\u1ed5 phi\u1ebfu v\u1edbi chu k\u1ef3 14 ng\u00e0y.rsi14Status
: tr\u1ea1ng th\u00e1i c\u1ee7a RSI cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 intoOverBought
, intoOverSold
, outOfOverBought
, ho\u1eb7c outOfOverSold
.tcbsBuySellSignal
: t\u00edn hi\u1ec7u mua b\u00e1n cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.priceBreakOut52Week
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 \u0111\u1ed9t ph\u00e1 gi\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y trong 52 tu\u1ea7n. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BREAK_OUT
ho\u1eb7c NO_BREAK_OUT
.priceWashOut52Week
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 s\u1ef1 r\u1eeda gi\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y trong 52 tu\u1ea7n. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 WASH_OUT
ho\u1eb7c NO_WASH_OUT
.macdHistogram
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u MACD histogram cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 macdHistGT0Increase
, macdHistGT0Decrease
, macdHistLT0Increase
, ho\u1eb7c macdHistLT0Decrease
.relativeStrength3Day
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 3 ng\u00e0y.relativeStrength1Month
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 1 th\u00e1ng.relativeStrength3Month
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 3 th\u00e1ng.relativeStrength1Year
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng trong 1 n\u0103m.tcRS
: s\u1ee9c m\u1ea1nh t\u01b0\u01a1ng \u0111\u1ed1i c\u1ee7a TCBS c\u1ee7a c\u1ed5 phi\u1ebfu so v\u1edbi th\u1ecb tr\u01b0\u1eddng.sarVsMacdHist
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u SAR vs MACD histogram cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.bollingBandSignal
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u Bollinger Band cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.dmiSignal
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u ch\u1ec9 s\u1ed1 chuy\u1ec3n \u0111\u1ed9ng h\u01b0\u1edbng (DMI) cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.uptrend
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u xu h\u01b0\u1edbng t\u0103ng cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 buy-signal
ho\u1eb7c sell-signal
.breakout
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 t\u00edn hi\u1ec7u \u0111\u1ed9t ph\u00e1 cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BULLISH
ho\u1eb7c BEARISH
.tcbsRecommend
: t\u00edn hi\u1ec7u ch\u1ec9 ra n\u1ebfu c\u00f3 khuy\u1ebfn ngh\u1ecb c\u1ee7a TCBS cho c\u1ed5 phi\u1ebfu n\u00e0y. C\u00e1c gi\u00e1 tr\u1ecb c\u00f3 th\u1ec3 l\u00e0 BUY
ho\u1eb7c SELL
.stockRating
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 c\u1ed5 phi\u1ebfu cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.businessModel
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 m\u00f4 h\u00ecnh kinh doanh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.businessOperation
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 ho\u1ea1t \u0111\u1ed9ng kinh doanh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.financialHealth
: \u0111i\u1ec3m \u0111\u00e1nh gi\u00e1 s\u1ee9c kh\u1ecfe t\u00e0i ch\u00ednh cho c\u1ed5 phi\u1ebfu n\u00e0y d\u1ef1a tr\u00ean ph\u00e2n t\u00edch c\u1ee7a TCBS. \u0110i\u1ec3m t\u1eeb 1 \u0111\u1ebfn 5, v\u1edbi 5 l\u00e0 t\u1ed1t nh\u1ea5t.L\u01b0u \u00fd
Phi\u00ean b\u1ea3n API hi\u1ec7n t\u1ea1i cho ph\u00e9p truy c\u1eadp gi\u00e1 l\u1ecbch s\u1eed t\u1ed1i \u0111a \u0111\u1ebfn ng\u00e0y 2012-03-20 \u0111\u1ed1i v\u1edbi t\u1ea5t c\u1ea3 m\u00e3 c\u1ed5 phi\u1ebfu. N\u1ebfu b\u1ea1n c\u00f3 nhu c\u1ea7u l\u1ea5y l\u1ecbch s\u1eed gi\u00e1 t\u1eeb th\u1eddi \u0111i\u1ec3m th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n b\u1eaft \u0111\u1ea7u ho\u1ea1t \u0111\u1ed9ng (REE l\u00e0 m\u00e3 c\u1ed5 phi\u1ebfu c\u00f3 giao d\u1ecbch s\u1edbm nh\u1ea5t th\u1ecb tr\u01b0\u1eddng v\u00e0o 2000-07-31), h\u00e3y tham gia nh\u00f3m th\u00e0nh vi\u00ean vnstock tr\u00ean Facebook \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3. Xem th\u00eam chi ti\u1ebft t\u1ea1i FAQ.
vnstock cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng t\u1ea3i xu\u1ed1ng d\u1eef li\u1ec7u l\u1ecbch s\u1eed giao d\u1ecbch c\u1ee7a m\u00e3 c\u1ed5 phi\u1ebfu, ch\u1ec9 s\u1ed1, h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh
.
D\u1eef li\u1ec7u h\u1ed7 tr\u1ee3 7 m\u1ee9c \u0111\u1ed9 chi ti\u1ebft theo kho\u1ea3ng th\u1eddi gian bao g\u1ed3m: 1 ph\u00fat, 3 ph\u00fat, 5 ph\u00fat, 15 ph\u00fat, 30 ph\u00fat, 1 gi\u1edd, 1 ng\u00e0y.
Tr\u01b0\u1eddng d\u1eef li\u1ec7u time
s\u1ebd l\u00e0 gi\u00e1 tr\u1ecb ng\u00e0y th\u00e1ng YYYY-mm-dd
n\u1ebfu resolution
nh\u1eadp v\u00e0o l\u00e0 1D
, trong khi resolution
l\u00e0 c\u1ea5p \u0111\u1ed9 ph\u00fat v\u00e0 gi\u1edd s\u1ebd cho th\u00eam th\u00f4ng tin th\u1eddi gian gi\u1edd/ph\u00fat.
\u0110\u01a1n v\u1ecb gi\u00e1 OHLC cho m\u00e3 c\u1ed5 phi\u1ebfu \u0111\u01b0\u1ee3c l\u00e0m tr\u00f2n theo m\u1eb7c \u0111\u1ecbnh, ch\u1ec9 l\u1ea5y ph\u1ea7n nguy\u00ean. \u0110\u01a1n v\u1ecb t\u00ednh l\u00e0 VND. B\u1ea1n c\u00f3 th\u1ec3 t\u1eaft t\u00ednh n\u0103ng l\u00e0m tr\u00f2n b\u1eb1ng tham s\u1ed1 beautify=False
.
Trong v\u00ed d\u1ee5 d\u01b0\u1edbi \u0111\u00e2y, d\u1eef li\u1ec7u gi\u00e1 \u0111\u01b0\u1ee3c truy xu\u1ea5t theo c\u1ea5p \u0111\u1ed9 ng\u00e0y.
df = stock_historical_data(symbol='GMD', \n start_date=\"2021-01-01\", \n end_date='2022-02-25', resolution='1D', type='stock', beautify=True, decor=False, source='DNSE')\nprint(df)\n
L\u01b0u \u00fd: \u0110\u1ed1i v\u1edbi khung th\u1eddi gian (resolution) nh\u1ecf h\u01a1n 1 ng\u00e0y (1D), API n\u00e0y (do DNSE cung c\u1ea5p) ch\u1ec9 cho ph\u00e9p truy ng\u01b0\u1ee3c l\u1ea1i trong kho\u1ea3ng th\u1eddi gian 90 ng\u00e0y. B\u1ea1n c\u00f3 th\u1ec3 g\u1eb7p l\u1ed7i khi c\u1ed1 g\u1eafng l\u1ea5y d\u1eef li\u1ec7u c\u0169 h\u01a1n trong th\u1eddi gian d\u00e0i h\u01a1n.
Gi\u00e1 tr\u1ecb m\u00e0 tham s\u1ed1 resolution
c\u00f3 th\u1ec3 nh\u1eadn l\u00e0 1D
(m\u1eb7c \u0111\u1ecbnh, 1 ng\u00e0y), '1' (1 ph\u00fat), 3 (3 ph\u00fat), 5 (5 ph\u00fat), 15 (15 ph\u00fat), 30 (30 ph\u00fat), '1H' (h\u00e0ng gi\u1edd).
type = 'stock'
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u gi\u00e1 c\u1ee7a m\u00e3 c\u1ed5 c\u1ed5 phi\u1ebfu, type = 'index'
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u gi\u00e1 c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1, v\u00e0 type='derivative
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u ph\u00e1i sinh. C\u00e1c m\u00e3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 bao g\u1ed3m (nh\u01b0ng kh\u00f4ng gi\u1edbi h\u1ea1n): VNINDEX, VN30, HNX, HNX30, UPCOM, VNXALLSHARE, VN30F1M, VN30F2M, VN30F1Q, VN30F2Qbeautify=True
cho ph\u00e9p l\u00e0m tr\u00f2n gi\u00e1 tr\u1ecb OHLC theo m\u1eb7c \u0111\u1ecbnh (nh\u00e2n v\u1edbi 1000, v\u00ed d\u1ee5 gi\u00e1 32.05 th\u00e0nh 32500). \u0110\u1eb7t beautify=False
\u0111\u1ec3 t\u1eaft ch\u1ebf \u0111\u1ed9 l\u00e0m tr\u00f2n cho c\u1ed5 phi\u1ebfu. V\u1edbi m\u00e3 ch\u1ec9 s\u1ed1, gi\u00e1 tr\u1ecb tr\u1ea3 v\u1ec1 lu\u00f4n l\u00e0 s\u1ed1 th\u1eadp ph\u00e2n nguy\u00ean b\u1ea3n.decor=True
: \u00e1p d\u1ee5ng thay t\u00ean c\u00e1c c\u1ed9t trong DataFrame tr\u1ea3 v\u1ec1 d\u01b0\u1edbi d\u1ea1ng Title Case t\u1ee9c Open, High, Low, Close, Time, Ticker
thay v\u00ec open, high, low, close, time, ticker
nh\u01b0 hi\u1ec7n t\u1ea1i \u0111\u1ed3ng th\u1eddi \u0111\u1eb7t c\u1ed9t Time l\u00e0 index. Vi\u1ec7c n\u00e0y gi\u1ea3m b\u1edbt cho ng\u01b0\u1eddi d\u00f9ng ph\u1ea3i vi\u1ebft th\u00eam c\u00e2u l\u1ec7nh khi s\u1eed d\u1ee5ng d\u1eef li\u1ec7u vnstock k\u1ebft h\u1ee3p c\u00e1c th\u01b0 vi\u1ec7n ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt ph\u1ed5 bi\u1ebfn v\u1ed1n d\u00f9ng th\u01b0 vi\u1ec7n Yahoo Finance l\u00e0m ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u. Gi\u00e1 tr\u1ecb m\u1eb7c \u0111\u1ecbnh l\u00e0 False
.
source='DNSE'
(kh\u00f4ng ph\u00e2n bi\u1ec7t ch\u1eef th\u01b0\u1eddng hay in hoa):
TCBS
cho l\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed theo ng\u00e0y (resolution = 1D
) trong th\u1eddi gian d\u00e0i, kh\u00f4ng h\u1ed7 tr\u1ee3 khung th\u1eddi gian nh\u1ecf h\u01a1n.VND
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u trong v\u00f2ng 10 n\u0103m g\u1ea7n nh\u1ea5t cho resolution = 1D
. T\u00f9y ch\u1ecdn n\u00e0y ch\u1ec9 \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng v\u1edbi ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
.SSI
, HSC
cho ph\u00e9p l\u1ea5y d\u1eef li\u1ec7u t\u1eeb n\u0103m 2000 cho resolution = 1D
v\u1edbi t\u1ed1c \u0111\u1ed9 truy c\u1eadp nhanh ch\u00f3ng trong 1 truy v\u1ea5n duy nh\u1ea5t. T\u00f9y ch\u1ecdn n\u00e0y ch\u1ec9 \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng v\u1edbi ng\u01b0\u1eddi d\u00f9ng T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n v\u00e0 s\u1eed d\u1ee5ng g\u00f3i th\u01b0 vi\u1ec7n b\u1ed5 sung vnstock-data-pro
.B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 vi\u1ebft h\u00e0m theo d\u1ea1ng r\u00fat g\u1ecdn nh\u01b0 d\u01b0\u1edbi \u0111\u00e2y, \u0111i\u1ec1u n\u00e0y \u0111\u00fang v\u1edbi t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m, mi\u1ec5n l\u00e0 th\u00f4ng s\u1ed1 \u0111\u01b0\u1ee3c nh\u1eadp v\u00e0o \u0111\u00fang th\u1ee9 t\u1ef1:
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ed5 phi\u1ebfu
df = stock_historical_data(\"GMD\", \"2021-01-01\", \"2022-02-25\", \"1D\", 'stock')\nprint(df)\n
V\u00e0 \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3
time open high low close volume\n0 2021-01-04 32182.0 33157.0 31987.0 32279.0 4226500\n1 2021-01-05 32279.0 33596.0 31938.0 32962.0 4851900\n2 2021-01-06 33352.0 33352.0 32279.0 32572.0 3641300\n
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1
df = stock_historical_data(\"VNINDEX\", \"2021-01-01\", \"2022-02-25\", \"1D\", 'index')\nprint(df)\n
L\u1ea5y d\u1eef li\u1ec7u l\u1ecbch s\u1eed c\u1ee7a h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh
df = stock_historical_data(\"VN30F1M\", \"2023-07-01\", \"2023-07-24\", \"1D\", 'derivative')\nprint(df)\n
vnstock cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng t\u1ea3i xu\u1ed1ng d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh trong ng\u00e0y giao d\u1ecbch theo th\u1eddi gian th\u1ef1c. N\u1ebfu m\u1ed1c th\u1eddi gian b\u1ea1n truy c\u1ee9u r\u01a1i v\u00e0o Th\u1ee9 B\u1ea3y, Ch\u1ee7 Nh\u1eadt th\u00ec d\u1eef li\u1ec7u nh\u1eadn \u0111\u01b0\u1ee3c th\u1ec3 hi\u1ec7n cho ng\u00e0y giao d\u1ecbch c\u1ee7a Th\u1ee9 6 c\u1ee7a tu\u1ea7n \u0111\u00f3.
df = stock_intraday_data(symbol='TCB', \n page_size=500, investor_segment=True)\nprint(df)\n
Trong \u0111\u00f3:
page_size
: nh\u1eadn gi\u00e1 tr\u1ecb t\u00f9y \u00fd nh\u1ecf h\u01a1n 100 ho\u1eb7c b\u1ed9i s\u1ed1 c\u1ee7a 100. V\u00ed d\u1ee5 ch\u1ecdn 1000 s\u1ebd cho ph\u00e9p l\u1ea5y h\u1ea7u h\u1ebft d\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh trong ng\u00e0y giao d\u1ecbch v\u1edbi \u0111a s\u1ed1 m\u00e3 c\u1ed5 phi\u1ebfu.investor_segment
: m\u1eb7c \u0111\u1ecbnh nh\u1eadn gi\u00e1 tr\u1ecb True
, cho ph\u00e9p ph\u00e2n lo\u1ea1i nh\u00e0 \u0111\u1ea7u t\u01b0 theo C\u00e1 M\u1eadp, C\u1eebu Non hay S\u00f3i gi\u00e0. \u0110\u1eb7t gi\u00e1 tr\u1ecb False
\u0111\u1ec3 b\u1ecf qua b\u01b0\u1edbc ph\u00e2n lo\u1ea1i n\u00e0y, hi\u1ec3n th\u1ecb t\u1ea5t c\u1ea3 c\u00e1c l\u1ec7nh kh\u1edbp d\u01b0\u1edbi d\u1ea1ng d\u1eef li\u1ec7u th\u00f4. C\u1eadp nh\u1eadt n\u00e0y \u00e1p d\u1ee5ng t\u1eeb phi\u00ean b\u1ea3n 0.2.8.4K\u1ebft qu\u1ea3:
>>> stock_intraday_data (symbol='ACB', page_size=10, investor_segment=False)\n ticker time orderType volume price prevPriceChange\n0 ACB 14:45:00 211500 22550.0 -100.0\n1 ACB 14:29:53 BU 1000 22650.0 0.0\n2 ACB 14:29:38 BU 100 22650.0 0.0\n3 ACB 14:28:34 BU 300 22650.0 50.0\n4 ACB 14:28:15 SD 1200 22600.0 0.0\n5 ACB 14:28:15 SD 300 22600.0 0.0\n6 ACB 14:28:15 SD 400 22600.0 0.0\n7 ACB 14:28:15 SD 300 22600.0 0.0\n8 ACB 14:28:15 SD 100 22600.0 0.0\n9 ACB 14:28:15 SD 200 22600.0 0.0\n
>>> stock_intraday_data (symbol='ACB', page_size=10, investor_segment=True)\n ticker time orderType investorType volume averagePrice orderCount prevPriceChange\n0 ACB 14:29:54 Buy Up SHEEP 1000 22650.0 1 0.0\n1 ACB 14:29:39 Buy Up SHEEP 100 22650.0 1 0.0\n2 ACB 14:28:34 Buy Up SHEEP 300 22650.0 1 50.0\n3 ACB 14:28:16 Sell Down SHEEP 7000 22600.0 29 -50.0\n4 ACB 14:28:11 Buy Up SHEEP 200 22650.0 1 0.0\n5 ACB 14:27:43 Buy Up SHEEP 1000 22650.0 1 50.0\n6 ACB 14:27:28 Sell Down SHEEP 3200 22600.0 2 0.0\n7 ACB 14:26:38 Sell Down SHEEP 300 22600.0 1 -50.0\n8 ACB 14:26:36 Buy Up SHEEP 100 22650.0 1 0.0\n9 ACB 14:26:21 Buy Up SHEEP 3000 22650.0 1 50.0\n
Gi\u1ea3i th\u00edch \u00fd ngh\u0129a ch\u1ec9 s\u1ed1
Khi 1 l\u1ec7nh l\u1edbn (t\u1eeb C\u00e1 m\u1eadp, tay to, t\u1ed5 ch\u1ee9c....) mua ch\u1ee7 \u0111\u1ed9ng (ho\u1eb7c b\u00e1n ch\u1ee7 \u0111\u1ed9ng) \u0111\u01b0\u1ee3c \u0111\u01b0a v\u00e0o S\u00e0n, th\u01b0\u1eddng th\u00ec n\u00f3 s\u1ebd \u0111\u01b0\u1ee3c kh\u1edbp v\u1edbi nhi\u1ec1u l\u1ec7nh nh\u1ecf \u0111ang ch\u1edd b\u00e1n (ho\u1eb7c ch\u1edd mua). N\u1ebfu ch\u1ec9 nh\u00ecn realtime theo t\u1eebng l\u1ec7nh kh\u1edbp ri\u00eang l\u1ebb, th\u00ec s\u1ebd kh\u00f4ng th\u1ec3 ph\u00e1t hi\u1ec7n \u0111\u01b0\u1ee3c c\u00e1c l\u1ec7nh to (c\u1ee7a C\u00e1 m\u1eadp, tay to...) v\u1eeba \u0111\u01b0\u1ee3c \u0111\u1ea9y v\u00e0o S\u00e0n. V\u00ec v\u1eady, ch\u00fang t\u00f4i \"c\u1ed9ng d\u1ed3n\" c\u00e1c l\u1ec7nh kh\u1edbp n\u00e0y l\u1ea1i (ph\u00e1t sinh b\u1edfi 1 l\u1ec7nh l\u1edbn ch\u1ee7 \u0111\u1ed9ng v\u00e0o s\u00e0n trong 1 kho\u1ea3ng th\u1eddi gian r\u1ea5t nhanh) \u0111\u1ec3 gi\u00fap N\u0110T ph\u00e1t hi\u1ec7n c\u00e1c l\u1ec7nh l\u1edbn (c\u1ee7a C\u00e1 m\u1eadp, tay to....) ch\u00ednh x\u00e1c h\u01a1n. L\u1ec7nh C\u00e1 m\u1eadp s\u1ebd \u0111\u01b0\u1ee3c t\u00f4 xanh (cho Mua ch\u1ee7 \u0111\u1ed9ng) v\u00e0 \u0111\u1ecf (cho B\u00e1n ch\u1ee7 \u0111\u1ed9ng).
\u2022 C\u00e1 m\u1eadp: (CM - SHARK) nh\u00e0 \u0111\u1ea7u t\u01b0 tay to, t\u1ed5 ch\u1ee9c, \u0111\u1ea7u t\u01b0 l\u1edbn, d\u1eabn d\u1eaft th\u1ecb tr\u01b0\u1eddng. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t > 1 t\u1ef7 \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t. \u0110\u1ed3 th\u1ecb 1N d\u00f9ng s\u1ed1 li\u1ec7u 1 ph\u00fat cho 60\u2019 g\u1ea7n nh\u1ea5t; 1W l\u00e0 t\u1ed5ng m\u1ed7i 15\u2019 cho 1 tu\u1ea7n; 1M l\u00e0 t\u1ed5ng h\u00e0ng ng\u00e0y cho 1 th\u00e1ng
\u2022 S\u00f3i gi\u00e0: (SG - WOLF) nh\u00e0 \u0111\u1ea7u t\u01b0 kinh nghi\u1ec7m, gi\u00e1 tr\u1ecb l\u1ec7nh \u0111\u1eb7t cao. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t t\u1eeb 200 tr \u0111\u1ebfn 1 t\u1ef7 \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t.
\u2022 C\u1eebu non: (CN - SHEEP) nh\u00e0 \u0111\u1ea7u t\u01b0 nh\u1ecf l\u1ebb, gi\u00e1 tr\u1ecb giao d\u1ecbch v\u00e0 mua b\u00e1n ch\u1ee7 \u0111\u1ed9ng th\u1ea5p. Gi\u00e1 tr\u1ecb 1 l\u1ec7nh \u0111\u1eb7t Mua ho\u1eb7c B\u00e1n ch\u1ee7 \u0111\u1ed9ng < 200 tri\u1ec7u \u0111\u1ed3ng/l\u1ec7nh \u0111\u1eb7t v\u00e0o.
\u2022 Mua ch\u1ee7 \u0111\u1ed9ng (hay Buy Up) l\u00e0 khi N\u0110T th\u1ef1c hi\u1ec7n ch\u1ee7 \u0111\u1ed9ng mua l\u00ean qua vi\u1ec7c \u0111\u1eb7t l\u1ec7nh mua v\u1edbi gi\u00e1 b\u1eb1ng gi\u00e1 d\u01b0 b\u00e1n g\u1ea7n nh\u1ea5t \u0111\u1ec3 c\u00f3 th\u1ec3 kh\u1edbp lu\u00f4n. Nh\u01b0 th\u1ebf, gi\u00e1 kh\u1edbp cho l\u1ec7nh n\u00e0y th\u01b0\u1eddng s\u1ebd \u0111\u1ea9y gi\u00e1 kh\u1edbp l\u00ean cao h\u01a1n th\u1ecb gi\u00e1 tr\u01b0\u1edbc \u0111\u00f3.
\u2022 B\u00e1n ch\u1ee7 \u0111\u1ed9ng (hay Sell Down) l\u00e0 khi N\u0110T th\u1ef1c hi\u1ec7n ch\u1ee7 \u0111\u1ed9ng B\u00e1n d\u01b0\u1edbi gi\u00e1 hi\u1ec7n t\u1ea1i (hay th\u1ecb gi\u00e1) c\u1ee7a c\u1ed5 phi\u1ebfu b\u1eb1ng vi\u1ec7c \u0111\u1eb7t l\u1ec7nh b\u00e1n v\u1edbi gi\u00e1 b\u00e1n b\u1eb1ng gi\u00e1 d\u01b0 mua g\u1ea7n nh\u1ea5t \u0111\u1ec3 kh\u1edbp ngay. V\u00e0 nh\u01b0 th\u1ebf, th\u1ecb gi\u00e1 s\u1ebd b\u1ecb k\u00e9o xu\u1ed1ng th\u1ea5p h\u01a1n so v\u1edbi th\u1ecb gi\u00e1 tr\u01b0\u1edbc \u0111\u00f3. Th\u1ed1ng k\u00ea kh\u1ed1i l\u01b0\u1ee3ng giao dich theo Mua C\u0110 v\u00e0 B\u00e1n C\u0110 d\u00f9ng \u0111\u1ec3 \u0111\u00e1nh gi\u00e1 t\u01b0\u01a1ng quan gi\u1eefa cung (B\u00e1n C\u0110) v\u00e0 c\u1ea7u (Mua C\u0110) tr\u00ean giao d\u1ecbch kh\u1edbp l\u1ec7nh th\u1ef1c t\u1ebf, nh\u1eb1m nh\u1eadn \u0111\u1ecbnh t\u01b0\u01a1ng \u0111\u1ed1i v\u1ec1 s\u1ef1 v\u1eadn \u0111\u1ed9ng c\u1ee7a xu h\u01b0\u1edbng d\u00f2ng ti\u1ec1n. Khi t\u1ef7 l\u1ec7 % Mua C\u0110 tr\u00ean (T\u1ed5ng Mua v\u00e0 B\u00e1n C\u0110) l\u1edbn h\u01a1n 50%, \u0111\u1ed3ng ngh\u0129a v\u1edbi vi\u1ec7c th\u1ecb tr\u01b0\u1eddng \u0111ang c\u00f3 xu h\u01b0\u1edbng mua v\u00e0o nhi\u1ec1u h\u01a1n b\u00e1n ra v\u00e0 ng\u01b0\u1ee3c l\u1ea1i, qua \u0111\u00f3 x\u00e1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c d\u00f2ng ti\u1ec1n v\u00e0o/ra v\u1edbi m\u1ed7i c\u1ed5 phi\u1ebfu. Khi t\u1ef7 l\u1ec7 n\u00e0y cao \u0111\u1ed9t bi\u1ebfn (>70% hay <30%) so v\u1edbi \u0111i\u1ec3m c\u00e2n b\u1eb1ng (50%) , \u0111\u00f3 l\u00e0 t\u00edn hi\u1ec7u c\u1ee7a vi\u1ec7c mua ho\u1eb7c b\u00e1n b\u1ea5t ch\u1ea5p c\u1ee7a th\u1ecb tr\u01b0\u1eddng.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/","title":"Insiders Program","text":""},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#gioi-thieu","title":"Gi\u1edbi thi\u1ec7u","text":"Gi\u1edbi thi\u1ec7u
Vnstock Insiders Program l\u00e0 ch\u01b0\u01a1ng tr\u00ecnh d\u00e0nh ri\u00eang cho c\u00e1c nh\u00e0 t\u00e0i tr\u1ee3 v\u00e0 ng\u01b0\u1eddi d\u00f9ng th\u00e2n thi\u1ebft c\u1ee7a Vsntock. Ch\u01b0\u01a1ng tr\u00ecnh n\u00e0y cung c\u1ea5p c\u00e1c t\u00ednh n\u0103ng \u0111\u1ed9c quy\u1ec1n,\u00a0\u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n m\u00e3 ngu\u1ed3n trong kho ch\u1ee9a ri\u00eang (private repo). C\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef m\u00e3 ngu\u1ed3n ri\u00eang bi\u1ec7t v\u1edbi th\u01b0 vi\u1ec7n ch\u00ednh vnstock
nh\u01b0ng c\u00e1c ch\u1ee9c n\u0103ng \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n theo h\u01b0\u1edbng b\u1ed5 tr\u1ee3 (add-on) v\u00e0 t\u01b0\u01a1ng th\u00edch t\u1ed1t v\u1edbi vnstock.
V\u1edbi t\u01b0 c\u00e1ch th\u00e0nh vi\u00ean c\u1ee7a ch\u01b0\u01a1ng tr\u00ecnh Vnstock Insiders,\u00a0b\u1ea1n s\u1ebd l\u00e0 ng\u01b0\u1eddi \u0111\u1ea7u ti\u00ean tr\u1ea3i nghi\u1ec7m nh\u1eefng t\u00ednh n\u0103ng m\u1edbi \u0111\u1ed9t ph\u00e1, ph\u1ea7n m\u1ec1m ch\u1ea5t l\u01b0\u1ee3ng cao/d\u1eef li\u1ec7u c\u00f3 t\u00ednh ch\u00ednh x\u00e1c cao \u0111\u1ed3ng th\u1eddi tham gia \u0111\u1ecbnh h\u01b0\u1edbng cho t\u01b0\u01a1ng lai c\u1ee7a vnstock.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#cach-thuc-tham-gia","title":"C\u00e1ch th\u1ee9c tham gia","text":"C\u00f3 2 c\u00e1ch \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 tham gia ch\u01b0\u01a1ng tr\u00ecnh nh\u01b0 sau:
T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua t\u00ednh n\u0103ng Github Sponsor: B\u1ea1n ch\u1ecdn g\u00f3i t\u00e0i tr\u1ee3 h\u00e0ng th\u00e1ng ho\u1eb7c m\u1ed9t l\u1ea7n v\u00e0 tier (c\u1ea5p \u0111\u1ed9) t\u01b0\u01a1ng \u1ee9ng v\u1edbi c\u00e1c quy\u1ec1n l\u1ee3i b\u1ea1n mong mu\u1ed1n. V\u1edbi h\u00ecnh th\u1ee9c n\u00e0y, b\u1ea1n ch\u1ec9 c\u1ea7n d\u00f9ng th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf Visa/Master c\u1ee7a m\u00ecnh \u0111\u1ec3 t\u00e0i tr\u1ee3 th\u00f4ng qua c\u1ed5ng thanh to\u00e1n Stripe do Github cung c\u1ea5p. M\u1ecdi kho\u1ea3n t\u00e0i tr\u1ee3 c\u1ee7a b\u1ea1n v\u00e0 c\u1ed9ng \u0111\u1ed3ng \u0111\u01b0\u1ee3c th\u1ec3 hi\u1ec7n c\u00f4ng khai/minh b\u1ea1ch v\u00e0 b\u1ea3o v\u1ec7 quy\u1ec1n l\u1ee3i b\u1edfi Github. B\u1ea1n \u0111\u01b0\u1ee3c truy c\u1eadp v\u00e0o c\u00e1c repo ri\u00eang t\u01b0 ngay l\u1eadp t\u1ee9c sau khi thanh to\u00e1n m\u00e0 kh\u00f4ng c\u1ea7n tr\u1ea3i qua c\u00e1c b\u01b0\u1edbc duy\u1ec7t th\u1ee7 c\u00f4ng.
H\u01b0\u1edbng d\u1eabn t\u00e0i tr\u1ee3
N\u1ebfu b\u1ea1n kh\u00f4ng c\u00f3 th\u1ebb thanh to\u00e1n qu\u1ed1c t\u1ebf, h\u00e3y\u00a0nh\u1eafn tin cho Th\u1ecbnh\u00a0\u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 th\u1ef1c hi\u1ec7n thi\u1ebft l\u1eadp ph\u00e2n quy\u1ec1n th\u1ee7 c\u00f4ng.
Th\u00f4ng tin m\u00f4 t\u1ea3 quy\u1ec1n l\u1ee3i t\u01b0\u01a1ng \u1ee9ng c\u00e1c g\u00f3i t\u00e0i tr\u1ee3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt tr\u00ean trang th\u00f4ng tin t\u00e0i tr\u1ee3 Github t\u1ea1i \u0111\u00e2y
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#thoa-thuan-chinh-sach","title":"Th\u1ecfa thu\u1eadn & ch\u00ednh s\u00e1ch","text":""},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#tai-tro-hay-mua-giay-phep","title":"T\u00e0i tr\u1ee3 hay mua gi\u1ea5y ph\u00e9p?","text":"Ph\u00e2n bi\u1ec7t T\u00e0i tr\u1ee3 v\u00e0 Mua gi\u1ea5y ph\u00e9p s\u1ea3n ph\u1ea9m
Ch\u00fang t\u00f4i mu\u1ed1n r\u00f5 r\u00e0ng v\u00e0 minh b\u1ea1ch v\u1ec1 s\u1ef1 kh\u00e1c bi\u1ec7t gi\u1eefa Ch\u01b0\u01a1ng tr\u00ecnh T\u00e0i tr\u1ee3 cho D\u1ef1 \u00e1n tr\u00ean Github Sponsor v\u00e0 vi\u1ec7c b\u00e1n Gi\u1ea5y ph\u00e9p s\u1ea3n ph\u1ea9m th\u01b0\u01a1ng m\u1ea1i b\u1ea1n th\u01b0\u1eddng g\u1eb7p. \u0110i\u1ec1u n\u00e0y gi\u00fap minh b\u1ea1ch h\u00f3a ch\u01b0\u01a1ng tr\u00ecnh v\u00e0 tr\u00e1nh nh\u1eefng hi\u1ec3u l\u1ea7m kh\u00f4ng \u0111\u00e1ng c\u00f3 trong qu\u00e1 tr\u00ecnh tri\u1ec3n khai d\u1ef1 \u00e1n. Tuy b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf ra c\u00f9ng s\u1ed1 ti\u1ec1n \u0111\u1ec3 s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m, nh\u1eefng r\u00e0ng bu\u1ed9c v\u00e0 t\u00ednh ch\u1ea5t c\u1ee7a ho\u1ea1t \u0111\u1ed9ng t\u00e0i tr\u1ee3 hay mua/b\u00e1n c\u00f3 nh\u1eefng \u0111i\u1ec3m ho\u00e0n to\u00e0n kh\u00e1c bi\u1ec7t.
T\u00e0i tr\u1ee3 d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf tr\u00ean Github Sponsor l\u00e0 m\u1ed9t c\u00e1ch m\u00e0 b\u1ea1n v\u00e0 c\u1ed9ng \u0111\u1ed3ng c\u00f3 th\u1ec3 \u1ee7ng h\u1ed9 t\u00e0i ch\u00ednh \u0111\u1ec3 t\u00e1c gi\u1ea3 c\u00f3 th\u1ec3 ph\u00e1t tri\u1ec3n v\u00e0 duy tr\u00ec d\u1ef1 \u00e1n v\u1edbi m\u1ee5c \u0111\u00edch cung c\u1ea5p gi\u00e1 tr\u1ecb v\u00e0 quy\u1ec1n s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m t\u1edbi c\u1ed9ng \u0111\u1ed3ng nh\u00e0 t\u00e0i tr\u1ee3. V\u1edbi t\u01b0 c\u00e1ch l\u00e0 nh\u00e0 t\u00e0i tr\u1ee3, b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c nh\u1eefng \u01b0u \u0111\u00e3i \u0111\u1eb7c bi\u1ec7t nh\u01b0 truy c\u1eadp private repo (kho ch\u1ee9a m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0) hay tham gia c\u1ed9ng \u0111\u1ed3ng th\u00e0nh vi\u00ean c\u1ee7a vnstock, vv. Trong qu\u00e1 tr\u00ecnh tham gia t\u00e0i tr\u1ee3, d\u1ef1 \u00e1n c\u00f3 th\u1ec3 lu\u00f4n c\u00f3 nh\u1eefng c\u1eadp nh\u1eadt th\u01b0\u1eddng xuy\u00ean cho m\u00e3 ngu\u1ed3n \u0111\u1ec3 b\u1ea1n s\u1eed d\u1ee5ng nh\u01b0 nh\u1eefng ng\u01b0\u1eddi d\u00f9ng tr\u1ea3i nghi\u1ec7m.
Mua/b\u00e1n gi\u1ea5y ph\u00e9p S\u1ea3n ph\u1ea9m th\u01b0\u01a1ng m\u1ea1i l\u00e0 vi\u1ec7c b\u1ea1n b\u1ecf ra m\u1ed9t kho\u1ea3n ph\u00ed tr\u1ea3 cho nh\u00e0 ph\u00e1t h\u00e0nh s\u1ea3n ph\u1ea9m, \u0111\u1ed5i l\u1ea1i b\u1ea1n c\u00f3 quy\u1ec1n s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m (gi\u1ea5y ph\u00e9p) nh\u01b0 m\u1ed9t kh\u00e1ch h\u00e0ng v\u1edbi nh\u1eefng ti\u00eau chu\u1ea9n cao v\u1ec1 y\u00eau c\u1ea7u c\u1ee7a m\u1ed9t d\u1ecbch v\u1ee5 th\u01b0\u01a1ng m\u1ea1i.
L\u01b0u \u00fd
Vnstock ch\u1ec9 cung c\u1ea5p c\u00e1c gi\u1ea3i ph\u00e1p c\u00f4ng ngh\u1ec7 (th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh python) gi\u00fap b\u1ea1n k\u1ebft n\u1ed1i t\u1edbi ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u c\u00f4ng khai, h\u1ee3p l\u1ec7 m\u00e0 kh\u00f4ng ph\u00e2n ph\u1ed1i hay hay s\u1eed d\u1ee5ng b\u1ea5t k\u1ef3 d\u1eef li\u1ec7u n\u00e0o t\u1eeb b\u00ean th\u1ee9 3 cho m\u1ee5c \u0111\u00edch th\u01b0\u01a1ng m\u1ea1i t\u1edbi ng\u01b0\u1eddi d\u00f9ng.
"},{"location":"insiders-program/gioi-thieu-chuong-trinh-vnstock-insiders-program/#giay-phep-su-dung-san-pham","title":"Gi\u1ea5y ph\u00e9p s\u1eed d\u1ee5ng s\u1ea3n ph\u1ea9m","text":"Gi\u1ea5y ph\u00e9p
Trong m\u1ecdi tr\u01b0\u1eddng h\u1ee3p, t\u00e1c gi\u1ea3 c\u00f3 to\u00e0n quy\u1ec1n s\u1edf h\u1eefu s\u1ea3n ph\u1ea9m \u0111\u01b0\u1ee3c chia s\u1ebb t\u1edbi b\u1ea1n. L\u00e0 m\u1ed9t th\u00e0nh vi\u00ean c\u1ee7a Vnstock Insiders Program, b\u1ea1n \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng g\u00f3i ph\u1ea7n m\u1ec1m cho m\u1ee5c \u0111\u00edch c\u00e1 nh\u00e2n nh\u01b0ng kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p chia s\u1ebb, ph\u00e2n ph\u1ed1i l\u1ea1i s\u1ea3n ph\u1ea9m d\u01b0\u1edbi b\u1ea5t k\u1ef3 h\u00ecnh th\u1ee9c n\u00e0o. H\u01a1n n\u1eefa, m\u1ee9c t\u00e0i tr\u1ee3 r\u1ea5t linh ho\u1ea1t v\u00e0 ch\u1ec9 t\u01b0\u01a1ng \u0111\u01b0\u01a1ng 1 ly cafe, do \u0111\u00f3 n\u1ebfu ai \u0111\u00f3 xin chia s\u1ebb ho\u1eb7c b\u1ea1n mu\u1ed1n gi\u1edbi thi\u1ec7u th\u00ec b\u1ea1n b\u00e8 c\u1ee7a b\u1ea1n ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n th\u00f4ng qua t\u00e0i tr\u1ee3 ch\u00ednh th\u1ee9c. T\u00f4n tr\u1ecdng b\u1ea3n quy\u1ec1n t\u00e1c gi\u1ea3 l\u00e0 m\u1ed9t h\u00e0nh \u0111\u1ed9ng v\u0103n minh v\u00e0 \u0111\u00e1ng kh\u00edch l\u1ec7.
"},{"location":"integrate/OpenBBTerminal/","title":"OpenBB Terminal","text":"Gi\u1edbi thi\u1ec7u
OpenBB Terminal OpenBB Terminal l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 m\u00e3 ngu\u1ed3n m\u1edf m\u1ea1nh m\u1ebd d\u00e0nh cho c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 c\u00e1 nh\u00e2n, cung c\u1ea5p cho b\u1ea1n kh\u1ea3 n\u0103ng ti\u1ebfp c\u1eadn v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u t\u00e0i ch\u00ednh to\u00e0n di\u1ec7n ngay t\u1eeb giao di\u1ec7n d\u00f2ng l\u1ec7nh. Ph\u1ea7n m\u1ec1m n\u00e0y \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef Python cho \u1ee9ng d\u1ee5ng Desktop.
Hi\u1ec7n t\u1ea1i OpenBB Terminal cho ph\u00e9p s\u1eed d\u1ee5ng d\u1eef li\u1ec7u chu\u1ed7i th\u1eddi gian (time series) do b\u1ea1n t\u1ef1 cung c\u1ea5p. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1eef li\u1ec7u gi\u00e1 OHLCV ho\u1eb7c ch\u1ec9 s\u1ed1 th\u1ed1ng k\u00ea \u0111\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng Forecast ho\u1eb7c Econometrics c\u1ee7a OpenBB.
B\u1ea1n kh\u00f4ng th\u1ec3 thay \u0111\u1ed5i ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u ngo\u00e0i danh s\u00e1ch ch\u1ec9 \u0111\u1ecbnh s\u1eb5n c\u1ee7a OpenBB, do \u0111\u00f3 ch\u01b0a c\u00f3 c\u00e1ch \u0111\u1ea9y tr\u1ef1c ti\u1ebfp d\u1eef li\u1ec7u t\u1eeb vnstock ngay b\u00ean trong OpenBB.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng Forecast v\u00e0 Econometrics nh\u01b0 \u0111\u00e3 n\u00eau \u1edf tr\u00ean, b\u1ea1n l\u01b0u DataFrame t\u1ea1o ra b\u1edfi vnstock v\u1edbi h\u00e0m export_for_openbb()
\u0111\u1ec3 xu\u1ea5t file d\u01b0\u1edbi d\u1ea1ng csv trong th\u01b0 m\u1ee5c l\u00e0m vi\u1ec7c c\u1ee7a OpenBB. Tham kh\u1ea3o th\u00f4ng tin t\u1eeb OpenBB t\u1ea1i BRING YOUR OWN DATA m\u1ee5c IMPORT TIME SERIES DATA v\u00e0 Import data t\u1ea1i m\u1ee5c CUSTOM DATA
C\u00fa ph\u00e1p h\u00e0m \u0111\u01a1n gi\u1ea3n nh\u01b0 sau:
export_for_openbb (df, file_name='REE_ohlcv_export')\n
Trong \u0111\u00f3:
df
l\u00e0 DataFrame ch\u1ee9a d\u1eef li\u1ec7u b\u1ea1n mu\u1ed1n xu\u1ea5t filefile_name
l\u00e0 t\u00ean file b\u1ea1n mu\u1ed1n \u0111\u1eb7t, c\u00f3 th\u1ec3 theo t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu theo d\u00f5i nh\u01b0 REE_ohlcv_export
extension
(tham s\u1ed1 t\u00f9y ch\u1ecdn) m\u1eb7c \u0111\u1ecbnh l\u00e0 csv, kh\u00f4ng c\u1ea7n thay \u0111\u1ed5i, \u0111\u1ecbnh d\u1ea1ng kh\u00e1c l\u00e0 xlsxSau khi ch\u1ea1y l\u1ec7nh xong, file csv t\u01b0\u01a1ng \u1ee9ng s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u trong th\u01b0 m\u1ee5c c\u1ee7a OpenBB. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ecdc file trong giao di\u1ec7n OpenBB t\u1eeb t\u00ednh n\u0103ng forecast
v\u1edbi c\u00fa ph\u00e1p load -f REE_ohlcv_export.csv --alias REE
trong \u0111\u00f3 REE_ohlcv_export.csv
l\u00e0 file d\u1eef li\u1ec7u demo c\u00f2n --alias REE
gi\u00fap \u0111\u1eb7t t\u00ean r\u00fat g\u1ecdn cho file. Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng!
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng
08/11/2023, Hi\u1ec7n t\u1ea1i vnstock \u0111\u00e3 th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng h\u00e0m xu\u1ea5t d\u1eef li\u1ec7u t\u1eeb vnstock sang Amibroker cho ph\u00e9p l\u01b0u d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb h\u00e0m stock_historical_data
v\u1edbi t\u1ea5t c\u1ea3 \u0111\u1ed9 ph\u00e2n gi\u1ea3i th\u1eddi gian kh\u1ea3 d\u1ee5ng sang Amibroker d\u01b0\u1edbi d\u1ea1ng file CSV. \u0110\u00e2y l\u00e0 m\u1ed9t tin vui cho c\u1ed9ng \u0111\u1ed3ng ng\u01b0\u1eddi d\u00f9ng vnstock. N\u1ebfu b\u1ea1n ch\u01b0a s\u1eb3n s\u00e0ng s\u1eed d\u1ee5ng b\u1ed9 c\u00f4ng c\u1ee5 Python, vnstock d\u00e0nh cho b\u1ea1n m\u1ed9t s\u1ed1 t\u00ednh n\u0103ng h\u1eefu \u00edch trong th\u1eddi gian chuy\u1ec3n \u0111\u1ed5i ph\u01b0\u01a1ng ph\u00e1p l\u00e0m vi\u1ec7c m\u1edbi linh ho\u1ea1t v\u00e0 hi\u1ec7u qu\u1ea3 h\u01a1n. vnstock ch\u00e0o \u0111\u00f3n t\u1ea5t c\u1ea3 c\u00e1c b\u1ea1n v\u1edbi m\u1ecdi tr\u00ecnh \u0111\u1ed9, kinh nghi\u1ec7m kh\u00e1c nhau \u0111\u1ec3 x\u00e2y d\u1ef1ng c\u1ed9ng \u0111\u1ed3ng \u0111\u1ea7u t\u01b0 ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam ng\u00e0y c\u00e0ng ph\u00e1t tri\u1ec3n.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng xu\u1ea5t d\u1eef li\u1ec7u cho Amibroker, b\u1ea1n th\u1ef1c hi\u1ec7n nh\u01b0 sau:
"},{"location":"integrate/amibroker/#xuat-file-csv-cho-amibroker","title":"Xu\u1ea5t file CSV cho Amibroker","text":"amibroker_ohlc_export (path=r'C:\\Users\\mrthi\\Desktop', symbol='TCB', start_date='2023-01-01', end_date='2023-11-08', resolution='1D', type='stock', source='DNSE')\n
Trong \u0111\u00f3:
path
: l\u00e0 \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c b\u1ea1n mu\u1ed1n l\u01b0u file, ti\u1ec7n cho vi\u1ec7c s\u1eed d\u1ee5ng Import Wizard trong Amibroker \u0111\u1ec3 n\u1ea1p d\u1eef li\u1ec7u.>>> amibroker_ohlc_export (path=r'C:\\Users\\mrthi\\Desktop', symbol='TCB', start_date='2023-01-01', end_date='2023-11-08', resolution='1D', type='stock', source='DNSE')\n\nData preview:\n <Ticker> <DTYYYYMMDD> <Open> <High> <Low> <Close> <Volume>\n0 TCB 20230103 25.75 27.45 25.75 27.45 3786800\n1 TCB 20230104 27.45 27.80 27.25 27.30 3185500\n2 TCB 20230105 27.30 27.80 27.15 27.65 2716900\n3 TCB 20230106 27.45 28.40 27.30 27.70 4803900\n4 TCB 20230109 27.80 27.95 27.60 27.75 2387700\n
"},{"location":"integrate/amibroker/#nap-du-lieu-cho-amibroker","title":"N\u1ea1p d\u1eef li\u1ec7u cho Amibroker","text":"S\u1eed d\u1ee5ng Import Wizard
Hi\u1ec7n t\u1ea1i, vnstock ch\u1ec9 h\u1ed7 tr\u1ee3 xu\u1ea5t d\u1eef li\u1ec7u sang d\u1ea1ng CSV \u0111\u01b0\u1ee3c \u0111\u1ecbnh d\u1ea1ng \u0111\u1ec3 s\u1eb3n s\u00e0ng n\u1ea1p v\u00e0o Amibroker. Qu\u00e1 tr\u00ecnh n\u00e0y v\u1eabn c\u1ea7n s\u1eed d\u1ee5ng b\u01b0\u1edbc d\u1eef li\u1ec7u th\u1ee7 c\u00f4ng d\u00f9ng Import Wizard. C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 vi\u1ebft th\u00eam ch\u01b0\u01a1ng tr\u00ecnh \u0111\u1ec3 th\u1ef1c hi\u1ec7n vi\u1ec7c n\u00e0y ho\u00e0n to\u00e0n t\u1ef1 \u0111\u1ed9ng thay cho data plugin n\u1ebfu c\u00f3 th\u1ec3. T\u00ednh n\u0103ng n\u00e0y ph\u00f9 h\u1ee3p v\u1edbi c\u00e1c b\u1ea1n mu\u1ed1n t\u1eadn d\u1ee5ng ngu\u1ed3n d\u1eef li\u1ec7u vnstock s\u1eb5n c\u00f3 \u0111\u1ec3 ti\u1ebft ki\u1ec7m cho vi\u1ec7c nghi\u00ean c\u1ee9u v\u00e0 ph\u00e2n t\u00edch \u0111\u1ea7u t\u01b0 m\u00e0 kh\u00f4ng c\u1ea7n \u0111\u1ebfn d\u1eef li\u1ec7u real-time cho giao d\u1ecbch th\u1ef1c t\u1ebf (nh\u01b0 ph\u00e1i sinh).
"},{"location":"integrate/amibroker/#tao-database","title":"T\u1ea1o database","text":"\u00c1p d\u1ee5ng n\u1ebfu b\u1ea1n ch\u01b0a t\u1ea1o s\u1eb5n c\u01a1 s\u1edf d\u1eef li\u1ec7u.
Kh\u1edfi t\u1ea1o Database. Click \u0111\u1ec3 m\u1edf r\u1ed9ngTh\u1ef1c hi\u1ec7n m\u1edf Menu File
> New
> Database
v\u00e0 thi\u1ebft l\u1eadp c\u00e1c th\u00f4ng s\u1ed1 nh\u01b0 h\u00ecnh (m\u1eb7c \u0111\u1ecbnh) ho\u1eb7c thay \u0111\u1ed5i theo \u0111\u00fang ki\u1ec3u d\u1eef li\u1ec7u b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng (EOD hay theo ph\u00fat c\u1ee5 th\u1ec3).
Next
t\u1edbi m\u00e0n h\u00ecnh ti\u1ebfp theo. T\u1ea1i \u0111\u00e2y tick v\u00e0o 2 \u00f4 l\u00e0 No quotation data
v\u00e0 Allow negative price
sau \u0111\u00f3 Next
cho \u0111\u1ebfn b\u01b0\u1edbc Finish
\u0111\u1ec3 k\u1ebft th\u00fac.Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng n\u1ea1p d\u1eef li\u1ec7u EOD cho Amibroker t\u1eeb vnstock.
Th\u1eed nghi\u1ec7m th\u00e0nh c\u00f4ng n\u1ea1p d\u1eef li\u1ec7u 1 ph\u00fat cho Amibroker t\u1eeb vnstock.
"},{"location":"integrate/backtesting/","title":"Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c \u0111\u1ea7u t\u01b0","text":"Ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c
H\u00e0m stock_historical_data c\u1ee7a vnstock sau khi tu\u1ef3 bi\u1ebfn l\u1ea1i c\u00e1ch tr\u00ecnh b\u00e0y (s\u1eed d\u1ee5ng tham s\u1ed1 decor=True
), c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00edch h\u1ee3p ngay v\u1edbi c\u00e1c th\u01b0 vi\u1ec7n gi\u00fap ki\u1ec3m th\u1eed chi\u1ebfn l\u01b0\u1ee3c giao d\u1ecbch trong m\u00f4i tr\u01b0\u1eddng Python.
vnstock gi\u1edbi thi\u1ec7u t\u1edbi b\u1ea1n m\u1ed9t s\u1ed1 t\u00f9y ch\u1ecdn cho backtesting \u0111\u1ec3 tham kh\u1ea3o. Ch\u00fang t\u00f4i s\u1ebd cung c\u1ea5p th\u00eam th\u00f4ng tin h\u01b0\u1edbng d\u1eabn chi ti\u1ebft trong th\u1eddi gian t\u1edbi.
Th\u01b0 vi\u1ec7n D\u1ec5 s\u1eed d\u1ee5ng T\u00ednh n\u0103ng T\u1ed1c \u0111\u1ed9 Ho\u1ea1t \u0111\u1ed9ng c\u1ed9ng \u0111\u1ed3ng T\u00e0i li\u1ec7u Ho\u1ea1t \u0111\u1ed9ng d\u1ef1 \u00e1n C\u1eadp nh\u1eadt g\u1ea7n nh\u1ea5t X\u1ebfp h\u1ea1ng Backtesting.py High High Medium High High Medium 1 n\u0103m 5 VectorBT Medium High High High High High 2 th\u00e1ng 5 Backtrader High High Low High High Low 7 th\u00e1ng 4 Zipline Medium Medium Low Medium Medium None 3 n\u0103m 3 bt Low Medium Low Medium Medium Low 6 th\u00e1ng 2 PyBacktest Low Low Medium Low Poor None 4 n\u0103m 1L\u01b0u \u00fd: \u0110i\u1ec3m x\u1ebfp h\u1ea1ng c\u00e0ng cao c\u00e0ng t\u1ed1t. Ngu\u1ed3n tham kh\u1ea3o: QMR AI
"},{"location":"integrate/dnse_api/","title":"T\u00edch h\u1ee3p API giao d\u1ecbch DNSE v\u00e0o vnstock","text":"DNSE API
DNSE l\u00e0 m\u1ed9t trong 3 c\u00f4ng ty ch\u1ee9ng kho\u00e1n c\u00f3 cung c\u1ea5p API giao d\u1ecbch cho kh\u00e1ch h\u00e0ng ph\u1ed5 th\u00f4ng b\u00ean c\u1ea1nh SSI v\u00e0 BSC (\u0111ang ki\u1ec3m duy\u1ec7t k\u1ef9, kh\u00f4ng duy\u1ec7t th\u00eam kh\u00e1ch h\u00e0ng m\u1edbi). API giao d\u1ecbch c\u1ee7a DNSE cho ph\u00e9p th\u1ef1c hi\u1ec7n \u0111\u1ecdc th\u00f4ng tin li\u00ean quan \u0111\u1ebfn t\u00e0i kho\u1ea3n v\u00e0 \u0111\u1eb7t l\u1ec7nh \u0111\u1ed1i v\u1edbi c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf l\u1eabn ph\u00e1i sinh. T\u00e0i li\u1ec7u API m\u1edbi \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt c\u00f4ng khai tr\u00ean website v\u00e0o \u0111\u1ea7u th\u00e1ng 11/2023. B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o th\u00f4ng tin chi ti\u1ebft API t\u1ea1i \u0111\u00e2y
vnstock cung c\u1ea5p ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i v\u1edbi API DNSE ho\u00e0n ch\u1ec9nh \u0111\u1ec3 \u0111\u1ecdc th\u00f4ng tin, \u0111\u1eb7t/ch\u1ec9nh s\u1eeda/h\u1ee7y l\u1ec7nh giao d\u1ecbch.
\u0110\u1ec3 b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng, c\u00e1c b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t g\u00f3i th\u01b0 vi\u1ec7n vnstock m\u1edbi nh\u1ea5t v0.2.8.1 c\u00f3 h\u1ed7 tr\u1ee3 \u0111\u1ea7y \u0111\u1ee7 c\u00e1c ch\u1ee9c n\u0103ng cho DNSE Lightspeed API. T\u1eeb c\u00e1c h\u00e0m python n\u00e0y, c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng bot giao d\u1ecbch/web app d\u1ec5 d\u00e0ng t\u1eeb m\u00f4i tr\u01b0\u1eddng cloud ho\u1eb7c m\u00e1y t\u00ednh c\u00e1 nh\u00e2n. Xem th\u00eam m\u00e3 ngu\u1ed3n \u0111\u1ec3 l\u1ea5y c\u1ea3m h\u1ee9ng.
Xem h\u01b0\u1edbng d\u1eabn
N\u1ebfu th\u1ea5y h\u01b0\u1edbng d\u1eabn n\u00e0y c\u00f3 \u00edch, b\u1ea1n lu\u00f4n c\u00f3 th\u1ec3 donate \u0111\u1ec3 \u1ee7ng h\u1ed9 d\u1ef1 \u00e1n thay l\u1eddi c\u00e1m \u01a1n.
"},{"location":"integrate/dnse_api/#ang-nhap-va-xac-thuc","title":"\u0110\u0103ng nh\u1eadp v\u00e0 x\u00e1c th\u1ef1c","text":""},{"location":"integrate/dnse_api/#khoi-tao-dnse-client","title":"Kh\u1edfi t\u1ea1o DNSE Client","text":"\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c ch\u1ee9c n\u0103ng c\u1ee7a DNSE API, tr\u01b0\u1edbc h\u1ebft b\u1ea1n c\u1ea7n kh\u1edfi t\u1ea1o m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng DNSE Client, theo \u0111\u00f3 c\u00e1c h\u00e0m ch\u1ee9c n\u0103ng s\u1ebd l\u00e0 c\u00e1c ph\u01b0\u01a1ng th\u1ee9c c\u1ee7a \u0111\u1ed1i t\u01b0\u1ee3ng Client n\u00e0y. Ch\u00fang ta g\u00e1n Client n\u00e0y v\u1edbi bi\u1ebfn client
cho ng\u1eafn g\u1ecdn \u0111\u1ec3 g\u1ecdi trong c\u00e1c b\u01b0\u1edbc ti\u1ebfp theo.
from vnstock.integration import *\nclient = DNSEClient()\n
"},{"location":"integrate/dnse_api/#ang-nhap-he-thong","title":"\u0110\u0103ng nh\u1eadp h\u1ec7 th\u1ed1ng","text":"JWT token
T\u1ea1i b\u01b0\u1edbc n\u00e0y, b\u1ea1n s\u1eed d\u1ee5ng t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u c\u1ee7a t\u00e0i kho\u1ea3n giao d\u1ecbch DNSE \u0111\u1ec3 t\u1ea1o ra JWT token - l\u00e0 m\u00e3 x\u00e1c th\u1ef1c \u0111\u01b0\u1ee3c t\u1ea1o ra khi b\u1ea1n \u0111\u0103ng nh\u1eadp v\u00e0o h\u1ec7 th\u1ed1ng API c\u1ee7a DNSE. JWT token cho ph\u00e9p b\u1ea1n \u0111\u1ecdc c\u00e1c th\u00f4ng tin v\u1ec1 t\u00e0i kho\u1ea3n (X\u00e1c th\u1ef1c c\u1ea5p 1), \u0111\u1ec3 th\u1ef1c hi\u1ec7n \u0111\u1eb7t l\u1ec7nh, s\u1eeda th\u00f4ng tin h\u1ec7 th\u1ed1ng th\u00ec c\u1ea7n d\u00f9ng k\u1ebft h\u1ee3p v\u1edbi m\u00e3 OTP \u0111\u01b0\u1ee3c c\u1ea5p qua email ho\u1eb7c SmartOTP tr\u00ean app EntradeX (x\u00e1c th\u1ef1c c\u1ea5p 2).
B\u1ea1n s\u1eed d\u1ee5ng \u0111o\u1ea1n m\u00e3 sau \u0111\u1ec3 \u0111\u0103ng nh\u1eadp h\u1ec7 th\u1ed1ng API.
user_name = \"T\u00caN_\u0110\u0102NG_NH\u1eacP_T\u00c0I_KHO\u1ea2N_DNSE\"\npassword = \"M\u1eacT_KH\u1ea8U_T\u00c0I_KHO\u1ea2N_DNSE\"\nclient.login(user_name, password)\n
Sau b\u01b0\u1edbc n\u00e0y, m\u00e3 JWT token \u0111\u01b0\u1ee3c t\u1ea1o ra \u0111\u1ec3 s\u1eed d\u1ee5ng trong c\u00e1c b\u01b0\u1edbc ti\u1ebfp theo.
"},{"location":"integrate/dnse_api/#xac-thuc-giao-dich","title":"X\u00e1c th\u1ef1c giao d\u1ecbch","text":"X\u00e1c th\u1ef1c c\u1ea5p 2 v\u1edbi OTP
\u0110\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c thao t\u00e1c li\u00ean quan \u0111\u1ebfn giao d\u1ecbch ho\u1eb7c thay \u0111\u1ed5i th\u00f4ng tin tr\u00ean t\u00e0i kho\u1ea3n DNSE, b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u00e3 OTP \u0111\u1ec3 th\u1ef1c hi\u1ec7n x\u00e1c th\u1ef1c c\u1ea5p 2. M\u00e3 OTP c\u00f3 th\u1ec3 l\u00e0 m\u00e3 SmartOTP l\u1ea5y t\u1eeb app EntradeX tr\u00ean smartphone ho\u1eb7c m\u00e3 \u0111\u01b0\u1ee3c g\u1eedi qua email. Sau khi th\u1ef1c hi\u1ec7n b\u01b0\u1edbc x\u00e1c th\u1ef1c OTP v\u1edbi h\u1ec7 th\u1ed1ng, m\u1ed9t m\u00e3 trading token
\u0111\u01b0\u1ee3c t\u1ea1o ra v\u00e0 c\u00f3 hi\u1ec7u l\u1ef1c trong 8 ti\u1ebfng cho ph\u00e9p b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc giao d\u1ecbch trong su\u1ed1t ng\u00e0y l\u00e0m vi\u1ec7c.
Khi n\u00e0o s\u1eed d\u1ee5ng SmartOTP, emailOTP?
B\u1ecf qua b\u01b0\u1edbc n\u00e0y n\u1ebfu b\u1ea1n ch\u1ecdn s\u1eed d\u1ee5ng SmartOTP thay v\u00ec email OTP. D\u00f2ng l\u1ec7nh sau gi\u00fap b\u1ea1n y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng g\u1eedi OTP qua email, m\u00e3 OTP n\u00e0y d\u00f9ng \u0111\u1ec3 t\u1ea1o trading token
cho ph\u00e9p th\u1ef1c hi\u1ec7n giao d\u1ecbch.
client.email_otp()\n
Sau khi nh\u1eadn m\u00e3 OTP qua email, b\u1ea1n s\u1eed d\u1ee5ng cho b\u01b0\u1edbc ti\u1ebfp theo. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 t\u1ef1 \u0111\u1ed9ng h\u00f3a qu\u00e1 tr\u00ecnh tr\u00edch xu\u1ea5t OTP n\u00e0y v\u00e0 n\u1ea1p cho b\u01b0\u1edbc ti\u1ebfp theo b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng Gmail API. Tham kh\u1ea3o th\u00eam th\u00f4ng tin t\u1ea1i \u0111\u00e2y
"},{"location":"integrate/dnse_api/#tao-ma-trading-token-e-giao-dich","title":"T\u1ea1o m\u00e3 trading token \u0111\u1ec3 giao d\u1ecbch","text":"T\u1ea1i b\u01b0\u1edbc n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 nh\u1eadp m\u00e3 OTP \u0111\u1ec3 t\u1ea1o trading token
b\u1eb1ng m\u00e3 SmartOTP ho\u1eb7c email OTP.
trading_token = client.get_trading_token(otp = 'M\u00c3_OTP_C\u1ee6A_B\u1ea0N', smart_otp=True)\n
Trong \u0111\u00f3:
otp
l\u00e0 m\u00e3 x\u00e1c th\u1ef1c c\u1ea5p 2 l\u1ea5y t\u1eeb app EntradeX d\u01b0\u1edbi d\u1ea1ng SmartOTP ho\u1eb7c m\u00e3 \u0111\u01b0\u1ee3c g\u1eedi qua email. M\u00e3 n\u00e0y ph\u1ea3i \u0111\u01b0\u1ee3c nh\u1eadp d\u01b0\u1edbi d\u1ea1ng string '12345'
.smart_otp
: nh\u1eadn gi\u00e1 tr\u1ecb True
n\u1ebfu b\u1ea1n l\u1ea5y m\u00e3 t\u1eeb app, False
n\u1ebfu l\u1ea5y m\u00e3 t\u1eeb emailTra c\u1ee9u th\u00f4ng tin v\u1edbi t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u t\u00e0i kho\u1ea3n
\u0110\u1ec3 s\u1eed d\u1ee5ng c\u00e1c h\u00e0m tra c\u1ee9u th\u00f4ng tin, b\u1ea1n ch\u1ec9 c\u1ea7n th\u1ef1c hi\u1ec7n x\u00e1c th\u1ef1c c\u1ea5p 1 v\u1edbi t\u00ean \u0111\u0103ng nh\u1eadp v\u00e0 m\u1eadt kh\u1ea9u t\u00e0i kho\u1ea3n.
"},{"location":"integrate/dnse_api/#thong-tin-tai-khoan","title":"Th\u00f4ng tin t\u00e0i kho\u1ea3n","text":"\u0110\u1ec3 truy c\u1eadp th\u00f4ng tin t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n t\u1ea1i DNSE, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh sau:
client.account()\n
K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng:
>>> client.account()\nid 0123456789\ninvestorId 0123456789\nname V\u0169 Th\u1ecbnh\ncustodyCode 064C12345\nemail support@vnstock.site\nunverifiedEmail support@vnstock.site\nmobile 0123456789\nstatus ACTIVE\ncreatedDate 2023-01-01T00:00:00.007Z\nmodifiedDate 2023-01-01T00:00:00.007Z\nenId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx\nidentificationCode 0123456789010101\nidentificationDate 2021-01-01T00:00:00Z\nidentificationExpiredDate 2100-01-01T00:00:00Z\nidentificationPlace C\u1ee5c CS QLHC v\u1ec1 TTXH\nbirthday XXXX-XX-XXT00:00:00Z\naddress vnstock ch\u00e0o \u0111\u00f3n c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 \ud83d\ude01\ngender MALE\nflexCustomerId 000000000\nsmartOtpRegistrationId xxxxx\nuserApproveType AUTO_APPROVED\nreferralCode xxxxxx\nreferralUrl https://s.dnse.vn/xxxxxx\navatarUrl https://lh3.googleusercontent.com/xyzxyz\nneedToChangePassword True\nregisteredSmartOtp False\nisEmailVerified False\n
"},{"location":"integrate/dnse_api/#thong-tin-tieu-khoan","title":"Th\u00f4ng tin ti\u1ec3u kho\u1ea3n","text":"Ti\u1ec3u kho\u1ea3n
M\u1ed7i m\u1ed9t t\u00e0i kho\u1ea3n m\u1edf t\u1ea1i DNSE \u0111\u01b0\u1ee3c c\u1ea5u tr\u00fac th\u00e0nh c\u00e1c ti\u1ec3u kho\u1ea3n (t\u00e0i kho\u1ea3n con) cho ph\u00e9p s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch ch\u1ee9ng kho\u00e1n c\u01a1 s\u1edf ho\u1eb7c ph\u00e1i sinh.
\u0110\u1ec3 tra c\u1ee9u th\u00f4ng tin c\u00e1c ti\u1ec3u kho\u1ea3n trong t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n, s\u1eed d\u1ee5ng h\u00e0m sau:
client.sub_accounts()\n
"},{"location":"integrate/dnse_api/#thong-tin-so-du-tai-khoan","title":"Th\u00f4ng tin s\u1ed1 d\u01b0 t\u00e0i kho\u1ea3n","text":"Cho ph\u00e9p tra c\u1ee9u th\u00f4ng tin ti\u1ec1n s\u1ed1 d\u01b0 ti\u1ec1n theo m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n.
client.account_balance (sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N')\n
"},{"location":"integrate/dnse_api/#danh-sach-goi-vay","title":"Danh s\u00e1ch g\u00f3i vay","text":"G\u00f3i vay
G\u00f3i vay l\u00e0 kh\u00e1i ni\u1ec7m c\u1ee7a DNSE \u0111\u1ecbnh ngh\u0129a \u0111\u1ec3 h\u1ed7 tr\u1ee3 ph\u00e2n bi\u1ec7t c\u00e1c t\u1ef7 l\u1ec7 k\u00fd qu\u1ef9 khi \u0111\u1eb7t l\u1ec7nh (margin, kh\u00f4ng margin). M\u00e3 g\u00f3i vay \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng khi \u0111\u1eb7t l\u1ec7nh (n\u1ebfu c\u00f3).
client.loan_packages(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n tr\u00ean t\u00e0i kho\u1ea3n DNSE c\u1ee7a b\u1ea1n.asset_type
: nh\u1eadp stock
cho giao d\u1ecbch c\u01a1 s\u1edf, derivative
cho giao d\u1ecbch ph\u00e1i sinh.L\u1ea5y th\u00f4ng tin s\u1ee9c mua s\u1ee9c b\u00e1n t\u1ed1i \u0111a theo ti\u1ec3u kho\u1ea3n, m\u00e3, gi\u00e1 v\u00e0 g\u00f3i vay
client.trade_capacities(symbol='VIC', price=41600, sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock', loan_package_id=None)\n
Trong \u0111\u00f3:
symbol
: l\u00e0 t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu ho\u1eb7c m\u00e3 h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh, v\u00ed d\u1ee5 VN30F2311
price
: gi\u00e1, \u0111\u01a1n v\u1ecb l\u00e0 \u0111\u1ed3ng.sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.loan_package_id
: m\u00e3 g\u00f3i vay, l\u1ea5y t\u1eeb danh s\u00e1ch g\u00f3i vay \u00e1p d\u1ee5ng v\u1edbi t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n.sub_account = \"M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N\"\nsymbol = \"VIC\"\nside = \"buy\"\nquantity = 100\nprice = 41600\norder_type = 'LO'\nloan_package_id = None # Thay th\u1ebf v\u1edbi m\u00e3 g\u00f3i vay th\u1ef1c t\u1ebf c\u1ee7a b\u1ea1n\nasset_type = 'stock'\n\nclient.place_order(account, symbol, side, quantity, price, order_type, loan_package_id, asset_type)\n
ho\u1eb7c s\u1eed d\u1ee5ng d\u1ea1ng r\u00fat g\u1ecdn
client.place_order('M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', 'VIC', 'buy', 500, 41600, 'LO', None, 'stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
symbol
: l\u00e0 t\u00ean m\u00e3 c\u1ed5 phi\u1ebfu ho\u1eb7c m\u00e3 h\u1ee3p \u0111\u1ed3ng ph\u00e1i sinh, v\u00ed d\u1ee5 VN30F2311
side
: lo\u1ea1i l\u1ec7nh mua buy
hay b\u00e1n sell
quantity
: s\u1ed1 l\u01b0\u1ee3ng h\u1ee3p \u0111\u1ed3ng, c\u1ed5 phi\u1ebfu giao d\u1ecbchprice
: gi\u00e1, \u0111\u01a1n v\u1ecb l\u00e0 \u0111\u1ed3ng.order_type
: Lo\u1ea1i l\u1ec7nh, s\u1eed d\u1ee5ng 1 trong c\u00e1c gi\u00e1 tr\u1ecb LO
, MP
, MTL
, ATO
, ATC
, MOK
, MAK
loan_package_id
: m\u00e3 g\u00f3i vay, l\u1ea5y t\u1eeb danh s\u00e1ch g\u00f3i vay \u00e1p d\u1ee5ng v\u1edbi t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n.asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Cho ph\u00e9p li\u1ec7t k\u00ea c\u00e1c l\u1ec7nh \u0111\u00e3 \u0111\u1eb7t trong s\u1ed5 l\u1ec7nh. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
\u0110\u1ec3 li\u1ec7t k\u00ea danh s\u00e1ch l\u1ec7nh trong s\u1ed5 l\u1ec7nh, b\u1ea1n s\u1eed d\u1ee5ng d\u00f2ng l\u1ec7nh sau \u0111\u1ed1i v\u1edbi giao d\u1ecbch c\u01a1 s\u1edf
client.order_list(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
ho\u1eb7c s\u1eed d\u1ee5ng l\u1ec7nh sau cho ph\u00e1i sinh
client.order_list(sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='derivative')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n t\u01b0\u01a1ng \u1ee9ng cho giao d\u1ecbch c\u01a1 s\u1edf/ph\u00e1i sinh c\u1ea7n tra c\u1ee9uasset_type
: nh\u1eadn gi\u00e1 tr\u1ecb l\u00e0 stock
cho giao d\u1ecbch c\u01a1 s\u1edf, v\u00e0 derivative
cho giao d\u1ecbch ph\u00e1i sinh.Tra c\u1ee9u th\u00f4ng tin chi ti\u1ebft c\u1ee7a m\u1ed9t l\u1ec7nh b\u1ea5t k\u1ef3 thu\u1ed9c m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.order_detail(order_id='M\u00c3_L\u1ec6NH_C\u1ee6A_B\u1ea0N', sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
order_id
: m\u00e3 l\u1ec7nh \u0111\u1eb7t, th\u00f4ng tin l\u1ea5y t\u1eeb S\u1ed5 l\u1ec7nh
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Cho ph\u00e9p h\u1ee7y l\u1ec7nh b\u1ea5t k\u1ef3 theo id t\u1eeb m\u1ed9t ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.cancel_order (order_id='M\u00c3_L\u1ec6NH_C\u1ee6A_B\u1ea0N', sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
order_id
: m\u00e3 l\u1ec7nh \u0111\u1eb7t, th\u00f4ng tin l\u1ea5y t\u1eeb S\u1ed5 l\u1ec7nh
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Tr\u1ea3 v\u1ec1 danh s\u00e1ch c\u00e1c deal b\u1ea1n \u0111ang n\u1eafm gi\u1eef. \u00c1p d\u1ee5ng cho c\u1ea3 giao d\u1ecbch c\u01a1 s\u1edf v\u00e0 ph\u00e1i sinh.
client.deals_list (sub_account='M\u00c3_TI\u1ec2U_KHO\u1ea2N_C\u1ee6A_B\u1ea0N', asset_type='stock')\n
Trong \u0111\u00f3:
sub_account
: l\u00e0 m\u00e3 ti\u1ec3u kho\u1ea3n c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u0111\u1ec3 giao d\u1ecbch, l\u1ea5y t\u1eeb h\u00e0m sub_accounts
asset_type
: nh\u1eadn m\u1ed9t trong hai gi\u00e1 tr\u1ecb l\u00e0 stock
cho c\u1ed5 phi\u1ebfu ho\u1eb7c derivative
cho ph\u00e1i sinh.Neptyne for Google Sheets
Neptyne l\u00e0 m\u1ed9t ti\u1ec7n \u00edch m\u1edf r\u1ed9ng cho ph\u00e9p s\u1eed d\u1ee5ng python ngay trong Google Sheets, c\u00e1c l\u1ec7nh Python \u0111\u01b0\u1ee3c ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i vnstock th\u00f4ng qua Neptyne v\u00e0 s\u1eed d\u1ee5ng \u0111\u1ec3 tr\u00edch xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng cho c\u00e1c d\u1ef1 \u00e1n ph\u00e2n t\u00edch m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i s\u1eed d\u1ee5ng m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh Python ph\u1ee9c t\u1ea1p.
\u0110\u1ec3 s\u1eed d\u1ee5ng vnstock qua Neptyne, b\u1ea1n l\u00e0m nh\u01b0 sau:
Extensions
> Neptyne for Google Sheets
> Install Python Packages
t\u1eeb file Google Sheets b\u1ea5t k\u1ef3. N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef ti\u1ebfng Vi\u1ec7t, b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm menu Ti\u1ec7n \u00edch m\u1edf r\u1ed9ng
v\u00e0 t\u00ecm c\u00e1c m\u1ee5c t\u01b0\u01a1ng \u1ee9ngvnstock
v\u00e0o c\u1eeda s\u1ed5 hi\u1ec7n ra v\u00e0 ch\u1ecdn Apply
\u0111\u1ec3 \u00e1p d\u1ee5ng c\u00e0i \u0111\u1eb7t. Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t s\u1ebd di\u1ec5n ra trong ch\u1ed1c l\u00e1t. Sau khi nh\u1eadn th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng c\u1eeda s\u1ed5 hi\u1ec7n ra n\u00e0y b\u1eb1ng n\u00fat Close
.Extensions
> Neptyne for Google Sheets
> Show Code Editor
. T\u1eeb \u0111\u00e2y, nh\u1eadp d\u00f2ng l\u1ec7nh from vnstock import *
\u0111\u1ec3 Import t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m vnstock
v\u00e0o Neptyne.Th\u1ef1c thi l\u1ec7nh Python trong Google Sheets b\u1eb1ng c\u00e1ch nh\u1eadp h\u00e0m =Py()
v\u00e0o \u00f4 t\u00ednh b\u1ea5t k\u1ef3. Nh\u1eadp t\u00ean h\u00e0m v\u00e0 c\u00e1c tham s\u1ed1 t\u01b0\u01a1ng \u1ee9ng theo th\u1ee9 t\u1ef1. V\u00ed d\u1ee5 \u0111\u1ec3 g\u1ecdi h\u00e0m l\u1ea5y gi\u00e1 stock_historical_data
ta s\u1ebd c\u1ea5u tr\u00fac nh\u01b0 sau:
stock_historical_data(symbol='GMD', \n start_date=\"2023-10-01\", \n end_date='2023-10-20', resolution='1D', type='stock', beautify=True)\n
=Py(\"stock_historical_data\", \"GMD\",\"2023-10-01\", \"2023-10-20\",\"1D\",\"stock\", \"True\")\n
L\u01b0u \u00fd
Khi s\u1eed d\u1ee5ng c\u00e1c h\u00e0m Python trong Neptyne, thay v\u00ec nh\u1eadp nh\u01b0 c\u00fa ph\u00e1p Python th\u00f4ng th\u01b0\u1eddng, b\u1ea1n nh\u1eadp t\u00ean h\u00e0m v\u00e0 c\u00e1c tham s\u1ed1 l\u1ea7n l\u01b0\u1ee3t, ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u ph\u1ea9y ,
\u0111\u1ed3ng th\u1eddi c\u00e1c gi\u00e1 tr\u1ecb nh\u1eadp v\u00e0o \u0111\u01b0\u1ee3c \u0111\u1eb7t trong ngo\u1eb7c k\u00e9p \"\"
vnstock
v\u00e0 ch\u1ecdn Apply
B\u01b0\u1edbc 4. Import h\u00e0mB\u01b0\u1edbc 5. Ch\u1ea1y h\u00e0m vnstock \u0111\u1ec3 l\u1ea5y d\u1eef li\u1ec7u Th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng hi\u1ec7n ra trong gi\u00e2y l\u00e1t.
N\u1ea1p c\u00e1c h\u00e0m vnstock v\u00e0o Neptyne. T\u00edch xanh hi\u1ec7n ra th\u1ec3 hi\u1ec7n qu\u00e1 tr\u00ecnh th\u1ef1c thi l\u1ec7nh th\u00e0nh c\u00f4ng.
"},{"location":"integrate/google_sheets/#chuyen-oi-ham-python-sang-google-apps-script","title":"Chuy\u1ec3n \u0111\u1ed5i h\u00e0m Python sang Google Apps Script","text":"vnstock cung c\u1ea5p m\u1ed9t h\u00e0m t\u00f9y bi\u1ebfn l\u00e0m m\u1eabu gi\u00fap b\u1ea1n h\u00ecnh dung v\u00e0 b\u1eaft \u0111\u1ea7u chuy\u1ec3n \u0111\u1ed5i c\u00e1c h\u00e0m python \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi vnstock sang ng\u00f4n ng\u1eef Google Apps Script \u0111\u1ec3 s\u1eed d\u1ee5ng v\u1edbi Google Sheets. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u00f3ng g\u00f3p v\u00e0o m\u00e3 ngu\u1ed3n d\u1ef1 \u00e1n gi\u00fap vnstock ho\u00e0n thi\u1ec7n \u0111\u1ea7y \u0111\u1ee7 c\u00e1c t\u00ednh n\u0103ng cho Google Sheets v\u00e0 lan t\u1ecfa t\u1edbi c\u1ed9ng \u0111\u1ed3ng.
\u0110\u1ec3 s\u1eed d\u1ee5ng th\u1eed \u0111o\u1ea1n code tr\u00ean cho vi\u1ec7c l\u1ea5y d\u1eef li\u1ec7u, b\u1ea1n l\u00e0m nh\u01b0 sau:
= derivativesOhlc(\"VN30F1M\", \"2023-06-01\", \"2023-09-26\", \"15\")
G\u1ee3i \u00fd
\u0110\u1ec3 chuy\u1ec3n \u0111\u1ed5i c\u00e1c h\u00e0m python hi\u1ec7n t\u1ea1i do vnstock cung c\u1ea5p, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00f4ng c\u1ee5 ChatGPT \u0111\u1ec3 th\u1ef1c hi\u1ec7n. B\u1ea1n s\u1ebd c\u1ea7n c\u00f3 ch\u00fat ki\u1ebfn th\u1ee9c v\u1ec1 JavaScript \u0111\u1ec3 c\u00f3 th\u1ec3 t\u00f9y bi\u1ebfn c\u00e1c h\u00e0m n\u00e0y nhanh ch\u00f3ng. N\u1ebfu kh\u00f4ng s\u1ebd c\u1ea7n k\u1ef9 n\u0103ng prompt engineering t\u1ed1t \u0111\u1ec3 c\u00f3 th\u1ec3 y\u00eau c\u1ea7u AI h\u1ed7 tr\u1ee3. Xa h\u01a1n, khi c\u00f3 ngu\u1ed3n l\u1ef1c, t\u00f4i s\u1ebd cung c\u1ea5p Add-in cho Google Sheets \u0111\u1ec3 c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ec5 d\u00e0ng h\u01a1n. B\u1ea1n c\u00f3 th\u1ec3 xem video h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 hi\u1ec3u c\u00e1ch d\u00f9ng ChatGPT h\u1ed7 tr\u1ee3 chuy\u1ec3n \u0111\u1ed5i h\u00e0m Python sang JavaScript.
"},{"location":"integrate/huggingface/","title":"vnstock x Huggingface","text":"Hugginface
We\u2019re on a journey to advance and democratize NLP for everyone. Along the way, we contribute to the development of technology for the better -- Huggingface
Huggingface l\u00e0 m\u1ed9t d\u1ecbch v\u1ee5 h\u00e0ng \u0111\u1ea7u \u0111\u1ec3 l\u01b0u tr\u1eef, chia s\u1ebb c\u00e1c m\u00f4 h\u00ecnh AI v\u00e0 Machine Learning (h\u1ecdc m\u00e1y) m\u1ed9t c\u00e1ch nhanh ch\u00f3ng d\u1ec5 d\u00e0ng, \u0111\u1ed3ng th\u1eddi \u0111\u00e2y c\u0169ng l\u00e0 m\u1ed9t c\u1ed9ng \u0111\u1ed3ng v\u1ec1 AI m\u1ea1nh tr\u00ean th\u1ebf gi\u1edbi. B\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00ecm th\u1ea5y c\u00e1c m\u00f4 h\u00ecnh AI/ML \u0111\u1ec3 s\u1eed d\u1ee5ng mi\u1ec5n ph\u00ed t\u1ea1i \u0111\u00e2y v\u1edbi v\u00e0i d\u00f2ng code. N\u1ebfu b\u1ea1n mu\u1ed1n t\u1ea1o web app v\u1edbi Python, \u0111\u00e2y c\u0169ng l\u00e0 d\u1ecbch v\u1ee5 tuy\u1ec7t v\u1eddi. Huggingface Spaces cho ph\u00e9p b\u1ea1n ch\u1ea1y c\u00e1c \u1ee9ng d\u1ee5ng vi\u1ebft b\u1eb1ng python cho Streamlit ho\u1eb7c Gradio framework hay Docker kh\u00e1 \u0111\u01a1n gi\u1ea3n. T\u00ecm hi\u1ec3u th\u00eam \u0111\u1ec3 bi\u1ebft chi ti\u1ebft.
vnstock cung c\u1ea5p c\u00e1c h\u00e0m s\u1eed d\u1ee5ng API \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. \u0110i\u1ec1u n\u00e0y c\u00f3 ngh\u0129a l\u00e0 b\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng web app v\u1edbi r\u1ea5t nhi\u1ec1u d\u1ecbch v\u1ee5 m\u00e0 kh\u00f4ng c\u1ea7n lo \u0111\u1ebfn kh\u00e2u thi\u1ebft l\u1eadp c\u01a1 s\u1edf d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o v\u00e0 Huggingface l\u00e0 m\u1ed9t trong s\u1ed1 \u0111\u00f3. M\u1ecdi th\u1ee9 m\u1edf, d\u1ec5 s\u1eed d\u1ee5ng v\u00e0 mi\u1ec5n ph\u00ed.
D\u1eef li\u1ec7u gi\u00e1 c\u1ee7a vnstock c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho c\u00e1c m\u00f4 h\u00ecnh Machine Learning \u0111\u1ec3 ki\u1ec3m th\u1eed tr\u00ean n\u1ec1n t\u1ea3ng Huggingface Spaces, ho\u1eb7c b\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp m\u1ed9t trung t\u00e2m ph\u00e2n t\u00edch t\u1eeb d\u1eef li\u1ec7u to\u00e0n di\u1ec7n m\u00e0 vnstock cung c\u1ea5p v\u1edbi Streamlit, Gradio. L\u1ef1a ch\u1ecdn l\u00e0 \u1edf b\u1ea1n.
Gi\u1edbi thi\u1ec7u
pytesseract l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n Python gi\u00fap ng\u01b0\u1eddi d\u00f9ng s\u1eed d\u1ee5ng c\u00f4ng c\u1ee5 Tesseract OCR c\u1ee7a Google m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng. Tesseract l\u00e0 c\u00f4ng c\u1ee5 OCR m\u00e3 ngu\u1ed3n m\u1edf, m\u1ea1nh m\u1ebd v\u00e0 h\u1ed7 tr\u1ee3 nhi\u1ec1u ng\u00f4n ng\u1eef bao g\u1ed3m ti\u1ebfng Vi\u1ec7t. Vnstock gi\u1edbi thi\u1ec7u \u0111\u1ebfn b\u1ea1n c\u00e1ch th\u1ee9c nh\u1eadn d\u1ea1ng v\u0103n b\u1ea3n t\u1eeb h\u00ecnh \u1ea3nh v\u1edbi pytesseract t\u1eeb \u0111\u01a1n gi\u1ea3n \u0111\u1ebfn lu\u1ed3ng t\u1ef1 \u0111\u1ed9ng chuy\u1ec3n \u0111\u1ed5i to\u00e0n b\u1ed9 t\u00e0i li\u1ec7u m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng t\u1eeb Google Colab.
PyTesseract c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 tr\u00edch xu\u1ea5t v\u0103n b\u1ea3n t\u1eeb t\u1ea5t c\u1ea3 c\u00e1c \u0111\u1ecbnh d\u1ea1ng h\u00ecnh \u1ea3nh \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 b\u1edfi g\u00f3i th\u01b0 vi\u1ec7n Pillow v\u00e0 Leptonica, bao g\u1ed3m JPEG
, PNG
, GIF
, BMP
, TIFF
, v.v.
PyTesseract c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong nhi\u1ec1u \u1ee9ng d\u1ee5ng kh\u00e1c nhau, c\u1ee5 th\u1ec3 v\u1edbi l\u0129nh v\u1ef1c t\u00e0i ch\u00ednh/ch\u1ee9ng kho\u00e1n th\u00ec b\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n \u0111\u1ed5i t\u00e0i li\u1ec7u scan sang v\u0103n b\u1ea3n k\u1ef9 thu\u1eadt s\u1ed1 \u0111\u1ed1i v\u1edbi c\u00e1c t\u00e0i li\u1ec7u ph\u1ed5 bi\u1ebfn nh\u01b0:
C\u00e1c t\u00e0i li\u1ec7u scan n\u00e0y, b\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00ecm th\u1ea5y tr\u00ean Vietstock ho\u1eb7c CafeF.
\ud83d\udc47 B\u1ea1n c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u v\u1edbi Demo Notebook d\u01b0\u1edbi \u0111\u00e2y, \u0111\u1ecdc th\u00eam chi ti\u1ebft \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ec5 d\u00e0ng.
M\u1edf Demo Notebook
T\u00ednh n\u0103ng n\u00e0y hi\u1ec7n t\u1ea1i \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt l\u00ean m\u00e3 ngu\u1ed3n, nh\u00e1nh beta
tr\u00ean Github. Xem h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t t\u1ea1i \u0111\u00e2y
C\u00e0i \u0111\u1eb7t \u00e1p d\u1ee5ng cho m\u00f4i tr\u01b0\u1eddng Linux
C\u00e0i \u0111\u1eb7t m\u00f4i tr\u01b0\u1eddng \u0111\u1ec3 ch\u1ea1y Pytesseract t\u1eeb Google Colab tr\u00ean n\u1ec1n h\u1ec7 \u0111i\u1ec1u h\u00e0nh Ubuntu di\u1ec5n ra kh\u00e1 \u0111\u01a1n gi\u1ea3n.
B\u1ea1n copy c\u00e1c d\u00f2ng l\u1ec7nh sau v\u00e0 paste v\u00e0o m\u1ed9t \u00f4 l\u1ec7nh m\u1edbi \u0111\u1ec3 th\u1ef1c thi:
!sudo apt install tesseract-ocr\n!pip install pytesseract\n!sudo apt-get install tesseract-ocr-vie # C\u00e0i \u0111\u1eb7t g\u00f3i ng\u00f4n ng\u1eef ti\u1ebfng Vi\u1ec7t\n
Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t di\u1ec5n ra trong kho\u1ea3ng 30 gi\u00e2y.
"},{"location":"integrate/pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban/#windows","title":"Windows","text":"C\u00e0i \u0111\u1eb7t \u00e1p d\u1ee5ng cho m\u00f4i tr\u01b0\u1eddng Linux
\u0110\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c Pytesseract t\u1eeb m\u00e1y t\u00ednh Windows, qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t s\u1ebd ph\u1ee9c t\u1ea1p h\u01a1n \u0111\u00f4i ch\u00fat.
.exe
l\u00e0 b\u1eaft \u0111\u1ea7u qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t, m\u1ecdi t\u00f9y ch\u1ecdn \u0111\u1ec3 m\u1eb7c \u0111\u1ecbnh, b\u1ea5m Next l\u00e0 \u0111\u01b0\u1ee3c. B\u1ea1n ch\u00fa \u00fd ghi nh\u1edb \u0111\u1ecba ch\u1ec9 c\u00e0i \u0111\u1eb7t Tesseract-OCR tr\u00ean m\u00e1y t\u00ednh trong qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t. vie.traineddata
m\u1edbi v\u1eeba t\u1ea3i v\u1ec1 v\u00e0o th\u01b0 m\u1ee5c Tesseract-OCR. T\u1eeb th\u01b0 m\u1ee5c ch\u1ee9a file b\u1ea1n l\u01b0u, v\u00ed d\u1ee5 Downloads, nh\u1eadp cmd
v\u00e0o \u00f4 \u0111\u1ecba ch\u1ec9 th\u01b0 m\u1ee5c \u0111\u1ec3 m\u1edf giao di\u1ec7n d\u00f2ng l\u1ec7nh v\u00e0 ch\u1ea1y l\u1ec7nh di chuy\u1ec3n file d\u01b0\u1edbi \u0111\u00e2y. Trong \u0111\u00f3, b\u1ea1n thay th\u1ebf {USER_NAME_CUA_BAN}
th\u00e0nh t\u00ean username tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n. V\u00ed d\u1ee5 tr\u00ean m\u00e1y t\u00ednh c\u1ee7a m\u00ecnh th\u00ec user name l\u00e0 mrthi
nh\u01b0 trong c\u00e1c h\u00ecnh minh h\u1ecda b\u00ean d\u01b0\u1edbi. move vie.traineddata C:\\Users\\{USER_NAME_CUA_BAN}\\AppData\\Local\\Programs\\Tesseract-OCR\\tessdata \n
M\u1edf Command Prompt t\u1eeb File Explorer
Di chuy\u1ec3n file trong Command Prompt
B\u1ea1n ch\u1ec9 c\u1ea7n n\u1ea1p h\u00e0m \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi vnstock \u0111\u1ec3 th\u1ef1c hi\u1ec7n nh\u1eadn di\u1ec7n \u1ea3nh th\u00e0nh v\u0103n b\u1ea3n nh\u01b0 sau. Trong \u0111\u00f3 image_path
l\u00e0 \u0111\u1ecba ch\u1ec9 file \u1ea3nh c\u1ea7n nh\u1eadn d\u1ea1ng.
from vnstock.ocr import *\nimage_ocr(image_path=r'/content/chrome_runiB0dpB3.png', lang='vie', output_path='', file_name='string_from_image.txt')\n
C\u00e1c tham s\u1ed1 kh\u00e1c nh\u01b0 sau:
output_path
: \u0111\u1ecba ch\u1ec9 l\u01b0u file v\u0103n b\u1ea3n \u0111\u00e3 nh\u1eadn d\u1ea1ng t\u1eeb h\u00ecnh \u1ea3nhfile_name
: \u0111\u1eb7t t\u00ean file v\u0103n b\u1ea3n s\u1ebd l\u01b0u. M\u1eb7c \u0111\u1ecbnh l\u00e0: string_from_image.txt
Sau khi c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp m\u00f4i tr\u01b0\u1eddng \u0111\u00e3 chu\u1ea9n b\u1ecb xong. B\u1ea1n c\u00f3 th\u1ec3 upload h\u00ecnh \u1ea3nh l\u00ean
Nh\u01b0 v\u1eady, ch\u00fang ta c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u tr\u00edch xu\u1ea5t v\u0103n b\u1ea3n t\u1eeb h\u00ecnh \u1ea3nh v\u1eeba upload v\u1edbi c\u00e2u l\u1ec7nh sau:
extracted_text = pytesseract.image_to_string(Image.open('/content/chrome_runiB0dpB3.png'), lang='vie')\nextracted_text\n
\u0110\u1ec3 l\u01b0u v\u0103n b\u1ea3n \u0111\u00e3 tr\u00edch xu\u1ea5t th\u00e0nh file text, b\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng c\u00e2u l\u1ec7nh d\u01b0\u1edbi \u0111\u00e2y:
with open('extracted_text.txt', 'w') as f: # M\u1eb7c \u0111\u1ecbnh l\u01b0u file v\u00e0o th\u01b0 m\u1ee5c \u0111ang l\u00e0m vi\u1ec7c c\u1ee7a Colab, b\u1ecb x\u00f3a khi k\u1ebft th\u00fac phi\u00ean. Ch\u1ecdn \u0111\u1ecba ch\u1ec9 l\u01b0u trong Drive \u0111\u1ec3 thay th\u1ebf.\n\u00a0 \u00a0 f.write(extracted_text)\n
"},{"location":"integrate/pytesseract-ocr-chuyen-doi-tai-lieu-tai-chinh-scan-sang-van-ban/#trich-xuat-toan-bo-van-ban-tu-bao-cao-tai-chinh","title":"\ud83d\udd10 Tr\u00edch xu\u1ea5t to\u00e0n b\u1ed9 v\u0103n b\u1ea3n t\u1eeb b\u00e1o c\u00e1o t\u00e0i ch\u00ednh","text":"Ch\u01b0\u01a1ng tr\u00ecnh vi\u1ebft s\u1eb5n
B\u1ea1n c\u1ea7n tham gia g\u00f3i vnstock-data-pro th\u00f4ng qua Vnstock Insiders Program \u0111\u1ec3 c\u00f3 th\u1ec3 tr\u00edch xu\u1ea5t to\u00e0n b\u1ed9 m\u1ed9t t\u00e0i li\u1ec7u b\u1ea5t k\u1ef3 ho\u1eb7c b\u00e1o c\u00e1o t\u00e0i ch\u00ednh c\u1ee7a c\u00f4ng ty b\u1ea1n quan t\u00e2m s\u1eed d\u1ee5ng ch\u01b0\u01a1ng tr\u00ecnh vi\u1ebft s\u1eb5n t\u1eeb vnstock gi\u00fap t\u1ef1 \u0111\u1ed9ng h\u00f3a ho\u00e0n to\u00e0n qu\u00e1 tr\u00ecnh t\u1eeb kh\u00e2u truy c\u1eadp t\u00e0i li\u1ec7u t\u1eeb API. Sau khi t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n, b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c quy\u1ec1n truy c\u1eadp private repo tr\u00ean Github \u0111\u1ec3 s\u1eed d\u1ee5ng k\u00e8m h\u01b0\u1edbng d\u1eabn chi ti\u1ebft.
"},{"location":"integrate/ssi_fast_connect_api/","title":"SSI Fast Connect API","text":"Fast Connect API
SSI cung c\u1ea5p b\u1ed9 APIs cho ph\u00e9p thi\u1ebft l\u1eadp giao d\u1ecbch t\u1ef1 \u0111\u1ed9ng (FastConnect Trading) v\u00e0 truy xu\u1ea5t d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n c\u01a1 b\u1ea3n (FastConnect Data) cho ng\u00f4n ng\u1eef Python. C\u00f4ng c\u1ee5 n\u00e0y ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed, b\u1ea1n c\u00f3 th\u1ec3 xin c\u1ea5p quy\u1ec1n s\u1eed d\u1ee5ng b\u1eb1ng c\u00e1ch mang CCCD ra ph\u00f2ng giao d\u1ecbch c\u1ee7a SSI g\u1ea7n nh\u1ea5t \u0111\u1ec3 \u0111\u0103ng k\u00fd v\u00e0 k\u00edch ho\u1ea1t.
vnstock cung c\u1ea5p t\u1edbi c\u00e1c b\u1ea1n c\u00e1c h\u00e0m \u0111\u01b0\u1ee3c t\u00f9y bi\u1ebfn s\u1eb5n gi\u00fap d\u1ec5 d\u00e0ng s\u1eed d\u1ee5ng m\u00e0 kh\u00f4ng c\u1ea7n b\u1ecf nhi\u1ec1u th\u1eddi gian nghi\u00ean c\u1ee9u v\u00e0 t\u00f9y bi\u1ebfn t\u1eeb demo s\u01a1 khai do SSI cung c\u1ea5p. B\u1ea1n c\u00f3 th\u1ec3 s\u1edf h\u1eefu g\u00f3i ph\u1ea7n m\u1ec1m t\u00edch h\u1ee3p n\u00e0y th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh Github Sponsor. Theo \u0111\u00f3, b\u1ea1n s\u1ebd tr\u1edf th\u00e0nh nh\u00e0 t\u00e0i tr\u1ee3 c\u1ee7a vnstock \u0111\u1ec3 c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 s\u1eed d\u1ee5ng c\u00e1c t\u00ednh n\u0103ng n\u00e0y \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh d\u01b0\u1edbi d\u1ea1ng g\u00f3i ph\u1ea7n m\u1ec1m n\u00e2ng cao cho vnstock. Truy c\u1eadp trang t\u00e0i tr\u1ee3 v\u00e0 ch\u1ecdn g\u00f3i ph\u00f9 h\u1ee3p v\u00e0 thanh to\u00e1n b\u1eb1ng th\u1ebb Visa/Master \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ngay h\u00f4m nay.
K\u1ebft n\u1ed1i SSI v\u1edbi vnstock
Chia s\u1ebb th\u00eam:
\u0110\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng th\u00e0nh th\u1ea1o ssi_fc_data
v\u00e0 ssi_fc_trading
, b\u1ea1n c\u1ea7n c\u00f3 kinh nghi\u1ec7m s\u1eed d\u1ee5ng Python v\u00e0 d\u00e0nh kh\u00e1 nhi\u1ec1u th\u1eddi gian nghi\u00ean c\u1ee9u b\u1edfi nh\u1eefng \u0111o\u1ea1n code m\u1eabu \u0111\u01b0\u1ee3c cung c\u1ea5p \u1edf m\u1ee9c t\u1ed1i thi\u1ec3u \u0111\u1ec3 b\u1ea1n h\u00ecnh dung \u0111\u01b0\u1ee3c API cung c\u1ea5p d\u1eef li\u1ec7u g\u00ec. D\u1eef li\u1ec7u n\u00e0y m\u1eb7c \u0111\u1ecbnh \u0111\u01b0\u1ee3c in ra m\u00e0n h\u00ecnh Terminal/Command Prompt nh\u01b0ng kh\u00f4ng ph\u1ea3i ki\u1ec3u d\u1eef li\u1ec7u object \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ngay. B\u1ea1n c\u00f3 th\u1ec3 xem th\u00eam chi ti\u1ebft t\u1ea1i ticket t\u00f4i nh\u1edd team Dev c\u1ee7a SSI gi\u1ea3i \u0111\u00e1p. Hi\u1ec7n t\u1ea1i c\u00e1c issue hay trao \u0111\u1ed5i qua Github th\u01b0\u1eddng kh\u00f4ng \u0111\u01b0\u1ee3c ph\u1ea3n h\u1ed3i nhanh ch\u00f3ng. \u0110i\u1ec3m t\u00edch c\u1ef1c l\u00e0 t\u00e0i li\u1ec7u h\u01b0\u1edbng d\u1eabn \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt chu\u1ea9n h\u01a1n sau sau khi t\u00f4i g\u1eedi ph\u1ea3n h\u1ed3i.
Thi\u1ebft l\u1eadp x\u00e1c th\u1ef1c d\u1ecbch v\u1ee5
\u0110\u1ec3 \u0111\u0103ng k\u00fd s\u1eed d\u1ee5ng API \u0111ang \u0111\u01b0\u1ee3c cung c\u1ea5p mi\u1ec5n ph\u00ed, b\u1ea1n \u0111em theo CCCD ra ph\u00f2ng giao d\u1ecbch SSI g\u1eb7p l\u1ec5 t\u00e2n ho\u1eb7c m\u00f4i gi\u1edbi \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 k\u00edch ho\u1ea1t d\u1ecbch v\u1ee5. Sau m\u1ed7i 3 th\u00e1ng th\u00ec d\u1ecbch v\u1ee5 s\u1ebd c\u1ea7n gia h\u1ea1n l\u1ea1i b\u1eb1ng c\u00e1ch g\u1ecdi hotline ho\u1eb7c g\u1eedi email y\u00eau c\u1ea7u.
C\u00e1c b\u01b0\u1edbc th\u1ef1c hi\u1ec7n thi\u1ebft l\u1eadp x\u00e1c th\u1ef1c ng\u01b0\u1eddi d\u00f9ng \u0111\u1ec3 k\u1ebft n\u1ed1i API nh\u01b0 sau:
D\u1ecbch v\u1ee5 & Ti\u1ec7n \u00edch
> D\u1ecbch v\u1ee5 API
nh\u01b0 h\u00ecnh minh h\u1ecda b\u00ean d\u01b0\u1edbi. Ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng ch\u00eca kh\u00f3a \u0111\u1ec3 l\u1ea5y m\u00e3 x\u00e1c th\u1ef1c. B\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u cung c\u1ea5p OTP \u0111\u01b0\u1ee3c g\u1eedi qua tin nh\u1eafn (ho\u1eb7c h\u00ecnh th\u1ee9c b\u1ea1n \u0111\u0103ng k\u00fd t\u01b0\u01a1ng \u1ee9ng). ConsumerID
v\u00e0 ConsumerSecret
v\u00e0 l\u01b0u v\u00e0o file \u0111\u1ec3 ti\u1ebfp t\u1ee5c c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp ti\u1ebfp theo. H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng module SSI Fast Connect API trong vnstock
Trong h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y, b\u1ea1n s\u1ebd l\u00e0m quen v\u1edbi c\u00e1ch s\u1eed d\u1ee5ng module ssi
trong vnstock-pro-data
cho ph\u00e9p b\u1ea1n k\u1ebft n\u1ed1i t\u1edbi API d\u1eef li\u1ec7u c\u1ee7a SSI th\u00f4ng qua c\u00e1c h\u00e0m \u0111\u00e3 t\u00f9y bi\u1ebfn m\u00e0 vnstock cung c\u1ea5p.
B\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng m\u1ed9t \u1ee9ng d\u1ee5ng so\u1ea1n th\u1ea3o l\u1ec7nh nh\u01b0 Visual Studio Code ho\u1eb7c \u0111\u01a1n gi\u1ea3n l\u00e0 notepad v\u00e0 t\u1ea1o ra m\u1ed9t file v\u0103n b\u1ea3n c\u00f3 t\u00ean config.py
v\u1edbi n\u1ed9i dung nh\u01b0 sau:
auth_type = 'Bearer'\nconsumerID = 'ID_C\u1ee6A_B\u1ea0N'\nconsumerSecret = 'SECRET_C\u1ee6A_B\u1ea0N'\naccess_jwt = 'TOKEN_C\u1ee6A_B\u1ea0N'\nurl = 'https://fc-data.ssi.com.vn/' \nstream_url = 'https://fc-data.ssi.com.vn/'\n
Trong \u0111\u00f3 ID v\u00e0 Secret l\u00e0 2 th\u00f4ng tin t\u01b0\u01a1ng \u1ee9ng l\u1ea5y t\u1eeb iBoard nh\u01b0 h\u01b0\u1edbng d\u1eabn \u1edf tr\u00ean. Th\u00f4ng tin access_jwt
token c\u1ea7n ph\u1ea3i ch\u1ea1y l\u1ec7nh trong ch\u01b0\u01a1ng tr\u00ecnh Python \u0111\u1ec3 l\u1ea5y. B\u1ea1n m\u1edf Terminal/Command Prompt t\u1eeb th\u01b0 m\u1ee5c ch\u1ee9a file config.py b\u1eb1ng c\u00e1ch g\u00f5 cmd
v\u00e0o thanh \u0111\u1ecba ch\u1ec9 Windows Explorer. M\u1edf Python trong giao di\u1ec7n d\u00f2ng l\u1ec7nh, ch\u1ea1y c\u00e1c l\u1ec7nh sau:
import config\nfrom ssi_fc_data import fc_md_client , model\nclient = fc_md_client.MarketDataClient(config)\nprint(client.access_token(model.accessToken(config.consumerID, config.consumerSecret)))\n
Copy \u0111o\u1ea1n token \u0111\u01b0\u1ee3c in ra m\u00e0n h\u00ecnh v\u00e0 l\u01b0u v\u00e0o file config.py t\u1ea1i m\u1ee5c access_jwt
.
T\u1edbi \u0111\u00e2y, b\u1ea1n c\u00f3 th\u1ec3 l\u01b0u file config.py
v\u00e0o m\u1ed9t n\u01a1i b\u1ea5t k\u1ef3 \u0111\u1ec3 b\u1ea3o m\u1eadt, sau \u0111\u00f3 ch\u00e9p \u0111\u01b0\u1eddng d\u1eabn file n\u00e0y \u0111\u1ec3 thi\u1ebft l\u1eadp \u1edf b\u01b0\u1edbc ti\u1ebfp theo trong ch\u01b0\u01a1ng tr\u00ecnh Python (file .py
ho\u1eb7c Jupyter Notebook). \u0110\u01b0\u1eddng d\u1eabn file \u0111\u01b0\u1ee3c thay th\u1ebf \u0111o\u1ea1n TH\u01af_M\u1ee4C_CH\u1ee8A_FILE_CONFIG_C\u1ee6A_B\u1ea0N
.
from vnstock_data.ssi import *\nimport sys\nsys.path.append(r'TH\u01af_M\u1ee4C_CH\u1ee8A_FILE_CONFIG_C\u1ee6A_B\u1ea0N') # Thay \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a file config.py c\u1ee7a b\u1ea1n t\u1ea1i \u0111\u00e2y. M\u1eabu file config c\u00f3 trong th\u01b0 m\u1ee5c docs c\u1ee7a repo\nimport config\n\nclient = fc_md_client.MarketDataClient(config)\n
"},{"location":"integrate/ssi_fast_connect_api/#tai-du-lieu","title":"T\u1ea3i d\u1eef li\u1ec7u","text":""},{"location":"integrate/ssi_fast_connect_api/#danh-sach-ma-chung-khoan-theo-san","title":"Danh s\u00e1ch m\u00e3 ch\u1ee9ng kho\u00e1n theo s\u00e0n","text":"S\u1eed d\u1ee5ng h\u00e0m securities_list
nh\u01b0 sau:
securities_list(market='HOSE', size=1000, page=1, client=client, config=config)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.market
: t\u00ean s\u00e0n giao d\u1ecbch, nh\u1eadn m\u1ed9t trong c\u00e1c gi\u00e1 tr\u1ecb: HOSE
, HNX
, UPCOM
cho giao d\u1ecbch c\u01a1 s\u1edf ho\u1eb7c DER
cho giao d\u1ecbch Ph\u00e1i sinhsize
: S\u1ed1 k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 cho m\u1ed9t trangpage
: S\u1ed1 th\u1ee9 t\u1ef1 trang. N\u1ebfu b\u1ea1n mu\u1ed1n l\u1ea5y h\u1ebft t\u1ea5t c\u1ea3 m\u00e3 trong m\u1ed9t l\u1ea7n tra c\u1ee9u th\u00ec \u0111\u1eb7t tham s\u1ed1 size
\u0111\u1ee7 l\u1edbn, n\u1ebfu ch\u1ec9 mu\u1ed1n l\u1ea5y m\u1ed9t ph\u1ea7n k\u1ebft qu\u1ea3 th\u00ec ch\u1ec9 \u0111\u1ecbnh r\u00f5 size
v\u00e0 page
.Minh h\u1ecda v\u00e0 k\u1ebft qu\u1ea3 nh\u01b0 sau:
>>> securities_list(market='HOSE', page=1, size=1000, client=client, config=config)\n\nTotal records: 414\n Market Symbol StockName StockEnName\n0 HOSE AAA C\u00f4ng ty C\u1ed5 ph\u1ea7n Nh\u1ef1a An Ph\u00e1t Xanh An Phat Bioplastics Joint Stock Company\n1 HOSE AAM C\u00f4ng ty C\u1ed5 Ph\u1ea7n Th\u1ee7y S\u1ea3n MeKong Mekong Fisheries Joint Stock Company\n2 HOSE AAT C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Ti\u00ean S\u01a1n Thanh H\u00f3a Tien Son Thanh Hoa Group Joint Stock Company\n3 HOSE ABR C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 Nh\u00e3n Hi\u1ec7u Vi\u1ec7t Viet Brand Invest Joint Stock Company\n4 HOSE ABS C\u00f4ng ty C\u1ed5 ph\u1ea7n D\u1ecbch v\u1ee5 N\u00f4ng nghi\u1ec7p B\u00ecnh Thu\u1eadn BinhThuan Agriculture Services Joint Stock Com...\n.. ... ... ... ...\n409 HOSE VSI C\u00f4ng ty C\u1ed5 ph\u1ea7n \u0110\u1ea7u t\u01b0 v\u00e0 X\u00e2y d\u1ef1ng C\u1ea5p tho\u00e1t n\u01b0\u1edbc Water Supply Sewerage Construction and Investm...\n410 HOSE VTB C\u00f4ng ty C\u1ed5 ph\u1ea7n Viettronics T\u00e2n B\u00ecnh Viettronics Tan Binh Joint Stock Company\n411 HOSE VTO C\u00f4ng ty C\u1ed5 ph\u1ea7n V\u1eadn t\u1ea3i X\u0103ng d\u1ea7u VITACO Vietnam Tanker Joint Stock Company\n412 HOSE YBM C\u00f4ng ty C\u1ed5 ph\u1ea7n Kho\u00e1ng s\u1ea3n C\u00f4ng nghi\u1ec7p Y\u00ean B\u00e1i Yen Bai Industry Mineral Joint Stock Company\n413 HOSE YEG C\u00f4ng ty C\u1ed5 ph\u1ea7n T\u1eadp \u0111o\u00e0n Yeah1 Yeah1 Group Corporation\n\n[414 rows x 4 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#thong-tin-ma-chung-khoan-cu-the","title":"Th\u00f4ng tin m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ee5 th\u1ec3","text":"\u0110\u1ec3 tr\u00edch xu\u1ea5t th\u00f4ng tin m\u1ed9t m\u00e3 ch\u1ee9ng kho\u00e1n b\u1ea5t k\u1ef3 t\u1eeb h\u1ec7 th\u1ed1ng, b\u1ea1n s\u1eed d\u1ee5ng h\u00e0m get_securities_details
nh\u01b0 sau:
get_securities_details(client=client, config=config, symbol='ACB', market='HOSE', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: l\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9umarket
>>> get_securities_details(client=client, config=config, symbol='ACB', market='HOSE', page=1, pageSize=100).T\n 0\nSymbol ACB\nSymbolName Ng\u00e2n h\u00e0ng Th\u01b0\u01a1ng m\u1ea1i C\u1ed5 ph\u1ea7n \u00c1 Ch\u00e2u\nSymbolEngName Asia Commercial Joint Stock Bank\nSecType S\nMarketId HOSE\nExchange HOSE\nLotSize 100\nIssueDate\nMaturityDate\nFirstTradingDate\nLastTradingDate\nContractMultiplier 0\nSettlMethod C\nExercisePrice 0\nExerciseStyle\nExcerciseRatio 0\nListedShare 3884050358\nTickPrice1 1\nTickIncrement1 10\nTickPrice2 10000\nTickIncrement2 50\nTickPrice3 50000\nTickIncrement3 100\nReportDate 15/12/2023\n
"},{"location":"integrate/ssi_fast_connect_api/#lay-danh-sach-cac-ma-chi-so","title":"L\u1ea5y danh s\u00e1ch c\u00e1c m\u00e3 ch\u1ec9 s\u1ed1","text":"get_index_list(client, config, exchange='', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.exchange
: s\u00e0n giao d\u1ecbch (kh\u00f4ng b\u1eaft bu\u1ed9c \u0111i\u1ec1n). Tr\u1ea3 to\u00e0n b\u1ed9 d\u1eef li\u1ec7u c\u00e1c s\u00e0n n\u1ebfu \u0111\u1ec3 tr\u1ed1ng.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_index_list(client, config, exchange='', page=1, pageSize=100)\n\n IndexCode IndexName Exchange\n0 HNX30 HNX30 HNX\n1 HNXIndex HNXIndex HNX\n2 HNXUpcomIndex HNXUpcomIndex HNX\n3 VN100 VN100 HOSE\n4 VN30 VN30 HOSE\n5 VNALL VNAllshare HOSE\n6 VNCOND VNAllShare\u00a0H\u00e0ng\u00a0Ti\u00eau\u00a0d\u00f9ng HOSE\n7 VNCONS VNAllShare\u00a0H\u00e0ng\u00a0thi\u00eau\u00a0d\u00f9ng\u00a0thi\u1ebft\u00a0y\u1ebfu HOSE\n8 VNDIAMOND Vietnam Diamond Index HOSE\n9 VNENE VNAllShare\u00a0N\u0103ng\u00a0l\u01b0\u1ee3ng HOSE\n10 VNFIN VNAllShare\u00a0T\u00e0i\u00a0ch\u00ednh HOSE\n11 VNFINLEAD Vietnam Diamond Index HOSE\n12 VNFINSELECT Vietnam Diamond Index HOSE\n13 VNHEAL VNAllShare\u00a0Ch\u0103m\u00a0s\u00f3c\u00a0s\u1ee9c\u00a0kh\u1ecfe HOSE\n14 VNIND VNAllShare\u00a0C\u00f4ng\u00a0nghi\u1ec7p HOSE\n15 VNIT VNAllShare\u00a0C\u00f4ng\u00a0ngh\u1ec7\u00a0th\u00f4ng\u00a0tin HOSE\n16 VNIndex VNINDEX HOSE\n17 VNMAT VNAllShare\u00a0Nguy\u00ean\u00a0v\u1eadt\u00a0li\u1ec7u HOSE\n18 VNMID VNMidcap\u00a0 HOSE\n19 VNREAL VNAllShare\u00a0B\u1ea5t\u00a0\u0111\u1ed9ng\u00a0s\u1ea3n HOSE\n20 VNSI VNStability\u00a0Index HOSE\n21 VNSML VNSmallcap HOSE\n22 VNUTI VNAllShare\u00a0D\u1ecbch\u00a0v\u1ee5\u00a0ti\u1ec7n\u00a0\u00edch HOSE\n23 VNX50 VNX50 HOSE\n24 VNXALL VNXAllshare HOSE\n
"},{"location":"integrate/ssi_fast_connect_api/#liet-ke-cac-ma-chung-khoan-thuoc-mot-ma-chi-so","title":"Li\u1ec7t k\u00ea c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n thu\u1ed9c m\u1ed9t m\u00e3 ch\u1ec9 s\u1ed1","text":"get_index_component(client, config, index='VN30', page=1, pageSize=100)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.index
: M\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9u. L\u1ea5y trong danh s\u00e1ch tr\u1ea3 v\u1ec1 t\u1eeb h\u00e0m get_index_list
.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_index_component(client, config, index='VN30', page=1, pageSize=100)\nIndex: VN30 - HOSE. Total 30 symbols\n StockSymbol\n0 ACB\n1 BCM\n2 BID\n3 BVH\n4 CTG\n5 FPT\n...\n25 VIC\n26 VJC\n27 VNM\n28 VPB\n29 VRE\n
"},{"location":"integrate/ssi_fast_connect_api/#truy-xuat-du-lieu-gia-lich-su-ohlcv","title":"Truy xu\u1ea5t d\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed OHLCV","text":"Tips
V\u1edbi h\u00e0m get_daily_ohlc
d\u01b0\u1edbi \u0111\u00e2y tr\u1ea3 v\u1ec1 k\u1ebft qu\u1ea3 r\u1ea5t ch\u1eadm so v\u1edbi khi b\u1ea1n truy xu\u1ea5t d\u1eef li\u1ec7u gi\u00e1 t\u1eeb \u0111\u1ed3 th\u1ecb n\u1ebfn tr\u00ean web. Tr\u1ea3i nghi\u1ec7m c\u1ee7a t\u00f4i khi xu\u1ea5t to\u00e0n b\u1ed9 d\u1eef li\u1ec7u c\u1ee7a m\u00e3 c\u1ed5 phi\u1ebfu REE t\u1eeb n\u0103m 2000 m\u1ea5t h\u01a1n 30s trong khi d\u1eef li\u1ec7u t\u01b0\u01a1ng \u0111\u01b0\u01a1ng \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 b\u1eb1ng Public API c\u1ee7a SSI c\u00f3 \u0111\u01b0\u1ee3c trong 2s.
get_daily_ohlc(client, config, symbol='REE', fromDate='01/01/2000', toDate='15/12/2023', ascending=True, page=1, pageSize=6000)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
ascending
: True ho\u1eb7c False \u0111\u1ec3 ch\u1ecdn s\u1eafp x\u1ebfp k\u1ebft qu\u1ea3 theo chi\u1ec1u thu\u1eadn/ngh\u1ecbch.page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_daily_ohlc(client, config, symbol='REE', fromDate='01/01/2000', toDate='15/12/2023', ascending=True, page=1, pageSize=6000)\n\n Symbol Market TradingDate Open High Low Close Volume Value\n0 REE HOSE 28/07/2000 1044 1044 1044 1044 1000 0\n1 REE HOSE 31/07/2000 1063 1063 1063 1063 300 0\n2 REE HOSE 02/08/2000 1083 1083 1083 1083 100 0\n3 REE HOSE 04/08/2000 1102 1102 1102 1102 200 0\n4 REE HOSE 07/08/2000 1122 1122 1122 1122 2800 0\n... ... ... ... ... ... ... ... ... ...\n5675 REE HOSE 11/12/2023 59200 59800 58700 58700 237000 13996810000\n5676 REE HOSE 12/12/2023 58700 59100 58300 59000 287000 16830020000\n5677 REE HOSE 13/12/2023 59200 59200 57500 57700 587800 34240060000.0002\n5678 REE HOSE 14/12/2023 58100 58400 57100 57100 278100 16003970000\n5679 REE HOSE 15/12/2023 57200 58000 56500 56700 513300 29183299999.9998\n\n[5680 rows x 9 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#du-lieu-tick-ohlcv-cua-ma-chung-khoan-trong-ngay-giao-dich-intraday","title":"D\u1eef li\u1ec7u tick OHLCV c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n trong ng\u00e0y giao d\u1ecbch (Intraday)","text":"get_intraday_ohlc(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, ascending=True)\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.>>> get_intraday_ohlc(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, ascending=True, resolution=1)\n\n Symbol Value TradingDate Time Open High Low Close Volume\n0 SSI 28650 25/07/2023 09:15:52 28700 28800 28650 28650 153400\n1 SSI 28600 25/07/2023 09:16:57 28650 28650 28600 28600 15500\n2 SSI 28600 25/07/2023 09:17:59 28650 28650 28600 28600 50600\n3 SSI 28550 25/07/2023 09:18:56 28600 28600 28550 28550 27900\n4 SSI 28600 25/07/2023 09:19:58 28600 28600 28550 28600 35500\n.. ... ... ... ... ... ... ... ... ...\n995 SSI 29550 31/07/2023 10:44:55 29550 29550 29500 29550 132400\n996 SSI 29500 31/07/2023 10:45:53 29500 29550 29500 29500 369300\n997 SSI 29400 31/07/2023 10:46:49 29500 29500 29400 29400 124900\n998 SSI 29400 31/07/2023 10:47:49 29400 29450 29400 29400 69900\n999 SSI 29400 31/07/2023 10:48:57 29400 29450 29400 29400 20600\n\n[1000 rows x 9 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#thong-tin-giao-dich-theo-ngay-cua-ma-chung-khoan","title":"Th\u00f4ng tin giao d\u1ecbch theo ng\u00e0y c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n","text":"```shell\n>>> get_daily_stock_price(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, market='')\n
Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.symbol
: m\u00e3 ch\u1ee9ng kho\u00e1n c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.market
: S\u00e0n giao d\u1ecbch, \u0111\u1ec3 tr\u1ed1ng n\u1ebfu mu\u1ed1n l\u1ea5y t\u1ea5t c\u1ea3 k\u1ebft qu\u1ea3 t\u1eeb c\u00e1c s\u00e0n.>>> get_daily_stock_price(client, config, symbol='SSI', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, market='')\n\n TradingDate PriceChange PerPriceChange CeilingPrice ... TotalTradedVol TotalTradedValue Symbol Time\n0 31/07/2023 -100 -0.30 31800 ... 15219300 450985285000.0070 SSI None\n1 28/07/2023 300 1 31500 ... 13130200 389080050000.0010 SSI None\n2 27/07/2023 450 1.60 31000 ... 16465600 482248000000 SSI None\n3 26/07/2023 200 0.70 30800 ... 12780300 367721865000.0020 SSI None\n4 25/07/2023 100 0.30 30700 ... 14449000 415978000000 SSI None\n\n[5 rows x 31 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#ket-qua-giao-dich-cua-ma-chi-so-theo-ngay","title":"K\u1ebft qu\u1ea3 giao d\u1ecbch c\u1ee7a m\u00e3 ch\u1ec9 s\u1ed1 theo ng\u00e0y","text":"Trong \u0111\u00f3:
client
: l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python cung c\u1ea5p c\u00e1c ph\u01b0\u01a1ng th\u1ee9c k\u1ebft n\u1ed1i t\u1edbi API c\u1ee7a SSI. client
\u0111\u01b0\u1ee3c \u0111\u1ecbnh ngh\u0129a trong b\u01b0\u1edbc h\u01b0\u1edbng d\u1eabn x\u00e1c th\u1ef1c \u1edf tr\u00eanconfig
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.index
: m\u00e3 ch\u1ec9 s\u1ed1 c\u1ea7n tra c\u1ee9ufromDate
: ng\u00e0y b\u1eaft \u0111\u1ea7u b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
toDate
: ng\u00e0y k\u1ebft th\u00fac b\u00e1o c\u00e1o, \u0111\u1ecbnh d\u1ea1ng DD/MM/YYYY
page
: s\u1ed1 th\u1ee9 t\u1ef1 trangpageSize
: S\u1ed1 k\u1ebft qu\u1ea3 c\u1ea7n l\u1ea5y v\u1ec1 t\u1ed1i \u0111a cho m\u1ed7i trang.orderBy
: ch\u1ecdn c\u1ed9t d\u00f9ng l\u00e0m ti\u00eau ch\u00ed s\u1eafp x\u1ebfp th\u1ee9 t\u1ef1 k\u1ebft qu\u1ea3 hi\u1ec3n th\u1ecb.order
: th\u1ee9 t\u1ef1 s\u1eafp x\u1ebfp k\u1ebft qu\u1ea3. desc
cho s\u1eafp x\u1ebfp theo chi\u1ec1u ngh\u1ecbch, asc
cho s\u1eafp x\u1ebfp theo chi\u1ec1u thu\u1eadn.>>> get_daily_index(client, config, index='VN30', fromDate='25/07/2023', toDate='31/07/2023', page=1, pageSize=1000, orderBy='Tradingdate', order='desc', request_id='')\n\n IndexId IndexValue TradingDate Change RatioChange ... TotalDealVol TotalDealVal TotalVol TotalVal TradingSession\n0 VN30 1230.81 31/07/2023 18.36 1.5143 ... 31046442 727903000000 325942142 9306421000000\n C\n1 VN30 1212.45 28/07/2023 12.77 1.0645 ... 17227339 570484000000 268863339 7303088000000\n C\n2 VN30 1199.68 27/07/2023 -1.75 -0.1457 ... 36187850 992090000000 299632550 7938811000000\n C\n3 VN30 1201.43 26/07/2023 3.42 0.2855 ... 19422282 599445000000 266954582 6817668000000\n C\n4 VN30 1198.01 25/07/2023 4.87 0.4082 ... 32883479 911331000000 286220979 7918426000000\n C\n\n[5 rows x 19 columns]\n
"},{"location":"integrate/ssi_fast_connect_api/#streaming-du-lieu","title":"Streaming d\u1eef li\u1ec7u","text":"start_market_data_stream(config, channel='X-QUOTE:HCM')\n
Trong \u0111\u00f3:
config
l\u00e0 \u0111\u1ed1i t\u01b0\u1ee3ng python ch\u1ee9a c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c, \u0111\u01b0\u1ee3c import v\u00e0o ch\u01b0\u01a1ng tr\u00ecnh trong b\u01b0\u1edbc x\u00e1c th\u1ef1c.channel
: K\u00eanh streaming, \u0111\u01b0\u1ee3c t\u1ea1o ra b\u1eb1ng c\u00e1ch k\u1ebft h\u1ee3p m\u00e3 lo\u1ea1i d\u1eef li\u1ec7u v\u00e0 m\u00e3 ch\u1ee9ng kho\u00e1n/ch\u1ec9 s\u1ed1 t\u01b0\u01a1ng \u1ee9ng. F:SSI
ho\u1eb7c F:SSI-PAN
ho\u1eb7cF:ALL
Tr\u1ea3 v\u1ec1 th\u00f4ng tin phi\u00ean giao d\u1ecbch v\u00e0 tr\u1ea1ng th\u00e1i giao d\u1ecbch c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL
\u0111\u1ec3 l\u1ea5y th\u00f4ng tin room c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u bid/ask X
X-QUOTE:SSI
ho\u1eb7c X-QUOTE:ALL
D\u1eef li\u1ec7u bid/ask c\u1ee7a m\u00e3 ch\u1ee9ng kho\u00e1n. Trong \u0111\u00f3, ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. D\u1eef li\u1ec7u kh\u1edbp l\u1ec7nh X
X-TRADE:SSI
ho\u1eb7c X-TRADE:ALL
ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. D\u1eef li\u1ec7u t\u1ed5ng h\u1ee3p c\u1ee7a th\u00f4ng tin bid/ask v\u00e0 th\u00f4ng tin kh\u1edbp l\u1ec7nh X
X:SSI-VIC
ho\u1eb7c X:ALL
ALL
th\u1ec3 hi\u1ec7n l\u1ea5y d\u1eef li\u1ec7u to\u00e0n b\u1ed9 c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\" D\u1eef li\u1ec7u Room n\u01b0\u1edbc ngo\u00e0i R
R:SSI
ho\u1eb7c R:SSI-VIC
ho\u1eb7c R:ALL
C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL \u0111\u1ec3 l\u1ea5y th\u00f4ng tin room c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u ch\u1ec9 s\u1ed1 MI
MI:VN30
ho\u1eb7c MI:VN30-HNXindex
ho\u1eb7c MI:ALL
Cung c\u1ea5p th\u00f4ng tin ch\u1ec9 s\u1ed1 c\u1eadp nh\u1eadt c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c s\u00e0n HOSE, HNX, UPCOM. C\u00e1c m\u00e3 CK \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". ALL
\u0111\u1ec3 l\u1ea5y to\u00e0n b\u1ed9 th\u00f4ng tin c\u00e1c m\u00e3. D\u1eef li\u1ec7u OHLCV B
B:SSI
; B:SSI-VN30
ho\u1eb7c B:ALL
Tr\u1ea3 v\u1ec1 th\u00f4ng tin open, high, low, close, volume c\u1ee7a c\u00e1c m\u00e3 ch\u1ee9ng kho\u00e1n/ch\u1ec9 s\u1ed1 theo tick. C\u00e1c m\u00e3 CK/ch\u1ec9 s\u1ed1 \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch nhau b\u1edfi d\u1ea5u \"-\". Ho\u1eb7c c\u00f3 th\u1ec3 nh\u1eadp ALL \u0111\u1ec3 l\u1ea5y th\u00f4ng tin OHLCV realtime c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c m\u00e3. D\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 c\u00f3 d\u1ea1ng nh\u01b0 sau:
>>> start_market_data_stream(config, channel='X-QUOTE:HCM')\n\n 0\nTradingDate 15/12/2023\nTime 14:45:04\nExchange HOSE\nSymbol HCM\nRType X-QUOTE\nAskPrice1 31500.0\nAskPrice2 31550.0\nAskPrice3 31600.0\nAskVol1 479700.0\nAskVol2 39500.0\nAskVol3 44400.0\nBidPrice1 31350.0\nBidPrice2 31250.0\nBidPrice3 31200.0\nBidVol1 1000.0\nBidVol2 2200.0\nBidVol3 10700.0\nTradingSession PT\n
"},{"location":"integrate/streamlit/","title":"Streamlit","text":"Streamlit x vnstock\"
vnstock
l\u00e0 ngu\u1ed3n d\u1eef li\u1ec7u ho\u00e0n h\u1ea3o \u0111\u1ec3 x\u00e2y d\u1ef1ng trung t\u00e2m ph\u00e2n t\u00edch tr\u1ef1c quan v\u1edbi n\u1ec1n t\u1ea3ng Streamlit s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python.
Vnstock Web App ch\u00ednh l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng d\u1eef li\u1ec7u t\u1eeb ch\u00ednh vnstock \u0111\u1ec3 t\u1ea1o ra \u1ee9ng d\u1ee5ng v\u1edbi giao di\u1ec7n \u0111\u1ed3 h\u1ecda tr\u1ef1c quan v\u00e0 th\u00e2n thi\u1ec7n. \u1ee8ng d\u1ee5ng n\u00e0y ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y, kh\u00f4ng c\u1ea7n thi\u1ebft l\u1eadp b\u1ea5t c\u1ee9 c\u01a1 s\u1edf d\u1eef li\u1ec7u n\u00e0o, d\u1eef li\u1ec7u \u0111\u1ea7u v\u00e0o c\u1ee7a Web App ch\u00ednh l\u00e0 c\u00e1c APIs do vnstock cung c\u1ea5p. Trong th\u1ef1c t\u1ebf, b\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn ch\u1ea1y Streamlit tr\u00ean m\u00f4i tr\u01b0\u1eddng m\u00e1y t\u00ednh c\u00e1 nh\u00e2n c\u1ee5c b\u1ed9 ho\u1eb7c tr\u00ean m\u00f4i tr\u01b0\u1eddng \u0111\u00e1m m\u00e2y c\u1ee7a d\u1ecbch v\u1ee5 Streamlit Share hay Huggingface Spaces. L\u1ef1a ch\u1ecdn l\u00e0 \u1edf b\u1ea1n.
\u0110\u1ec3 c\u00f3 th\u1ec3 l\u00e0m ch\u1ee7 Streamlit nhanh ch\u00f3ng v\u1edbi l\u1ed9 tr\u00ecnh \u0111\u00e0o t\u1ea1o th\u1ef1c t\u1ebf, \u1ee9ng d\u1ee5ng cho ch\u00ednh th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 s\u1eed d\u1ee5ng vnstock. B\u1ea1n c\u00f3 th\u1ec3 trao \u0111\u1ed5i th\u00eam v\u1edbi Th\u1ecbnh v\u1ec1 kh\u00f3a h\u1ecdc ng\u1eafn h\u1ea1n s\u1eafp tri\u1ec3n khai.
"},{"location":"integrate/ta_lib/","title":"TA-Lib","text":"Gi\u1edbi thi\u1ec7u TA-lib
TA-lib \u0111\u01b0\u1ee3c c\u00e1c l\u1eadp tr\u00ecnh vi\u00ean s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong ph\u00e2n t\u00edch k\u1ef9 thu\u1eadt cho d\u1eef li\u1ec7u t\u00e0i ch\u00ednh, g\u00f3i ph\u1ea7n m\u1ec1m nguy\u00ean b\u1ea3n \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng ng\u00f4n ng\u1eef C/C++.
TA-lib python d\u1ef1a tr\u00ean Cython thay v\u00ec SWIG kh\u00f3 c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng nh\u01b0 g\u00f3i th\u01b0 vi\u1ec7n TA-lib nguy\u00ean b\u1ea3n cho ph\u00e9p c\u1ed9ng \u0111\u1ed3ng s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef Python c\u00f3 th\u1ec3 t\u1eadn d\u1ee5ng to\u00e0n b\u1ed9 s\u1ee9c m\u1ea1nh c\u1ee7a TA-lib trong d\u1ef1 \u00e1n c\u1ee7a m\u00ecnh.
D\u1eef li\u1ec7u gi\u00e1 l\u1ecbch s\u1eed t\u1eeb h\u00e0m stock_historical_data
do vnstock cung c\u1ea5p c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ho\u00e0n h\u1ea3o v\u1edbi d\u1ef1 \u00e1n t\u00edch h\u1ee3p b\u1ed9 c\u00f4ng c\u1ee5 TA-lib. B\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo h\u01b0\u1edbng d\u1eabn d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 c\u00e0i \u0111\u1eb7t TA-lib v\u00e0 s\u1eed d\u1ee5ng c\u00f9ng vnstock (n\u1ebfu ch\u01b0a th\u1eed).
M\u1edf Notebook demo \u0111\u1ec3 s\u1eed d\u1ee5ng code m\u1eabu.
M\u1edf Notebook
"},{"location":"integrate/ta_lib/#moi-truong-local","title":"M\u00f4i tr\u01b0\u1eddng local","text":"B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t chi ti\u1ebft t\u1ea1i \u0111\u00e2y
"},{"location":"integrate/ta_lib/#cai-at-ta-lib-cho-windows","title":"C\u00e0i \u0111\u1eb7t TA-Lib cho Windows","text":"C\u00e1ch \u0111\u01a1n gi\u1ea3n v\u00e0 \u0111\u1ea3m b\u1ea3o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng TA-Lib tr\u00ean m\u00e1y t\u00ednh Windows \u0111\u00f3 l\u00e0 d\u00f9ng file wheel \u0111\u00e3 \u0111\u01b0\u1ee3c build s\u1eb5n t\u1eeb li\u00ean k\u1ebft c\u1ee7a \u0111\u1ea1i h\u1ecdc UCI (University of California, Irvine). C\u00e1ch th\u1ef1c hi\u1ec7n nh\u01b0 sau:
Ctrl
+ F
v\u00e0 t\u00ecm ki\u1ebfm TA-Lib.TA_Lib-0.4.24-cp310-cp310-win_amd64.whl
. Downloads
ch\u1ee9a file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea3i v\u1ec1 trong Terminal/Command Prompt \u0111\u1ec3 c\u00e0i \u0111\u1eb7t. B\u1ea1n c\u00f3 th\u1ec3 m\u1edf Windows Explorer, duy\u1ec7t \u0111\u1ebfn th\u01b0 m\u1ee5c Downloads
v\u00e0 nh\u1eadp cmd.exe
v\u00e0o thanh \u0111\u1ecba ch\u1ec9 c\u1ee7a Windows Explorer \u0111\u1ec3 m\u1edf Command Prompt ho\u1eb7c ch\u1ea1y Command Prompt t\u1eeb Start menu. Nh\u1eadp l\u1ec7nh cd Downloads
\u0111\u1ec3 m\u1edf th\u01b0 m\u1ee5c n\u00e0y trong giao di\u1ec7n d\u00f2ng l\u1ec7nh.Ch\u1ea1y d\u00f2ng l\u1ec7nh pip install TA_Lib-0.4.24-cp310-cp310-win_amd64.whl
\u0111\u1ec3 c\u00e0i \u0111\u1eb7t file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea3i v\u1ec1. Ch\u1edd trong gi\u00e2y l\u00e1t, TA-Lib s\u1ebd \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t.
Gi\u1edbi thi\u1ec7u
vnstock cung c\u1ea5p t\u1edbi b\u1ea1n c\u00e1c h\u00e0m k\u1ebft n\u1ed1i t\u1edbi Telegram API v\u00e0 Slack API cho ph\u00e9p g\u1eedi tin nh\u1eafn, h\u00ecnh \u1ea3nh qua Slack channel v\u00e0 Telegram group. \u0110\u00e2y l\u00e0 t\u00ednh n\u0103ng m\u1edf ra c\u00e1c \u1ee9ng d\u1ee5ng g\u1eedi tin t\u1ee9c, c\u1ea3nh b\u00e1o giao d\u1ecbch v\u00e0 c\u00e1c th\u00f4ng tin quan tr\u1ecdng t\u1edbi b\u1ea1n m\u00e0 kh\u00f4ng c\u1ea7n \u0111i qua b\u1ea5t k\u1ef3 d\u1ecbch v\u1ee5 trung gian n\u00e0o.
\u0110\u1ec3 s\u1eed d\u1ee5ng t\u00ednh n\u0103ng n\u00e0y b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng code m\u1eabu trong file demo notebook chung c\u1ee7a vnstock. C\u00fa ph\u00e1p c\u1ee7a h\u00e0m t\u01b0\u01a1ng \u0111\u1ed1i \u0111\u01a1n gi\u1ea3n.
"},{"location":"integrate/telegram-slack-gui-tin-nhan-thong-bao-qua-chat-tu-python/#telegram","title":"Telegram","text":"Tham kh\u1ea3o b\u00e0i vi\u1ebft tr\u00ean Th\u1ecbnh V\u0169 Blog t\u1ea1i \u0111\u00e2y v\u00e0 \u0111\u00e2y n\u1eefa \u0111\u1ec3 hi\u1ec3u h\u01a1n v\u1ec1 c\u00e1c b\u01b0\u1edbc thi\u1ebft l\u1eadp Telegram Bot tr\u01b0\u1edbc khi b\u1ea1n c\u00f3 th\u1ec3 c\u1ea5u h\u00ecnh c\u00e1c h\u00e0m g\u1eedi tin nh\u1eafn d\u01b0\u1edbi \u0111\u00e2y. Th\u1ecbnh c\u0169ng s\u1ebd c\u1eadp nh\u1eadt l\u1ea1i h\u01b0\u1edbng d\u1eabn m\u1edbi nh\u1ea5t trong th\u1eddi gian t\u1edbi.
from vnstock.integration import * # N\u1ebfu \u0111\u00e3 n\u1ea1p t\u1ea5t c\u1ea3 h\u00e0m th\u00ec b\u1ecf qua.\n\ntoken_key = 'TOKEN_KEY_SLACK_C\u1ee6A_B\u1ea0N'\nslack_channel = 'T\u00caN_CHANNEL'\nmessage = 'Tin nh\u1eafn c\u1ee7a b\u1ea1n'\nfile_path = '\u0110\u01af\u1edcNG_D\u1eaaN_\u0110\u1ebeN_FILE_H\u00ccNH_TR\u00caN_M\u00c1Y_T\u00cdNH'\n
B\u00e2y gi\u1edd th\u00ec b\u1ea1n \u0111\u00e3 s\u1eb5n s\u00e0ng \u0111\u1ec3 l\u1ef1a ch\u1ecdn 1 trong 2 h\u00ecnh th\u1ee9c g\u1eedi tin nh\u1eafn
slack_send_file(token_key, slack_channel, text_comment, file_path)\n
pythonslack_send_message(token_key, slack_channel, message)\n
Trong \u0111\u00f3:
token_key
: B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng bot token b\u1eaft \u0111\u1ea7u v\u1edbi xoxb-..
ho\u1eb7c user token b\u1eaft \u0111\u1ea7u v\u1edbi xoxp-..
slack_channel
: l\u00e0 t\u00ean channel, b\u1eaft \u0111\u1ea7u v\u1edbi #
v\u00ed d\u1ee5 #market_trend
text_comment
: caption cho file h\u00ecnh \u1ea3nh g\u1eedi k\u00e8mfile_path
: \u0111\u01b0\u1eddng d\u1eabn t\u1edbi file h\u00ecnh \u1ea3nh tr\u00ean m\u00e1y t\u00ednhmessage
: l\u00e0 n\u1ed9i dung tin nh\u1eafnT\u01b0\u01a1ng t\u1ef1 v\u1edbi c\u00e1c h\u00e0m s\u1eed d\u1ee5ng cho Telegram. B\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp c\u1ea5u h\u00ecnh nh\u1eafn tin t\u1edbi 1 channel Slack b\u1ea5t k\u1ef3 b\u1eb1ng c\u00e1c h\u00e0m d\u01b0\u1edbi \u0111\u00e2y.
from vnstock.integration import * # N\u1ebfu \u0111\u00e3 n\u1ea1p t\u1ea5t c\u1ea3 h\u00e0m th\u00ec b\u1ecf qua.\n\ntoken_key = 'TOKEN_KEY_C\u1ee6A_B\u1ea0N'\nchat_id = 'ID_NH\u00d3M_CHAT'\nmessage = 'Tin nh\u1eafn c\u1ee7a b\u1ea1n'\nfile_path = '\u0110\u01af\u1edcNG_D\u1eaaN_\u0110\u1ebeN_FILE_H\u00ccNH_TR\u00caN_M\u00c1Y_T\u00cdNH'\n
G\u1eedi tin nh\u1eafn k\u00e8m h\u00ecnh: telegram_send_photo(token_key, chat_id, message, file_path)
G\u1eedi tin nh\u1eafn v\u0103n b\u1ea3n: telegram_send_message(token_key, chat_id, message)
Vnstock v\u00e0 streamlit
Vnstock Web App ho\u1ea1t \u0111\u1ed9ng tr\u00ean n\u1ec1n t\u1ea3ng streamlit trong Python. Streamlit c\u0169ng l\u00e0 t\u00ean c\u1ee7a g\u00f3i th\u01b0 vi\u1ec7n m\u00e3 ngu\u1ed3n m\u1edf n\u00e0y. B\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng web app c\u1ee7a m\u00ecnh v\u00e0 host tr\u00ean d\u1ecbch v\u1ee5 Streamlit Share ho\u1eb7c s\u1eed d\u1ee5ng Hugging Face Spaces ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed.
Vnstock Web App l\u00e0 m\u1ed9t v\u00ed d\u1ee5 sinh \u0111\u1ed9ng cho vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c APIs do vnstock cung c\u1ea5p \u0111\u1ec3 x\u00e2y d\u1ef1ng \u1ee9ng d\u1ee5ng ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n c\u1ee7a ri\u00eang b\u1ea1n.
B\u1ea1n c\u00f3 th\u1ec3 t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 c\u00e1ch t\u1ea1o ra m\u1ed9t web app v\u1edbi Streamlit v\u00e0 s\u1eed d\u1ee5ng Vnstock thu\u1eadn ti\u1ec7n b\u1edfi Vnstock cung c\u1ea5p s\u1ed1 l\u01b0\u1ee3ng h\u00e0m cho th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam qua APIs \u0111a d\u1ea1ng nh\u1ea5t hi\u1ec7n nay \u0111\u1ec3 gi\u00fap b\u1ea1n ph\u00e2n t\u00edch to\u00e0n di\u1ec7n trong t\u1ea5t c\u1ea3 c\u00e1c th\u01b0 vi\u1ec7n Python. \u0110\u00e2y c\u0169ng l\u00e0 c\u00e1ch d\u1ec5 nh\u1ea5t \u0111\u1ec3 t\u1ea1o ra m\u1ed9t \u1ee9ng d\u1ee5ng \u0111\u1ed3 h\u1ecda v\u1edbi Python \u1edf th\u1eddi \u0111i\u1ec3m hi\u1ec7n t\u1ea1i.
M\u1edf Web App
"},{"location":"start/huong-dan-cai-dat-vnstock-python/","title":"C\u00e0i \u0111\u1eb7t vnstock","text":""},{"location":"start/huong-dan-cai-dat-vnstock-python/#xac-inh-phien-ban-phu-hop","title":"X\u00e1c \u0111\u1ecbnh phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p","text":"Phi\u00ean b\u1ea3n
vnstock \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n th\u00e0nh hai nh\u00e1nh ri\u00eang bi\u1ec7t. Trong h\u1ea7u h\u1ebft tr\u01b0\u1eddng h\u1ee3p b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh c\u00e0i \u0111\u1eb7t nhanh t\u1eeb PyPI. N\u1ebfu b\u1ea1n c\u00f3 nhu c\u1ea7u c\u00e0i \u0111\u1eb7t vnstock t\u1eeb m\u00e3 ngu\u1ed3n, b\u1ea1n c\u1ea7n ch\u1ecdn phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p v\u00e0 copy c\u00e2u l\u1ec7nh t\u01b0\u01a1ng \u1ee9ng \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\u00e0i \u0111\u1eb7t \u1edf b\u01b0\u1edbc ti\u1ebfp theo:
pip install --upgrade vnstock\n
C\u00e0i \u0111\u1eb7t tr\u1ef1c ti\u1ebfp t\u1eeb m\u00e3 ngu\u1ed3n c\u00f3 tr\u00ean Github:
beta
(nh\u1eadn c\u1eadp nh\u1eadt m\u1edbi nh\u1ea5t) \u0111\u01b0\u1ee3c chia s\u1ebb t\u1ea1i nh\u00e1nh beta
c\u1ee7a Github repo. pip install git+https://github.com/thinh-vu/vnstock.git@beta\n
stable
(\u0111\u00e3 ph\u00e1t tri\u1ec3n \u1ed5n \u0111\u1ecbnh) \u0111\u01b0\u1ee3c chia s\u1ebb qua pypi.org v\u00e0 nh\u00e1nh main
t\u1ea1i Github repo. pip install git+https://github.com/thinh-vu/vnstock.git@main\n
Khi s\u1eed d\u1ee5ng file Demo Notebook \u0111\u1ec3 b\u1eaft \u0111\u1ea7u, c\u00e1c c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t c\u1ea7n thi\u1ebft \u0111\u00e3 \u0111\u01b0\u1ee3c cung c\u1ea5p s\u1eb5n \u0111\u1ec3 b\u1ea1n th\u1ef1c thi (run).
pip \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 c\u00e0i \u0111\u1eb7t vnstock
. pip c\u00f3 s\u1eb5n trong h\u1ea7u h\u1ebft c\u00e1c b\u1ea3n ph\u00e2n ph\u1ed1i Python \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t. Phi\u00ean b\u1ea3n python c\u1ea7n thi\u1ebft cho vnstock t\u1ed1i thi\u1ec3u l\u00e0 3.7. B\u1ea1n c\u00f3 th\u1ec3 paste c\u00e2u l\u1ec7nh \u0111\u00e3 copy \u1edf B\u01b0\u1edbc 1 v\u00e0 ch\u1ea1y n\u00f3 trong m\u00f4i tr\u01b0\u1eddng Python b\u1ea1n \u0111ang s\u1eed d\u1ee5ng.
Insiders Program
\u0110\u1ed1i v\u1edbi c\u00e1c th\u00e0nh vi\u00ean tham gia t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua Insiders Program, c\u00e1c b\u1ea1n c\u00f3 th\u00eam quy\u1ec1n truy c\u1eadp v\u00e0o c\u00e1c kho m\u00e3 ngu\u1ed3n ri\u00eang t\u01b0 (private repo). M\u1ed7i g\u00f3i c\u00e0i \u0111\u1eb7t b\u1ed5 sung n\u00e0y s\u1ebd c\u00f3 h\u01b0\u1edbng d\u1eabn k\u00e8m theo trong file README c\u1ee7a repo \u0111\u00f3 tr\u00ean Github.
"},{"location":"start/huong-dan-cai-dat-vnstock-python/#cai-at-cac-goi-thu-vien-bat-buoc-go-loi","title":"C\u00e0i \u0111\u1eb7t c\u00e1c g\u00f3i th\u01b0 vi\u1ec7n b\u1eaft bu\u1ed9c (g\u1ee1 l\u1ed7i)","text":"L\u01b0u \u00fd
Trong tr\u01b0\u1eddng h\u1ee3p b\u1ea1n kh\u00f4ng s\u1eed d\u1ee5ng Google Colab l\u00e0 m\u00f4i tr\u01b0\u1eddng m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 ch\u1ea1y vnstock, b\u1ea1n s\u1ebd c\u1ea7n ph\u1ea3i \u0111\u1ea3m b\u1ea3o m\u00f4i tr\u01b0\u1eddng Python c\u1ee7a m\u00ecnh c\u00f3 \u0111\u1ea7y \u0111\u1ee7 c\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m b\u1eaft bu\u1ed9c k\u00e8m theo (dependencies/requirements) \u0111\u1ec3 c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c vnstock
.
N\u1ebfu c\u00e0i Python v\u1edbi Anaconda, b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf qua b\u01b0\u1edbc n\u00e0y.
N\u1ebfu c\u00e0i b\u1ea3n python thu\u1ea7n t\u1eeb python.org ho\u1eb7c Python t\u1eeb Windows Store, b\u1ea1n s\u1ebd c\u1ea7n c\u00e0i \u0111\u1eb7t th\u00eam t\u1ed1i thi\u1ec3u pandas
v\u00e0 requests
v\u1edbi c\u00f4ng c\u1ee5 pip
.
\u0110\u1ec3 qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t di\u1ec5n ra \u0111\u01a1n gi\u1ea3n v\u00e0 su\u00f4n s\u1ebb, b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m theo c\u00e1c b\u01b0\u1edbc sau:
T\u1ea3i file requirement.txt v\u1ec1 m\u00e1y
M\u1edf Command Prompt / Terminal, tr\u1ecf t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a file requirements.txt
, th\u00f4ng th\u01b0\u1eddng l\u00e0 Downloads
b\u1eb1ng l\u1ec7nh:
cd \u0110\u1ecaA_CH\u1ec8_TH\u01af_M\u1ee4C_C\u1ee6A_B\u1ea0N
pip install -r requirements.txt
Nh\u01b0 v\u1eady l\u00e0 qu\u00e1 tr\u00ecnh chu\u1ea9n b\u1ecb \u0111\u1ec3 s\u1eed d\u1ee5ng vnstock
\u0111\u00e3 ho\u00e0n th\u00e0nh. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng!
vnstock l\u00e0 th\u01b0 vi\u1ec7n Python \u0111\u01b0\u1ee3c thi\u1ebft ph\u1ee5c v\u1ee5 nhu c\u1ea7u ph\u00e2n t\u00edch d\u1eef li\u1ec7u th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam, n\u1ec1n m\u00f3ng \u0111\u1ea7u ti\u00ean c\u1ee7a th\u01b0 vi\u1ec7n b\u1eaft \u0111\u1ea7u t\u1eeb vi\u1ec7c h\u1ed7 tr\u1ee3 t\u1ea3i d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n nhanh ch\u00f3ng, v\u00e0 mi\u1ec5n ph\u00ed. G\u00f3i th\u01b0 vi\u1ec7n \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf d\u1ef1a tr\u00ean nguy\u00ean t\u1eafc v\u1ec1 s\u1ef1 \u0111\u01a1n gi\u1ea3n v\u00e0 ti\u1ec7n l\u1ee3i, h\u1ea7u h\u1ebft c\u00e1c h\u00e0m \u0111\u1ec1u c\u00f3 th\u1ec3 ch\u1ea1y ngay tr\u00ean Google Colab khi c\u00e0i \u0111\u1eb7t vnstock m\u00e0 kh\u00f4ng y\u00eau c\u1ea7u th\u00eam g\u00f3i ph\u1ee5 thu\u1ed9c.
\u0110\u1ec3 b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng vnstock, b\u1ea1n s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh c\u00e0i \u0111\u1eb7t \u0111\u01a1n gi\u1ea3n sau tr\u00ean Google Colab ho\u1eb7c Command Prompt/Terminal:
pip install --upgrade vnstock\n
Ho\u1eb7c ch\u1ec9 c\u1ea7n m\u1edf file Demo Notebook v\u1edbi Google Colab, ch\u1ea1y l\u1ea7n l\u01b0\u1ee3t c\u00e1c c\u00e2u l\u1ec7nh \u0111\u1ec3 tr\u1ea3i nghi\u1ec7m c\u00e1c t\u00ednh n\u0103ng c\u1ee7a vnstock.
M\u1edf Notebook
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#moi-lam-quen-voi-python","title":"M\u1edbi l\u00e0m quen v\u1edbi Python?","text":"N\u1ebfu b\u1ea1n m\u1edbi b\u1eaft \u0111\u1ea7u t\u00ecm hi\u1ec3u Python v\u00e0 c\u00f2n cho\u00e1ng ng\u1ee3p v\u1edbi qu\u00e1 nhi\u1ec1u th\u1ee9 m\u1edbi m\u1ebb th\u00ec d\u1ef1 \u00e1n LEarn Anything t\u1eeb c\u00f9ng t\u00e1c gi\u1ea3 Th\u1ecbnh V\u0169 s\u1ebd l\u00e0 c\u1ea9m nang kh\u00f4ng th\u1ec3 thi\u1ebfu cho b\u1ea1n. Th\u00f4ng qua c\u00e1c b\u00e0i vi\u1ebft v\u00e0 video h\u01b0\u1edbng d\u1eabn v\u1ec1 Python d\u1ec5 hi\u1ec3u, b\u1ea1n s\u1ebd c\u00f3 m\u1ed9t c\u00e1i nh\u00ecn t\u1ed5ng qu\u00e1t v\u00e0 c\u0169ng r\u1ea5t d\u1ec5 hi\u1ec3u \u0111\u1ec3 b\u01b0\u1edbc ch\u00e2n v\u00e0o h\u00e0nh tr\u00ecnh kh\u00e1m ph\u00e1 m\u1ed9t th\u1ebf gi\u1edbi \u0111\u1ea7y m\u00ea ho\u1eb7c c\u1ee7a python trong m\u1ecdi l\u0129nh v\u1ef1c c\u1ee7a cu\u1ed9c s\u1ed1ng, kh\u00f4ng ch\u1ec9 ri\u00eang th\u1ecb tr\u01b0\u1eddng ch\u1ee9ng kho\u00e1n.
Python v\u1ee1 l\u00f2ng
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#nguon-cap-du-lieu","title":"Ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u","text":"Th\u01b0 vi\u1ec7n vnstock cung c\u1ea5p kh\u1ea3 n\u0103ng k\u1ebft n\u1ed1i t\u1edbi c\u00e1c API c\u00f4ng khai c\u1ee7a c\u00e1c ngu\u1ed3n c\u1ea5p d\u1eef li\u1ec7u \u0111\u00e1ng tin c\u1eady \u0111\u1ec3 ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u ch\u1ee9ng kho\u00e1n Vi\u1ec7t Nam v\u00e0 t\u01b0\u01a1ng t\u00e1c v\u1edbi c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng Pandas DataFrame trong m\u00f4i tr\u01b0\u1eddng Python. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 xu\u1ea5t d\u1eef li\u1ec7u sang c\u00e1c \u0111\u1ecbnh d\u1ea1ng ph\u1ed5 th\u00f4ng nh\u01b0 csv, Excel, Google Sheets, Database \u0111\u1ec3 ti\u1ebfn h\u00e0nh ph\u00e2n t\u00edch n\u1ebfu mu\u1ed1n. Vi\u1ec7c truy xu\u1ea5t d\u1eef li\u1ec7u n\u00e0y l\u00e0 T\u1ef0 DO v\u00e0 ho\u00e0n to\u00e0n MI\u1ec4N PH\u00cd.
"},{"location":"start/huong-dan-su-dung-nhanh-vnstock/#anh-dau-yeu-thich","title":"\u0110\u00e1nh d\u1ea5u y\u00eau th\u00edch","text":"D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00e1c g\u1ee3i \u00fd \u0111\u1ec3 b\u1ea1n tra c\u1ee9u trang t\u00e0i li\u1ec7u vnstock t\u1ed1i \u01b0u:
T\u00ecm ki\u1ebfm: B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng thanh t\u00ecm ki\u1ebfm tr\u00ean trang t\u00e0i li\u1ec7u \u0111\u1ec3 t\u00ecm ki\u1ebfm t\u00e0i li\u1ec7u v\u00e0 c\u00e1c n\u1ed9i dung m\u00ecnh quan t\u00e2m
Chuy\u1ec3n \u0111\u1ed5i giao di\u1ec7n s\u00e1ng/t\u1ed1i: \u0110\u1ec3 c\u00f3 tr\u1ea3i nghi\u1ec7m \u0111\u1ecdc trong \u0111i\u1ec1u ki\u1ec7n \u00e1nh s\u00e1ng t\u1ed1t nh\u1ea5t, b\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n \u0111\u1ed5i ch\u1ebf \u0111\u1ed9 s\u00e1ng/t\u1ed1i b\u1eb1ng c\u00e1ch nh\u1ea5p v\u00e0o bi\u1ec3u t\u01b0\u1ee3ng tr\u00ean \u0111\u1ea7u trang.
S\u1eed d\u1ee5ng b\u1ea3ng m\u1ee5c l\u1ee5c: Thanh \u0111i\u1ec1u h\u01b0\u1edbng b\u00ean tr\u00e1i cung c\u1ea5p c\u00e1c \u0111\u1ec1 m\u1ee5c \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 nh\u1ea5p v\u00e0o v\u00e0 di chuy\u1ec3n \u0111\u1ebfn n\u1ed9i dung m\u00ecnh c\u1ea7n d\u1ec5 d\u00e0ng.
Copy Code: \u1ede m\u1ed7i \u00f4 ch\u1ee9a d\u00f2ng l\u1ec7nh lu\u00f4n c\u00f3 bi\u1ec3u t\u01b0\u1ee3ng copy cho ph\u00e9p b\u1ea1n click v\u00e0o v\u00e0 sao ch\u00e9p \u0111o\u1ea1n m\u00e3 d\u1ec5 d\u00e0ng.
T\u00ednh n\u0103ng thu\u1ed9c Insiders Program: B\u1ea1n s\u1ebd b\u1eaft g\u1eb7p bi\u1ec3u t\u01b0\u1ee3ng \ud83d\udd10 \u0111\u1ed1i v\u1edbi h\u01b0\u1edbng d\u1eabn d\u00e0nh cho c\u00e1c t\u00ednh n\u0103ng n\u00e2ng cao ch\u1ec9 d\u00e0nh cho ng\u01b0\u1eddi d\u00f9ng t\u00e0i tr\u1ee3 d\u1ef1 \u00e1n th\u00f4ng qua ch\u01b0\u01a1ng tr\u00ecnh Insiders Program. Tham kh\u1ea3o th\u00eam chi ti\u1ebft t\u1ea1i \u0111\u00e2y
T\u1ea5t c\u1ea3 c\u00e1c h\u00e0m c\u1ee7a vnstock \u0111\u1ec1u \u0111\u01b0\u1ee3c cung c\u1ea5p docstring \u0111\u1ea7y \u0111\u1ee7, do \u0111\u00f3 b\u1ea1n c\u00f3 th\u1ec3 xem ph\u1ea7n g\u1ee3i \u00fd khi vi\u1ebft c\u00e2u l\u1ec7nh tr\u00ean c\u00e1c IDE nh\u01b0 Google Colab, Visual Studio Code, hay Jupyter Notebook.
Sau khi n\u1ea1p th\u01b0 vi\u1ec7n vnstock v\u00e0o m\u00f4i tr\u01b0\u1eddng l\u00e0m vi\u1ec7c th\u00f4ng qua c\u00e2u l\u1ec7nh import
, b\u1ea1n c\u00f3 th\u1ec3 in ph\u1ea7n h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng h\u00e0m vnstock b\u1ea5t k\u1ef3 th\u00f4ng qua thu\u1ed9c t\u00ednh __doc__
c\u1ee7a h\u00e0m \u0111\u00f3 nh\u01b0 sau (d\u1ea5u __
\u0111\u01b0\u1ee3c t\u1ea1o b\u1edfi 2 d\u1ea5u _
t\u1ee9c shift -
):
>>> print(listing_companies.__doc__)\n\nThis function returns the list of all available stock symbols from a csv file or a live api request.\n Parameters: \n live (bool): If True, return the list of all available stock symbols from a live api request. If False, return the list of all available stock symbols from the Github csv file (monthly update). Default is False.\n Returns: df (DataFrame): A pandas dataframe containing the stock symbols and other information.\n
T\u1ea5t nhi\u00ean, b\u1ea1n lu\u00f4n c\u00f3 th\u1ec3 m\u1edf ph\u1ea7n m\u00e3 ngu\u1ed3n c\u1ee7a vnstock tr\u00ean Github \u0111\u1ec3 xem chi ti\u1ebft.
Docstring trong Google ColabDocstring trong m\u00e3 ngu\u1ed3nG\u1ee3i \u00fd c\u00fa ph\u00e1p h\u00e0m \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb khi vi\u1ebft b\u1ea5t k\u1ef3 h\u00e0m n\u00e0o thu\u1ed9c vnstock, trong v\u00ed d\u1ee5 n\u00e0y hi\u1ec3n th\u1ecb trong giao di\u1ec7n Google Colab.
M\u1edf m\u00e3 ngu\u1ed3n Github t\u1ea1i th\u01b0 m\u1ee5c vnstock, t\u00ecm h\u00e0m b\u1ea1n c\u1ea7n tra c\u1ee9u docstring.
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/","title":"T\u00e0i nguy\u00ean quan tr\u1ecdng","text":"Tr\u01b0\u1edbc khi b\u1eaft \u0111\u1ea7u, b\u1ea1n c\u00f3 th\u1ec3 xem Video gi\u1edbi thi\u1ec7u ch\u00ednh th\u1ee9c cho vnstock m\u00ecnh m\u1edbi chia s\u1ebb tr\u00ean Youtube t\u1ea1i \u0111\u00e2y:
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#vnstock-website","title":"vnstock Website","text":"vnstock \u0111\u00e3 ho\u00e0n thi\u1ec7n b\u01b0\u1edbc \u0111\u1ea7u vi\u1ec7c x\u00e2y d\u1ef1ng m\u1ed9t website chuy\u00ean bi\u1ec7t \u0111\u1ec3 c\u1eadp nh\u1eadt th\u00f4ng tin v\u1ec1 d\u1ef1 \u00e1n, t\u00e0i li\u1ec7u s\u1eed d\u1ee5ng, blog, kh\u00f3a h\u1ecdc, v\u00e0 c\u00e1c t\u00e0i nguy\u00ean h\u1eefu \u00edch kh\u00e1c. C\u00e1c n\u1ed9i dung c\u1ee7a website \u0111ang t\u1eebng b\u01b0\u1edbc \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt v\u00e0 ho\u00e0n thi\u1ec7n.
B\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp vnstock.site \u0111\u1ec3 bi\u1ebft th\u00eam chi ti\u1ebft.
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#vnstock-web-app","title":"vnstock Web app","text":"vnstock Web app \u0111\u00e3 \u0111\u01b0\u1ee3c gi\u1edbi thi\u1ec7u l\u1ea7n \u0111\u1ea7u v\u00e0o 4/9/2023 nh\u1eb1m gi\u00fap ng\u01b0\u1eddi d\u00f9ng ph\u1ed5 th\u00f4ng c\u00f3 th\u1ec3 ti\u1ebfp c\u1eadn v\u1edbi vnstock theo c\u00e1ch \u0111\u01a1n gi\u1ea3n v\u00e0 thu\u1eadn ti\u1ec7n nh\u1ea5t d\u00f9 cho b\u1ea1n kh\u00f4ng c\u00f3 b\u1ea5t c\u1ee9 k\u1ef9 n\u0103ng hay hi\u1ec3u bi\u1ebft v\u1ec1 l\u1eadp tr\u00ecnh python \u0111\u1ec3 s\u1eed d\u1ee5ng.
vnstock web app \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng b\u1eb1ng streamlit framework, s\u1eed d\u1ee5ng ng\u00f4n ng\u1eef Python ho\u00e0n to\u00e0n. \u0110\u00e2y c\u0169ng l\u00e0 m\u1ed9t \u0111\u1ecbnh h\u01b0\u1edbng r\u1ea5t tri\u1ec3n v\u1ecdng trong vi\u1ec7c x\u00e2y d\u1ef1ng c\u00e1c \u1ee9ng d\u1ee5ng web trong vi\u1ec7c ph\u00e2n t\u00edch ch\u1ee9ng kho\u00e1n v\u1edbi giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng th\u00e2n thi\u1ec7n v\u00e0 d\u1ec5 s\u1eed d\u1ee5ng, b\u1ea3o tr\u00ec.
M\u1edf Web App
"},{"location":"start/tai-nguyen-quan-trong-vnstock-website/#notebook-minh-hoa","title":"Notebook minh ho\u1ea1","text":"B\u1ea1n c\u00f3 th\u1ec3 m\u1edf file demo b\u1eb1ng Jupyter Notebook v\u00e0 d\u00f9ng th\u1eed t\u1ea5t c\u1ea3 c\u00e1c h\u00e0m c\u1ee7a vnstock t\u1eeb giao di\u1ec7n Google Colab. N\u1ebfu mu\u1ed1n s\u1eed d\u1ee5ng Notebook trong Visual Studio Code ho\u1eb7c IDE kh\u00e1c, b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm menu File > Download v\u00e0 ch\u1ecdn Download.ipynb \u0111\u1ec3 l\u01b0u file v\u1ec1 m\u00e1y.
M\u1edf Notebook
"},{"location":"blog/archive/2023/","title":"2023","text":""},{"location":"blog/category/huong-dan/","title":"H\u01b0\u1edbng d\u1eabn","text":""}]} +>>>>>>> Stashed changes diff --git a/docs/site/sitemap.xml b/docs/site/sitemap.xml index 140c775e..1272dd3c 100644 --- a/docs/site/sitemap.xml +++ b/docs/site/sitemap.xml @@ -2,322 +2,578 @@