I often find myself doing something like
tickers = ["^FTSE", "^N225", "^DJI"]
result_df = DataFrame(yahoo(tickers[1]))
result_df = [fill(tickers[1], nrow(result_df)) first_ticker]
for t in tickers[2:end]
new_df = DataFrame(yahoo(t))
new_df = [fill(t, nrow(new_df) new_df]
result_df = vcat(result_df, new_df)
end
Could something like this (this might not be the best way of doing it of course, just a quick hack) be implemented as a yahoo(tickers::Vector{Union{String, Symbol}}) method?
If not (and this could be a separate issue but I thought it would be a bit small) could we have a add_ticker kwarg that includes the ticker in the TimeArray that's being returned?
I often find myself doing something like
Could something like this (this might not be the best way of doing it of course, just a quick hack) be implemented as a
yahoo(tickers::Vector{Union{String, Symbol}})method?If not (and this could be a separate issue but I thought it would be a bit small) could we have a
add_tickerkwarg that includes the ticker in theTimeArraythat's being returned?