Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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.
pip install pyonvista
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())
FAQs
A tiny python API wrapper for onvista.de financial website.
We found that pyonvista demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.