OHLC api failing with authorisation error

Ramkrishna
OHLC api not working. Values are dummy.

curl "https://api.kite.trade/quote/ohlc?i=NSE:INFY&i=BSE:SENSEX&i=NSE:NIFTY+50" -H "X-Kite-Version: 3" -H "Authorization: ppppppppppppppppppppppppppPeij97" -H "api_key: aaaaaaaaaaaaaflb"

I'm getting below response for all combinations I tried

{"status":"error","message":"unknown Authorization scheme","data":null,"error_type":"InputException"}

Once I got below error

{"status":"error","message":"authorization value should atleast be `api_key`:`access_token`","data":null,"error_type":"InputException"}
Tagged:
  • rakeshr
    "Authorization: ppppppppppppppppppppppppppPeij97" -H "api_key: aaaaaaaaaaaaaflb"
    You are using the wrong authentication signature. You need to use "Authorization: token api_key:access_token", here api_key and access_token is a placeholder for your api_key and an active access_token. Go through the login documentation here.
  • Ramkrishna
    got that, thanks
This discussion has been closed.