MonthlyRequest

public class MonthlyRequest extends TimeSeriesRequest

A request to TIME_SERIES_MONTHLY, which returns one open-high-low-close-volume bar per month for a ticker.

This is the widest cadence the library offers, and the one that reduces a ticker's whole history to a few hundred points — each bar stamped with the last trading day of the month it covers, closing at that day's close and totalling the month's volume.

Like the weekly cadence and unlike the daily one, it takes no output size: the endpoint always returns the full history.

adjusted switches the request over to TIME_SERIES_MONTHLY_ADJUSTED, which adds an adjusted close and a dividend amount to every bar. Since the dividend is aggregated per bar, a month paying more than one dividend reports their sum rather than each separately.

Author

Sylvester Sefa-Yeboah

Since

1.0.1

Constructors

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

Types

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