How to delete position orders :

Hi,

Is there any way that i can delete my position orders with the following details which we get from getPosition api sample code.

response = client.request("GET", "/v2/positions",payload=None, query={"underlying_asset_symbol":"TRUMP"}, auth=True, base_url="https://api.india.delta.exchange", headers={})

Sample Response:

{'result': [{'entry_price': '10.38400000', 'product_id': 57227, 'product_symbol': 'TRUMPUSD', 'size': 10, 'user_id': 123456}], 'success': True}    

Hi @arbaz00789 , You can place reduce only order in the opposite side with the same quantity. Place order_type market_order to close it immediately otherwise limit_order with limit_price. Delta Exchange Api

{
    "product_symbol": "TRUMPUSD",
    "size": 10,
    "order_type": "market_order",
    "reduce_only": true,
    "cancel_orders_accepted": "true",
    "side": "sell"
}