Skip to content

Navigation Menu

Sign in
Sign up

Alpaca Market Data API stops feeding data after several hours #169

mimars2005 started this conversation in General
Discussion options

Hello, I have been using the Alpaca Client for quite some time now and set it up to work with the MarketDataApi so it can receive real-time data about the stock market by subscribing the specific stock and adding StockMarketDataListener which to receive the data with the onData event. The only problem I had so far is that after approximately 4 hours of receiving data it stops feeding anything, until i restart it. My question is am I missing something that needs to be added as a parameter or is there a mechanism to send heart-beat ping to let alpaca server know to keep the connection alive. Also I never kept the connection working for two consecutive days so I do not know if it continues to not receive data even on the next day after it stops.

You must be logged in to vote

Replies: 1 comment

Comment options

It's been a while since I've maintained this library so your issue may very well be a bug. I'm hoping to get this library up-to-date by the end of Q1 2026 at the latest. Thanks for your patience. Apologies for the delays.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /