Navigation

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

    Placed Order Detail From Order Id

    General Discussion
    2
    4
    161
    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.
    • J
      J300558 last edited by

      Hi,
      After placing order from smart API : https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/placeOrder
      I can get the OrderId.
      But; I need two things for the OrderId.

      1. Getting the complete details of order i.e. Transaction type, price, timing of execution etc.
      2. Post back feature; so that from every Order execution I can perform required task at the same instance.
      A 1 Reply Last reply Reply Quote 0
      • A
        admin @J300558 last edited by admin

        @sachinsrm said in Placed Order Detail From Order Id:

        Getting the complete details of order i.e. Transaction type, price, timing of execution etc.

        Hi @sachinsrm , please call getOrderBook api to get all the details.

        @sachinsrm said in Placed Order Detail From Order Id:

        Post back feature; so that from every Order execution I can perform required task at the same instance.

        Hi, will provide this in Phase 2

        J 1 Reply Last reply Reply Quote 0
        • J
          J300558 @admin last edited by

          @admin
          Hi,
          How can I get specific order details from getOrderBook API?
          There is no request string has been passed which contains specific user Id.

          var axios = require('axios');
          var data = '';

          var config = {
          method: 'get',
          url: 'https://apiconnect.angelbroking.com
          /rest/secure/angelbroking/order/
          v1/getOrderBook',
          headers: {
          'Authorization': 'Bearer AUTHORIZATION_TOKEN',
          'Content-Type': 'application/json',
          'Accept': 'application/json',
          'X-UserType': 'USER',
          'X-SourceID': 'WEB',
          'X-ClientLocalIP': 'CLIENT_LOCAL_IP',
          'X-ClientPublicIP': 'CLIENT_PUBLIC_IP',
          'X-MACAddress': 'MAC_ADDRESS',
          'X-PrivateKey': 'API_KEY'
          },
          data : data
          };

          axios(config)
          .then(function (response) {
          console.log(JSON.stringify(response.data));
          })
          .catch(function (error) {
          console.log(error);
          });

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

            @sachinsrm said in Placed Order Detail From Order Id:

            There is no request string has been passed which contains specific user Id.

            HI @sachinsrm . getOrderBook response will fetch all your orders status at once. We don't have single order status API yet.

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