Skip to content

Commit e6aff55

Browse files
committed
ci fixes
1 parent 125b9b9 commit e6aff55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

alpaca_backtrader_api/alpacastore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,8 @@ def _t_account(self):
544544
def order_create(self, order, stopside=None, takeside=None, **kwargs):
545545
okwargs = dict()
546546
# different data feeds may set _name or _dataname so we cover both
547-
okwargs['symbol'] = order.data._name if order.data._name else order.data._dataname
547+
okwargs['symbol'] = order.data._name if order.data._name else \
548+
order.data._dataname
548549
okwargs['qty'] = abs(int(order.created.size))
549550
okwargs['side'] = 'buy' if order.isbuy() else 'sell'
550551
okwargs['type'] = self._ORDEREXECS[order.exectype]

0 commit comments

Comments
 (0)