Market Quote data for symbols like M&M

gauravatkite
How to get the market quote data for symbols like 'M&M' with following api. If we give symbole simply as it is, this api gives nothing.

curl "https://api.kite.trade/quote?i=NSE:INFY" \
-H "X-Kite-Version: 3" \
-H "Authorization: token api_key:access_token"


# curl -v "https://api.kite.trade/quote?i=NSE:M&M" -H "X-Kite-Version: 3" -H "Authorization: token apikey:token"
< HTTP/1.1 200 OK
< Date: Mon, 05 Oct 2020 19:58:34 GMT
< Content-Type: application/json
< Content-Length: 30
< Connection: keep-alive
< Set-Cookie: __cfduid=db570c66ec4137b5933041f96f79077401601927914; expires=Wed, 04-Nov-20 19:58:34 GMT; path=/; domain=.kite.trade; HttpOnly; SameSite=Lax
< CF-Cache-Status: DYNAMIC
< cf-request-id: 059bf13d1a00001d4783b90200000001
< Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< Strict-Transport-Security: max-age=15552000; includeSubDomains
< Server: cloudflare
< CF-RAY: 5dd9b7db5e371d47-MAA
<
* Connection #0 to host api.kite.trade left intact
{"status":"success","data":{}}
  • rakeshr
    How to get the market quote data for symbols like 'M&M' with following api
    For python client, you can directly use ['NSE:M&M'].
    For a direct Get request, you need to use URL encoded character of '&' i.e %26. You can check complete URL encoded characters here.
    https://api.kite.trade/quote?i=NSE:M%26M
Sign In or Register to comment.