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