Hi everyone.
IActually i can send orders, consult account info, etc.
But i have problem to connect via websockets and receive data information.
To connect i use this code, where cs is a clientsocket component
cs.Host := 'stream.binance.com';
cs.port := 9443;
cs.Open;
with the above code i can connect and there is no error
to subscribe i tryed this code
s := ‘/ws/{“method”: SUBSCRIBE",“params”:“btcusdt@trade”,“btcusdt@aggTrade”,“btcusdt@depth”],“id”: 1}’;
or
s := ‘/ws/btcusdt@trade’;
cs.Socket.SendText(s);
but there is no event on cs.socket.readtext…
Someone have some idea what i´m doing wrong?
How could i connect and receive price data without consulting it in an active way via API ‘price’?
Thanks in advance