Navigation

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

    AG8004 while placing order

    Test
    2
    6
    30
    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.
    • V
      vragency007 last edited by

      Hello, I am getting error code AG8004 Invalid API Key while placing order using angle broker API. Can you suggest why it is happening?

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

        Hi @vragency007 please post the response here.

        V 1 Reply Last reply Reply Quote 0
        • V
          vragency007 @admin last edited by

          @admin Please find below is response:

          {"status":false,"message":"Invalid API Key","errorcode":"AG8004","data":null}

          and below is request:

          {"orderid":null,"variety":"NORMAL","tradingsymbol":"ACC-EQ","symboltoken":"22","transactiontype":"BUY","exchange":"NSE","ordertype":"MARKET","producttype":"INTRADAY","duration":"DAY","price":"0","squareoff":"0","stoploss":"0","quantity":"1","triggerprice":"0"}

          Let me know if anything is required.

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

            @vragency007 said in AG8004 while placing order:

            @admin Please find below is response:
            {"status":false,"message":"Invalid API Key","errorcode":"AG8004","data":null}
            and below is request:
            {"orderid":null,"variety":"NORMAL","tradingsymbol":"ACC-EQ","symboltoken":"22","transactiontype":"BUY","exchange":"NSE","ordertype":"MARKET","producttype":"INTRADAY","duration":"DAY","price":"0","squareoff":"0","stoploss":"0","quantity":"1","triggerprice":"0"}

            Have you cross checked your apikey..?

            V 1 Reply Last reply Reply Quote 0
            • V
              vragency007 @admin last edited by

              @admin okay, I think there was mismatch in API key. Now Order got placed.

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

                @vragency007 ok

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