Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
korilium committed May 3, 2024
1 parent b2a0fa3 commit a272f6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{
"julia.environmentPath": "/home/korilium/Documents/GitHub/Peccon.jl"
}
21 changes: 0 additions & 21 deletions examples/example_mpt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@ using Peccon, StatsPlots

Tickers = ["IUSA.AS", "IBCI.AS", "IEMA.AS", "WTCH.AS", "VWRL.AS"]

function data_alpha_X(Tickers,clientKey, days = 248 )

#extract the data
client = AlphaVantage.GLOBAL[]
client.key = clientKey
AlphaVantage.GLOBAL[]
portfolio = []
days= days
for i in Tickers
asset = DataFrame(time_series_daily( i, outputsize= "full"))
asset = asset[1:days,:]
asset[!,"ticker"] .= i
push!(portfolio, asset)
end
return portfolio
end






data1 = data_alpha(Tickers, "0VS2G38H6PKP03GX", 248)

Expand Down

0 comments on commit a272f6e

Please sign in to comment.