QuoteResponse

public void QuoteResponse(String symbol, double open, double high, double low, double price, double volume, String latestTradingDay, double previousClose, double change, double changePercent)

Creates a successful quote from the values a response carried.

Parameters

symbol

the ticker the quote covers

open

the latest trading day's opening price

high

the latest trading day's highest price

low

the latest trading day's lowest price

price

the latest traded price

volume

the latest trading day's volume, in shares

latestTradingDay

the day the quote covers, formatted yyyy-MM-dd

previousClose

the previous trading day's closing price

change

the move from the previous close, in the listing currency

changePercent

the move from the previous close, in percentage points


public void QuoteResponse(String errorMessage)

Creates a failed quote carrying only a message, with every price left at 0.0 and the ticker and trading day left null.

Parameters

errorMessage

the message describing what went wrong