Builder

public abstract class Builder<T extends TimeSeriesRequest.Builder<T>>

Collects the parameters shared by every stock time series endpoint.

Each setter returns the concrete subclass builder rather than this base type, so that setting a shared parameter part-way through a chain does not cut off access to the endpoint-specific setters that follow it.

Parameters

<T>

the concrete builder type the shared setters return

Inheritors

Constructors

Link copied to clipboard
Creates a builder with no ticker set and JSON as the reply format.

Properties

Link copied to clipboard
The endpoint being called, sent as the function parameter.

Functions

Link copied to clipboard
public abstract TimeSeriesRequest build()
Assembles the parameters set so far into a request for this builder's endpoint.
Link copied to clipboard
public T dataType(DataType dataType)
Sets the format the API replies in.
Link copied to clipboard
public T forSymbol(String symbol)
Sets the ticker to request data for.
Link copied to clipboard
public T function(Function function)
Sets the endpoint to call.