Not able to get the LTP

jitendra
Hi, I am using kiteconnect v-3 [php client library]. I am able to generate the access token. But when I am calling getLTP(), its throwing error. {"status":"error","message":"Incorrect `api_key` or `access_token`.","data":null,"error_type":"TokenException"}
Everything was working fine before 6th Oct 2023.
  • rakeshr
    Tried on the latest PHP version and it's working fine. Make sure, you are using the latest phpkiteconnect version.
    print_r($kite->getLTP(["NSE:SBIN", "NSE:ONGC"]));
    stdClass Object
    (
    [NSE:ONGC] => stdClass Object
    (
    [instrument_token] => 633601
    [last_price] => 183.25
    )

    [NSE:SBIN] => stdClass Object
    (
    [instrument_token] => 779521
    [last_price] => 588.35
    )
    )
  • jitendra
    Thanks..... there was an issue with phpkiteconnect. Thanks for your prompt support.
This discussion has been closed.