bithumb-pro / bithumb.pro-official-api-docs

rest and websocket api doc
22 stars 26 forks source link

What is the first long message in Trade websocket channel? #112

Open hellojinwoo opened 1 year ago

hellojinwoo commented 1 year ago

Hello, I have a question about the websocket trade channel. The API doc is here: https://github.com/bithumb-pro/bithumb.pro-official-api-docs/blob/master/ws-api.md#tradethe-last-spot-trade-msg

When I get connected to the websocket for example, wss://global-api.bithumb.pro/message/realtime?subscribe=TRADE:ZEN-USDT, then the first message whose code is "code":"00006" and it has a list of trades. Why do we have these many trades when we get connected to the trades websocket channel?

The example is as follows:

{"code":"00006",
 "data":[{"p":"10.810000000000","s":"sell","symbol":"ZEN-USDT","t":"1675959152","v":"1.028300","ver":"3251490"},
{"p":"10.820000000000","s":"buy","symbol":"ZEN-USDT","t":"1675959129","v":"1.033300","ver":"3251489"},
{"p":"10.830000000000","s":"buy","symbol":"ZEN-USDT","t":"1675959108","v":"2.421400","ver":"3251488"}, ... }

Thank you for your reply in advance.