From 175cd008d6329e1aa1b840c0c124fdb3fb0c431a Mon Sep 17 00:00:00 2001 From: Denis Tereshkin Date: Sat, 22 Dec 2018 19:05:46 +0700 Subject: [PATCH] Strategy: new method: get_bars --- src/naiback/strategy/strategy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/naiback/strategy/strategy.py b/src/naiback/strategy/strategy.py index 7c56618..2812d77 100644 --- a/src/naiback/strategy/strategy.py +++ b/src/naiback/strategy/strategy.py @@ -70,6 +70,9 @@ class Strategy: for bars in self.all_bars: self._synchronize_bars(bars, all_dates) + def get_bars(self, ticker): + return self._get_bars(ticker) + def _get_bars(self, ticker): for bars in self.all_bars: if bars.ticker == ticker: