Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest API breaks resample #60

Closed
jho opened this issue Jun 3, 2020 · 2 comments
Closed

Latest API breaks resample #60

jho opened this issue Jun 3, 2020 · 2 comments

Comments

@jho
Copy link

jho commented Jun 3, 2020

If I start a Strategy in Paper trading mode I get the following error if I try to do resample on the data stream.

Exception: Error while connecting to wss://data.alpaca.markets/stream:your connection is rejected while another connection is open under the same account

This may be an issue with how Backtrader does resampling. Unsure yet, but it it makes it almost impossible to use an Hourly or Daily strategy effectively. I might be able to use a filter to filter out all but the open/close ticks so that my non-Tick strategy still has the right bar timelength.

@jho
Copy link
Author

jho commented Jun 3, 2020

Looks like #48 may take care of this. If so can close.

@jho
Copy link
Author

jho commented Jun 3, 2020

Looks like it wasn't the resampling, but the fact that I used 2 data feeds. Realy need #48 either way.

@jho jho closed this as completed Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant