Skip to content

Order Statuses

This page documents all possible order statuses used throughout the Definitive API. These statuses are used in order management, cancellation, and status checking endpoints.

Available Statuses

StatusDescription
ORDER_STATUS_UNSPECIFIEDDefault/unspecified status
ORDER_STATUS_PENDINGOrder is pending and waiting to be processed
ORDER_STATUS_ACCEPTEDOrder has been accepted and is being processed
ORDER_STATUS_PARTIALLY_FILLEDOrder has been partially filled
ORDER_STATUS_FILLEDOrder has been completely filled
ORDER_STATUS_CANCELLEDOrder has been cancelled
ORDER_STATUS_REJECTEDOrder was rejected
ORDER_STATUS_TERMINATEDOrder has been terminated

Cancellable Statuses

Only orders with the following statuses can be cancelled:

  • ORDER_STATUS_PENDING
  • ORDER_STATUS_ACCEPTED
  • ORDER_STATUS_PARTIALLY_FILLED

Non-Cancellable Statuses

Orders with these statuses cannot be cancelled:

  • ORDER_STATUS_FILLED
  • ORDER_STATUS_CANCELLED
  • ORDER_STATUS_REJECTED
  • ORDER_STATUS_TERMINATED

Status Transitions

Orders typically follow this progression:

  1. ORDER_STATUS_PENDING → Order is submitted
  2. ORDER_STATUS_ACCEPTED → Order is accepted for processing
  3. ORDER_STATUS_PARTIALLY_FILLED → Order is partially executed
  4. ORDER_STATUS_FILLED → Order is completely executed

Or alternatively:

  1. ORDER_STATUS_PENDING → Order is submitted
  2. ORDER_STATUS_ACCEPTED → Order is accepted for processing
  3. ORDER_STATUS_CANCELLED → Order is cancelled by user
  4. ORDER_STATUS_REJECTED → Order is rejected by system
  5. ORDER_STATUS_TERMINATED → Order is terminated

Related Endpoints

These statuses are used in the following API endpoints: