Navigation

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

    Posts made by Dibyendu1997

    • Unable To Place Cover Orders.

      Hello, I have gone through the documentation and haven't found any examples or details of how to place a cover order. Just wanted to know if it's possible to place cover orders, and if so, then what would be the payload of the request. I'm attaching an example payload of BO order, I would be great if you could modify the payload or tell me which fields should be modified/added to place a cover order. Thanks in advance!

      Example payload:
      json
      {
      "variety": "ROBO",
      "tradingsymbol": "SBIN-EQ",
      "symboltoken": "3045",
      "transactiontype": "BUY",
      "exchange": "NSE",
      "ordertype": "LIMIT",
      "producttype": "CO",
      "duration": "DAY",
      "price": "366",
      "stoploss": "6",
      "squareoff": "0",
      "quantity": "1"
      }

      posted in General Discussion
      D
      Dibyendu1997
    • Invalid API Key: Historical Data and Market Data

      Hello, I was trying to use the Smart API to fetch historical and market data. Yesterday, it was working, but suddenly, whenever I try to access market data or historical data from the api.

      It is showing, Invalid Api Key. "errorCode": "AG8004"

      Note: I have put the SECRET key of the created app as X-PrivateKey and I kept the header as mentioned in the documentation, but it is still failing.

      Please note that it was working initially, but it has suddenly stopped working as of today. I regenerated new api keys a few times and used them, but they are still not working, same Invalid API key error. I'm attaching a screenshot.

      Screenshot from 2025-09-27 22-13-17.png

      posted in Bugs
      D
      Dibyendu1997