Hello there,
Im trying to terminate connected socket
EndPoint id is : 2131070991
binance.websockets.terminate(list_connection[symbol][name_resolution+'_id']);
But still pumping candlesticks ... Any body help me about it? How can I terminate socket with end point ID ?
Thank you so much ....
Pump....
Before: 2
End Point list : 2131070991
Socket baglantisi kapatildi 2131070991
[ 'WebSocket terminated:', 2131070991 ]
[ 'WebSocket closed: 2131070991 (1006)' ]
Where was client: ETHBTC res was: h4
Do: 1
Before: undefined
Where was client: ETHBTC res was: undefined
Do: NaN
Pump....
Pump....
Pump...
Im getting End point and storing like that ...
var endpoint_id = binance.websockets.candlesticks([symbol], resolution, (candlesticks) => {
let { e:eventType, E:eventTime, s:symbol, k:ticks } = candlesticks;
let { o:open, h:high, l:low, c:close, v:volume, n:trades, i:interval, t:startBar, q:quoteVolume, V:buyVolume, Q:quoteBuyVolume } = ticks;
let answer = {
s:'ok',
c:[close,close],
t:[Math.round(startBar/1000),Math.round(startBar/1000)],
v:[volume,volume],
h:[high, high],
l:[low, low],
o:[open, open]
}
Hello there,
Im trying to terminate connected socket
EndPoint id is : 2131070991
binance.websockets.terminate(list_connection[symbol][name_resolution+'_id']);
But still pumping candlesticks ... Any body help me about it? How can I terminate socket with end point ID ?
Thank you so much ....
Pump....
Before: 2
End Point list : 2131070991
Socket baglantisi kapatildi 2131070991
[ 'WebSocket terminated:', 2131070991 ]
[ 'WebSocket closed: 2131070991 (1006)' ]
Where was client: ETHBTC res was: h4
Do: 1
Before: undefined
Where was client: ETHBTC res was: undefined
Do: NaN
Pump....
Pump....
Pump...
Im getting End point and storing like that ...
var endpoint_id = binance.websockets.candlesticks([symbol], resolution, (candlesticks) => {
let { e:eventType, E:eventTime, s:symbol, k:ticks } = candlesticks;
let { o:open, h:high, l:low, c:close, v:volume, n:trades, i:interval, t:startBar, q:quoteVolume, V:buyVolume, Q:quoteBuyVolume } = ticks;
let answer = {
s:'ok',
c:[close,close],
t:[Math.round(startBar/1000),Math.round(startBar/1000)],
v:[volume,volume],
h:[high, high],
l:[low, low],
o:[open, open]
}