Skip to main content

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
  • 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the Apache 2.0 - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vistock-0.1.0b3.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vistock-0.1.0b3-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file vistock-0.1.0b3.tar.gz.

File metadata

  • Download URL: vistock-0.1.0b3.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vistock-0.1.0b3.tar.gz
Algorithm Hash digest
SHA256 64dbaf7e5e3a176d4ba1f354f3a93cb08c44aa69e1c882a44ab1c2466e295ac5
MD5 ff3ab6d4cddc2fed844c936a7529b1d7
BLAKE2b-256 8b266f5b74f32fc1c641854a0f990f1efbe098925dae2a5e4dea349b0a4e48ad

See more details on using hashes here.

File details

Details for the file vistock-0.1.0b3-py3-none-any.whl.

File metadata

  • Download URL: vistock-0.1.0b3-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vistock-0.1.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f95e2476252e2eb6752b24a53441bf72a00c945d3412bef325b1e42f5f06679
MD5 8ea0a29d1cb9abce0aa240d566d3b0b5
BLAKE2b-256 92beec0e69fa81991749c5f27854ad92efee05fa23ad61cf125e288583e2419e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page