Navigation

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

    Options trading

    General Discussion
    3
    6
    201
    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.
    • S
      ssthakare last edited by

      Hi @admin , do we have options available to trade. I can see data in csv file and when I try to place order, it says "symbol not found" or "Failed to get symbol details".

      If options are not available to trade, do we have any timeline on when they can be made available?

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @ssthakare last edited by

        Hi @dushyant , options trading is allowed using SmartAPI.
        Please share a screenshot of your Placeorder request for checking.

        S 1 Reply Last reply Reply Quote 0
        • S
          ssthakare @admin last edited by

          @admin Hi, got the previous error fixed as it was a silly mistake, however, I am getting another issue that is 500 from server. Please take a look at the request and response objects

          {'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY07JAN2131400CE', 'quantity': 1, 'transactiontype': 'BUY', 'ordertype': 'MARKET', 'variety': 'NORMAL', 'producttype': 'CARRYFORWARD', 'price': '177.35', 'symboltoken': '43099'}
          request sent
          data: {"timestamp":1609859790948,"status":500,"error":"Internal Server Error","message":"","path":"/rest/secure/angelbroking/order/v1/placeOrder"}

          Not sure if this due to the order placement after market hours.

          1 Reply Last reply Reply Quote 0
          • S
            ssthakare last edited by

            @admin Today again I placed order with above structure and getting the below error:
            {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}

            N 1 Reply Last reply Reply Quote 0
            • N
              NST @ssthakare last edited by

              Hi @dushyant,
              I think you are missing "duration":"DAY" in place order request body.

              So try with below request, I hope it will be helpful for you.

              {'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY07JAN2131400CE', 'quantity': 1, 'transactiontype': 'BUY', 'ordertype': 'MARKET', 'variety': 'NORMAL', 'producttype': 'CARRYFORWARD', 'price': '177.35', 'symboltoken': '43099','duration':'DAY'}

              S 1 Reply Last reply Reply Quote 0
              • S
                ssthakare @NST last edited by

                @sandipkhairnar Thanks, it is working, however, it seems segment is not enabled for my account. Trying to reach customer service.

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