Kite Connect developer forum ☰
LoginSignup
Home › Search

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register
  1. I'm fetching quotes values by using Websocket, with two different code and getting different values.

    1krishnagupta
    by 1krishnagupta · March 2022
    and my second code is this - logging.basicConfig(level=logging.DEBUG)<br />kws = KiteTicker(zerodha_api_key,acc_tkn)<br />tokens = instrument_token<br />print(tokens)<br />prin
  2. Connection error: 1006 - connection was closed uncleanly (WebSocket opening handshake timeout (peer

    1krishnagupta
    by 1krishnagupta · March 2022
    logging.basicConfig(level=logging.DEBUG)<br />kws = KiteTicker(zerodha_api_key,acc_tkn)<br />tokens = instrument_token<br />print(tokens)<br />print(strike)<br />def on_t
  3. KiteTicker ticks related query

    nkotwar
    by nkotwar · January 2022
    <br />while True:<br />#Perform required data operation using tick data<br />def on_ticks(ws, ticks):<br />..........<br />helper_method(ticks)<br />.........<br
  4. Restarting a stopped socket thread

    Rekha
    by Rekha · December 2021
    <br />import logging<br />from kiteconnect import KiteTicker<br />logging.basicConfig(level=logging.DEBUG)<br />def run():<br />kws = KiteTicker(&quot;your_api_key&am
  5. How to perform operations on the data received from on_order_update

    KesharDev
    by KesharDev · June 2021
    I think I did not understood properly, how to do this. It will be really good, If someone can help. This is my code: <br />def on_ticks(ws, ticks):<br /># Callback to receive ticks.<br
  6. How to efficiently save and retrive tick data

    pratiks
    by pratiks · June 2021
    please explain <br />while True:<br />#Perform required data operation using tick data<br />def on_ticks(ws, ticks):<br />..........<br />helper_method(ticks)<br />
  7. kiteTicker error

    SAPANKHUNTIA
    by SAPANKHUNTIA · May 2021
    I tried something like this. <br />def helper_method_2(ticks):<br />for company in ticks:<br />Perform computation here<br />place orders<br />request open positions list
  8. kiteTicker error

    SAPANKHUNTIA
    by SAPANKHUNTIA · May 2021
    computation here<br />........<br />#Assign callback<br />time_now = datetime.datetime.now()<br />kws.on_ticks=on_ticks<br />while dt_now&gt; end_time:<br />de
  9. python program snaps midway while storing live streaming into sqllite database

    D11458
    by D11458 · April 2021
    #Assign callback
  10. web socket dynamic subscription

    rakeshr
    by rakeshr · April 2021
    Basic example flow: .......<br />......<br />kws.on_ticks = on_ticks<br />kws.on_connect = on_connect<br />kws.connect(threaded=True)<br />while True:<br />def on_t
  11. Connection error: 1006 - connection was closed uncleanly (None)

    syker
    by syker · December 2020
    <br />kws.connect(threaded=True)<br />while True:<br />#Perform required data operation using tick data<br />def on_ticks(ws, ticks):<br />..........<br />helper_me
  12. followed all steps for resolving connection error 1006 but still getting error

    harshtock
    by harshtock · June 2020
    My code is below: kws = KiteTicker(api_key, access_token)<br />def on_ticks(ws, ticks):<br />logging.debug(&quot;Ticks: {}&quot;.format(ticks))<br />def on_connect(ws, respon
  13. Connection error: 1006 - connection was closed uncleanly (None)

    rakeshr
    by rakeshr · April 2020
    As below: while True:<br />def on_ticks(ws,ticks):<br />dev(ticks)<br />def dev(single_company):<br />*****<br />calculation<br />*****<br />#Assign callback&
  14. Historical data

    rakeshr
    by rakeshr · August 2018
    Something like this(for python client) for 2 years data: #Assign month and date from which you want to start<br />calendar_month=datetime.datetime(2016,7, 12)<br />#loop for 24 months<b
  15. Ticks not coming after reconnect

    soumyadeep
    by soumyadeep · August 2017
    Sure the reconnection works well but after reconnection, I am not getting any ticks... So I wanted to know if there is a command that I can use in my websocket script to print the heart beat. I am usi
Next

Zerodha Member of NSE & BSE — SEBI Registration no.: INZ000031633 | CDSL: Depository services through Zerodha Securities Pvt. Ltd. - SEBI Registration no.: IN-DP-100-2015 | Commodity Trading through Zerodha Commodities Pvt. Ltd. MCX: 46025 | NCDEX : 1138. SEBI Registration no.: INZ000038238 | Registered Address: Zerodha, #153/154, 4th Cross, Dollars Colony, Opp. Clarence Public School, J.P Nagar 4th Phase, Bangalore - 560078, Karnataka, India

DISCLAIMER: Capital markets, trading, and investments have inherent risks. Please make sure you understand the risks involved and carefully read the Risk Disclosure Document as prescribed by SEBI | ICF before participating in the markets — Read terms & conditions

Operated by Zerodha Technology Pvt. Ltd. © 2015-2025