This PowerShell module utilizes the IEX Group's public/free-to-use API to query information about passed in symbols.
Import-Module ./Get-Stock.psm1
Input:
Get-Stock -Symbol AAPL
Output:
Company Apple Inc.
CEO Timothy D. Cook
Industry Computer Hardware
Website http://www.apple.com
- -
Open 188.27
Close 188.58
Price 188.58
Select parameter can take: ceo, company, website, industry, openeningPrice, closingPrice, or price. Input:
Get-Stock -Symbol AAPL -Select CEO
Output:
Timothy D. Cook
There are no requirements for normal usage.
In order to perform unit tests, you'll need Pester.
Install-Module -Name Pester -Force -SkipPublisherCheck
Invoke-Pester