Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Meghavarsha
    M
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Meghavarsha

    @Meghavarsha

    0
    Reputation
    2
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Meghavarsha Follow

    Best posts made by Meghavarsha

    This user hasn't posted anything yet.

    Latest posts made by Meghavarsha

    • Exiting an order with order_id. (Reverse Order with order_id)

      Hi,

      I place an order using the below code. It creates a new order, say order_id: 1. Now I want to exit this order_id(1). How do I do this? I can get the executed order_ids from Order Book or Trade Book. But how do I place a reverse order for a particular order_id. Every time I use the below code it creates a new order.
      I want to know how to close an exiting order using order_id or any other way to close and existing order.

      Please help. Thank you.

      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol": script,
      "symboltoken": token,
      "transactiontype": BUY/SELL,
      "exchange": exchange,
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price": ltp,
      "squareoff": "0",
      "stoploss": "0",
      "quantity": quantity
      }
      orderId = obj.placeOrder(orderparams)

      posted in Python SDK
      M
      Meghavarsha
    • Exiting an order with order_id. (Reverse Order with order_id)

      Hi,

      I place an order using the below code. It creates a new order, say order_id: 1. Now I want to exit this order_id(1). How do I do this? I can get the executed order_ids from Order Book or Trade Book. But how do I place a reverse order for a particular order_id. Every time I use the below code it creates a new order.
      I want to know how to close an exiting order using order_id or any other way to close and existing order.

      Please help. Thank you.

      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol": script,
      "symboltoken": token,
      "transactiontype": BUY/SELL,
      "exchange": exchange,
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price": ltp,
      "squareoff": "0",
      "stoploss": "0",
      "quantity": quantity
      }
      orderId = obj.placeOrder(orderparams)

      posted in General Discussion
      M
      Meghavarsha