A FOK order ensures your whole position is either filled or canceled immediately. An immediate-or-cancel order is just as quick, but it can be partially filled. Your broker will fill as many shares as possible and cancel the rest.