Skip to main content

pyonvista

A tiny python wrapper to the non-public onvista.de REST-Api.

As the API is not public user shall assume that the usage of this package harms the website user agreements. However, this version now avoids any web scrapping for metadata.

You can search for an instrument and get its quote data. The quote data can be limit by resolution and date.

The wrapper now also works with instruments other than stocks. Also for example data from ETF can be requested.

Im not planing to add other API Endpoints at the moment as long as nobody gives me a good reason for this.

Additionally the wrapper now is asynchronous. User should be aware of asyncio or async programming.

Installation

pip install pyonvista

Usage

import asyncio
import aiohttp
import pprint

from pyonvista import PyOnVista

async def main():
    client = aiohttp.ClientSession()
    api = PyOnVista()
    await api.install_client(client)
    async with client:
        instruments = await api.search_instrument("VW")
        instrument = await api.request_instrument(instruments[0])
        quotes = await api.request_quotes(instrument, )
        pprint.pprint(instrument)
        pprint.pprint(quotes[:3])
        # prints a lot of information of VW Stonk
        # try a etf
        instruments = await api.search_instrument(key="IE00B42NKQ00")
        quotes = await api.request_quotes(instruments[0])
    pprint.pprint(quotes[0].instrument)

    await client.close()
    await asyncio.sleep(.1)

if __name__ == '__main__':
    asyncio.run(main())

Metadata

Release files for pyonvista 0.8.4

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

Source distribution (sdist)

Source distribution for pyonvista 0.8.4
File Size Uploaded Provenance Actions
pyonvista-0.8.4.tar.gz 6.5 kB Without provenance Details for pyonvista-0.8.4.tar.gz

Built distribution (wheel)

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

Total release size: 13.1 kB

Release files / pyonvista-0.8.4.tar.gz

Download URL pyonvista-0.8.4.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0fbfa5f9428ce44431bbef6a4813466a4f6c46f2558eae6e37e4077136d27eab
BLAKE2b-256 checksum
How to use checksums
dbc8ad0bdaef48638c04c4dde1d91564ac6d76324a45e4352a71fae39e14e452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.10

Release files / pyonvista-0.8.4-py3-none-any.whl

Download URL pyonvista-0.8.4-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a5fcad6b3f3bbd1b5e01451a697e9c80aeee8fd726d41e21d41827f51f6e839
BLAKE2b-256 checksum
How to use checksums
cdde629e9f7a8a74f5293925a9580784a889c927f6433f9aa0143710327d6bda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.10

Security for pyonvista 0.8.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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