Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Add subscription to heartbeat channel on GDAX #66

Open
chuggol opened this issue Jan 4, 2018 · 2 comments
Open

Add subscription to heartbeat channel on GDAX #66

chuggol opened this issue Jan 4, 2018 · 2 comments

Comments

@chuggol
Copy link

chuggol commented Jan 4, 2018

I was not able to make GDAX trade subscription sustainable - for me it terminates every other day without any indication - websocket does not disconnect.
You can emulate this by disconnecting the network after initial subscription has been established.

Checking if I've received any messages in the last n seconds would work, but seems hacky.

GDAX API docs indicate there is heartbeat channel to verify that connection is healthy, would be great to have that implemented.
https://docs.gdax.com, search for 'heartbeat'

@dozd
Copy link
Member

dozd commented Jan 5, 2018

There is a new isAlive method in the streaming service - does it work?

Heartbeat pattern seems nice but someone need to make a research whether it's commonly supported feature by exchanges or GDAX is the only one.

@nihiluis
Copy link
Contributor

nihiluis commented Jan 6, 2018

I get the same disconnects. Some callback on disconnect would be appropriate. I think there also was some PR for automatic reconnect?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants