Vistock is an open-source library focused on searching, retrieving, and analyzing Vietnamese stock market data.
Project description
VISTOCK
Vistock is an open-source library focused on searching, retrieving, and analyzing Vietnamese stock market data. It aims to provide robust tools that support developers, researchers, and AI agents in accessing and processing financial market information from Vietnam.
Note: Vistock is under active development. Features may be incomplete or subject to change. Contributions, suggestions, and bug reports are welcome and highly appreciated!
Disclaimer & Terms of Use ‼️
This library is provided for educational and research purposes only. You are solely responsible for how you use it. Before scraping any website, you must ensure that your actions comply with all applicable laws and the website’s own policies — including their Terms of Service and robots.txt directives. Many websites explicitly prohibit automated access. The authors and contributors are not responsible for any misuse or legal issues arising from the use of this tool. Always scrape ethically, respectfully, and within legal boundaries.
Responsible Scraping ‼️
Please be respectful of the websites you interact with. Always use appropriate rate limiting and avoid sending excessive requests. Scraping should never disrupt or degrade the performance of a website. Generating unreasonable traffic may not only lead to IP bans but could also violate legal or ethical standards. Respect the site's resources, policies, and the efforts of its creators.
Supported Websites
- Vndirect
- Vietstock
- 24hmoney
- DNSE
- SSC
- more coming soon...
Installation
pip install vistock
Quick Start
from vistock.modules.vndirect.search import VistockVnDirectStockIndexSearch
import asyncio
import json
async def main():
search = VistockVnDirectStockIndexSearch()
data = search.search(
code="ACB",
start_date="2025-06-20",
end_date="2025-06-28",
resolution="day",
advanced=False,
ascending=False
)
with open('data.json', 'w', encoding='utf-8') as file:
json.dump(data.model_dump(), file, indent=2, ensure_ascii=False)
if __name__ == "__main__":
asyncio.run(main())
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the Apache 2.0 - see the LICENSE file for details.
def search( self, code: str, start_date: str = '2000-01-01', end_date: str = datetime.now().strftime('%Y-%m-%d'), period: Literal['1D'] = '1D', resolution: Literal['day'] = 'day', advanced: bool = True, ascending: bool = True ): ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vistock-0.1.0b6.tar.gz.
File metadata
- Download URL: vistock-0.1.0b6.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63aadc90b5bca7e69b77efeada209887bd32e9a950720e6ef37376c80b5cd080
|
|
| MD5 |
8f51184c56fa4d0068b3c45757df2c69
|
|
| BLAKE2b-256 |
6dbdbd4d0822db2c3548198a53a18404a7b1419a81cc01f482348a0365d1daa5
|
File details
Details for the file vistock-0.1.0b6-py3-none-any.whl.
File metadata
- Download URL: vistock-0.1.0b6-py3-none-any.whl
- Upload date:
- Size: 39.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2007149ac7b4523b8c9bddc164c8b5151f491b34c017e1250b4374973ea8cbe5
|
|
| MD5 |
3a961bd8c4277c7a13533f10ad3a9ea3
|
|
| BLAKE2b-256 |
d00930c890eeb1a158b5b551dd92b9fb280253cfd2a7480210745baaa9b56b29
|