$url = "https://api.upstox.com/v2/market-quote/quotes?instrument_key=".urlencode($symbol);
$ch = curl_init($url);
$headers = array(
'Accept: application/json',
'Api-Version: 2.0',
'Authorization: Bearer ' . $accessToken
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$resp = curl_exec($ch);
curl_close($ch);
Here is part of my php method to get full market quote of any instruments. Somedays ago it was perfect. Today its returning error without any description below is response I’m getting.
{"status":"error","errors":[]}