Orders

List orders

List orders for a given account for the current trading day, filtered on the given query parameters.

get/accounts/{account_id}/orders

Path parameters

account_idstring required

Account ID for the account.

Example:100000

Query parameters

frominteger

Milliseconds since epoch.

tointeger

Milliseconds since epoch.

page_sizeinteger

Number of orders to return per page.

page_tokenstring

Cursor for the page to return.

Response

Successful response

next_page_tokenstring

Cursor for the next page of results.

Example response

{
  "data": [
    {
      "order_id": "12390213",
      "reference_id": "my-order-id-123",
      "version": 1,
      "account_id": "100000",
      "account_number": "ACC0001",
      "symbol": "AAPL",
      "quantity": "100",
      "price": "123.99",
      "stop_price": "123.99",
      "filled_quantity": "100",
      "strategy": {
        "min_percent": 1,
        "max_percent": 35
      },
      "running_position": "100"
    }
  ]
}

Changes

Changed in 12 of the 22 revisions of this API.132424

    • the data/items/open_close_indicator response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • added the new close enum value to the data/items/open_close_indicator response property for the response status 200

      response-property-enum-value-added

    • added the new open enum value to the data/items/open_close_indicator response property for the response status 200

      response-property-enum-value-added

    • the data/items/open_close_indicator response's property type/format changed from string/ to / for status 200

      response-property-type-changed

    • removed the close enum value from the data/items/open_close_indicator response property for the response status 200

      response-property-enum-value-removed

    • removed the open enum value from the data/items/open_close_indicator response property for the response status 200

      response-property-enum-value-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new reject enum value to the data/items/order_update_reason response property for the response status 200

      response-property-enum-value-added

    • added the optional property data/items/open_close_indicator to the response with the 200 status

      response-optional-property-added

    • added the new ap enum value to the data/items/strategy/anyOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new dark enum value to the data/items/strategy/anyOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new pov enum value to the data/items/strategy/anyOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new sor enum value to the data/items/strategy/anyOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new twap enum value to the data/items/strategy/anyOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new vwap enum value to the data/items/strategy/anyOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added SorStrategy VwapStrategy TwapStrategy ApStrategy PovStrategy DarkStrategy DmaStrategy to the data/items/strategy response property anyOf list for the response status 200

      response-property-any-of-added

    • removed SorStrategy VwapStrategy TwapStrategy ApStrategy PovStrategy DarkStrategy DmaStrategy from the data/items/strategy response property oneOf list for the response status 200

      response-property-one-of-removed

  • b9727888407f1711See the full diff
    • removed the required property data/items/strategy/oneOf[PovStrategy]/target_percent from the response with the 200 status

      response-required-property-removed

    • removed the optional property data/items/strategy/oneOf[ApStrategy]/max_percent from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/strategy/oneOf[ApStrategy]/min_percent from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/strategy/oneOf[DarkStrategy]/max_percent from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/strategy/oneOf[TwapStrategy]/max_percent from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/strategy/oneOf[TwapStrategy]/min_percent from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/strategy/oneOf[VwapStrategy]/max_percent from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/strategy/oneOf[VwapStrategy]/min_percent from the response with the 200 status

      response-optional-property-removed

    • added subschema #2 to the data/items/strategy/oneOf[ApStrategy]/ response property allOf list for the response status 200

      response-property-all-of-added

    • added subschema #2 to the data/items/strategy/oneOf[DarkStrategy]/ response property allOf list for the response status 200

      response-property-all-of-added

    • added subschema #2 to the data/items/strategy/oneOf[PovStrategy]/ response property allOf list for the response status 200

      response-property-all-of-added

    • added subschema #2 to the data/items/strategy/oneOf[TwapStrategy]/ response property allOf list for the response status 200

      response-property-all-of-added

    • added subschema #2 to the data/items/strategy/oneOf[VwapStrategy]/ response property allOf list for the response status 200

      response-property-all-of-added

    • removed the ap enum value from the data/items/strategy/oneOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-removed

    • removed the dark enum value from the data/items/strategy/oneOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-removed

    • removed the pov enum value from the data/items/strategy/oneOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-removed

    • removed the sor enum value from the data/items/strategy/oneOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-removed

    • removed the twap enum value from the data/items/strategy/oneOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-removed

    • removed the vwap enum value from the data/items/strategy/oneOf[DmaStrategy]/type response property for the response status 200

      response-property-enum-value-removed

    • added the required property data/items/account_number to the response with the 200 status

      response-required-property-added

    • added the required property data/items/running_position to the response with the 200 status

      response-required-property-added

    • removed the gotc enum value from the data/items/strategy/oneOf[DmaStrategy]/destination response property for the response status 200

      response-property-enum-value-removed

    • removed the xchi enum value from the data/items/strategy/oneOf[DmaStrategy]/destination response property for the response status 200

      response-property-enum-value-removed

    • removed the xphl enum value from the data/items/strategy/oneOf[DmaStrategy]/destination response property for the response status 200

      response-property-enum-value-removed

  • 414d28e74399171See the full diff
    • added DmaStrategy to the data/items/strategy response property oneOf list for the response status 200

      response-property-one-of-added

    • added the new dma enum value to the data/items/strategy/oneOf[ApStrategy]/allOf[BaseStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new dma enum value to the data/items/strategy/oneOf[DarkStrategy]/allOf[BaseStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new dma enum value to the data/items/strategy/oneOf[PovStrategy]/allOf[BaseStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new dma enum value to the data/items/strategy/oneOf[SorStrategy]/allOf[BaseStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new dma enum value to the data/items/strategy/oneOf[TwapStrategy]/allOf[BaseStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new dma enum value to the data/items/strategy/oneOf[VwapStrategy]/allOf[BaseStrategy]/type response property for the response status 200

      response-property-enum-value-added

    • added the new stop-limit enum value to the data/items/order_type response property for the response status 200

      response-property-enum-value-added

    • added dma discriminator mapping keys to the data/items/strategy response property for the response status 200

      response-property-discriminator-mapping-added