Does barset include the day's data?

The documentation states, “currently, no “incomplete” bars are returned. For example, a 1 minute bar for 09:30 will not be returned until 09:31.”
However, when I request get_barset(’’, ‘day’, limit=2) etc., the barset I receive includes today’s data even if the market is open. In other words, get_barset(’’, ‘day’, limit=2)[][-1].c is the current price of the stock, not the closing price of the last day.
So, is the statement above does not apply for daily data?

Came here to report the same thing. If you wait a bit, the bar for today changes – so it is absolutely an incomplete bar.

Just tested with 5 minute bars and the same thing is observed:

{
    "WMT": [
        {
            "t": 1604433600,
            "o": 142.655,
            "h": 142.66,
            "l": 142.52,
            "c": 142.56,
            "v": 1906
        }
    ]
}

...

{
    "WMT": [
        {
            "t": 1604433600,
            "o": 142.655,
            "h": 142.66,
            "l": 142.46,
            "c": 142.46,
            "v": 2728
        }
    ]
}

My assumption is that the other timeframes are updated every time the 1min bars are updated. So no incomplete 1min bars, but it will use any 1min bars for the other timeframes without waiting for a complete bar.

Are you trying to get live data? If so Get_Barset is not the way to do it.

is there another endpoint with live bars?

You can get live data with a thing call StreamConn and would be more than willing to show you how it works.

Yeah that’s a totally different setup.

The REST API endpoint should work as described.