Socket
Socket
Sign inDemoInstall

yahoo-dl

Package Overview
Dependencies
30
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

docs/download-data.gif

2

package.json
{
"name": "yahoo-dl",
"version": "1.0.9",
"version": "1.0.10",
"description": "A command-line tool for downloading yahoo stock prices.",

@@ -5,0 +5,0 @@ "main": "./src/downloader.js",

@@ -8,2 +8,4 @@ # yahoo-dl

![yahoo-dl installation](docs/installation.gif?raw=true "yahoo-dl installation")
## Usage

@@ -15,4 +17,47 @@

![Download Stock Price](docs/download-data.gif?raw=true "Download Stock Price")
This will download weekly historically data for the latest 12 months.
Usage: yahoo-dl [options] [command]
Yahoo stock price downloader.
Options:
-V, --version output the version number
-t, --timeframe <d,w,m> Timeframe d for daily, w for weekly, m for monthly. (default: "w")
-p, --period <104> Period of the selected time frame e.g. 200, 12 etc... (default: 104)
-o, --stdout Output will be written to stdout.
-f, --filename <symbol.csv> Output will be written to a file default is symbol.csv
-h, --help output usage information
Commands:
get <symbol>
### Example
Download spy 104 week data.
kg@tmp $ yahoo-dl get spy
ℹ Writing to /Users/kg/tmp/spy.csv
✔ Done spy 104w
Output is as follows
kg@tmp $ cat spy.csv
Date,Open,High,Low,Close,Adj Close,Volume
2016-10-24,215.000000,215.320007,211.710007,212.539993,204.589417,420237800
2016-10-31,212.929993,213.190002,208.380005,208.550003,200.748672,485446500
2016-11-07,208.550003,218.309998,208.550003,216.419998,208.324280,743158200
2016-11-14,217.029999,219.270004,215.720001,218.500000,210.326462,404338000
2016-11-21,219.169998,221.559998,219.000000,221.520004,213.233505,232394000
...
2018-10-01,292.109985,293.209991,286.220001,287.820007,287.820007,391529300
2018-10-08,287.049988,288.859985,270.359985,275.950012,275.950012,834839200
2018-10-15,275.549988,281.149994,274.299988,276.250000,276.250000,605470400
# License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc