Black Friday 30% off Basic and ProBlack Friday −30%Ends in––d––h––m––sSee the deal

Candles

The fields of a candle request, its groups and the price levels.

Here the candles are called bars, like the usual argument; they apply to any name you assign request.bars(…) to. A price level, Level, is an element of bars.orderflow.levels[i].

The candles

bars.openfield

The open of each candle.

bars.highfield

The high of each candle.

bars.lowfield

The low of each candle.

bars.closefield

The close of each candle.

bars.volumefield

The contracts traded; nan if the symbol has no volume.

bars.timefield

The open time of each candle, in UTC milliseconds.

bars.confirmedfield

True if the candle is closed; False only on the one still forming.

bars.new_period(timeframe)method

True on the first candle of each period of the timeframe, like "D" or "W".

bars.match(other)method

For each candle, the (start, end) range of indices of the candles of another request that correspond to it, or of the news in a list that falls inside it.

bars.orderflowfield

Market buys and sells and the price levels. Requires request.bars(orderflow=…).

bars.sentimentfield

The long and short percentages, which add up to 100. Requires request.bars(sentiment=True).

bars.symbolfield

The symbol: tick, point value, ticker, currency and which data it has.

bars.timeframefield

The request’s timeframe: unit, quantity and duration.

bars.calendarfield

Time and date of each candle, in the symbol’s time zone.

bars.orderflow

bars.orderflow.volume_bidfield

The market sells of each candle.

bars.orderflow.volume_askfield

The market buys of each candle.

bars.orderflow.levelsfield

For each candle, the list of its Level, from the lowest price.

bars.sentiment

bars.sentiment.longfield

The percentage of long positions at the candle close.

bars.sentiment.shortfield

The percentage of short positions at the candle close.

bars.symbol

bars.symbol.tick_sizefield

The minimum price increment.

bars.symbol.point_valuefield

What one price point is worth, in the symbol’s currency.

bars.symbol.tickerfield

The symbol name.

bars.symbol.currencyfield

The symbol’s currency, or None.

bars.symbol.has_volumefield

True if the symbol has volume.

bars.symbol.has_orderflowfield

True if the symbol has the price profile.

bars.symbol.has_sentimentfield

True if the symbol has sentiment.

bars.timeframe

bars.timeframe.unitfield

The unit: "second", "minute", "day", "week" or "month".

bars.timeframe.valuefield

How many units: 15 for 15 minutes.

bars.timeframe.secondsfield

The duration in seconds; a month is 2,628,003.

bars.timeframe.intradayfield

True below one day.

bars.calendar

bars.calendar.time_of_dayfield

The open time, always "hh:mm:ss".

bars.calendar.weekdayfield

The day of the week: 1 is Monday, 7 Sunday.

bars.calendar.dayfield

The day of the month, by the calendar and not by the session.

bars.calendar.monthfield

The month, from 1 to 12.

bars.calendar.yearfield

The year.

bars.calendar.between(start, end, timezone=None)method

True on the candles that open between start, included, and end, excluded. The window can cross midnight; timezone is for the hours of another exchange.

Level

level.pricefield

The level’s price.

level.volume_bidfield

Sum of the individual trades, on the sell side.

level.volume_askfield

Sum of the individual trades, on the buy side.

level.aggregate_bidfield

Market orders, each counted whole at one price, on the sell side.

level.aggregate_askfield

Market orders, each counted whole at one price, on the buy side.

level.biggest_volume_bidfield

The largest single trade, on the sell side.

level.biggest_volume_askfield

The largest single trade, on the buy side.

level.biggest_aggregate_bidfield

The largest market order, on the sell side.

level.biggest_aggregate_askfield

The largest market order, on the buy side.