Improvements & Updates
🚀 Query specific dates
This release adds the ability to query price data for a financial asset on a specific date.
The most recent price data can still be retrieved using the following method:
python
from vistafetch import VistaFetchClient
client = VistaFetchClient()
result = client.search_asset(
search_term="716460", alternatively pass the ISIN here
)
sap_stock = result.get()
latest_price_data = sap_stock.get_latest_price_data()
To query for a specific date, the following snippet will take you there:
python
import datetime
specific_price_data = sap_stock.get_day_price_data(day=datetime.date(2023, 10, 10))
🚀 Derivatives
In addition, derivatives are now supported as financial assets, which means you can query price data for them as well.
What's Changed in Detail
* deps: (deps-dev): bump types-requests from 2.31.0.7 to 2.31.0.8 by dependabot in https://github.com/bossenti/vistafetch/pull/49
* deps: (deps-dev): bump mypy from 1.5.1 to 1.6.0 by dependabot in https://github.com/bossenti/vistafetch/pull/50
* deps: (deps-dev): bump pre-commit from 3.4.0 to 3.5.0 by dependabot in https://github.com/bossenti/vistafetch/pull/51
* deps: (deps-dev): bump types-requests from 2.31.0.8 to 2.31.0.9 by dependabot in https://github.com/bossenti/vistafetch/pull/52
* refactor: restructure unit tests & increase reusability by bossenti in https://github.com/bossenti/vistafetch/pull/53
* deps: (deps-dev): bump ruff from 0.0.292 to 0.1.0 by dependabot in https://github.com/bossenti/vistafetch/pull/54
* deps: (deps-dev): bump black from 23.9.1 to 23.10.0 by dependabot in https://github.com/bossenti/vistafetch/pull/55
* deps: (deps-dev): bump types-requests from 2.31.0.9 to 2.31.0.10 by dependabot in https://github.com/bossenti/vistafetch/pull/56
* deps: (deps-dev): bump mypy from 1.6.0 to 1.6.1 by dependabot in https://github.com/bossenti/vistafetch/pull/57
* feat: add option to query price data for a specific day by bossenti in https://github.com/bossenti/vistafetch/pull/59
**Full Changelog**: https://github.com/bossenti/vistafetch/compare/1.1.0...1.2.0