Kucoin은 시장 데이터, 주문 등의 실시간 업데이트를 받기 위해 구독할 수 있는 다양한 채널을 제공합니다... Ticker를 구독하는 방법의 샘플을 아래에서 확인하십시오:
oClient := TsgcWebSocketClient.Create(nil);
oKucoin := TsgcWSAPI_Kucoin.Create(nil);
oKucoin.Client := oClient;
oKucoin.SubscribeSymbolTicker('BTC-USDT');
procedure OnMessage(Connection: TsgcWSConnection; const aText: string);
begin
// here you will receive the ticker updates
end;