placeOrder() API returning empty response
-
Subject: placeOrder() API returning empty response
Symptoms:
- generateSession() ✅ WORKS
- orderBook() ✅ WORKS
- getMarketData() ✅ WORKS
- placeOrder() ❌ Returns: {"status": true, "message": "SUCCESS", "errorcode": "", "data": null}
(empty response body: b'')
Request:
{
"variety": "NORMAL",
"exchange": "NSE",
"symboltoken": "3787",
"transactiontype": "BUY",
"ordertype": "LIMIT",
"price": "180",
"quantity": "1",
"producttype": "CNC"
}Questions:
- Is placeOrder endpoint working for NSE orders?
- Are there additional required parameters?
- Is there an IP whitelist that needs configuration?
- Is the account properly configured for API trading?
Error: Couldn't parse the JSON response received from the server: b''