Truy xuất dữ liệu
Các ví dụ liên quan đến việc truy xuất dữ liệu lịch sử
Truy xuất dữ liệu lịch sử
from FiinQuantX import FiinSession
# Đăng nhập
username = 'REPLACE_WITH_YOUR_USER_NAME'
password = 'REPLACE_WITH_YOUR_PASS_WORD'
client = FiinSession(username=username, password=password).login()
fi = client.FiinIndicator()
# Lấy dữ liệu có sẵn
tickers = ['HPG','SSI','VN30']
df = client.Fetch_Trading_Data(
realtime = False,
tickers = tickers,
fields = ['open','high','low','close','volume','bu','sd','fn','fs','fb'],
adjusted=True,
from_date='2024-12-04',
by = '1m'
).get_data()
print(df)Truy xuất dữ liệu Realtime
3. Tìm khối lượng mua bán ATC của VN30

Last updated