You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've been using the client for a couple days now to subscribe to the unusual trade feed. We've noticed some weird behavior when leaving the client running overnight; namely, at some point around midnight the connection is dropped and the attempts to reconnect fail, meaning the client is no longer live in the morning when the market opens.
Here's the relevant logs, the config has the DEBUG logging level:
After this nothing happens, so it appears the reconnection process failed.
Relevant client init code:
config: client.Config=client.Config(
api_key=INTRINIO_API_KEY,
provider=client.Providers.OPRA,
num_threads=4,
log_level=client.LogLevel.DEBUG
)
defbuild_client():
returnclient.Client(
config, on_unusual_activity=on_unusual_activity_handler
)
intrinioRealtimeOptionsClient: client.Client=build_client()
@asynccontextmanagerasyncdefintrinio(app: FastAPI):
logger.info("********* BEGIN START UP *********")
intrinioRealtimeOptionsClient.start()
intrinioRealtimeOptionsClient.join_firehose()
logger.info("******** DONE START UP *********")
yieldlogger.info("********* BEGIN SHUTTING DOWN *********")
intrinioRealtimeOptionsClient.stop()
logger.info("******** STOPPED INTRINIO CLIENT *********")
app=FastAPI(debug=DEBUG, lifespan=intrinio)
This has happened a couple days in a row. As a result we have no confidence in being able to run the client indefinitely. Any ideas as to what the problem could be? Thanks.
The text was updated successfully, but these errors were encountered:
@Graeme22 Did you guys ever solve the infinite reconnect? We tend to open two connections back to back on startup and for whatever reason the second one often fails with either 429 too many requests or 429 authorization failure (even though were using same key for both...???). Then it just hangs on reconnect indefinitely. Thanks
@Graeme22 Did you guys ever solve the infinite reconnect? We tend to open two connections back to back on startup and for whatever reason the second one often fails with either 429 too many requests or 429 authorization failure (even though were using same key for both...???). Then it just hangs on reconnect indefinitely. Thanks
As far as I can recall no. Since this repo is unmaintained you might want to try your luck using the websockets library and building something from scratch.
Hello, I've been using the client for a couple days now to subscribe to the unusual trade feed. We've noticed some weird behavior when leaving the client running overnight; namely, at some point around midnight the connection is dropped and the attempts to reconnect fail, meaning the client is no longer live in the morning when the market opens.
Here's the relevant logs, the config has the DEBUG logging level:
After this nothing happens, so it appears the reconnection process failed.
Relevant client init code:
This has happened a couple days in a row. As a result we have no confidence in being able to run the client indefinitely. Any ideas as to what the problem could be? Thanks.
The text was updated successfully, but these errors were encountered: