Buy and Sell the order using python client (REST API)

kumar_krishnan
Hi,

Using python client I am able to buy, after that how do I sell the same using API, is it going to be another placeOrder (POST-Request) with same quantity or modify order (PUT-request)?

Thanks and regards,
Kumar K
  • Kailash
    That's correct, @kumar_krishnan. Another order placement (transaction_type=SELL).

    PS: This is to sell positions you've bought. If your BUY order is open and pending execution, you should modify/cancel it.
Sign In or Register to comment.