alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
142 stars 13 forks source link

Did not see streaming data #63

Closed herbertchow214 closed 5 years ago

herbertchow214 commented 5 years ago

Sent authentication and subscription OK. However, the subscription response did not indicate that I have any subscription. I did not see any incoming subscribed message either. Please advise.

2019-04-18 20:01:16.366 Information Send subscriptions to ALCA successfully. {"action":"listen","data":{"streams":["trade_updates","account_updates","AM.MSFT"]}} (3828562624 ExchangeHandler.cpp.118) 2019-04-18 20:01:16.484 Information DEBUG: received ALCA message. {"stream":"authorization","data":{"action":"authenticate","status":"authorized"}} (1483527936 ExchangeHandler.cpp.598) 2019-04-18 20:01:16.485 Information DEBUG: received ALCA message. {"stream":"listening","data":{"streams":[]}} (1483527936 ExchangeHandler.cpp.598)

umitanuki commented 5 years ago

Without knowing exactly what this log message means, it looks to me the authentication happens after subscribe request. If that's the case, you need to reorder the request and authenticate first.

ttt733 commented 5 years ago

@herbertchow214 - can you please confirm if you still see an issue when sending the authorization before the subscription? If so, we can reopen this.