Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. A50937311
    3. Posts
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    Posts made by A50937311

    • 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:

      1. Is placeOrder endpoint working for NSE orders?
      2. Are there additional required parameters?
      3. Is there an IP whitelist that needs configuration?
      4. Is the account properly configured for API trading?

      Error: Couldn't parse the JSON response received from the server: b''

      posted in Python SDK
      A
      A50937311