Package-level declarations

The Moshi-backed layer that turns a raw Alpha Vantage JSON reply into a typed response object.

com.crazzyghost.alphavantage.parser.Parser is the base type every response's parser extends, with com.crazzyghost.alphavantage.parser.DefaultParser and com.crazzyghost.alphavantage.parser.SimpleParser covering its two input shapes. com.crazzyghost.alphavantage.parser.NoneableDouble and com.crazzyghost.alphavantage.parser.NoneableLong — backed by com.crazzyghost.alphavantage.parser.NoneableDoubleAdapter and com.crazzyghost.alphavantage.parser.NoneableLongAdapter — mark fields whose value Alpha Vantage may report as the literal string "None", distinguishing that explicitly-absent case from an ordinary number or a JSON null.

Types

Link copied to clipboard
public abstract class DefaultParser<T> extends Parser<T>
A Parser for the metadata-plus-time-series reply shape most Alpha Vantage endpoints use, where the first top-level key holds the metadata and the second holds the data keyed by timestamp.
Link copied to clipboard
@JsonQualifier()
public @interface NoneableDouble
Marks a Double field as carrying Alpha Vantage's numeric-or-"None" convention, routing its deserialization through NoneableDoubleAdapter instead of Moshi's default Double handling.
Link copied to clipboard
Moshi (de)serialization adapter for Double fields annotated NoneableDouble, registered on every Moshi.BuilderParser constructs.
Link copied to clipboard
@JsonQualifier()
public @interface NoneableLong
Marks a Long field as carrying Alpha Vantage's numeric-or-"None" convention, routing its deserialization through NoneableLongAdapter instead of Moshi's default Long handling.
Link copied to clipboard
public class NoneableLongAdapter
Moshi (de)serialization adapter for Long fields annotated NoneableLong, registered on every Moshi.BuilderParser constructs.
Link copied to clipboard
public abstract class Parser<T>
Turns the decoded JSON of an Alpha Vantage reply into a response object, and carries the Moshi-backed JSON helpers the concrete parsers share.
Link copied to clipboard
public abstract class SimpleParser<T, U> extends Parser<T>
A Parser counterpart to DefaultParser for subclasses that parse a pre-shaped input of type U directly, rather than receiving the metadata-plus-time-series split DefaultParser performs.