10 releases (3 stable)
1.0.2 | Jul 14, 2024 |
---|---|
1.0.0 | Jul 13, 2024 |
0.1.7 | Jul 10, 2024 |
0.1.6 | Jun 13, 2024 |
0.1.4 | May 29, 2024 |
#80 in Finance
18KB
316 lines
This is a package meant to simplify the grabbing of data off a given ticker. Written using the Reqwest library. It provides a struct object called YahooConnect which is a thread safe object which stores the cookie and "crumb" needed to access the Yahoo website and grab the data off it. the get_ticker method with argument &str will return a struct containing all fields of the JSON that yahoo provides. the implementation of the struct is an array of JSONS which each refer to a single stock request, allowing you to combine multiple stock requests into a single YAHOOCONNECT request by separating with a Comma, i.e AAPL,TSLA.
Dependencies
~7–20MB
~268K SLoC