Skip to Content

Cancel GTT Order

This API allows you to cancel a pending GTT order.

USE CASE

Cancel a GTT order you no longer need, for example after exiting the position another way.

Details

  • You can cancel pending orders before they trigger.
  • Send only the id of the GTT order. It is returned when you place the order and is also listed in the GTT Order Book.
  • Response code 1103 means the cancellation was successful. Other codes are specific error conditions.
  • Confirm the result in the GTT Order Book, where a cancelled order shows ord_status 1 and report_type CANCELLED.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Request Attributes - For each order

AttributeData TypeDescription
id*string
  • Unique identifier for the order to be cancelled,
  • e.g., "25010700000001".

Response Attributes

AttributeData TypeDescription
sstringok / error
codeint
  • Status code indicating the outcome of the cancellation request:
  • 1103: Order cancellation successful.
  • Other codes represent specific error conditions.
messagestring
  • Descriptive message about the cancellation request,
  • e.g., "Successfully cancelled order".
idstringUnique identifier for the cancelled order, returned if the cancellation is successful.
Last updated on