Skip to content
Back to formatted view

Raw Message

Message-ID: <CA+xi=qYP7UYW05XYcpvRusQsOa3Dd5BOQnuPf=T08XMYcYH-LA@mail.gmail.com>
Date: 2012-09-06T18:44:11Z
From: G See
Subject: Equities Data
In-Reply-To: <CAAHNhKW0afW9CF2=us3hCKGgTSBOMetMfDz5kJc4U0SdoVWBUQ@mail.gmail.com>

That's not really how the website is setup.  So, I don't think that's
how the function should be setup by default.  But, you can easily
filter the results by Symbol.

Here is the wrapper I mentioned.

    getSplitsCalendar <- function(from, to) {
      qmao:::getCalendarByMonth(".getSplitsCalendar", from=from, to=to)
    }

This allows you to get and merge several months of splits calendars.

    sc <- getSplitsCalendar(from='2012-01-01', to='2012-08-31')

Now you have the splits calendar from January to August.  You can
filter that by the symbol you care about.

sc[sc$Symbol == "ALK", ]
      Payable    Ex.Date    Company Symbol Optionable. Ratio  Announced
52 2012-03-16 2012-03-19 Alaska Air    ALK           Y   2-1 2012-02-16

Good enough?

Garrett

On Thu, Sep 6, 2012 at 1:34 PM, Ralph Vince <rvince99 at gmail.com> wrote:
> Garrett,
>
> This is great. Do you think it would be possible to pass in a given
> ticker to get that informatoin, rather than getting the whole gulp?
> Ralph Vince
>