Skip to main content

vDatafeed: A Python wrapper for Viet Nam Datafeed API

Project description

vDatafeed

vDatafeed: A Python wrapper for Viet Nam Datafeed API

PyPI Python Version PyPI - Downloads License: MIT

Installation

pip install vdatafeed

Usage

from vdatafeed import Datafeed, Config


datafeed = Datafeed(
    datafeed='ssi',
    config=Config(
        ssi_datafeed_id="<SSI_DATAFEED_ID>",
        ssi_datafeed_secret="<SSI_DATAFEED_SECRET>"
    )
)

# Get list of instruments
datafeed.api.get_instruments()
# Get instrument details
datafeed.api.get_instrument_details("SSI")
# Get list of indices
datafeed.api.get_indices()
# Get list of instruments in an index
datafeed.api.get_indices_instruments("VN30")
# Get daily instruments info
datafeed.api.get_daily_instruments_info(instrument="SSI", from_date="01/09/2024", to_date="10/09/2024")  # noqa  # pylint: disable=all
# Get daily all instruments info
datafeed.api.get_daily_instruments_info(from_date="10/09/2024", to_date="10/09/2024")
# Get daily indices info
datafeed.api.get_daily_indices_info(index="VN30", from_date="01/09/2024", to_date="10/09/2024")  # noqa # pylint: disable=all
# Get end of day OHLCV
datafeed.api.get_endofday_ohlcv(instrument="SSI", from_date="01/09/2024", to_date="10/09/2024")  # noqa # pylint: disable=all
# Get intraday OHLCV
datafeed.api.get_intraday_ohlcv(instrument="SSI", from_date="01/09/2024", to_date="10/09/2024")  # noqa # pylint: disable=all

MIT License

Copyright (c) 2024 Quant.vn

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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

vdatafeed-0.1.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

vdatafeed-0.1.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file vdatafeed-0.1.2.tar.gz.

File metadata

  • Download URL: vdatafeed-0.1.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for vdatafeed-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0a76671677452b632f0d829df1a63955d1940e733348b42b264f877215e661dd
MD5 09778087856b6ffd0542a0048f313d39
BLAKE2b-256 d935ef8ff57f124d224aab88b9e5063867a992e6ff0121ad30eea46afde6f786

See more details on using hashes here.

File details

Details for the file vdatafeed-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: vdatafeed-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for vdatafeed-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58d7627f18f4bd3dcd1391af78563255cde2c63cdad116d7549ad1eb46223b19
MD5 2f4b1352dfa1fb9dc4a56ca3499799ae
BLAKE2b-256 19374d7c2a05f17271bdaf1b4c56abeff043d407243f0726e3d26806f6af5ddc

See more details on using hashes here.

Supported by

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