Shaun Patterson

Results 9 comments of Shaun Patterson

Definitely think this should be included

I solved this a slightly different way ```py class MultiBacktest(Backtest): datasets = [] def __init__(self, datasets, strategy, **kwargs): for dataset in datasets: dataset.backtest = Backtest( dataset.data, strategy=strategy, **kwargs ) self.datasets...

``` def _close_trade(self, trade: Trade, price: float, time_index: int): self.trades.remove(trade) if trade._sl_order: self.orders.remove(trade._sl_order) if trade._tp_order: self.orders.remove(trade._tp_order) self.closed_trades.append(trade._replace(exit_price=price, exit_bar=time_index)) self._cash += trade.pl def _open_trade(self, price: float, size: int, sl: float, tp:...

Strange. ``` print(Stock(['ICUI', 'BADDD'], token=token).get_quote(filter='latestPrice')) ``` works for me ``` print(Stock(['ICUI', 'CVLB'], token=token).get_quote(filter='latestPrice')) ``` is still throwing the ValueError for me. In iexfinance/base.py _format_output `out` is equal to ``` {'ICUI':...

https://www.youtube.com/watch?v=6w0jakILepk

> > @trippersham, even more simply, it looks like a very slight modification of your attempt actually works! > > ```python > > from_account: Account = Relationship(sa_relationship_kwargs=dict(foreign_keys="[Transaction.from_account_id]")) > > ```...

Had this issue today. Willing to test out any patches. For my issue simply trimming the template string worked

https://github.com/contentful-labs/contentful.py/pull/22

https://github.com/tartley/colorama/issues/302