Yahoo finance scraper written in D.
| Development Environment | DMD | DUB |
|---|---|---|
| Ubuntu 22.04 | v2.104.0 | v1.33.0 |
This library obtains financial data from Yahoo based on stock's name between a begin and an end date. It has three time intervals: monthly, weely and daily. The unit test is based on scraping five stocks in a row. The implementation can be found under the library folder. I provide six examples to help new users: csv writer, data frame, gold, pairs, SOXX analysis and TIP std. The dataframe allows users to access OHLC, dividend and split data on program runtime. Whereas, json and csv writers output them to external files. Gold, SOXX and TIP examples show how different names can be grabbed from Yahoo Finance.
Examples:
dub run yahoofinanced:example-csv
dub run yahoofinanced:example-dataframe
dub run yahoofinanced:example-gold
dub run yahoofinanced:example-pairs
dub run yahoofinanced:example-soxx_analysis
dub run yahoofinanced:example-tip_stdTest: dub test yahoofinanced:unittest or use ./ci.sh to build & test everything.