RStockvn


NameRStockvn JSON
Version 5.0 PyPI version JSON
download
home_pageNone
SummaryReport Finance of Companies in Vietnamese and macro data - Lấy báo cáo tài chính của các công ty ở Việt Nam và số liệu vĩ mô
upload_time2025-08-09 04:48:07
maintainerNone
docs_urlNone
authorNGUYEN PHUC BINH
requires_pythonNone
licenseNone
keywords stockvn rpv rstockvn report stock vn báo cáo tài chính việt nam lấy báo cáo tài chính việt nam bằng python lấy báo cáo tài chính về excel lấy báo cáo tài chính về excel bằng python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # [RStockvn](https://pypi.org/project/RStockvn/)

Financial statements of companies on the Vietnamese stock exchange



#Readme instructions are available in 2 languages, English and Vietnamese.

#Readme hướng dẫn có 2 ngôn ngữ, tiếng anh và tiếng việt.



#Language English



# Introduction

Hello,

I would like to introduce the library [RStockvn](https://pypi.org/project/RStockvn/) which is a library that supports the retrieval of financial reports from companies listed on the Vietnam Stock Exchange.



### From version 1.0.3 onwards, RStockvn can retrieve macro information.

RStockvn can now get macro information such as CPI, GDP, interest rates,... updated according to the website: [Vietstock](https://finance.vietstock.vn/du-lieu-vi-mo)



If you are using an old version and encounter an error, please update RStockvn by: ``pip install --upgrade RStockvn`` or uninstall and reinstall ``pip uninstall RStockvn``



## Notice from version 2.5.0 onwards [RStockvn](https://pypi.org/project/RStockvn/) no longer supports getting data from Cafef.



# Instructions

First you need to install the RStockvn library by:

``pip install RStockvn`` or if using Jupyter ``conda install RStockvn``

Step 2 import the library: ``import RStockvn as rpv``



## Function to get data from the list of companies listed on the Vietnam Stock Exchange



``rpv.list_company()``



If you see that the list is old, you can perform the function below to update the new one



``rpv.update_company()``



## Function to get stock information from 'vndirect':



`symbol` is the stock symbol

Function to get stock information including P/E, P/B, number of outstanding shares, ... as follows: get_info_cp(symbol)



#### Example to get stock information VND

```get_info_cp('vnd')```



## Function to get stock price history from 'vndirect':

`symbol` is the stock symbol

`fromdate` is the start date you need to get

`todate` is the end date

Function to get stock price history as follows: ``get_price_historical_vnd(symbol,fromdate,todate)``



#### Example to get vnd ​​price history from 06/20/2024 to 08/08/2024

```rpv.get_price_historical_vnd('vnd','06/20/2024',08/08/2024)```



## Function to get financial reports of companies listed on the Vietnam Stock Exchange from 'vndirect':

`symbol` is the stock symbol

`report` is the type of report you need to get `'BS' or 'BALANCESHEET' or 'CDKT'` - is the balance sheet, `'P&L' or 'Business results'` - is the business results report, `'CF' - 'Cash Flows'` - is the cash flow report

`year` is the financial year you need to get

`timely` is the type of quarterly or annual report



rpv.report_finance_vnd(symbol,report,year,timely)



#### Example of getting VNDIRECT's balance sheet in 2023 by quarter

```rpv.report_finance_vnd('vnd','bs','2023','quarter')```



## Function to get interest rate according to Vietstock

Function to get interest rate as follows:``laisuat_vietstock(fromdate,todate)``, ``fromdate`` is the start date of interest rate to get ``todate`` is the end date end.



#### Example

```

rpv.laisuat_vietstock('2022-10-12','2023-02-01')

```

## Function to get CPI index according to Vietstock

Function to get CPI index as follows:``getCPI_vietstock(fromdate,todate)``, ``fromdate`` is the start date of the interest rate to be taken ``todate`` is the end date.



#### Example

```

rpv.getCPI_vietstock('2022-10-01','2023-02-01')

```



## Function to get Production Index according to Vietstock

The function to get the production index is as follows:``solieu_sanxuat_congnghiep(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.



#### Example

```

rpv.solieu_sanxuat_congnghiep('2022-10-01','2023-02-01')

```

## 6Function to get retail sales data according to Vietstock

Function to get retail sales data as follows: ``solieu_banle_vietstock(fromdate,todate)``, ``fromdate`` is the start date of the interest rate to be taken, ``todate`` is the end date.



#### Example

```

rpv.solieu_banle_vietstock('2022-10-01','2023-02-01')

```



## Function to get import-export data according to Vietstock

The function to get import-export data is as follows: ``solieu_XNK_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.



#### Example

```

rpv.solieu_XNK_vietstock('2022-10-01','2023-02-01')

```



## Function to get FDI data according to Vietstock

Function to get XNK data as follows:``solieu_FDI_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.



#### Example

```

rpv.solieu_FDI_vietstock('2022-10-01','2023-02-01')

```



## Function to get USD/VND exchange rate data according to Vietstock

Function to get USD/VND exchange rate as follows:``tygia_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.



#### Example

```

rpv.tygia_vietstock('2022-10-01','2023-02-01')

```



## Function to get credit data according to Vietstock

Function to get credit data as follows:``solieu_tindung_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken ``todate`` is the ending date.



#### Example

```

rpv.solieu_tindung_vietstock('2022-10-01','2023-02-01')

```



## Function to get credit data according to Vietstock

Function to get credit data as follows:``solieu_GDP_vietstock(fromyear,fromQ,toyear,toQ)``, ``fromyear`` ``toyear`` start and end year, ``fromQ``, ``toQ`` start and end quarter.



#### Example

You want the GDP index from Q2 2020 to Q3 2022.

```

rpv.solieu_GDP_vietstock('2020','2','2022','3')

```



# Conclusion

If you find this project useful, you can support us via the QR code below to help maintain and develop the project.



[QR Code for Donations](https://github.com/NPhucBinh/Donate/blob/main/README.md)



You can contact via email: nguyenphucbinh67@gmail.com



#Language Vietnamese



# Giới thiệu

Chào bạn, 

Xin giới thiệu thư viện [RStockvn](https://pypi.org/project/RStockvn/) là 1 thư viện hỗ trợ thực hiện lấy các báo cáo tài chính từ các công ty được niêm yết trên sàn Chứng khoán Việt Nam.



### Từ phiên bản 1.0.3 trở đi RStockvn có thể lấy các thông tin vĩ mô.

RStockvn hiện có thể lấy các thông tin vĩ mô như CPI,GDP, lãi suất,... được cập nhật theo trang websites: [Vietstock](https://finance.vietstock.vn/du-lieu-vi-mo)



Nếu bạn đang sử dụng phiên bản cũ và gặp lỗi thì hãy cập nhật RStockvn bằng: ``pip install --upgrade RStockvn`` hoặc gỡ và cài lại ``pip uninstall RStockvn``





## Thông báo từ phiên bản 2.5.0 trở đi [RStockvn](https://pypi.org/project/RStockvn/) không còn hỗ trợ lấy dữ liệu từ Cafef.



# Hướng dẫn

Đầu tiên bạn cần cài thư viện RStockvn bằng:

``pip install RStockvn`` hoặc nếu sử dụng Jupyter ``conda install RStockvn``

Bước 2 import thư viện: ``import RStockvn as rpv`` 



## Hàm lấy dữ liệu danh sách các công ty niêm yết trên sàn Chứng khoán Việt Nam



``rpv.list_company()``



Nếu bạn thấy danh sách đã cũ có thể thực hiện hàm bên dưới để cập nhật mới



``rpv.update_company()``





## Hàm lấy thông tin cổ phiếu từ 'vndirect':

`symbol` là biểu tượng mã cổ phiếu

Hàm lấy thông tin cổ phiếu gồm P/E, P/B, số lượng cổ phiếu đang lưu hành,... như sau: get_info_cp(symbol)



#### Ví dụ lấy thông tin cổ phiếu VND

```get_info_cp('vnd')```





## Hàm lấy lịch sử giá cổ phiếu từ 'vndirect':

`symbol` là biểu tượng mã cổ phiếu

`fromdate` là ngày bắt đầu bạn cần lấy

`todate` là ngày kết thúc

Hàm lấy lịch sử giá cổ phiếu như sau: ``get_price_historical_vnd(symbol,fromdate,todate)``



#### Ví dụ lấy lịch sử giá vnd từ ngày 20/06/2024 đến 08/08/2024

```rpv.get_price_historical_vnd('vnd','20/06/2024',08/08/2024)```



## Hàm lấy báo cáo tài chính các công ty niêm yết trên sàn Chứng khoán Việt Nam từ 'vndirect':

`symbol` là `biểu tượng mã cổ phiếu`

`report` là loại báo cáo bạn cần lấy `'BS' hoặc 'BALANCESHEET' hoặc 'CDKT'` - là báo cáo cân đối kế toán, `'P&L' hoặc 'Business results'` - là báo cáo kết quả kinh doanh, `'CF' - 'Cash Flows'` - là báo cáo lưu chuyển tiền tệ

`year` là năm tài chính bạn cần lấy

`timely` là loại báo cáo theo quý hay theo năm



rpv.report_finance_vnd(symbol,report,year,timely)



#### Ví dụ lấy bctc cân đối kế toán VNDIRECT năm 2023 theo quý

```rpv.report_finance_vnd('vnd','bs','2023','quarter')```



## Hàm lấy lãi suất theo Vietstock

Hàm lấy lãi suất như sau:``laisuat_vietstock(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.laisuat_vietstock('2022-10-12','2023-02-01')

```

## Hàm lấy chỉ số CPI theo Vietstock

Hàm lấy chỉ số CPI như sau:``getCPI_vietstock(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.getCPI_vietstock('2022-10-01','2023-02-01')

```



## Hàm lấy chỉ số Sản xuất theo Vietstock

Hàm lấy chỉ số sản xuất như sau:``solieu_sanxuat_congnghiep(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.solieu_sanxuat_congnghiep('2022-10-01','2023-02-01')

```

## 6Hàm lấy số liệu bán lẻ theo Vietstock

Hàm lấy số liệu bán lẻ như sau: ``solieu_banle_vietstock(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.solieu_banle_vietstock('2022-10-01','2023-02-01')

```



## Hàm lấy số liệu XNK theo Vietstock

Hàm lấy số liệu XNK như sau: ``solieu_XNK_vietstock(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.solieu_XNK_vietstock('2022-10-01','2023-02-01')

```





## Hàm lấy số liệu FDI theo Vietstock

Hàm lấy số liệu XNK như sau:``solieu_FDI_vietstock(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.solieu_FDI_vietstock('2022-10-01','2023-02-01')

```





## Hàm lấy số liệu tỷ giá USD/VND theo Vietstock

Hàm lấy tỷ giá USD/VND như sau:``tygia_vietstock(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.tygia_vietstock('2022-10-01','2023-02-01')

```





## Hàm lấy số liệu tín dụng theo Vietstock

Hàm lấy số liệu tín dụng như sau:``solieu_tindung_vietstock(fromdate,todate)``, ``fromdate`` là ngày bắt đầu lãi suất cần lấy ``todate`` là ngày kết thúc.



#### Ví dụ

```

rpv.solieu_tindung_vietstock('2022-10-01','2023-02-01')

```





## Hàm lấy số liệu tín dụng theo Vietstock

Hàm lấy số liệu tín dụng như sau:``solieu_GDP_vietstock(fromyear,fromQ,toyear,toQ)``, ``fromyear`` ``toyear`` năm bắt đầu và năm kết thúc, ``fromQ``, ``toQ`` quý bắt đầu và quý kết thúc.



#### Ví dụ

Bạn muốn chỉ số GDP từ Quý 2 năm 2020 đến Quý 3 năm 2022.

```

rpv.solieu_GDP_vietstock('2020','2','2022','3')

```



# Lời kết

Nếu bạn thấy dự án này hữu ích, bạn có thể ủng hộ chúng tôi qua mã QR dưới đây để giúp duy trì và phát triển dự án.



[Ủng hộ qua mã QR](https://github.com/NPhucBinh/Donate/blob/main/README.md)



Bạn có thể liên hệ thông qua email: nguyenphucbinh67@gmail.com


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "RStockvn",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "stockvn, rpv, rstockvn, report stock vn, b\u00e1o c\u00e1o t\u00e0i ch\u00ednh vi\u1ec7t nam, l\u1ea5y b\u00e1o c\u00e1o t\u00e0i ch\u00ednh vi\u1ec7t nam b\u1eb1ng python, l\u1ea5y b\u00e1o c\u00e1o t\u00e0i ch\u00ednh v\u1ec1 excel, l\u1ea5y b\u00e1o c\u00e1o t\u00e0i ch\u00ednh v\u1ec1 excel b\u1eb1ng python",
    "author": "NGUYEN PHUC BINH",
    "author_email": "nguyenphucbinh67@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/57/be/309e2cd7ecb71ee6079bc3d5b600b7f8c174bff7f85d6374b26b2d3c65f0/rstockvn-5.0.tar.gz",
    "platform": null,
    "description": "# [RStockvn](https://pypi.org/project/RStockvn/)\r\r\nFinancial statements of companies on the Vietnamese stock exchange\r\r\n\r\r\n#Readme instructions are available in 2 languages, English and Vietnamese.\r\r\n#Readme h\u01b0\u01a1\u0301ng d\u00e2\u0303n co\u0301 2 ng\u00f4n ng\u01b0\u0303, ti\u00ea\u0301ng anh va\u0300 ti\u00ea\u0301ng vi\u00ea\u0323t.\r\r\n\r\r\n#Language English\r\r\n\r\r\n# Introduction\r\r\nHello,\r\r\nI would like to introduce the library [RStockvn](https://pypi.org/project/RStockvn/) which is a library that supports the retrieval of financial reports from companies listed on the Vietnam Stock Exchange.\r\r\n\r\r\n### From version 1.0.3 onwards, RStockvn can retrieve macro information.\r\r\nRStockvn can now get macro information such as CPI, GDP, interest rates,... updated according to the website: [Vietstock](https://finance.vietstock.vn/du-lieu-vi-mo)\r\r\n\r\r\nIf you are using an old version and encounter an error, please update RStockvn by: ``pip install --upgrade RStockvn`` or uninstall and reinstall ``pip uninstall RStockvn``\r\r\n\r\r\n## Notice from version 2.5.0 onwards [RStockvn](https://pypi.org/project/RStockvn/) no longer supports getting data from Cafef.\r\r\n\r\r\n# Instructions\r\r\nFirst you need to install the RStockvn library by:\r\r\n``pip install RStockvn`` or if using Jupyter ``conda install RStockvn``\r\r\nStep 2 import the library: ``import RStockvn as rpv``\r\r\n\r\r\n## Function to get data from the list of companies listed on the Vietnam Stock Exchange\r\r\n\r\r\n``rpv.list_company()``\r\r\n\r\r\nIf you see that the list is old, you can perform the function below to update the new one\r\r\n\r\r\n``rpv.update_company()``\r\r\n\r\r\n## Function to get stock information from 'vndirect':\r\r\n\r\r\n`symbol` is the stock symbol\r\r\nFunction to get stock information including P/E, P/B, number of outstanding shares, ... as follows: get_info_cp(symbol)\r\r\n\r\r\n#### Example to get stock information VND\r\r\n```get_info_cp('vnd')```\r\r\n\r\r\n## Function to get stock price history from 'vndirect':\r\r\n`symbol` is the stock symbol\r\r\n`fromdate` is the start date you need to get\r\r\n`todate` is the end date\r\r\nFunction to get stock price history as follows: ``get_price_historical_vnd(symbol,fromdate,todate)``\r\r\n\r\r\n#### Example to get vnd \u200b\u200bprice history from 06/20/2024 to 08/08/2024\r\r\n```rpv.get_price_historical_vnd('vnd','06/20/2024',08/08/2024)```\r\r\n\r\r\n## Function to get financial reports of companies listed on the Vietnam Stock Exchange from 'vndirect':\r\r\n`symbol` is the stock symbol\r\r\n`report` is the type of report you need to get `'BS' or 'BALANCESHEET' or 'CDKT'` - is the balance sheet, `'P&L' or 'Business results'` - is the business results report, `'CF' - 'Cash Flows'` - is the cash flow report\r\r\n`year` is the financial year you need to get\r\r\n`timely` is the type of quarterly or annual report\r\r\n\r\r\nrpv.report_finance_vnd(symbol,report,year,timely)\r\r\n\r\r\n#### Example of getting VNDIRECT's balance sheet in 2023 by quarter\r\r\n```rpv.report_finance_vnd('vnd','bs','2023','quarter')```\r\r\n\r\r\n## Function to get interest rate according to Vietstock\r\r\nFunction to get interest rate as follows:``laisuat_vietstock(fromdate,todate)``, ``fromdate`` is the start date of interest rate to get ``todate`` is the end date end.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.laisuat_vietstock('2022-10-12','2023-02-01')\r\r\n```\r\r\n## Function to get CPI index according to Vietstock\r\r\nFunction to get CPI index as follows:``getCPI_vietstock(fromdate,todate)``, ``fromdate`` is the start date of the interest rate to be taken ``todate`` is the end date.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.getCPI_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Function to get Production Index according to Vietstock\r\r\nThe function to get the production index is as follows:``solieu_sanxuat_congnghiep(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.solieu_sanxuat_congnghiep('2022-10-01','2023-02-01')\r\r\n```\r\r\n## 6Function to get retail sales data according to Vietstock\r\r\nFunction to get retail sales data as follows: ``solieu_banle_vietstock(fromdate,todate)``, ``fromdate`` is the start date of the interest rate to be taken, ``todate`` is the end date.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.solieu_banle_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Function to get import-export data according to Vietstock\r\r\nThe function to get import-export data is as follows: ``solieu_XNK_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.solieu_XNK_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Function to get FDI data according to Vietstock\r\r\nFunction to get XNK data as follows:``solieu_FDI_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.solieu_FDI_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Function to get USD/VND exchange rate data according to Vietstock\r\r\nFunction to get USD/VND exchange rate as follows:``tygia_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken, ``todate`` is the ending date.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.tygia_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Function to get credit data according to Vietstock\r\r\nFunction to get credit data as follows:``solieu_tindung_vietstock(fromdate,todate)``, ``fromdate`` is the starting date of the interest rate to be taken ``todate`` is the ending date.\r\r\n\r\r\n#### Example\r\r\n```\r\r\nrpv.solieu_tindung_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Function to get credit data according to Vietstock\r\r\nFunction to get credit data as follows:``solieu_GDP_vietstock(fromyear,fromQ,toyear,toQ)``, ``fromyear`` ``toyear`` start and end year, ``fromQ``, ``toQ`` start and end quarter.\r\r\n\r\r\n#### Example\r\r\nYou want the GDP index from Q2 2020 to Q3 2022.\r\r\n```\r\r\nrpv.solieu_GDP_vietstock('2020','2','2022','3')\r\r\n```\r\r\n\r\r\n# Conclusion\r\r\nIf you find this project useful, you can support us via the QR code below to help maintain and develop the project.\r\r\n\r\r\n[QR Code for Donations](https://github.com/NPhucBinh/Donate/blob/main/README.md)\r\r\n\r\r\nYou can contact via email: nguyenphucbinh67@gmail.com\r\r\n\r\r\n#Language Vietnamese\r\r\n\r\r\n# Gi\u01a1\u0301i thi\u00ea\u0323u\r\r\nCha\u0300o ba\u0323n, \r\r\nXin gi\u01a1\u0301i thi\u00ea\u0323u th\u01b0 vi\u00ea\u0323n [RStockvn](https://pypi.org/project/RStockvn/) la\u0300 1 th\u01b0 vi\u00ea\u0323n h\u00f4\u0303 tr\u01a1\u0323 th\u01b0\u0323c hi\u00ea\u0323n l\u00e2\u0301y ca\u0301c ba\u0301o ca\u0301o ta\u0300i chi\u0301nh t\u01b0\u0300 ca\u0301c c\u00f4ng ty \u0111\u01b0\u01a1\u0323c ni\u00eam y\u00ea\u0301t tr\u00ean sa\u0300n Ch\u01b0\u0301ng khoa\u0301n Vi\u00ea\u0323t Nam.\r\r\n\r\r\n### T\u01b0\u0300 phi\u00ean ba\u0309n 1.0.3 tr\u01a1\u0309 \u0111i RStockvn co\u0301 th\u00ea\u0309 l\u00e2\u0301y ca\u0301c th\u00f4ng tin vi\u0303 m\u00f4.\r\r\nRStockvn hi\u00ea\u0323n co\u0301 th\u00ea\u0309 l\u00e2\u0301y ca\u0301c th\u00f4ng tin vi\u0303 m\u00f4 nh\u01b0 CPI,GDP, la\u0303i su\u00e2\u0301t,... \u0111\u01b0\u01a1\u0323c c\u00e2\u0323p nh\u00e2\u0323t theo trang websites: [Vietstock](https://finance.vietstock.vn/du-lieu-vi-mo)\r\r\n\r\r\nN\u00ea\u0301u ba\u0323n \u0111ang s\u01b0\u0309 du\u0323ng phi\u00ean ba\u0309n cu\u0303 va\u0300 g\u0103\u0323p l\u00f4\u0303i thi\u0300 ha\u0303y c\u00e2\u0323p nh\u00e2\u0323t RStockvn b\u0103\u0300ng: ``pip install --upgrade RStockvn`` ho\u0103\u0323c g\u01a1\u0303 va\u0300 ca\u0300i la\u0323i ``pip uninstall RStockvn``\r\r\n\r\r\n\r\r\n## Th\u00f4ng b\u00e1o t\u01b0\u0300 phi\u00ean ba\u0309n 2.5.0 tr\u01a1\u0309 \u0111i [RStockvn](https://pypi.org/project/RStockvn/) kh\u00f4ng co\u0300n h\u00f4\u0303 tr\u01a1\u0323 l\u00e2\u0301y d\u01b0\u0303 li\u00ea\u0323u t\u01b0\u0300 Cafef.\r\r\n\r\r\n# H\u01b0\u01a1\u0301ng d\u00e2\u0303n\r\r\n\u0110\u00e2\u0300u ti\u00ean ba\u0323n c\u00e2\u0300n ca\u0300i th\u01b0 vi\u00ea\u0323n RStockvn b\u0103\u0300ng:\r\r\n``pip install RStockvn`` ho\u0103\u0323c n\u00ea\u0301u s\u01b0\u0309 du\u0323ng Jupyter ``conda install RStockvn``\r\r\nB\u01b0\u01a1\u0301c 2 import th\u01b0 vi\u00ea\u0323n: ``import RStockvn as rpv`` \r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y d\u01b0\u0303 li\u00ea\u0323u danh sa\u0301ch ca\u0301c c\u00f4ng ty ni\u00eam y\u00ea\u0301t tr\u00ean sa\u0300n Ch\u01b0\u0301ng khoa\u0301n Vi\u00ea\u0323t Nam\r\r\n\r\r\n``rpv.list_company()``\r\r\n\r\r\nN\u00ea\u0301u ba\u0323n th\u00e2\u0301y danh sa\u0301ch \u0111a\u0303 cu\u0303 co\u0301 th\u00ea\u0309 th\u01b0\u0323c hi\u00ea\u0323n ha\u0300m b\u00ean d\u01b0\u01a1\u0301i \u0111\u00ea\u0309 c\u00e2\u0323p nh\u00e2\u0323t m\u01a1\u0301i\r\r\n\r\r\n``rpv.update_company()``\r\r\n\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y th\u00f4ng tin c\u00f4\u0309 phi\u00ea\u0301u t\u01b0\u0300 'vndirect':\r\r\n`symbol` la\u0300 bi\u00ea\u0309u t\u01b0\u01a1\u0323ng ma\u0303 c\u00f4\u0309 phi\u00ea\u0301u\r\r\nHa\u0300m l\u00e2\u0301y th\u00f4ng tin c\u00f4\u0309 phi\u00ea\u0301u g\u00f4\u0300m P/E, P/B, s\u00f4\u0301 l\u01b0\u01a1\u0323ng c\u00f4\u0309 phi\u00ea\u0301u \u0111ang l\u01b0u ha\u0300nh,... nh\u01b0 sau: get_info_cp(symbol)\r\r\n\r\r\n#### Vi\u0301 du\u0323 l\u00e2\u0301y th\u00f4ng tin c\u00f4\u0309 phi\u00ea\u0301u VND\r\r\n```get_info_cp('vnd')```\r\r\n\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y li\u0323ch s\u01b0\u0309 gia\u0301 c\u00f4\u0309 phi\u00ea\u0301u t\u01b0\u0300 'vndirect':\r\r\n`symbol` la\u0300 bi\u00ea\u0309u t\u01b0\u01a1\u0323ng ma\u0303 c\u00f4\u0309 phi\u00ea\u0301u\r\r\n`fromdate` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u ba\u0323n c\u00e2\u0300n l\u00e2\u0301y\r\r\n`todate` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c\r\r\nHa\u0300m l\u00e2\u0301y li\u0323ch s\u01b0\u0309 gia\u0301 c\u00f4\u0309 phi\u00ea\u0301u nh\u01b0 sau: ``get_price_historical_vnd(symbol,fromdate,todate)``\r\r\n\r\r\n#### Vi\u0301 du\u0323 l\u00e2\u0301y li\u0323ch s\u01b0\u0309 gia\u0301 vnd t\u01b0\u0300 nga\u0300y 20/06/2024 \u0111\u00ea\u0301n 08/08/2024\r\r\n```rpv.get_price_historical_vnd('vnd','20/06/2024',08/08/2024)```\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y ba\u0301o ca\u0301o ta\u0300i chi\u0301nh ca\u0301c c\u00f4ng ty ni\u00eam y\u00ea\u0301t tr\u00ean sa\u0300n Ch\u01b0\u0301ng khoa\u0301n Vi\u00ea\u0323t Nam t\u01b0\u0300 'vndirect':\r\r\n`symbol` la\u0300 `bi\u00ea\u0309u t\u01b0\u01a1\u0323ng ma\u0303 c\u00f4\u0309 phi\u00ea\u0301u`\r\r\n`report` la\u0300 loa\u0323i ba\u0301o ca\u0301o ba\u0323n c\u00e2\u0300n l\u00e2\u0301y `'BS' ho\u0103\u0323c 'BALANCESHEET' ho\u0103\u0323c 'CDKT'` - la\u0300 ba\u0301o ca\u0301o c\u00e2n \u0111\u00f4\u0301i k\u00ea\u0301 toa\u0301n, `'P&L' ho\u0103\u0323c 'Business results'` - la\u0300 ba\u0301o ca\u0301o k\u00ea\u0301t qua\u0309 kinh doanh, `'CF' - 'Cash Flows'` - la\u0300 ba\u0301o ca\u0301o l\u01b0u chuy\u00ea\u0309n ti\u00ea\u0300n t\u00ea\u0323\r\r\n`year` la\u0300 n\u0103m ta\u0300i chi\u0301nh ba\u0323n c\u00e2\u0300n l\u00e2\u0301y\r\r\n`timely` la\u0300 loa\u0323i ba\u0301o ca\u0301o theo quy\u0301 hay theo n\u0103m\r\r\n\r\r\nrpv.report_finance_vnd(symbol,report,year,timely)\r\r\n\r\r\n#### Vi\u0301 du\u0323 l\u00e2\u0301y bctc c\u00e2n \u0111\u00f4\u0301i k\u00ea\u0301 toa\u0301n VNDIRECT n\u0103m 2023 theo quy\u0301\r\r\n```rpv.report_finance_vnd('vnd','bs','2023','quarter')```\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y la\u0303i su\u00e2\u0301t theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y la\u0303i su\u00e2\u0301t nh\u01b0 sau:``laisuat_vietstock(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.laisuat_vietstock('2022-10-12','2023-02-01')\r\r\n```\r\r\n## Ha\u0300m l\u00e2\u0301y chi\u0309 s\u00f4\u0301 CPI theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y chi\u0309 s\u00f4\u0301 CPI nh\u01b0 sau:``getCPI_vietstock(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.getCPI_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y chi\u0309 s\u00f4\u0301 Sa\u0309n xu\u00e2\u0301t theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y chi\u0309 s\u00f4\u0301 sa\u0309n xu\u00e2\u0301t nh\u01b0 sau:``solieu_sanxuat_congnghiep(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.solieu_sanxuat_congnghiep('2022-10-01','2023-02-01')\r\r\n```\r\r\n## 6Ha\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u ba\u0301n le\u0309 theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u ba\u0301n le\u0309 nh\u01b0 sau: ``solieu_banle_vietstock(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.solieu_banle_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u XNK theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u XNK nh\u01b0 sau: ``solieu_XNK_vietstock(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.solieu_XNK_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u FDI theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u XNK nh\u01b0 sau:``solieu_FDI_vietstock(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.solieu_FDI_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u ty\u0309 gia\u0301 USD/VND theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y ty\u0309 gia\u0301 USD/VND nh\u01b0 sau:``tygia_vietstock(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.tygia_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u ti\u0301n du\u0323ng theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u ti\u0301n du\u0323ng nh\u01b0 sau:``solieu_tindung_vietstock(fromdate,todate)``, ``fromdate`` la\u0300 nga\u0300y b\u0103\u0301t \u0111\u00e2\u0300u la\u0303i su\u00e2\u0301t c\u00e2\u0300n l\u00e2\u0301y ``todate`` la\u0300 nga\u0300y k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\n```\r\r\nrpv.solieu_tindung_vietstock('2022-10-01','2023-02-01')\r\r\n```\r\r\n\r\r\n\r\r\n## Ha\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u ti\u0301n du\u0323ng theo Vietstock\r\r\nHa\u0300m l\u00e2\u0301y s\u00f4\u0301 li\u00ea\u0323u ti\u0301n du\u0323ng nh\u01b0 sau:``solieu_GDP_vietstock(fromyear,fromQ,toyear,toQ)``, ``fromyear`` ``toyear`` n\u0103m b\u0103\u0301t \u0111\u00e2\u0300u va\u0300 n\u0103m k\u00ea\u0301t thu\u0301c, ``fromQ``, ``toQ`` quy\u0301 b\u0103\u0301t \u0111\u00e2\u0300u va\u0300 quy\u0301 k\u00ea\u0301t thu\u0301c.\r\r\n\r\r\n#### Vi\u0301 du\u0323\r\r\nBa\u0323n mu\u00f4\u0301n chi\u0309 s\u00f4\u0301 GDP t\u01b0\u0300 Quy\u0301 2 n\u0103m 2020 \u0111\u00ea\u0301n Quy\u0301 3 n\u0103m 2022.\r\r\n```\r\r\nrpv.solieu_GDP_vietstock('2020','2','2022','3')\r\r\n```\r\r\n\r\r\n# L\u01a1\u0300i k\u00ea\u0301t\r\r\nN\u1ebfu b\u1ea1n th\u1ea5y d\u1ef1 \u00e1n n\u00e0y h\u1eefu \u00edch, b\u1ea1n c\u00f3 th\u1ec3 \u1ee7ng h\u1ed9 ch\u00fang t\u00f4i qua m\u00e3 QR d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 gi\u00fap duy tr\u00ec v\u00e0 ph\u00e1t tri\u1ec3n d\u1ef1 \u00e1n.\r\r\n\r\r\n[U\u0309ng h\u00f4\u0323 qua ma\u0303 QR](https://github.com/NPhucBinh/Donate/blob/main/README.md)\r\r\n\r\r\nBa\u0323n co\u0301 th\u00ea\u0309 li\u00ean h\u00ea\u0323 th\u00f4ng qua email: nguyenphucbinh67@gmail.com\r\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Report Finance of Companies in Vietnamese and macro data - L\u1ea5y b\u00e1o c\u00e1o t\u00e0i ch\u00ednh c\u1ee7a c\u00e1c c\u00f4ng ty \u1edf Vi\u1ec7t Nam v\u00e0 s\u1ed1 li\u1ec7u v\u0129 m\u00f4",
    "version": "5.0",
    "project_urls": null,
    "split_keywords": [
        "stockvn",
        " rpv",
        " rstockvn",
        " report stock vn",
        " b\u00e1o c\u00e1o t\u00e0i ch\u00ednh vi\u1ec7t nam",
        " l\u1ea5y b\u00e1o c\u00e1o t\u00e0i ch\u00ednh vi\u1ec7t nam b\u1eb1ng python",
        " l\u1ea5y b\u00e1o c\u00e1o t\u00e0i ch\u00ednh v\u1ec1 excel",
        " l\u1ea5y b\u00e1o c\u00e1o t\u00e0i ch\u00ednh v\u1ec1 excel b\u1eb1ng python"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b0554d6d84528b3553295209fda17757ae7002e8a6c815dbe529ff7c3111c1e2",
                "md5": "a4e91d39802cc598b7a0706968f217f9",
                "sha256": "5646d2739b8be03f5c44cdae5e81b0228fa707350c06327f1fb2a9f67c283ddb"
            },
            "downloads": -1,
            "filename": "rstockvn-5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a4e91d39802cc598b7a0706968f217f9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 23342603,
            "upload_time": "2025-08-09T04:48:02",
            "upload_time_iso_8601": "2025-08-09T04:48:02.648528Z",
            "url": "https://files.pythonhosted.org/packages/b0/55/4d6d84528b3553295209fda17757ae7002e8a6c815dbe529ff7c3111c1e2/rstockvn-5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "57be309e2cd7ecb71ee6079bc3d5b600b7f8c174bff7f85d6374b26b2d3c65f0",
                "md5": "6289f6ee35f4a6a33006dc6d3a80f6d3",
                "sha256": "6a876dac275239ffc0446057d1a454c84ee925640b5002391898ca2326776785"
            },
            "downloads": -1,
            "filename": "rstockvn-5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6289f6ee35f4a6a33006dc6d3a80f6d3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 23300524,
            "upload_time": "2025-08-09T04:48:07",
            "upload_time_iso_8601": "2025-08-09T04:48:07.554467Z",
            "url": "https://files.pythonhosted.org/packages/57/be/309e2cd7ecb71ee6079bc3d5b600b7f8c174bff7f85d6374b26b2d3c65f0/rstockvn-5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-09 04:48:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "rstockvn"
}
        
Elapsed time: 1.17625s