Sidney

About

Username
Sidney
Joined
Visits
1
Last Active
Roles
Member

Comments

  • Thanks for your Amazing support. Once I added int() to the variable it worked. doh! instrument = [int(pos['instrument_token'].values)] 2796801 Ticks: [{'tradable': True, 'mode': 'ltp', 'instrument_token': 2796801, 'last_price': 493.75}] Ticks: [{…
  • thanks Srijan. I tried using the websocket for the realtime ltp but it keeps failing. That is why I resorted to using the positions 'last_price' value My code as follows: def on_ticks(ws, ticks): logging.debug("Ticks: {}".format(ticks)) def o…
  • Shouldn't the kite call return the accurate PNL so a decision can be made on when to place a corresponding buy for a short trade?
  • Hi Srijan I have seen that thread. Even the manual pnl calculation below is not giving me the correct data my code is structured like this for a sell trade that has been placed: sellValue = pos['sell_value'] netQuantity = pos['quant…