WeeklyRequest

public class WeeklyRequest extends TimeSeriesRequest

A request to TIME_SERIES_WEEKLY, which returns one open-high-low-close-volume bar per trading week for a ticker.

Each bar is stamped with the last trading day of the week it covers, and its close is that day's close rather than an average across the week. Volume is the week's total.

There is no output size to set: the endpoint always returns the ticker's entire weekly history, which spans twenty years in a few hundred bars rather than the few thousand the same span costs daily.

adjusted switches the request over to TIME_SERIES_WEEKLY_ADJUSTED, which adds an adjusted close and a dividend amount to every bar. Unlike the daily variant it reports no split coefficient.

Author

Sylvester Sefa-Yeboah

Since

1.0.1

Constructors

Link copied to clipboard
public void WeeklyRequest(WeeklyRequest.Builder builder)
Copies the ticker, data type and endpoint out of a builder.

Types

Link copied to clipboard
Assembles a request for weekly bars, adding the choice of adjusted or raw prices to the ticker and data type inherited from TimeSeriesRequest.Builder.