mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-06 18:43:25 +00:00
Major linting push
This commit is contained in:
@@ -7,13 +7,10 @@ function Get-StockInfo {
|
||||
)
|
||||
|
||||
$xlfile = "$env:TEMP\stocks.xlsx"
|
||||
rm $xlfile -ErrorAction Ignore
|
||||
Remove-Item -Path $xlfile -ErrorAction Ignore
|
||||
|
||||
$result = Invoke-RestMethod "https://api.iextrading.com/1.0/stock/market/batch?symbols=$($symbols)&types=quote&last=1"
|
||||
|
||||
$symbolCount = $symbols.Split(",").count
|
||||
|
||||
|
||||
$ecd = New-ExcelChartDefinition -Row 1 -Column 1 -SeriesHeader $dataPlot `
|
||||
-XRange symbol -YRange $dataPlot `
|
||||
-Title "$($dataPlot)`r`n As Of $((Get-Date).ToShortDateString())"
|
||||
|
||||
Reference in New Issue
Block a user