Navigation

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

    Error Code: AB1019, Message: Entered trading symbol and symbol token is mismatch

    Test
    3
    8
    110
    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.
    • K
      Kuttikrishnan P last edited by

      Re: Entered trading symbol and symbol token is mismatch : errorcode: 'AB1019'

      Hi @admin
      I'm getting error on placing order for the script "token":"49853", "symbol":"NIFTY21JANFUT",

      Error Message:
      {
      message: 'Entered trading symbol and symbol token is mismatch',
      errorcode: 'AB1019',
      status: false,
      data: null
      }

      smart_api.placeOrder({

            "variety": "NORMAL",
            "tradingsymbol": "NIFTY21JANFUT",
            "symboltoken": "49853",
            "transactiontype": "BUY",
            "exchange": "NFO",
            "ordertype": "MARKET",
            "producttype": "INTRADAY",
            "duration": "DAY",
            "triggerprice": "0",
            "squareoff": "0",
            "stoploss": "0",
            "quantity": 1
          
          })
      
      R A 2 Replies Last reply Reply Quote 0
      • R
        rahul4019 @Kuttikrishnan P last edited by

        @tcmstunner How did you get 49853 is the token number?

        K 1 Reply Last reply Reply Quote 0
        • K
          Kuttikrishnan P @rahul4019 last edited by

          @PandaTrade said in Error Code: AB1019, Message: Entered trading symbol and symbol token is mismatch:

          49853

          We searched in - https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
          here you can find the token and symbol

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

            @tcmstunner said in Error Code: AB1019, Message: Entered trading symbol and symbol token is mismatch:

            NIFTY21JANFUT

            Hi, trading symbol input should be NIFTY28JAN21FUT

            fb5cb9b7-7552-4c43-955b-4b0c8ccd5efa-image.png

            Please refer - https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

            K 1 Reply Last reply Reply Quote 0
            • K
              Kuttikrishnan P @admin last edited by

              @admin
              How can find correct trading symbol & symbol token. I always follow https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
              Please help me to find out the correct information related to scripts

              R 1 Reply Last reply Reply Quote 0
              • R
                rahul4019 @Kuttikrishnan P last edited by

                @tcmstunner @admin
                I am giving the right token number along with the symbol code but i still get the error.

                {"message":"Entered trading symbol and symbol token is mismatch","errorcode":"AB1019","status":false,"data":null}

                placeSLorder_payload = "{\n\"exchange\": \"NFO\",\n\"tradingsymbol\": \"BANKNIFTY21JAN2132600PE\",\n\
                    \"quantity\": 25, \
                        \n\"disclosedquantity\": 25,\
                         \n\"symboltoken\": 58068,\
                       \n    \"transactiontype\": \"BUY\",\
                       \n    \"ordertype\": \"LIMIT\",\
                       \n    \"duration\": \"DAY\",\
                       \n    \"variety\": \"STOPLOSS_LIMIT\",\
                       \n    \"triggerprice\": \"800\",\
                      \n    \"price\": \"805\",\
                       \n    \"producttype\": \"INTRADAY\"\
                       \n}"
                conn.request("POST", 
                "/rest/secure/angelbroking/order/v1/placeOrder",\
                placeSLorder_payload,\
                headers)
                res = conn.getresponse()
                data = res.read()
                

                what is the issue could you please point me out?

                R 1 Reply Last reply Reply Quote 0
                • R
                  rahul4019 @rahul4019 last edited by rahul4019

                  Hello @admin,
                  fyi the code posted is in python.
                  i have referred to https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
                  to get the symbol token.

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

                    Hi @PandaTrade , thank you for sharing your system on remote. The query is now solved.

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