Base class for pyalgotrade.bar.Bars 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 the next pyalgotrade.bar.Bars in the feed or None if there are no more bars.
Returns a list of registered intstrument names.
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: |
|
---|
A pyalgotrade.barfeed.BarFeed that loads bars from a CSV file exported from NinjaTrader.
Parameters: | frequency – The frequency of the bars. |
---|
Note
Valid frequency parameter values are:
- ninjatraderfeed.Frequency.MINUTE
- ninjatraderfeed.Frequency.DAILY
Loads bars for a given instrument from a CSV formatted file. The instrument gets registered in the bar feed.
Parameters: |
|
---|