Order management

  • sujith
    Hi @guna,
    You can check documentation here.
  • sujith
    The response will be html and it is used to create basket orders for Kite publisher users.
  • guna
    Can u explain this in detail like can u clearly specify how to pass parameters. If possible may i know how to execute this in objective-c
  • Vivek
    @guna This is a post request you need to post on endpoint https://kite.trade/connect/basket with params api_key and data where data is a JSON string of the following format.
    "tradingsymbol": "INFY",
    "exchange": "NSE",
    "transaction_type": "BUY",
    "order_type": "MARKET",
    "quantity": 10,
    "readonly": false
    }, {
    "tradingsymbol": "NIFTY15DECFUT",
    "exchange": "NFO",
    "transaction_type": "SELL",
    "order_type": "LIMIT",
    "price": 7845,
    "quantity": 1,
    "readonly": false
    So, for example, you want to integrate this in your Android app. You need to construct the data param and make a post request to webview (url - https://kite.trade/connect/basket).
  • guna
    Are api_key and data query parameters or body parameters ?
  • Vivek
    @guna Yeah it's sent in the body just like any other normal post request. FYI you can also send as a JSON content type or standard application/x-www-form-urlencoded.
  • guna

    After posting the request I am getting html response .In ios we cant store the html response(objective c).Instead of that we should get url as response to redirect the user. Also can you please let us know, if we have to again confirm and submit these basket orders from the redirected webpage?

    Thanks in advance
  • sujith
    Hi @guna,
    You need to make a post request in webview and not as an HTTP post request.
    Once you open page user will confirm to place an order, so you don't have to worry about it.
    PS: Confirmation is done at our end.
Sign In or Register to comment.