Skip to content

PriceBarDTO

stonepy.models.PriceBarDTO.PriceBarDTO

Bases: ResponseModel

The details of a specific price bar, useful for plotting candlestick charts. Used in the GetPriceBarResponseDTO .

bar_date class-attribute instance-attribute

bar_date: StoneXDateTime | None = Field(
    default=None, alias="BarDate"
)

The starting date for the price bar interval.

open class-attribute instance-attribute

open: Decimal | None = Field(default=None, alias='Open')

The price at the start (open) of the price bar interval.

high class-attribute instance-attribute

high: Decimal | None = Field(default=None, alias='High')

The highest price occurring during the interval of the price bar.

low class-attribute instance-attribute

low: Decimal | None = Field(default=None, alias='Low')

The lowest price occurring during the interval of the price bar.

close class-attribute instance-attribute

close: Decimal | None = Field(default=None, alias='Close')

The price at the end (close) of the price bar interval.