errorCode":"UDAPI100012","message":"Invalid Endpoint"
this is received as response when I try to hit the API
HttpResponse<String> response = Unirest.post("https://api-v2.upstox.com/feed/market-data-feed")
.header("Api-Version", "2.0")
.header("Authorization", "Bearer your_access_token_here")
.header("Accept", "*/*")
.header("Content-Type", "application/json")
.body("{\n \"guid\": \"someguid\",\n \"method\": \"sub\",\n \"data\": {\n \"mode\": \"full\",\n \"instrumentKeys\": [\"NSE_INDEX|Nifty Bank\"]\n }\n}")
.asString();
Also, to be clear, I did modify the above accordingly for headers.
Basically, I want to get the Live market prices of the stocks.