alpacahq / alpaca-trade-api-python

Python client for Alpaca's trade API
https://pypi.org/project/alpaca-trade-api/
Apache License 2.0
1.74k stars 539 forks source link

[Bug]: Fail to connect crypto streaming #784

Open KisCsaj68 opened 2 months ago

KisCsaj68 commented 2 months ago

Is there an existing issue for this?

Current Behavior

Try to connect to crypto streaming, gives me 404.

data websocket error, restarting connection: server rejected WebSocket connection: HTTP 404

Expected Behavior

The connection succeeds.

SDK Version I encountered this issue in

3.2.0 (currently the latest)

Steps To Reproduce

1. Instantiate the stream
2. Subscribe to the crypto stream
3. Call run on the stream

Filled out the Steps to Reproduce section?

Anything else?

No response

hiohiohio commented 2 months ago

@KisCsaj68 hey thank you for the feedback and PR. Could you please try to use alpaca-py instead as we have deprecated this alpaca-trader-api-python. If you have a feature which only have alpaca-trader-api-python and not in alpaca-py, please let us know.

KisCsaj68 commented 1 month ago

@hiohiohio Thanks for your answer. In the near future I am still planning to use alpaca-trader-api-python with my workaround and hopefully I will have the time to move over to alpaca-py. For now I am going to focus on other things.