Python-wtd

Latest version: v0.1.4

Safety actively analyzes 621064 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.4

Did some sloppy cleanup after testing in the last release. Fixed in this release.

0.1.3

Get real-time stock or mutual fund data as a dictionary (default) or a DataFrame.

python
stock
my_dict = wtd.stock('AAPL')
df = wtd.stock(['AAPL','MSFT'],output='pandas')

df = wtd.mutualfund('AAAAX',output='pandas')
my_dict = wtd.mutualfund(['AAAAX','AAADX'])

0.1.2

__init__.py did not load `WTD` as expected.

0.1.1

Search is now available! It returns a list of search results - similar to the actual API.

python
from python_wtd import WTD
wtd = WTD(api_key='asasdfasdfdfhlkjdhf')

wtd.search("AAPL",limit=2)
>>> [{'symbol': 'AAPL',
'name': 'Apple Inc.',
'currency': 'USD',
'price': '210.36',
'stock_exchange_long': 'NASDAQ Stock Exchange',
'stock_exchange_short': 'NASDAQ'},
{'symbol': 'AAPL.BA',
'name': 'APPLE INC CEDEAR',
'currency': 'ARS',
'price': '1172.00',
'stock_exchange_long': 'Buenos Aires Stock Exchange',
'stock_exchange_short': 'BCBA'}]



Also, `WTDException` is a class object of `WTD` and there is a new class object `WTDDecorators` containing decorators for functionality, currently only `WTDDecorators.confirm_apiI_key` which replaces `WTD._confirm`.

0.1

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.