Is the Market Trades WebSocket channel guaranteed to report all trades?

If not, how can we get the specific trades that were dropped? The “Get Market Trades” API does not include a means to obtain any specific trade IDs, and we cannot be sure that we will be able to call the API in time to retrieve the missing trades.

Hi @thefellow3j! Thank you for taking an interest in trying out Coinbase APIs. Regarding your concern if the Market Trades channel is guaranteed to report all trades, the answer is yes. Since the said channel provides real-time updates every time a market trade happens. Please note Get Market Trades endpoint returns a snapshot information, by product ID, about the last trades (ticks), best bid/ask, and 24h volume. For more information about the Advanced Trade websocket channels you may go through this link.

We hope this helps. Please do not hesitate to reach out to us again if you have further questions.

The documentation says, “The market_trades channel sends market trades for a specified product on a preset interval.” which is contradictory to what you said, “Since the said channel provides real-time updates every time a market trade happens.”
Which is it?

Also, does every channel that doesn’t send sequence numbers also guarantee message delivery?

Hello @ttno1! Welcome back to the forum! We greatly appreciate you for pointing out the discrepancy between what was said in the documentation and my previous response. Upon checking and connecting to the Market Trades channel, we can confirm that it is indeed returning a response real-time every time a market trade happens, not on a preset interval. Hence, please note that we would log this as a feedback with our internal teams and have them update the related documentation. Again, we appreciate your keen eye and this will surely help us in improving customer experience.

With regard to your other concern, we checked every Advanced Trade Websocket channel and each one of them returns a sequence number in their response and are all working as intended. We hope we were able to answer your concerns. Thank you!

2 Likes

But all trades are not reported - Market trades channel - #4 by muktupavels!

I also noticed this. While the websocket sends all the trades, some information is dropped in the UI.

Hi @muktupavels and @thefellow3j We’ve received your concerns about not retrieving all trades in the market_trades channel of Advanced Trade Websocket and we’d like to inform you that we’ve logged this as a feedback with our internal teams so we can continue improving our user experience. Most new features and improvements to our products come directly from feedback like yours, so it’s very valuable to us. While we can’t offer any specific timeline for adding features and improvements, we are constantly working to build products our customers will love. We appreciate your patience and understanding. Have a great day!

Hi @muktupavels and @thefellow3j! We appreciate your patience as we look into this with our internal teams. We are pleased to inform you that the issue about “missing trades” in the market_trades channel of Advanced Trade WebSocket has been resolved. You may now try subscribing to the channel again and you must now be able to see all the related information. Thank you and have a great day! :sunny:

1 Like

@PochiiKun @ereeca15 Can the documentation be updated to what is effectively returned?
If the WSS reports trades as they happen, then it does not return an array of events and trades, or at least arrays that always have only one values, is it correct?
My client would certainly not be satisfied with It was written on the Forum as an answer to missing trades
Thank you

Hi @MementoMori

The market_trades channel batches updates every 250 milliseconds, so an update for a channel can contain more than 1 trade, if several happened in the last 250ms.

We hope this is helpful & please let us know if you have any further questions.

@Caleb Thank you for the explanation, this makes sense. Best

1 Like