Hello all,
I downloaded the Kite connect from github, but when I compile it , I get 162 errors. Most of the errors are in the dictionaries such as this:
//Modify an open position's product type.
var param = new Dictionary
{
…
from kiteconnect import WebSocket
kws = WebSocket("")
# Callback for tick reception.
def on_tick(tick, ws):
print tick
tickLength=len(tick)
for i in range(0,tickLength):
instName=tick[i]['instrument_token']
lastPrice=tick[i]['last_pric…
Thanks for the quick reply. I put your code like this:
def on_tick(tick, ws):
print tick
tickLength=len(tick)
for i in range(0,tickLength):
instName=tick[i]['instrument_token']
lastPrice=tick[i]['last_price']
print instName
print lastPrice
and the r…