Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PowerShell wrapper of Yahoo Finance Stock Market OHLC quotes. Intraday (starting at 1min), daily, weekly and monthly candlesticks.

NotificationsYou must be signed in to change notification settings

daniel0x00/PSYahooFinance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Retrieves OHLC (Open, High, Low, Close) Stock Market quotes from Yahoo Finance API,live data andhistorical data.

Compatible withWindows PowerShell 5.1 andPowerShell 7.

Install

PowerShell Gallery (preferred)

Install-Module PSYahooFinance-ForceImport-Module PSYahooFinance

Invokation

iex((iwr https://raw.githubusercontent.com/daniel0x00/PSYahooFinance/main/Get-YFStockQuote.ps1-UseBasicParsing).content)

Usage

Bitcoin-USD, 1d candles, -1year lookback.

PS C:\>Get-YFStockQuote-Symbol BTC-USD-Range 1y
timestamp : 1589756400symbol    : BTC-USDinterval  : 1dopen      : 9675.7high      : 9906.03low       : 9570.36close     : 9726.58volume    : 41827139895timestamp : 1589842800symbol    : BTC-USDinterval  : 1dopen      : 9727.06high      : 9836.05low       : 9539.62close     : 9729.04volume    : 39254288954

S&P-500 ETF, 5m candles, -1month lookback.

PS C:\>Get-YFStockQuote-Symbol SPY-Interval5m-Range 1mo
timestamp : 1606855800symbol    : SPYinterval  : 5mopen      : 366.04high      : 366.44low       : 365.57close     : 366.39volume    : 3285779timestamp : 1606856100symbol    : SPYinterval  : 5mopen      : 366.39high      : 366.4low       : 365.76close     : 365.98volume    : 3926745

Apple stock, 2m candles, -10days from today lookback.

PS C:\>Get-YFStockQuote-Symbol AAPL-Interval2m-FromDate-10
timestamp : 1606746600symbol    : AAPLinterval  : 2mopen      : 117.34high      : 117.7low       : 117.28close     : 117.59volume    : 4445463timestamp : 1606746720symbol    : AAPLinterval  : 2mopen      : 117.63high      : 118.3low       : 117.56close     : 118.09volume    : 1850952

Live data, Apple stock, 1m candles.

PS C:\>Get-YFStockQuote-Symbol AAPL-Interval1m-Range1d| ft
timestamp symbol interval   open   high    low  close  volume --------- ------ --------   ----   ----    ---  -----  ------1609770600 AAPL   1m       133.37 133.61 132.95 133.15 42639811609770660 AAPL   1m       133.13 133.45 133.08 133.34  5344611609770720 AAPL   1m       133.35 133.36 132.99 133.11  5260671609770780 AAPL   1m       133.11 133.15 132.71 132.75  5556391609770840 AAPL   1m       132.73 132.83 132.39 132.81  7448171609770900 AAPL   1m            0      0      0      0       01609770917 AAPL   1m       132.75 132.75 132.75 132.75       0

Note that the last 2 objects.1609770900 represents the current minute value when the candle is closed -which hasn't happened yet, thereby0 values-, whereas the1609770917 value is the current timestamp, meaning 'non-closed candle' (temporal results).

About

PowerShell wrapper of Yahoo Finance Stock Market OHLC quotes. Intraday (starting at 1min), daily, weekly and monthly candlesticks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp