Skip to main content

VietFin

VietFin

A python library to fetch Vietnam stock market data.

License Documentation Status PyPI - Version
» Explore the docs »


Table of Contents

  1. Why VietFin?
  2. Installation
  3. Usage
  4. Contributing
  5. Attributions
  6. Disclaimer
  7. Contacts

1. Why VietFin?

Heavily inspired by OpenBB, VietFin is a Python package which provides a wrapper around the publicly available APIs from multiple brokerage firms.

This package aims to reproduce the hierarchical structure of commands used in OpenBB, but for Vietnamese market data.

VietFin is intended for personal use, research and educational purposes.

2. Installation

VietFin is available on PyPI. To use the package:

  1. Install VietFin in your project's virtual environment.

    $ pip install vietfin
    

    Or using Poetry, my preferred dependency manager:

    $ poetry add vietfin
    
  2. Import the package then use the package

    from vietfin import vf
    

Requirements:

3. Usage

from vietfin import vf
# Get list of all stocks
vf.equity.search()

# Get general info of a stock
vf.equity.profile(symbol='vnm')

# Get historical price of a stock
vf.equity.historical(symbol='vnm')

# Get the historical dividends data of a company
vf.equity.fundamental.dividends(symbol='vnm')

# Get list of key executives of a company
vf.equity.fundamental.management(symbol='vnm')

# Get the key financial ratios of a company
vf.equity.fundamental.ratios(symbol='vnm')

# Get the report on the income statement of a company
vf.equity.fundamental.income(symbol='vnm')

# Get the historical events of a stock ticker
vf.equity.calendar.events(symbol='vnm')

# Get the list of available mutual funds
vf.funds.search()

# Get the list of available ETFs
vf.etf.search()

# Get the list of constituents of an index
vf.index.constituents(symbol='vn30')

# Get the list of available futures contract
vf.derivatives.futures.search()

4. Contributing

More information on our Contributing Guidelines and Code of Conduct.

VietFin relies on community to investigate bugs and contribute code.

Before creating a ticket, please check our Issues tracker to avoid duplicates.

Feel free to reach out to us in our GitHub Discussions for other feedbacks (e.g. Q&A, ideas, etc.).

5. Attributions

VietFin is built on top of the inspiration and work of the following projects:

6. Disclaimer

VietFin is not affiliated, endorsed, or vetted by any of the brokerage firms or research entities which provide the data. It's an open-source tool which fetches data from the publicly available APIs of these firms. VietFin is intended for personal use, research and educational purposes.

You should refer to each of the data provider's terms of use for details on your rights to use the actual data downloaded.

The data retrieved by the VietFin package is not necessarily accurate.

VietFin and any provider of the data contained in this website will not accept liability for any loss or damage as a result of your trading, or your reliance on the information displayed.

7. Contacts

If you have any questions about VietFin or just to say hi, feel free to open a new public discussion in our GitHub repo, or send an email to vietfin.numbness179(at)simplelogin.fr.

Metadata

Release files for vietfin 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vietfin 0.2.0
File Size Uploaded
vietfin-0.2.0.tar.gz 58.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vietfin 0.2.0
File Interpreter ABI Platform
vietfin-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 170.5 kB

Release files / vietfin-0.2.0.tar.gz

Download URL vietfin-0.2.0.tar.gz
Size 58.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ce16ee202603fd9ab167bf89f772a42e4abc913812977da4cb5ec4a043fc8691
BLAKE2b-256 checksum
How to use checksums
d68c430b17496458bbbf0dd335ab460c8fb1ffa8b4c8037dcfca1e4c6854721a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Windows/10

Release files / vietfin-0.2.0-py3-none-any.whl

Download URL vietfin-0.2.0-py3-none-any.whl
Size 112.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae1fb8418a09c2afbbe3f7b957b49e13cb9f826e94b856666c56cb5d83505fa4
BLAKE2b-256 checksum
How to use checksums
a46ba323d6962262d7f72a331d79e9838ff750a6dcf8a16f3869ca95fa0218c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Windows/10

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page