Binance | 订阅 WebSocket 频道

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;