How to bind every tick data to my html page?


i have write code to get data from websocket from live market. on_tick() i got tick data perfectly.
But as i am new i don't have any idea how to pass tick by tick data my .html page.
kws = ws(api_key,access_token,user_id)
def on_tick(tick,ws):
print tick
#here i want to send this to to my index.html page

def on_connect(ws):

kws.on_tick = on_tick
x = on_tick
kws.on_connect = on_connect
help me with this.

Thank you.
Sign In or Register to comment.