Imran

About

Username
Imran
Joined
Visits
3,977
Last Active
Roles
Member

Activity

  • adariyana
    hi,
    how to get multiple stocks indicators data of tick data
    September 2022
  • nayana
    hi @imran,
    can you help me out that how to get live positions and holiding data using python
    September 2022
  • KiteUser
    I want to avoid slippages
    July 2022
  • KiteUser
    I need a system where once say if sell at price 135 then put stoploss at 160 then if that hits then immediately place sell order
    once it reaches 160 but due to fluctuations in the price I am getting too much orders sell and its sqaure off.
    Can you please guid me in this regard?
    July 2022
  • nayana
    im getting ohlc in tick data is the days open high low and close in realtime!!
    i want ohlc for every 1 minute is that possible to fetch (note:not historical data, real time ohlc data)
    December 2021
  • sharwan
    Hey Imran,
    i watched one of your videos to be specific ORB part2 , i accessed the access token and everything worked fine on orb part 1 , but in orb part 2 its giving me a websocket error code 1006 .

    https://mediafire.com/folder/zwh4ssktn6lf5/error
    March 2021
    • sharwan
      sharwan
      this is the error im getting
    • sharwan
      sharwan
      https://www.mediafire.com/file/mz87ym0bmvvd512/Screenshot+(155).png/file
  • Shahin
    Dear Imran,

    I am not able to generate request token, and getting below logs while running java code with my apikey.

    INFO: expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Jun 21, 2020 1:52:28 PM okhttp3.internal.platform.Platform log
    INFO: strict-transport-security: max-age=15552000; includeSubDomains
    Jun 21, 2020 1:52:28 PM okhttp3.internal.platform.Platform log
    INFO: server: cloudflare
    Jun 21, 2020 1:52:28 PM okhttp3.internal.platform.Platform log
    INFO: cf-ray: 5a6c526dbaa97377-CPH
    Jun 21, 2020 1:52:28 PM okhttp3.internal.platform.Platform log
    INFO:
    Jun 21, 2020 1:52:28 PM okhttp3.internal.platform.Platform log
    INFO: {"status":"error","message":"Token is invalid or has expired.","data":null,"error_type":"TokenException"}
    Jun 21, 2020 1:52:28 PM okhttp3.internal.platform.Platform log
    INFO: <-- END HTTP (105-byte body)
    session expired
    Token is invalid or has expired. 403 com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException
    June 2020
  • a4arjun
    when i am going throuh generate session method ..it is showing this

    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
    DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /session/token HTTP/1.1" 200 None

    do you know how to fix this
    July 2019
    • a4arjun
      a4arjun
      @imran can you pls fix this issue
    • Imran
      Imran
      Hii Arjun send me your contact number.. I will fix this through anydesk.
    • RameshKVeeramalai
      RameshKVeeramalai
      Hi Imran, Hi Arjun,
      I am also facing the same issue. Could you kindly help me to fix this?
      Thank you in advance.
    • RameshKVeeramalai
      RameshKVeeramalai
      I am able to get the access token but when I added "logging.basicConfig(level=logging.DEBUG)". I am getting below error

      DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
      DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /session/token HTTP/1.1" 403 None
      Can someone guide me?

      Thank you
  • arthite
    sir i tried this, but while exporting data to excel its showing me dates and variable names not values.
    this is the code :
    from kiteconnect import KiteConnect
    from kiteconnect import KiteTicker
    import pandas as pd
    import numpy as np
    from numpy import array
    import datetime,time,os,random
    import pdb
    from openpyxl import Workbook
    from pandas.io.json import json_normalize
    import xlwings as xw
    import talib


    kws = ""
    kite = ""

    api_k = "xgzzqisbd6vil8cn" # api_key
    api_s = "e1e1acyzv5hrgawjsnq5oc4kidadcg78" # api_secret
    access_token = "mR48QhHegwehw1o4OrPuSCaCkqSiNAlN"
    trd_portfolio = {'PCJ': {'token': 315393},'ACC': {'token': 5633}}
    #trd_portfolio = {738561:"PCJ",5633:"ACC",40193:"APPOLO"}

    def get_login(api_k, api_s): # log in to zerodha API panel
    global kws, kite
    kite = KiteConnect(api_key=api_k)

    #print("[*] Generate access Token : ", kite.login_url())
    #request_tkn = input("[*] Enter Your Request Token Here : ")
    #data = kite.generate_session(request_tkn, api_secret=api_s)
    kite.set_access
    May 2020
  • arthite
    I am new, pls can anyone help me out with getting live tick by tick ohlc data into excel
    May 2020
    • Imran
      Imran
      Hii arthite

      see the below video for reference.

      1. https://www.youtube.com/watch?v=z1sleBSX8w0&t=963s
      2. https://www.youtube.com/watch?v=B1jjo0zcE6g&t=354s
      3. https://www.youtube.com/watch?v=UTRbPkUJNXM
    • arthite
      arthite
      sir i tried this, but while exporting data to excel its showing me dates and variable names not values.
      this is the code :
      from kiteconnect import KiteConnect
      from kiteconnect import KiteTicker
      import pandas as pd
      import numpy as np
      from numpy import array
      import datetime,time,os,random
      import pdb
      from openpyxl import Workbook
      from pandas.io.json import json_normalize
      import xlwings as xw
      import talib


      kws = ""
      kite = ""

      api_k = "xgzzqisbd6vil8cn" # api_key
      api_s = "e1e1acyzv5hrgawjsnq5oc4kidadcg78" # api_secret
      access_token = "mR48QhHegwehw1o4OrPuSCaCkqSiNAlN"
      trd_portfolio = {'PCJ': {'token': 315393},'ACC': {'token': 5633}}
      #trd_portfolio = {738561:"PCJ",5633:"ACC",40193:"APPOLO"}

      def get_login(api_k, api_s): # log in to zerodha API panel
      global kws, kite
      kite = KiteConnect(api_key=api_k)

      #print("[*] Generate access Token : ", kite.login_url())
      #request_tkn = input("[*] Enter Your Request Token Here : ")
      #data = kite.generate_session(request_tkn, api_secret=api_s)
      kite.set_access_token(access_token)
      kws = KiteTicker(api_k, access_token)
      #print('access_token')

      # # pdb.set_trace()
      # kite.set_access_token('4tN29CKS89i71siZyLsL0rSc3EcJvccY')
      # kws = KiteTicker(api_k, '4tN29CKS89i71siZyLsL0rSc3EcJvccY')
      # print(data['access_token'])


      get_login(api_k, api_s)


      # pdb.set_trace()

      ticks_storage = pd.DataFrame()
      timeframe = 1
      temp = {}


      name = 'ACC'

      wb = xw.Book('Tick Data1.xlsx')
      sht = wb.sheets['ACC']
      row_no = 2

      def on_ticks(ws, ticks):
      global row_no



      for name in trd_portfolio:
      token = trd_portfolio[name]['token']
      for single_company in ticks:
      if single_company['instrument_token'] == token:

      temp[single_company['timestamp']] = single_company
      #dt = datetime_withtimezone.replace(tzinfo=None)
      df = pd.DataFrame.from_dict(temp,orient='index')
      ohlc = df['last_price'].resample(str(timeframe)+'Min').ohlc()

      #pdb.set_trace()
      #time = ticks[0]['timestamp']
      #open1 = ohlc.open.values
      #high1 = ohlc.high.values
      #low1 = ohlc.low.values
      #close1 = ohlc.close.values
      ohlc.to_excel('Tick Data1.xlsx')
      print(ohlc)
      #pdb.set_trace()
      sht.range('A' + str(row_no)).value = ohlc
      #sht.range('B' + str(row_no)).value = time


      row_no = row_no + 1










      #print(low1)

      #print(high1)
      #print(open1)
      #print(close)
      #print(ohlc)
      # pdb.set_trace()


      subscribe = [315393]


      def on_connect(ws, response):
      ws.subscribe(subscribe)
      ws.set_mode(ws.MODE_FULL, subscribe)


      kws.on_ticks = on_ticks
      kws.on_connect = on_connect
      kws.connect()
    • arthite
      arthite
      moreover sir ,when i am trying to add more instrument codes, open high low close values are getting mixed up
  • adariyana
    sir,
    how to back test using historical data.
    I have created small programme as you teach on YouTube live watch list python programme, i have created some indicators para and "ohlc" data fetch live and apply arguments in excel for "buy" and "sell" so, its working well in live market but i don't know how to use historical data for back testing , so pls explain me some code for back testing. 9687679111
    April 2020
  • sbrahmam
    Hi Imran,
    Good Morning!!!
    I already sent you a mail to your profile e-mail. I have a requirement for ORB strategy. Can you please ping me if you can help me on the strategy? If you are ready, we can discuss further details on charges etc.

    Thanks
    Brahmam Sanaka
    Whatsapp: 9481705548
    skype : sbrahmam
    Mobile No. 9481705548, 9398813085
    March 2020
  • samphel
    hi @Imran i have gone through your video and i'm not able to find my answer in that , as you can see above i need to save high and low value of first 15 minute in a variable then only i can further go for 15 minute orb strategy , but in your videos it simply compares ltp of current high and low.
    December 2019
  • ankurseth
    Hi Imran, I am learning algo trading using python. I had a few questions, can you help?
    November 2019
    • Imran
      Imran
      yes sure...
  • Imran changed his profile picture.
    Thumbnail
    November 2019
  • Hii shiv
    Yes we can get buy sell signals using kiteconnect.
    For more info contact 9370789912
    October 2018
  • shiv1947
    Hi, Imran. Thanks for providing guided videos. I just want to know if we can get buy sell signal using kiteconnect ?
    October 2018
  • Imran changed his profile picture.
    Thumbnail
    May 2018
  • krishnanm2006
    hi how much do you guys charge for coding an algorithm?
    March 2018