Difference between sell market order with all quantity and close position for a symbol?

I can close a long position in a symbol in one of the following 2 ways:

  1. Use POST/v2/orders API with sell market order with all quantity for a symbol
  2. Use DELETE/v2/positions/{symbol} API with all quantity for a symbol

Questions:
A) What are the pros and cons of one over the other method?
B) Why do I need to specify quantity when closing the position in (2) as it is already implied?

1 Like