Issue in Login api

parthiv
Hi All
I have try below API using post method and get error.
API URL : https://api.kite.trade/parameters?api_key=xxxx
Error :
{"status": "error", "message": "Route not found", "error_type": "GeneralException"}

Can you please help to fixed this issue.

I need BSE and NSE live price.

Thanks
  • sujith
    Hi @parthiv,
    You can use websockets for live market data
  • parthiv
    Hi
    Thanks for your replace.
    I need to call below API ?

    var ws = new WebSocket("wss://websocket.kite.trade/?api_key=xxx&user_id=AB0012&public_token=xxxx");

    If yes then how to get User_id and public_token ?

    Can you please help.

    Thanks

    Parthiv shah
  • parthiv
    Hi All ,

    As per documentation we need to call 1st

    (1) https://kite.trade/connect/login?api_key=xxx
    A successful login comes back with a request_token

    (2)After that we need to call user->Authentication
    then we will get access_token and public_token

    Please conform
    I ma not able to call 1st api


    Thanks

    Parthiv shah
  • sujith
    Hi @parthiv,
    You can check out login flow on this webinar and php client documentation here. There is no websockets in php client, I would suggest using other client for websockets.
  • paragsatpute
    paragsatpute edited March 2018
    @sujith
    I am getting an error after getting the request token as "Authentication failed: SSL certificate problem: self signed certificate in certificate chain"

    I am using http://127.0.0.1 as my redirect URL.

    Please advise.
Sign In or Register to comment.