Skip to content

Support for multiple tickers / adding ticker to result #72

Description

@nilshg

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions