Base class for pyalgotrade.bar.Bar providing feeds.
Note
This is a base class and should not be used directly.
Returns the pyalgotrade.dataseries.BarDataSeries for a given instrument.
Parameters: | instrument (string.) – Instrument identifier. If None, the default instrument is returned. |
---|---|
Return type: | pyalgotrade.dataseries.BarDataSeries. |
Returns the default instrument.
Returns a list of registered intstrument names.
Returns the next pyalgotrade.bar.Bars in the feed. If there are not more values StopIteration is raised.
A pyalgotrade.barfeed.BarFeed that loads bars from a CSV file downloaded from Yahoo! Finance.
Loads bars for a given instrument from a CSV formatted file. The instrument gets registered in the bar feed.
Parameters: |
|
---|