Bases: object
Enum like class for bar frequencies. Valid values are:
Bases: object
A Bar is a summary of the trading activity for a security in a given period.
Note
This is a base class and should not be used directly.
Returns the datetime.datetime.
Returns the opening price.
Returns the highest price.
Returns the lowest price.
Returns the closing price.
Returns the volume.
Returns the adjusted closing price.
The bar’s period.
Returns the typical price.
Returns the closing or adjusted closing price.
Bases: object
A group of Bar objects.
Parameters: | barDict (map.) – A map of instrument to Bar objects. |
---|
Note
All bars must have the same datetime.
Returns the pyalgotrade.bar.Bar for the given instrument. If the instrument is not found an exception is raised.
Returns True if a pyalgotrade.bar.Bar for the given instrument is available.
Returns the instrument symbols.
Returns the datetime.datetime for this set of bars.
Returns the pyalgotrade.bar.Bar for the given instrument or None if the instrument is not found.