algo2t / alphatrade

Python APIs for SAS Online Alpha Trade Web platform for creating algo trading using python
https://algo2t.github.io/alphatrade
MIT License
44 stars 23 forks source link

Websocket not working #36

Open raggs07 opened 2 years ago

raggs07 commented 2 years ago

i am bit naive in websocket so reaching out to you.

i copy pasted your websocket code and tried executing it but it is not working. it just keep waiting and nothing gets printed. need help here. can you please post a working example.

algo2t commented 2 years ago

At what time you tried the code? It must be used only when market is open.

flovex7 commented 1 year ago

Hi I tried the code streaming.py during market hours, it keeps looping on following line on streaming.py : while(socket_opened == False): # wait till socket open & then subscribe pass

Screenshot 2022-12-21 at 11 42 55

Not sure what is causing it to keep looping as the value of socket_opened is not turning to True.... (Checked this for past two days in live market 20-12-2022, 21-12-2022) I can see some past issues on websocket was temporary and it started working later....Any have the same issue? Any help will be appreciated 👍