Message: BarRange

File: WebAPI/historical_2.proto

Description

Range of bars.

Used in

NonTimedBarRequest

Fields

utc_time

Type: sint64

Description: Boundary time of the requested range (see enum TimeDirection for the details).

count

Type: uint32

Description: Number of requested bars.

Note: The maximum number of bars that can be requested in one message is limited, 100000 by default.

index

Type: sint32

Description: Boundary index of the requested range (see enum TimeDirection for the details).

time_direction

Type: uint32

Description: Note: TIME_DIRECTION_BACKWARD is used by default.

Source: BarRange.TimeDirection.

Enum TimeDirection

Description: Time direction.

Values

      TIME_DIRECTION_BACKWARD = 1

     Note: ‘utc_time’ and ‘index’ define the right bound of the requested range. If ‘utc_time’ is not specified then latest allowed and available time is used. The right bound is exclusive: the report will contain specified count of bars preceding the boundary. Each report will contain a set of bars sorted in descending order by (bar_utc_time, index). Reports related to a specific request will be ordered chronologically from the most recent one to the past.