MarketData SDK

BulkQuote
in package

Represents a bulk quote for a stock with various price and volume information.

Table of Contents

Properties

$ask  : float
$ask_size  : int
$bid  : float
$bid_size  : int
$change  : float|null
$change_percent  : float|null
$fifty_two_week_high  : float|null
$fifty_two_week_low  : float|null
$last  : float
$mid  : float
$symbol  : string
$updated  : Carbon
$volume  : int

Methods

__construct()  : mixed
Constructs a new BulkQuote instance.

Properties

$change_percent

public float|null $change_percent

$fifty_two_week_high

public float|null $fifty_two_week_high

$fifty_two_week_low

public float|null $fifty_two_week_low

Methods

__construct()

Constructs a new BulkQuote instance.

public __construct(string $symbol, float $ask, int $ask_size, float $bid, int $bid_size, float $mid, float $last, float|null $change, float|null $change_percent, float|null $fifty_two_week_high, float|null $fifty_two_week_low, int $volume, Carbon $updated) : mixed
Parameters
$symbol : string

The symbol of the stock.

$ask : float

The ask price of the stock.

$ask_size : int

The number of shares offered at the ask price.

$bid : float

The bid price.

$bid_size : int

The number of shares that may be sold at the bid price.

$mid : float

The midpoint price between the ask and the bid.

$last : float

The last price the stock traded at.

$change : float|null

The difference in price in dollars (or the security's currency if different from dollars) compared to the closing price of the previous day.

$change_percent : float|null

The difference in price in percent, expressed as a decimal, compared to the closing price of the previous day. For example, a 30% change will be represented as 0.30.

$fifty_two_week_high : float|null

The 52-week high for the stock. This parameter is omitted unless the optional 52week request parameter is set to true.

$fifty_two_week_low : float|null

The 52-week low for the stock. This parameter is omitted unless the optional 52week request parameter is set to true.

$volume : int

The number of shares traded during the current session.

$updated : Carbon

The date/time of the current stock quote.


        
On this page

Search results