Selling whole position

Hi there,

I am using Python and I am a bit condused with the selling orders. I try to sell a whole position. Every time I try to do this, python is asking me for the quantity. How could I sell a whole position for a ticker, I mean, sell everything without any rest quantity. It should be simmilar to close_all_positions but just for the ticker I specify. I am sorry but I see no way to do it clen with submit_order, or I am not good enough.

Thank you very muche!