Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    placeOrder() API returning empty response

    Python SDK
    1
    1
    5
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      A50937311 last edited by

      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''

      1 Reply Last reply Reply Quote 0
      • First post
        Last post