VAn, the chart API.
Bars
The totals in
VolTotList[0] (InfoVolClass):
Never read bars after
VAn.BarIndex during the history: they are not there yet.
Prices as integer ticks
Volume data is indexed by the price as an integer number of ticks, calledPinT. Convert with:
Volume by price
The volume traded at each price of a bar is built only for the indicators which ask for it, inOnSet:
bar.PriceList and bar.VbpListAll for null: some symbols and data feeds have no volume by price.
Trades
WithOnTickCall set, OnTick receives every trade of the bar still open:
Feed is an alias: using Feed = VolumetricaAPI.Connection.Structure;.
Ask for the trades in realtime only (
CallHandler.RT) and take the history from the totals of the bars. The trades of the history are available only on the desktop, see Desktop only features.