- refactoring option fetching, all fields are now optional
- currency
YMetaData
is now optional, since it is not always returned by the API - new feature
decimal
to userust_decimal
crate for representation of amounts - exmample
get_quote
asks user to input quote name - fix accidental escape characters in README.md
- remove superfluous file
quote_summary.rs
(See note to Release 2.0.0)
- specify user agent instead of default
- add new method
build_with_agent(self, user_agent: &str)
to allow use of custom agent - constructor may fail now, returning a Result
- enable to retreive asset metadata
- enable to fetch capital gains available on Mutual Funds
- fix: support quote where firstTradeDate equals null
- fx rate example added
re-export the time crate
Breaking change: Method get_summary
has to be removed, since this is no longer part of the free
API interface of yahoo! finance.
Documentation update
The members mumerator
and denominator
of struct Split
has been changed to from u64
to f64
.
Most often, these should be small integers, but at least in some cases, the API returns these
values as float. Fractional numerator or denominater seem to be unlikely, but not impossible,
therefore the struct was updated to accept float. Unfortunately, this is breaking change.
New method add get_summary
to extract a summary of various data on a list of given quotes.
There is a new example quote_summary
demonstrating the output.
Migration from chrono to time
unwrap()
removed
Switch to using thiserror
crate for error propagation
Using Client
instance of reqwest.
Error message have possibly changed and method build()
could fail now.
New Feature: Stop request on timeout
Bug fix in indexation, which in some cases caused failures when fetching the latest quote.
New example with blocking feature.
Added support for dividends and stock splits, see the new examples for splits and dividends and some code clean-up.
Upgrade to version 0.4.* of tokio-test
Mainly bug fixes and exports added for most structs.
search_result_opt
has been added, since sometimes not all fields are returned. These has been replaced by Option<...>
type fields. The interface
of the search_result
is left untouched, but returns now a default value (e.g.) empty string instead of an error.
New function supporting search for Quote ticker has been added, which required an additional URL path to access the Yahoo API. The previously single file project has been split up into separate files for improved maintainability. Especially, the blocking and async implementations are now in separate files.
Note: Yahoo-Error type has changed. FetchFailed
has now a string as argument instead of the status code passed over by reqwest
to decouple the interface from reqwest
. The former error code InvalidStatusCode
has been renamed to InvalidJson
, which a more proper name since this error is returned if the response could not be read as JSON.
The library is working stable with and without blocking feature enabled.