Candle
in package
Represents a single stock candle with open, high, low, close prices, volume, and timestamp.
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs a new Candle instance.
Properties
$close
public
float
$close
$high
public
float
$high
$low
public
float
$low
$open
public
float
$open
$timestamp
public
Carbon
$timestamp
$volume
public
int
$volume
Methods
__construct()
Constructs a new Candle instance.
public
__construct(float $open, float $high, float $low, float $close, int $volume, Carbon $timestamp) : mixed
Parameters
- $open : float
-
Open price of the candle.
- $high : float
-
High price of the candle.
- $low : float
-
Low price of the candle.
- $close : float
-
Close price of the candle.
- $volume : int
-
Trading volume during the candle period.
- $timestamp : Carbon
-
Candle time (Unix timestamp, UTC). Daily, weekly, monthly, yearly candles are returned without times.