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
$ask
public
float
$ask
$ask_size
public
int
$ask_size
$bid
public
float
$bid
$bid_size
public
int
$bid_size
$change
public
float|null
$change
$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
$last
public
float
$last
$mid
public
float
$mid
$symbol
public
string
$symbol
$updated
public
Carbon
$updated
$volume
public
int
$volume
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.