How to exit position on a partially filled Order using API

If I have a partially filled order do I have to call 

data = {"id":'808058117761'}

fyers.cancel_order(data)

And then

data = {"id":'808058117761'}

fyers.exit_positions(data)

 

2 replies