alpaca-backtrader-api
alpaca-backtrader-api copied to clipboard
Alpaca Trading API integrated with backtrader
I would like to run multiple strategies - and keep multiple socket connections open, is there a solution for this
I'm trying to buy for a long position with a trailing stop. Source snippet: ``` valid_for_minutes = 1 buy_long = self.buy(exectype=exectype, price=price, size=data.long_size, valid=timedelta(minutes=valid_for_minutes), transmit=False) data.long_order = self.sell(exectype=bt.Order.StopTrail, parent=buy_long, size=data.long_size,...
Hi, I keep getting the following error when running any strategy (the sample python files) in paper trading mode. It was working before. Recently there has been some update in...
When a strategy crashes or is restarted all the order state is lost. This PR changes the startup process to re-load the orders before data begins streaming.
The _resample method in `AlpacaStore.get_aggs_from_alpaca` was crashing on an empty DataFrame and also was using `._raw` on the `EntityList` response which looks like it doesn't guarantee setting of the `timestamp`...
Hey Alpaca Team, Not a big issue here but would be nice as an addition to new users. When running the example code, I got the following error message with...
Is upgrading to [alpaca-trade-api >= 1.0](https://pypi.org/project/alpaca-trade-api/1.2.2/) planned in the near future? Lots of recent updates there around websockets and V2 data that would be great to use.
Pinned a few dependency versions differently to make the package installable and examples are basic README example works again

Hi, I encounter this error when I upgrade to version alpaca-backtrader-api-0.14.1. It can be reproduced using the code of strategy_readme_sample.py . The only change is backtest and the timeframe of...