Closed nazariyv closed 3 years ago
and, yes, I have tried this on the normal market (non-sandbox). Same story
new SSL error, 2 out of 2 times now wsClient exits with an error:
[SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2471) - data: None
The heartbeat has this last_trade_id
, which I was assuming, was my last order id? The issue is not in getting the trade ids. That I can get. The problem is in pinpointing when we have missed to get the match message because it was dropped. Coinbase API tells us that we should use heartbeat for that. But I do not understand how.
One can for example get done before match, then we would we have dropped a match message. But what if we drop both the match and done. There must be a good way to pinpoint the dropped messages. And I was under the impression that heartbeat is such a mechanism.
from coinbase pro docs: " Authenticated feed messages do not increment the sequence number. It is currently not possible to detect if an authenticated feed message was dropped. "
I check each order manually until it is filled or I cancel it, since i have not found another reliable method to 100% verify the order being filled. I think the feeds are set up to give a house advantage, and it takes some creativity to work around it.
You mean you use REST? Do you do that to check if you missed match potentially? At what point would you do this though?
This is not patronizing at all! Thank you. It may be useful for me.
Seems like others have seen this as well: https://github.com/preichenberger/go-coinbasepro/issues/89
A user in that thread opened a bug report with Coinbase support, but it seems the issue is still there.
Closing this for now, as it seems to be on the Coinbase side.
When using authenticated
WebsocketClient
and heartbeat channel, is everyone also getting last trade id: 0? (starting the socket, and then making trades, obviously).and the output:
that ssl error is worrisome too.