ccapi icon indicating copy to clipboard operation
ccapi copied to clipboard

no correlation Id returned by event notifying orderbook subscription with Gate.io

Open nelyajizi opened this issue 3 years ago • 2 comments

Describe the bug when subscribing to orderbook channel of Gate.io, the correlation id given is not retrieved in the subscription started associated event.

To Reproduce Steps to reproduce the behavior: std::vectorccapi::Subscription subscriptions; subscriptions.emplace_back(CCAPI_EXCHANGE_NAME_GATEIO, "ETH_USDT", CCAPI_MARKET_DEPTH, "MARKET_DEPTH_MAX=5", my_id);
marketDataSession->subscribe(subscriptions); see in handler's processEvent, the event when message type is ccapi::Message::Type::SUBSCRIPTION_STARTED const auto &cid{message.getCorrelationIdList()}; cid is empty

Expected behavior the same behavior than if we don't use "MARKET_DEPTH_MAX=5" and though use the ticker channel instead. i don't find this issue on other exchanges as Kucoin for example.

Screenshots image

Additional context I am using 5.45.5 version

nelyajizi avatar Sep 05 '23 14:09 nelyajizi

https://github.com/crypto-chassis/ccapi/pull/424 @nelyajizi Fixed and released.

cryptochassis avatar Sep 12 '23 19:09 cryptochassis

thx @cryptochassis

nelyajizi avatar Sep 14 '23 07:09 nelyajizi