All or Nothing Order

Is there a way to place an all-or-nothing order? I would like my complete order quantity filled or canceled. Looking at the API, I can’t find if this is possible. Can you help me?

Not sure if this is possible. If an order is filled it’s filled, you can’t just cancel upon a partial fill without incurring fees and whatever price does to your position.

Thanks! I think the proper term for this is Fill or Kill (FOK).