@admin I am getting bad request
error with Market Data API
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.14.1</center>
</body>
</html>
endpoint: https://apiconnect.angelbroking.com/rest/secure/angelbroking/market/v1/quote
method: post
payload:
payload = {
"mode": "LTP",
"exchangeTokens": {
"NSE": "3045"
}
}
payload=json.dumps(payload)
connection=http.client.HTTPSConnection("apiconnect.angelbroking.com")
url="rest/secure/angelbroking/market/v1/quote/"
connection. Request("POST", url, body=json_data, headers=headers)
language: python
Can anyone help with this?